corehu

开源模型

CodeLlama-7b-Instruct-hf 对比 Llama-2-7b-chat-hf

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

CodeLlama-7b-Instruct-hfLlama-2-7b-chat-hf
开发者codellamameta-llama
参数量6.7B6.7B
权重BF16F16
许可证llama2llama2
所需显存≈ 18 GB≈ 18 GB
4-bit 显存≈ 6 GB≈ 6 GB
能运行的最便宜 GPURTX 2080 Ti · $0.23RTX 2080 Ti · $0.23
速度(估算)≈ 26 token/秒 · 每百万 $2.43≈ 26 token/秒 · 每百万 $2.43
下载量10,38584,259

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

常见问题

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