DeepSeek-67B 是由深度求索(DeepSeek)推出的高性能开源大语言模型,拥有 670 亿参数,支持中英文双语,在多个基准测试中表现优异。本文将指导您如何在本地环境中成功部署并运行 DeepSeek-67B 模型。
确保已安装以下依赖:
访问 Hugging Face 官方仓库下载模型:
git lfs install
git clone https://huggingface.co/deepseek-ai/deepseek-67b-base
请确保您已同意模型许可协议并完成身份验证。
pip install vllm
python -m vllm.entrypoints.openai.api_server \
--model ./deepseek-67b-base \
--tensor-parallel-size 2 \
--dtype bfloat16
# 转换为 GGUF 格式(需先量化)
python convert.py ./deepseek-67b-base --outfile deepseek-67b.Q5_K_M.gguf
# 运行推理
./main -m ./deepseek-67b.Q5_K_M.gguf -p "你好,你是谁?" -n 256
DeepSeek-67B 为商用友好开源模型(Apache 2.0 许可),但请遵守其使用条款。本地部署适用于研究、开发及内部应用,不建议直接对外提供 API 服务而未做安全过滤。