Downloads · 30 days
0
yt-X/deepseek-r1-dpo
deepseek-r1-dpo is a text generation model from yt-X. 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.
Better tuned deepseek-r1 model using dpo and specific customer service dataset
Downloads · 30 days
0
Access
Public
Updated Feb 12, 2025
Repo size
671 MB
Likes
0
Public
Click a slice to open those files.
.safetensors671 MB · 100%
From the Hugging Face model README
Better tuned deepseek-r1 model using dpo and specific customer service dataset
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
first we need unsloth
%%capture !pip install --no-deps bitsandbytes accelerate xformers==0.0.29 peft trl triton !pip install --no-deps cut_cross_entropy unsloth_zoo !pip install sentencepiece protobuf datasets huggingface_hub hf_transfer !pip install --no-deps unsloth
from unsloth import FastLanguageModel from transformers import AutoTokenizer
model_path = "drive/MyDrive/deepseek-r1-reasoning-dpo" # Replace
model, tokenizer = FastLanguageModel.from_pretrained( model_name=model_path, max_seq_length=4096, # Adjust based on model capability dtype=torch.float16, load_in_4bit=True, # Enable quantization for efficiency )
FastLanguageModel.for_inference(model)
device = "cuda" if torch.cuda.is_available() else "cpu" model.to(device)
print("Model loaded successfully!")