How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="enferAI/DeepSeek-R1-Distill-Qwen-14B-FP8")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("enferAI/DeepSeek-R1-Distill-Qwen-14B-FP8")
model = AutoModelForCausalLM.from_pretrained("enferAI/DeepSeek-R1-Distill-Qwen-14B-FP8", device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

DeepSeek-R1-Distill-Qwen-14B-FP8

FP8-quantized version of DeepSeek-R1-Distill-Qwen-14B, optimized for inference with vLLM. The quantization reduces the model's memory footprint by approximately 50%.

Model Overview

  • Base Model: DeepSeek-R1-Distill-Qwen-14B
  • Quantization: FP8 (weights and activations)
  • Memory Reduction: ~50% (from 16-bit to 8-bit)
  • License: MIT License (following original model's license)

Compression Details

Compressed using LLM Compressor with:

  • 512 calibration samples from UltraChat
  • Symmetric per-tensor quantization
  • Applied to linear operators within transformer blocks

The compression script is available in compress.py.

Requirements

  • vLLM
  • transformers
  • torch
  • accelerate

Note

This is an experimental compression of the model. Performance metrics and optimal usage parameters have not been thoroughly tested yet.

Downloads last month
12
Safetensors
Model size
15B params
Tensor type
BF16
·
F8_E4M3
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for enferAI/DeepSeek-R1-Distill-Qwen-14B-FP8

Quantized
(141)
this model