Instructions to use thodsapon/GRPO_unsloth_Qwen2.5_3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use thodsapon/GRPO_unsloth_Qwen2.5_3B with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf thodsapon/GRPO_unsloth_Qwen2.5_3B:Q4_K_M # Run inference directly in the terminal: llama cli -hf thodsapon/GRPO_unsloth_Qwen2.5_3B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf thodsapon/GRPO_unsloth_Qwen2.5_3B:Q4_K_M # Run inference directly in the terminal: llama cli -hf thodsapon/GRPO_unsloth_Qwen2.5_3B:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf thodsapon/GRPO_unsloth_Qwen2.5_3B:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf thodsapon/GRPO_unsloth_Qwen2.5_3B:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf thodsapon/GRPO_unsloth_Qwen2.5_3B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf thodsapon/GRPO_unsloth_Qwen2.5_3B:Q4_K_M
Use Docker
docker model run hf.co/thodsapon/GRPO_unsloth_Qwen2.5_3B:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use thodsapon/GRPO_unsloth_Qwen2.5_3B with Ollama:
ollama run hf.co/thodsapon/GRPO_unsloth_Qwen2.5_3B:Q4_K_M
- Unsloth Studio
How to use thodsapon/GRPO_unsloth_Qwen2.5_3B 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 thodsapon/GRPO_unsloth_Qwen2.5_3B 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 thodsapon/GRPO_unsloth_Qwen2.5_3B to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for thodsapon/GRPO_unsloth_Qwen2.5_3B to start chatting
- Pi
How to use thodsapon/GRPO_unsloth_Qwen2.5_3B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf thodsapon/GRPO_unsloth_Qwen2.5_3B:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "thodsapon/GRPO_unsloth_Qwen2.5_3B:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use thodsapon/GRPO_unsloth_Qwen2.5_3B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf thodsapon/GRPO_unsloth_Qwen2.5_3B:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "thodsapon/GRPO_unsloth_Qwen2.5_3B:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use thodsapon/GRPO_unsloth_Qwen2.5_3B with Docker Model Runner:
docker model run hf.co/thodsapon/GRPO_unsloth_Qwen2.5_3B:Q4_K_M
- Lemonade
How to use thodsapon/GRPO_unsloth_Qwen2.5_3B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull thodsapon/GRPO_unsloth_Qwen2.5_3B:Q4_K_M
Run and chat with the model
lemonade run user.GRPO_unsloth_Qwen2.5_3B-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use thodsapon/GRPO_unsloth_Qwen2.5_3B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf thodsapon/GRPO_unsloth_Qwen2.5_3B:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default thodsapon/GRPO_unsloth_Qwen2.5_3B:Q4_K_M
Run Hermes
hermes
- Atomic Chat
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Model Card for Qwen/Qwen2.5-3B-Instruct (Finetuned with GRPO)
This model is a fine-tuned version of Qwen/Qwen2.5-3B-Instruct using the Unsloth framework and Generalized Reinforcement Policy Optimization (GRPO) from the trl library. The model has been optimized for instruction-following and reasoning tasks using LoRA with a rank of 64, aiming for efficient adaptation with minimal hardware requirements.
Code
Model Details
Model Description
- Developed by: [Your Name or Organization]
- Shared by: [Your Hugging Face username]
- Model type: Decoder-only transformer (LLM)
- Language(s): English, multilingual support inherited from base model
- License: Apache 2.0 (same as base model)
- Fine-tuned from model: Qwen/Qwen2.5-3B-Instruct
This model leverages the Unsloth ecosystem to support efficient training with LoRA adapters in 4-bit precision. GRPO was used as the fine-tuning strategy to reward structured reasoning in completions.
Model Sources
- Repository: https://huggingface.co/Qwen/Qwen2.5-3B-Instruct
- Frameworks: Unsloth, TRL
Uses
Direct Use
This model is suitable for:
- Instruction-following tasks
- Question answering
- Chain-of-thought reasoning
- Conversational AI
- Few-shot NLP tasks
Out-of-Scope Use
This model is not suitable for:
- Legal, medical, or financial advice without expert review
- Real-time safety-critical decision-making
- Generating harmful, biased, or toxic content
Bias, Risks, and Limitations
This model inherits any biases and limitations from its base model (Qwen2.5-3B-Instruct). As with all large language models, it may produce factually incorrect or misleading information.
Recommendations
- Apply content moderation and safety filters before deploying publicly.
- Human review is recommended in high-stakes use cases.
How to Get Started with the Model
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "Qwen/Qwen2.5-3B-Instruct",
max_seq_length = 1024,
load_in_4bit = True,
fast_inference = True,
max_lora_rank = 64,
gpu_memory_utilization = 0.5,
)
Training Details
Training Data
Data used for fine-tuning is assumed to contain instruction-response format prompts with reasoning chains. [Specify your dataset if available.]
Training Procedure
- LoRA Rank: 64
- Target Modules:
q_proj,k_proj,v_proj,o_proj,gate_proj,up_proj,down_proj - Gradient Checkpointing: Enabled (via Unsloth)
- Precision: Mixed (bfloat16 or fp16 depending on hardware support)
Hyperparameters
- Learning rate: 5e-6
- Optimizer: AdamW 8-bit
- Warmup ratio: 0.1
- Scheduler: Cosine
- Batch size: 1
- Gradient accumulation: 1
- Max steps: 250
- Max prompt length: 256
- Max completion length: 200
Evaluation
Evaluation was done manually and qualitatively based on response coherence and instruction-following accuracy. [Include metrics if quantitative results are available.]
Environmental Impact
- Hardware Type: Consumer GPU (e.g., RTX 4060 or similar)
- Precision: 4-bit inference, bf16 or fp16 training
- Training Duration: ~X hours (estimated)
- Compute Region: [Your cloud provider/region]
Technical Specifications
- Model Architecture: Transformer decoder (Qwen)
- Training Framework: Unsloth, TRL, Hugging Face
- LoRA Adaptation: Enabled via Unsloth
Citation
If you use this model, please cite the base model and GRPO:
@misc{qwen25instruct,
title={Qwen2.5-3B-Instruct},
author={Qwen Team},
year={2024},
url={https://huggingface.co/Qwen/Qwen2.5-3B-Instruct}
}
@misc{grpo2025,
title={Generalized Reinforcement Policy Optimization (GRPO)},
author={TRL Team},
year={2025},
url={https://github.com/huggingface/trl}
}
Model Card Authors
[Leng Thodsapon]
Contact
- Downloads last month
- 26
4-bit