| 模型 | 最低显存 | 推荐配置 |
|---|---|---|
| Llama‑3‑8B | 16GB | 24GB(RTX 3090/4090) |
| Llama‑3‑70B | 140GB+ | 2×A100 80G / 4×3090 |
CPU 可跑但很慢,不建议生产。
curl -fsSL https://ollama.com/install.sh | sh
ollama run llama3http://localhost:11434pip install vllmpython -m vllm.entrypoints.api_server \
--model meta-llama/Meta-Llama-3-8B-Instruct \
--tensor-parallel-size 1API:
http://localhost:8000/generateNginx
↓
vLLM / TGI
↓
Llama‑3 模型docker run -d --gpus all -p 8080:80 \
ghcr.io/huggingface/text-generation-inference:latest \
--model-id meta-llama/Meta-Llama-3-8B-Instruct访问:
http://服务器IP:8080✅ 支持:
--api-keylocation /llama {
proxy_pass http://127.0.0.1:8080;
}| 场景 | 推荐方案 |
|---|---|
| 个人测试 | Ollama |
| 内部工具 | vLLM |
| 公网 API | TGI + Nginx |
| 多模型 | LiteLLM |
如果你告诉我:
我可以直接给你一套可执行部署命令。