Downloads · 30 days
0
MilyaShams/DeepSeek-R1-Distill-Qwen-1.5B-medical-sft-adapter
DeepSeek-R1-Distill-Qwen-1.5B-medical-sft-adapter is a text generation model from MilyaShams. 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.
This is an adapter of MilyaShams/DeepSeek-R1-Distill-Qwen-1.5B-Medical, fine-tuned using QLoRA with TRL.
Downloads · 30 days
0
Access
Public
Updated Mar 8, 2025
Repo size
85.3 MB
Likes
0
Public
Click a slice to open those files.
.safetensors73.9 MB · 87%
From the Hugging Face model README
This is an adapter of MilyaShams/DeepSeek-R1-Distill-Qwen-1.5B-Medical, fine-tuned using QLoRA with TRL.
The adapter preserves the medical domain specialization of the base model while optimizing memory efficiency and training speed through low-rank adaptation.
from transformers import pipeline
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
generator = pipeline("text-generation", model="MilyaShams/DeepSeek-R1-Distill-Qwen-1.5B-Medical-QLoRA", device="cuda")
output = generator([{"role": "user", "content": question}], max_new_tokens=1024, return_full_text=False)[0]
print(output["generated_text"])
This model was trained with SFT.
Cite TRL as:
@misc{vonwerra2022trl,
title = {{TRL: Transformer Reinforcement Learning}},
author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallouédec},
year = 2020,
journal = {GitHub repository},
publisher = {GitHub},
howpublished = {\url{https://github.com/huggingface/trl}}
}