Model reference · open weights
DeepSeek-Coder-Lite is an open-weight language model from Red Hat. DeepSeek-Coder-V2-Lite-Instruct-FP8 (FP8) weighs 16.1 GB; the smallest configuration that runs it is 2× RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the RedHatAI/DeepSeek-Coder-V2-Lite-Instruct-FP8 model card, 2026-10-01
What it is
| Released by | Red Hat |
|---|---|
| Released | 2024-07-17 |
| Parameters | 15.7B |
| VRAM | 16.1 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB … RTX 4060 Ti 16 GB 2 smaller cards | ||||
| RTX 3090 24 GB FP8 without its speed-up here | 23 | 5 | all 160K | 23.4 GB |
| RTX 4090 24 GB | 23 | 5 | all 160K | 23.4 GB |
| RTX 5090 32 GB | 53 | 13 | all 160K | 31.0 GB |
| L40S 48 GB | 104 | 26 | all 160K | 44.0 GB |
| A100 80 GB FP8 without its speed-up here | 239 | 59 | all 160K | 78.2 GB |
| H100 80 GB | 218 | 54 | all 160K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 280 | 70 | all 160K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 333 | 83 | all 160K | 107 GB |
| H200 141 GB | 453 | 113 | all 160K | 138 GB |
| B200 180 GB | 593 | 148 | all 160K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel · FP8 without its speed-up here | 9 | 2 | 75K | 11.6 GB a card |
| 2× RTX 4060 Ti 16 GB tensor parallel | 24 | 6 | all 160K | 15.4 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 17.5 GB | 18.3 GB |
| 5 | 18.6 GB | 22.4 GB |
| 8 | 19.3 GB | 25.4 GB |
| 16 | 21.4 GB | 33.6 GB |
| 32 | 25.4 GB | 49.9 GB |
| 64 | 33.6 GB | 82.5 GB |
One card, with vLLM's small-card settings.
From the model card
Quantized version of DeepSeek-Coder-V2-Lite-Instruct.
It achieves an average score of 79.60 on the HumanEval+ benchmark, whereas the unquantized model achieves 79.33.
This model was obtained by quantizing the weights and activations of DeepSeek-Coder-V2-Lite-Instruct to FP8 data type, ready for inference with vLLM >= 0.5.2. This optimization reduces the number of bits per parameter from 16 to 8, reducing the disk size and GPU memory requirements by approximately 50%.
Only the weights and activations of the linear operators within transformers blocks are quantized. Symmetric per-tensor quantization is applied, in which a single linear scaling maps the FP8 representations of the quantized weights and activations. AutoFP8 is used for quantization with 512 sequences of UltraChat.
This model can be deployed efficiently using the vLLM backend, as shown in the example below.
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
model_id = "neuralmagic/DeepSeek-Coder-V2-Lite-Instruct-FP8"
sampling_params = SamplingParams(temperature=0.6, top_p=0.9, max_tokens=256)
tokenizer = AutoTokenizer.from_pretrained(model_id)
messages = [
{"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
{"role": "user", "content": "Who are you?"},
]
prompts = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
llm = LLM(model=model_id, trust_remote_code=True, max_model_len=4096)
outputs = llm.generate(prompts, sampling_params)
generated_text = outputs[0].outputs[0].text
print(generated_text)
vLLM aslo supports OpenAI-compatible serving. See the documentation for more details.
This model was created by applying AutoFP8 with calibration samples from ultrachat with expert gates kept at original precision, as presented in the code snipet below. Although AutoFP8 was used for this particular model, Neural Magic is transitioning to using llm-compressor which supports several quantization schemes and models not supported by AutoFP8.
from datasets import load_dataset
from transformers import AutoTokenizer
from auto_fp8 import AutoFP8ForCausalLM, BaseQuantizeConfig
pretrained_model_dir = "deepseek-ai/DeepSeek-Coder-V2-Lite-Instruct"
quantized_model_dir = "DeepSeek-Coder-V2-Lite-Instruct-FP8"
tokenizer = AutoTokenizer.from_pretrained(pretrained_model_dir, use_fast=True, model_max_length=4096)
tokenizer.pad_token = tokenizer.eos_token
ds = load_dataset("mgoin/ultrachat_2k", split="train_sft").select(range(512))
examples = [tokenizer.apply_chat_template(batch["messages"], tokenize=False) for batch in ds]
examples = tokenizer(examples, padding=True, truncation=True, return_tensors="pt").to("cuda")
quantize_config = BaseQuantizeConfig(
quant_method="fp8",
activation_scheme="static"
ignore_patterns=["re:.*lm_head"],
)
model = AutoFP8ForCausalLM.from_pretrained(
pretrained_model_dir, quantize_config=quantize_config
)
model.quantize(examples)
model.save_quantized(quantized_model_dir)
The model was evaluated on the HumanEval+ benchmark with the Neural Magic fork of the EvalPlus implementation of HumanEval+ and the vLLM engine, using the following command:
python codegen/generate.py --model neuralmagic/DeepSeek-Coder-V2-Lite-Instruct-FP8 --temperature 0.2 --n_samples 50 --resume --root ~ --dataset humaneval
python evalplus/sanitize.py ~/humaneval/neuralmagic--DeepSeek-Coder-V2-Lite-Instruct-FP8_vllm_temp_0.2
evalplus.evaluate --dataset humaneval --samples ~/humaneval/neuralmagic--DeepSeek-Coder-V2-Lite-Instruct-FP8_vllm_temp_0.2-sanitized
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.