corehu

开源模型

CodeLlama-7b-Instruct-hf 对比 sqlcoder-7b-2

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

CodeLlama-7b-Instruct-hfsqlcoder-7b-2
开发者codellamadefog
参数量6.7B6.7B
权重BF16F16
许可证llama2cc-by-sa-4.0
所需显存≈ 18 GB≈ 18 GB
4-bit 显存≈ 6 GB≈ 6 GB
能运行的最便宜 GPURTX 3090 · $0.27RTX 3090 · $0.27
速度(估算)≈ 42 token/秒 · 每百万 $1.79≈ 42 token/秒 · 每百万 $1.79
下载量10,385160,985

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

常见问题

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