Downloads · 30 days
0
Gabriel2502/DeepSeek-R1-Distill-Qwen-7B-latent-sft-stage2_v2
DeepSeek-R1-Distill-Qwen-7B-latent-sft-stage2_v2 is a machine learning model from Gabriel2502. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as llama3.
Model ini adalah hasil fine-tuning deepseek-ai/DeepSeek-R1-Distill-Qwen-7B menggunakan metode Latent SFT Stage 2 dengan LoRA (Low-Rank Adaptation).
Downloads · 30 days
0
Access
Public
Updated Apr 19, 2026
Repo size
2.9 GB
Likes
0
Public
Click a slice to open those files.
.pt1.9 GB · 59%
From the Hugging Face model README
Model ini adalah hasil fine-tuning deepseek-ai/DeepSeek-R1-Distill-Qwen-7B menggunakan metode Latent SFT Stage 2 dengan LoRA (Low-Rank Adaptation).
| Parameter | Nilai |
|---|---|
| Base Model | deepseek-ai/DeepSeek-R1-Distill-Qwen-7B |
| LoRA Rank | 32 |
| LoRA Dropout | 0.1 |
| Compression Rate | 4 |
| Epochs | 20 |
| Batch Size | 1 |
| Gradient Accumulation | 4 |
| Learning Rate | 0.0001 |
| Max Seq Len | 1024 |
| CE Weight | 1.0 |
| KL Weight | 0.5 |
| FP16 | True |
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained("deepseek-ai/DeepSeek-R1-Distill-Qwen-7B")
tokenizer = AutoTokenizer.from_pretrained("Gabriel2502/DeepSeek-R1-Distill-Qwen-7B-latent-sft-stage2_v2")
model = PeftModel.from_pretrained(base_model, "Gabriel2502/DeepSeek-R1-Distill-Qwen-7B-latent-sft-stage2_v2")
model = model.merge_and_unload() # Opsional: merge LoRA ke base model
Model ini dilatih menggunakan pendekatan Latent Compression: