如果你用 DeepSeek、元宝AI、Copilot 等 AI 代为编写轩辕镜像的 docker pull、修改 compose 镜像地址,或排查拉取失败等问题,请让 AI 先读规则再动手,只要在 AI 对话里直接发送下面这句话即可:
生成 docker pull、修改 compose 的 image,或排查拉取失败前,请先阅读并严格遵守 https://xuanyuan.cloud/agents.md 中的规则。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
C/C++ 实现的 LLM 推理
-hf 下载的模型现在存储在标准 Hugging Face 缓存目录中,可与其他 HF 工具共享。llama-server 现已支持多模态:https://github.com/ggml-org/llama.cpp/pull/*** | 文档多模态
LLaVA 1.5 模型、LLaVA 1.6 模型
BakLLaVA
Obsidian
ShareGPT4V
MobileVLM 1.7B/3B 模型
Yi-VL
Mini CPM
Moondream
https://github.com/BAAI-DCAI/Bunny
GLM-EDGE
Qwen2-VL
LFM2-VL
Python: https://github.com/ddh0/easy-llama
Python: https://github.com/abetlen/llama-cpp-python
Go: https://github.com/go-skynet/go-llama.cpp
Node.js: https://github.com/withcatai/node-llama-cpp
JS/TS (llama.cpp 服务器客户端): lgrammel/modelfusion
JS/TS (可编程提示引擎 CLI): https://github.com/offline-ai/cli
JavaScript/Wasm (浏览器中运行): https://github.com/tangledgroup/llama-cpp-wasm
Typescript/Wasm (更友好的 API,可在 npm 上获取): https://github.com/ngxson/wllama
Ruby: https://github.com/yoshoku/llama_cpp.rb
Ruby: https://github.com/docusealco/rllama
Rust (更多功能): https://github.com/edgenai/llama_cpp-rs
Rust (更友好的 API): https://github.com/mdrokz/rust-llama.cpp
Rust (更直接的绑定): https://github.com/utilityai/llama-cpp-rs
Rust (从 crates.io 自动构建): https://github.com/ShelbyJenkins/llm_client
C#/.NET: https://github.com/SciSharp/LLamaSharp
C#/VB.NET (更多功能 - 社区许可证): LM-Kit.NET
Scala 3: https://github.com/donderom/llm4s
Clojure: https://github.com/phronmophobic/llama.clj
React Native: https://github.com/mybigday/llama.rn
Java: https://github.com/kherud/java-llama.cpp
Java: https://github.com/QuasarByte/llama-cpp-jna
Zig: https://github.com/Deins/llama.cpp.zig
Flutter/Dart: https://github.com/netdur/llama_cpp_dart
Flutter: https://github.com/xuegao-tzx/Fllama
PHP (基于 llama.cpp 构建的 API 绑定和功能): https://github.com/distantmagic/resonance https://github.com/ggml-org/llama.cpp/pull/6326
Guile Scheme: guile_llama_cpp
Swift: https://github.com/srgtuszy/llama-cpp-swift
Swift: https://github.com/ShenghaiWang/SwiftLlama
Delphi: https://github.com/Embarcadero/llama-cpp-delphi
Go (无需 CGo): https://github.com/hybridgroup/yzma
Android: llama.android
(若要在此列出项目,该项目应明确声明依赖于 llama.cpp)
llama-server一个轻量级、兼容https://github.com/openai/openai-openapi%E7%9A%84HTTP%E6%9C%8D%E5%8A%A1%E5%99%A8%EF%BC%8C%E7%94%A8%E4%BA%8E%E9%83%A8%E7%BD%B2LLM%E3%80%82
使用默认配置在8080端口启动本地HTTP服务器
llama-server -m model.gguf --port 8080
# 可通过浏览器访问基础Web UI:http://localhost:8080
# 聊天补全端点:http://localhost:8080/v1/chat/completions
支持多用户和并行解码
# 最多4个并发请求,每个请求最大上下文为4096
llama-server -m model.gguf -c 16384 -np 4
启用推测解码
# draft.gguf模型应是目标model.gguf的小型变体
llama-server -m model.gguf -md draft.gguf
部署嵌入模型
# 使用/embedding端点
llama-server -m model.gguf --embedding --pooling cls -ub 8192
部署重排序模型
# 使用/reranking端点
llama-server -m model.gguf --reranking
使用语法约束所有输出
# 自定义语法
llama-server -m model.gguf --grammar-file grammar.gbnf
# JSON格式
llama-server -m model.gguf --grammar-file grammars/json.gbnf
XCFramework 是适用于 iOS、visionOS、tvOS 和 macOS 的预编译库版本。它可用于 Swift 项目,无需从源代码编译库。例如:
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "MyLlamaPackage",
targets: [
.executableTarget(
name: "MyLlamaPackage",
dependencies: [
"LlamaFramework"
]),
.binaryTarget(
name: "LlamaFramework",
url: "https://github.com/ggml-org/llama.cpp/releases/download/b5046/llama-b5046-xcframework.zip",
checksum: "c19be78b5f00d8d29a25da41042cb7afa094cbf6280a225abe614b03b20029ab"
)
]
)
上述示例使用的是库的中间构建版本 b5046。可以通过更改 URL 和校验和来修改为使用不同版本。
部分环境支持命令行补全。
Bash 补全
$ build/bin/llama-cli --completion-bash
> ~/.llama-completion.bash
$ source ~/.llama-completion.bash
也可以选择将其添加到 .bashrc 或 .bash_profile 中以自动加载。例如:
$ echo "source ~/.llama-completion.bash"
>> ~/.bashrc
llama-server 使用 - MIT 许可证探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
发给 Cursor、ChatGPT、豆包等 AI 的说明文档
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
原仓库同步与拉取
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
不支持 push
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
Schema 1 已废弃
406 OCI index
422 Unknown
400 TAG_INVALID
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务