Model reference · open weights

DeepSeek-Coder-Lite

LLMs RedHatAI Text gen 1 build Its own licence terms 129k dl/mo

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.

  • DeepSeek-Coder-Lite is a 15.7B parameter text-generation model intended for assistant-like chat in English.
  • It features a 163840 token context length and uses FP8 quantization for weights and activations, which reduces memory requirements by approximately 50%.
  • The model is distributed under a custom license and was developed by Neural Magic.

Summary of the RedHatAI/DeepSeek-Coder-V2-Lite-Instruct-FP8 model card, 2026-10-01

What it is

Released byRed Hat
Released2024-07-17
Parameters15.7B
VRAM16.1 GB for the weights

What it runs on

Memory and cards for DeepSeek-Coder-V2-Lite-Instruct-FP8 (FP8)

16.1 GBweights, file size
31 MBcache per 1K tokens
1.2 GBruntime overhead, at least
163,840 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB … RTX 4060 Ti 16 GB
2 smaller cards
RTX 3090 24 GB
FP8 without its speed-up here
235all 160K23.4 GB
RTX 4090 24 GB235all 160K23.4 GB
RTX 5090 32 GB5313all 160K31.0 GB
L40S 48 GB10426all 160K44.0 GB
A100 80 GB
FP8 without its speed-up here
23959all 160K78.2 GB
H100 80 GB21854all 160K78.1 GB
RTX PRO 6000 Blackwell 96 GB28070all 160K93.8 GB
DGX Spark (GB10) 128 GB unified33383all 160K107 GB
H200 141 GB453113all 160K138 GB
B200 180 GB593148all 160K176 GB
2× RTX 3060 12 GB
tensor parallel · FP8 without its speed-up here
9275K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
246all 160K15.4 GB a card
Memory needed at each load
Requests at once8K tokens each32K tokens each
117.5 GB18.3 GB
518.6 GB22.4 GB
819.3 GB25.4 GB
1621.4 GB33.6 GB
3225.4 GB49.9 GB
6433.6 GB82.5 GB

One card, with vLLM's small-card settings.

From the model card

What Red Hat says about DeepSeek-Coder-Lite

Read the model card

Model Overview

  • Model Architecture: DeepSeek-Coder-V2-Lite-Instruct
    • Input: Text
    • Output: Text
  • Model Optimizations:
    • Weight quantization: FP8
    • Activation quantization: FP8
  • Intended Use Cases: Intended for commercial and research use in English. Similarly to Meta-Llama-3-7B-Instruct, this models is intended for assistant-like chat.
  • Out-of-scope: Use in any manner that violates applicable laws or regulations (including trade compliance laws). Use in languages other than English.
  • Release Date: 7/18/2024
  • Version: 1.0
  • License(s): deepseek-license
  • Model Developers: Neural Magic

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.

Model Optimizations

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.

Deployment

Use with vLLM

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.

Creation

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)

Evaluation

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

Accuracy

HumanEval+ evaluation scores

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms