
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这段话即可:
请先阅读并遵守:https://xuanyuan.cloud/agents.md
未读文档前不要生成 pull 命令或排错方案。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Ampere® optimized build of https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#llamacpp with full support for rich collection of GGUF models available on HuggingFace: https://huggingface.co/models?search=gguf https://huggingface.co/AmpereComputing/collections
This Docker image can be run on bare metal Ampere® CPUs and Ampere® based VMs available in the cloud.
Release notes and binary executables are available on our https://github.com/AmpereComputingAI/llama.cpp/releases
Default entrypoint runs the server binary of llama.cpp, mimicking behavior of original llama.cpp server image: https://github.com/ggerganov/llama.cpp/blob/master/.devops/llama-server.Dockerfile
To launch shell instead, do this:
bashsudo docker run --privileged=true --name llama --entrypoint /bin/bash -it amperecomputingai/llama.cpp:latest
Quick start example will be presented at docker container launch:
Make sure to visit us at Ampere Solutions Portal!
Ampere® optimized build of llama.cpp provides support for two new quantization methods, Q4_K_4 and Q8R16, offering model size and perplexity similar to Q4_K and Q8_0, respectively, but performing up to 1.5-2x faster on inference.
First, you'll need to convert the model to the GGUF format using https://github.com/ggerganov/llama.cpp/blob/master/convert_hf_to_gguf.py:
bashpython3 convert-hf-to-gguf.py [path to the original model] --outtype [f32, f16, bf16 or q8_0] --outfile [output path]
For example:
bashpython3 convert-hf-to-gguf.py path/to/llama2 --outtype f16 --outfile llama-2-7b-f16.gguf
Next, you can quantize the model using the following command:
bash./llama-quantize [input file] [output file] [quantization method]
For example:
bash./llama-quantize llama-2-7b-f16.gguf llama-2-7b-Q8R16.gguf Q8R16
Please contact us at <***>
By accessing, downloading or using this software and any required dependent software (the “Ampere AI Software”), you agree to the terms and conditions of the software license agreements for the Ampere AI Software, which may also include notices, disclaimers, or license terms for third party software included with the Ampere AI Software. Please refer to the https://ampereaidevelop.s3.eu-central-1.amazonaws.com/Ampere+AI+Software+EULA+-+v1.6.pdf or other similarly-named text file for additional details.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 amperecomputingai/llama.cpp 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: