Downloads · 30 days
54
0% of all-time downloads
avoroshilov/DeepSeek-R1-Distill-Qwen-14B-GPTQ_4bit-128g
DeepSeek-R1-Distill-Qwen-14B-GPTQ_4bit-128g is a text generation model from avoroshilov. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
See details on the official page of the model: DeepSeek-R1-Distill-Qwen-14B
Downloads · 30 days
54
0% of all-time downloads
All-time downloads
23.1K
Public
Parameters
14.8B
10 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors10 GB · 100%
How the weights are stored.
I3213.2B · 89%
From the Hugging Face model README
See details on the official page of the model: DeepSeek-R1-Distill-Qwen-14B
Quantized using GPTQModel using wikitext2 dataset with nsamples=256 and seqlen=1024. Quantization config:
bits=4,
group_size=128,
desc_act=False,
damp_percent=0.01,
Minimum VRAM required: ~11GB
Using transformers library with integrated GPTQ support:
from transformers import AutoModelForCausalLM, AutoTokenizer, GenerationConfig
model_name = "avoroshilov/DeepSeek-R1-Distill-Qwen-14B-GPTQ_4bit-128g"
tokenizer = AutoTokenizer.from_pretrained(model_name)
quantized_model = AutoModelForCausalLM.from_pretrained(model_name, device_map='cuda')
chat = [{"role": "user", "content": "Why is grass green?"},]
question_tokens = tokenizer.apply_chat_template(chat, add_generation_prompt=True, return_tensors="pt").to(quantized_model.device)
answer_tokens = quantized_model.generate(question_tokens, generation_config=GenerationConfig(max_length=2048, ))[0]
print(tokenizer.decode(answer_tokens))