Downloads · 30 days
21
10% of all-time downloads
Etelis/DeepSeek-V2-Lite-FP8-BLOCK-padded
DeepSeek-V2-Lite-FP8-BLOCK-padded is a text generation model from Etelis. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
This model is a FP8 block-quantized version of deepseek-ai/DeepSeek-V2-Lite with padding support for non-divisible dimensions.
Downloads · 30 days
21
10% of all-time downloads
All-time downloads
207
Public
Parameters
15.7B
16.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
How the weights are stored.
F8_E4M315.3B · 97%
From the Hugging Face model README
This model is a FP8 block-quantized version of deepseek-ai/DeepSeek-V2-Lite with padding support for non-divisible dimensions.
DeepSeek-V2-Lite has intermediate_size=10944, which is not divisible by the block size of 128. This model uses weight padding to handle this:
intermediate_size: 10944intermediate_size: 11008 (86 × 128)The padding is applied during quantization and the config.json reflects the padded dimensions for vLLM compatibility.
from vllm import LLM, SamplingParams
llm = LLM(
model="Etelis/DeepSeek-V2-Lite-FP8-BLOCK-padded",
trust_remote_code=True,
tensor_parallel_size=1,
)
sampling_params = SamplingParams(max_tokens=100, temperature=0.7)
output = llm.generate(["Hello, world!"], sampling_params)
print(output[0].outputs[0].text)
Requirements: H100 or newer GPU (SM 8.9+) for FP8 block quantization support.
from transformers import AutoModelForCausalLM, AutoTokenizer
from llmcompressor import oneshot
from llmcompressor.modifiers.quantization import QuantizationModifier
MODEL_ID = "deepseek-ai/DeepSeek-V2-Lite"
model = AutoModelForCausalLM.from_pretrained(
MODEL_ID,
torch_dtype="auto",
trust_remote_code=True,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, trust_remote_code=True)
# FP8 block quantization - ignore layers with composite dimensions
recipe = QuantizationModifier(
targets="Linear",
scheme="FP8_BLOCK",
ignore=["lm_head", "re:.*kv_a_proj_with_mqa.*"]
)
oneshot(model=model, recipe=recipe)
model.save_pretrained("DeepSeek-V2-Lite-FP8-BLOCK-padded")
tokenizer.save_pretrained("DeepSeek-V2-Lite-FP8-BLOCK-padded")
lm_head: Not quantized (standard practice)kv_a_proj_with_mqa: Has composite dimensions (512 + 64 = 576) that cannot be safely paddedThis model inherits the DeepSeek Model License from the base model.