Instructions to use Akshint47/Nano_R1_Model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Adapters
How to use Akshint47/Nano_R1_Model with Adapters:
from adapters import AutoAdapterModel model = AutoAdapterModel.from_pretrained("undefined") model.load_adapter("Akshint47/Nano_R1_Model", set_active=True) - Transformers
How to use Akshint47/Nano_R1_Model with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Akshint47/Nano_R1_Model", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Unsloth Studio new
How to use Akshint47/Nano_R1_Model with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Akshint47/Nano_R1_Model to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Akshint47/Nano_R1_Model to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Akshint47/Nano_R1_Model to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Akshint47/Nano_R1_Model", max_seq_length=2048, )
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Fine-Tuning Qwen2.5-3B-Instruct with GRPO for GSM8K Dataset
|
| 2 |
|
| 3 |
This notebook demonstrates the process of fine-tuning the **Qwen2.5-3B-Instruct** model using **GRPO (Generalized Reward Policy Optimization)** on the **GSM8K** dataset. The goal is to improve the model's ability to solve mathematical reasoning problems by leveraging reinforcement learning with custom reward functions.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
base_model:
|
| 6 |
+
- unsloth/Qwen2.5-3B-Instruct-unsloth-bnb-4bit
|
| 7 |
+
library_name: adapter-transformers
|
| 8 |
+
tags:
|
| 9 |
+
- text-generation-inference
|
| 10 |
+
- transformers
|
| 11 |
+
- unsloth
|
| 12 |
+
- qwen2
|
| 13 |
+
- trl
|
| 14 |
+
- grpo
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Uploaded model
|
| 18 |
+
|
| 19 |
+
- **Developed by:** Akshint47
|
| 20 |
+
- **License:** apache-2.0
|
| 21 |
+
- **Finetuned from model :** unsloth/qwen2.5-3b-instruct-unsloth-bnb-4bit
|
| 22 |
+
|
| 23 |
+
This qwen2 model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
|
| 24 |
+
|
| 25 |
+
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
|
| 26 |
# Fine-Tuning Qwen2.5-3B-Instruct with GRPO for GSM8K Dataset
|
| 27 |
|
| 28 |
This notebook demonstrates the process of fine-tuning the **Qwen2.5-3B-Instruct** model using **GRPO (Generalized Reward Policy Optimization)** on the **GSM8K** dataset. The goal is to improve the model's ability to solve mathematical reasoning problems by leveraging reinforcement learning with custom reward functions.
|