corehu

开源模型

Llama-2-7b-chat-hf 对比 LlamaGuard-7b

Llama-2-7b-chat-hf 与 LlamaGuard-7b 所需显存大致相同(18 GB)。 目前最便宜的运行方式:Llama-2-7b-chat-hf 在 RTX 2080 Ti 上每小时 $0.21 起,LlamaGuard-7b 在 RTX 2080 Ti 上每小时 $0.21 起。

Llama-2-7b-chat-hfLlamaGuard-7b
开发者meta-llamameta-llama
参数量6.7B6.7B
权重F16BF16
许可证llama2llama2
所需显存≈ 18 GB≈ 18 GB
4-bit 显存≈ 6 GB≈ 6 GB
能运行的最便宜 GPURTX 2080 Ti · $0.21RTX 2080 Ti · $0.21
速度(估算)≈ 26 token/秒 · 每百万 $2.24≈ 26 token/秒 · 每百万 $2.24
下载量84,2592,380

显存数值为我们对推理的估算;实际用量取决于分辨率、批量大小和上下文长度。 速度是按 GPU 显存带宽对单个请求的估算;同时处理多个请求会提高总吞吐量并降低每个 token 的成本。

常见问题

Llama-2-7b-chat-hf 和 LlamaGuard-7b 哪个需要的显存更少?
Llama-2-7b-chat-hf 与 LlamaGuard-7b 所需显存大致相同(18 GB)。
Llama-2-7b-chat-hf 和 LlamaGuard-7b 哪个运行更便宜?
目前最便宜的运行方式:Llama-2-7b-chat-hf 在 RTX 2080 Ti 上每小时 $0.21 起,LlamaGuard-7b 在 RTX 2080 Ti 上每小时 $0.21 起。