Downloads · 30 days
243
9% of all-time downloads
SURESHBEEKHANI/Deep-seek-R1-Medical-reasoning-SFT
Deep-seek-R1-Medical-reasoning-SFT is a text generation model from SURESHBEEKHANI. Use it when you need the model to write or continue text. The card lists the license as mit.
The DeepSeek-R1-Distill-Llama-8B model has been fine-tuned for medical chain-of-thought (CoT) reasoning. This fine-tuning process enhances the model's ability to generate structured, concise, and accurate medical reas…
Downloads · 30 days
243
9% of all-time downloads
All-time downloads
2.8K
Public
Repo size
19.2 GB
Likes
1
Public
Click a slice to open those files.
.gguf19.2 GB · 100%
From the Hugging Face model README
The DeepSeek-R1-Distill-Llama-8B model has been fine-tuned for medical chain-of-thought (CoT) reasoning. This fine-tuning process enhances the model's ability to generate structured, concise, and accurate medical reasoning outputs. The model was trained using a 500-sample subset of the medical-o1-reasoning-SFT dataset, with optimizations including 4-bit quantization and LoRA adapters to improve efficiency and reduce memory usage.
This model is designed for use by:
Typical use cases include:
Install Required Packages: Installed necessary libraries, including unsloth and kaggle.
Authentication: Authenticated with Hugging Face Hub and Weights & Biases for tracking experiments and versioning.
Model Initialization: Initialized the base model with 4-bit quantization and a sequence length of up to 2048 tokens.
Pre-Fine-Tuning Inference: Conducted an initial inference to establish the model’s baseline performance on a medical question.
Dataset Preparation: Structured and formatted the training data using a custom template tailored to medical CoT reasoning tasks.
Application of LoRA Adapters: Incorporated LoRA adapters for efficient parameter tuning during fine-tuning.
Supervised Fine-Tuning: Utilized SFTTrainer to fine-tune the model with optimized hyperparameters for 44 minutes.
Post-Fine-Tuning Inference: Evaluated the model’s improved performance by testing it on the same medical question after fine-tuning.
Saving and Loading: Stored the fine-tuned model, including LoRA adapters, for easy future use and deployment.
Model Deployment: Pushed the fine-tuned model to Hugging Face Hub in GGUF format with 4-bit quantization enabled for efficient use.
Access the implementation notebook for this modelhere. This notebook provides detailed steps for fine-tuning and deploying the model.