
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://github.com/go-skynet/LocalAI/fork https://github.com/go-skynet/LocalAI/stargazers https://github.com/go-skynet/LocalAI/pulls https://github.com/go-skynet/LocalAI/releases
https://hub.docker.com/r/localai/localai
:bulb: Get help - ❓FAQ https://github.com/go-skynet/LocalAI/discussions :speech_balloon: *** :book: Documentation website
💻 Quickstart 🖼️ Models https://github.com/mudler/LocalAI/issues?q=is%3Aissue+is%3Aopen+label%3Aroadmap 🥽 Demo 🌍 Explorer https://github.com/mudler/LocalAI-examples
https://github.com/go-skynet/LocalAI/actions/workflows/test.yml/badge.svg](https://github.com/go-skynet/LocalAI/actions/workflows/test.yml)https://github.com/go-skynet/LocalAI/actions/workflows/release.yaml/badge.svg](https://github.com/go-skynet/LocalAI/actions/workflows/release.yaml)https://github.com/go-skynet/LocalAI/actions/workflows/image.yml/badge.svg](https://github.com/go-skynet/LocalAI/actions/workflows/image.yml)https://github.com/go-skynet/LocalAI/actions/workflows/bump_deps.yaml/badge.svg](https://github.com/go-skynet/LocalAI/actions/workflows/bump_deps.yaml)!%5BArtifact Hub]([***]
LocalAI is the free, Open Source OpenAI alternative. LocalAI act as a drop-in replacement REST API that's compatible with OpenAI (Elevenlabs, Anthropic... ) API specifications for local AI inferencing. It allows you to run LLMs, generate images, audio (and not only) locally or on-prem with consumer grade hardware, supporting multiple model families. Does not require GPU. It is created and maintained by https://github.com/mudler.
🆕 LocalAI is now part of a comprehensive suite of AI tools designed to work together:
| https://github.com/mudler/LocalAGI |
| https://github.com/mudler/LocalRecall |
| Talk Interface | Generate Audio |
|---|---|
| !https://github.com/mudler/LocalAI/raw/master/docs/assets/images/screenshots/screenshot_tts.png | !https://github.com/mudler/LocalAI/raw/master/docs/assets/images/screenshots/screenshot_tts.png |
| Models Overview | Generate Images |
|---|---|
| !https://github.com/mudler/LocalAI/raw/master/docs/assets/images/screenshots/screenshot_gallery.png | !https://github.com/mudler/LocalAI/raw/master/docs/assets/images/screenshots/screenshot_image.png |
| Chat Interface | Home |
|---|---|
| !https://github.com/mudler/LocalAI/raw/master/docs/assets/images/screenshots/screenshot_chat.png | !https://github.com/mudler/LocalAI/raw/master/docs/assets/images/screenshots/screenshot_home.png |
| Login | Swarm |
|---|---|
| !https://github.com/mudler/LocalAI/raw/master/docs/assets/images/screenshots/screenshot_login.png | !https://github.com/mudler/LocalAI/raw/master/docs/assets/images/screenshots/screenshot_p2p.png |
Run the installer script:
bashcurl https://localai.io/install.sh | sh
Or run with docker:
bashdocker run -ti --name local-ai -p 8080:8080 localai/localai:latest-cpu
bashdocker run -ti --name local-ai -p 8080:8080 --gpus all localai/localai:latest-gpu-nvidia-cuda-12
bashdocker run -ti --name local-ai -p 8080:8080 localai/localai:latest
bashdocker run -ti --name local-ai -p 8080:8080 localai/localai:latest-aio-cpu
To load models:
bash# From the model gallery (see available models with `local-ai models list`, in the WebUI from the model tab, or visiting https://models.localai.io) local-ai run llama-3.2-1b-instruct:q4_k_m # Start LocalAI with the phi-2 model directly from huggingface local-ai run huggingface://TheBloke/phi-2-GGUF/phi-2.Q8_0.gguf # Install and run a model from the Ollama OCI registry local-ai run ollama://gemma:2b # Run a model from a configuration file local-ai run https://gist.githubusercontent.com/.../phi-2.yaml # Install and run a model from a standard OCI registry (e.g., Docker Hub) local-ai run oci://localai/phi-2:latest
For more information, see 💻 Getting started
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 localai/localai 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: