ModelForge: A no-code toolkit for fine-tuning HuggingFace models
Project description
ModelForge 🔧⚡
Fine-tune LLMs on your laptop's GPU—no code, no PhD, no hassle.
ModelForge v3 is a complete architectural overhaul bringing 2x faster training, modular providers, advanced strategies, and production-ready code quality.
✨ What's New in v3
- 🚀 2x Faster Training with Unsloth provider
- 🧩 Multiple Providers: HuggingFace, Unsloth (more coming!)
- 🎯 Advanced Strategies: SFT, QLoRA, RLHF, DPO
- 📊 Built-in Evaluation with task-specific metrics
- 🖥️ Interactive CLI Wizard (
modelforge cli) for headless/SSH environments - 📦 Optional Quantization — bitsandbytes moved to
[quantization]extra
🚀 Features
- GPU-Powered Fine-Tuning: Optimized for NVIDIA GPUs (even 4GB VRAM) and Apple Silicon (MPS)
- One-Click Workflow: Upload data → Configure → Train → Test
- Hardware-Aware: Auto-detects GPU (CUDA or MPS) and recommends optimal settings
- No-Code UI: Beautiful React interface, or use the CLI wizard for headless environments
- Multiple Providers: HuggingFace (standard, works on CUDA + MPS) or Unsloth (2x faster, CUDA only)
- Advanced Strategies: SFT, QLoRA, RLHF, DPO support
- Automatic Evaluation: Built-in metrics for all tasks
📖 Supported Tasks
- Text Generation: Chatbots, instruction following, code generation, creative writing
- Summarization: Document condensing, article summarization, meeting notes
- Question Answering: RAG systems, document search, FAQ bots
🎯 Quick Start
Prerequisites
- Python 3.11.x (Python 3.12 not yet supported)
- GPU with 4GB+ VRAM:
- NVIDIA GPU (6GB+ recommended) for CUDA-accelerated training with Unsloth support
- OR Apple Silicon (M1/M2/M3/M4/M5) for MPS-accelerated training (HuggingFace provider only, experimental)
- CUDA (for NVIDIA GPUs) - Installation Guide
- HuggingFace Account with access token (Get one here)
- Linux, Windows, or macOS operating system
Apple Silicon Users: ModelForge now has experimental support for Apple Silicon Macs with MPS (Metal Performance Shaders). See macOS MPS Installation Guide for setup instructions and limitations (HuggingFace provider only, no quantization support).
Windows Users: See Windows Installation Guide for platform-specific instructions, especially for Unsloth support.
Installation
# Install ModelForge
pip install modelforge-finetuning
# Optional extras
pip install modelforge-finetuning[cli] # CLI wizard
pip install modelforge-finetuning[quantization] # 4-bit/8-bit quantization
# Install PyTorch with CUDA support
# Visit https://pytorch.org/get-started/locally/ for your CUDA version
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
Set HuggingFace Token
Linux:
export HUGGINGFACE_TOKEN=your_token_here
Windows PowerShell:
$env:HUGGINGFACE_TOKEN="your_token_here"
Or use .env file:
echo "HUGGINGFACE_TOKEN=your_token_here" > .env
Run ModelForge
modelforge # Launch web UI
modelforge cli # Launch CLI wizard (headless/SSH)
Open your browser to http://localhost:8000 and start training!
📚 Documentation
Getting Started
- Quick Start Guide - Get up and running in 5 minutes
- What's New in v3 - Major features and improvements
Installation
- Windows Installation - Complete Windows setup (including WSL and Docker)
- Linux Installation - Linux setup guide
- macOS (Apple Silicon) Installation - Setup for M1/M2/M3/M4/M5 Macs with MPS support
- Post-Installation - Initial configuration
Configuration & Usage
- Configuration Guide - All configuration options
- Dataset Formats - Preparing your training data
- Training Tasks - Understanding different tasks
- Hardware Profiles - Optimizing for your GPU
Providers
- Provider Overview - Understanding providers
- HuggingFace Provider - Standard HuggingFace models
- Unsloth Provider - 2x faster training
Training Strategies
- Strategy Overview - Understanding strategies
- SFT Strategy - Standard supervised fine-tuning
- QLoRA Strategy - Memory-efficient training
- RLHF Strategy - Reinforcement learning
- DPO Strategy - Direct preference optimization
API Reference
- REST API - Complete API documentation
- Training Config Schema - Configuration options
Troubleshooting
- Common Issues - Frequently encountered problems
- Windows Issues - Windows-specific troubleshooting
- FAQ - Frequently asked questions
Contributing
- Contributing Guide - How to contribute
- Architecture - Understanding the codebase
- Model Configurations - Adding model recommendations
🔧 Platform Support
| Platform | HuggingFace Provider | Unsloth Provider | Notes |
|---|---|---|---|
| Linux (Native) | ✅ Full support | ✅ Full support | Recommended for best performance |
| Windows (Native) | ✅ Full support | ❌ Not supported | Use WSL or Docker for Unsloth |
| WSL 2 | ✅ Full support | ✅ Full support | Recommended for Windows users |
| Docker | ✅ Full support | ✅ Full support | With NVIDIA runtime |
| macOS (Apple MPS) | ✅ Experimental | ❌ Not supported | Requires PyTorch MPS; no bitsandbytes / Unsloth; smaller models recommended |
Platform-Specific Installation Guides →
⚠️ Important Notes
Windows Users
Unsloth provider is NOT supported on native Windows. For 2x faster training with Unsloth:
- Option 1: WSL (Recommended) - WSL Installation Guide
- Option 2: Docker - Docker Installation Guide
The HuggingFace provider works perfectly on native Windows.
Unsloth Constraints
When using Unsloth provider, you MUST specify a fixed max_sequence_length:
{
"provider": "unsloth",
"max_seq_length": 2048 // ✅ Required - cannot be -1
}
Auto-inference (max_seq_length: -1) is NOT supported with Unsloth.
📂 Dataset Format
ModelForge uses JSONL format. Each task has specific fields:
Text Generation:
{"input": "What is AI?", "output": "AI stands for Artificial Intelligence..."}
{"input": "Explain ML", "output": "Machine Learning is a subset of AI..."}
Summarization:
{"input": "Long article text...", "output": "Short summary."}
Question Answering:
{"context": "Document text...", "question": "What is X?", "answer": "X is..."}
Complete Dataset Format Guide →
🤝 Contributing
We welcome contributions! ModelForge's modular architecture makes it easy to:
- Add new providers - Just 2 files needed
- Add new strategies - Just 2 files needed
- Add model recommendations - Simple JSON configs
- Improve documentation
- Fix bugs and add features
Adding Model Recommendations
ModelForge uses modular configuration files for model recommendations. See the Model Configuration Guide for instructions on adding new recommended models.
🛠 Tech Stack
- Backend: Python, FastAPI, SQLAlchemy
- Frontend: React.js
- ML: PyTorch, Transformers, PEFT, TRL
- Training: LoRA, QLoRA, bitsandbytes (optional)
- Providers: HuggingFace Hub, Unsloth
Results on NVIDIA RTX 3090. Your results may vary.
📜 License
BSD License - see LICENSE file for details.
🙏 Acknowledgments
- HuggingFace for Transformers and model hub
- Unsloth AI for optimized training kernels
- The open-source ML community
📧 Support
- Documentation: https://github.com/forgeopus/modelforge/tree/main/docs/
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- PyPI: modelforge-finetuning
ModelForge v3 - Making LLM fine-tuning accessible to everyone 🚀
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file modelforge_finetuning-3.0.4.tar.gz.
File metadata
- Download URL: modelforge_finetuning-3.0.4.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbfb85417bb21ea36882cbbf105a123aab90c82dd4b62e8e259d2626b1565e4b
|
|
| MD5 |
9bf3f4567c6cfc818a4b64f0f828f2df
|
|
| BLAKE2b-256 |
2f91e6ef8f57dc21c390a2018f14e777414406202794b10c6cd30a0d2f4dc6fd
|
Provenance
The following attestation bundles were made for modelforge_finetuning-3.0.4.tar.gz:
Publisher:
workflow.yaml on ForgeOpus/ModelForge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
modelforge_finetuning-3.0.4.tar.gz -
Subject digest:
dbfb85417bb21ea36882cbbf105a123aab90c82dd4b62e8e259d2626b1565e4b - Sigstore transparency entry: 1095947646
- Sigstore integration time:
-
Permalink:
ForgeOpus/ModelForge@545a57531ce2ddf6adfedc6fb6e0c3987f620eeb -
Branch / Tag:
refs/tags/3.0.4 - Owner: https://github.com/ForgeOpus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yaml@545a57531ce2ddf6adfedc6fb6e0c3987f620eeb -
Trigger Event:
push
-
Statement type:
File details
Details for the file modelforge_finetuning-3.0.4-py3-none-any.whl.
File metadata
- Download URL: modelforge_finetuning-3.0.4-py3-none-any.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
615afe2870d07e39174528c97c507b2c534133dd3e20c49c24e3d8fa242b0ad2
|
|
| MD5 |
0d9f1dc777911c28adb989f0d1436fed
|
|
| BLAKE2b-256 |
3d08245f81de8c06db0d18f31cd3d9e1905ef62a42c8f9940b0ecd93896d02b6
|
Provenance
The following attestation bundles were made for modelforge_finetuning-3.0.4-py3-none-any.whl:
Publisher:
workflow.yaml on ForgeOpus/ModelForge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
modelforge_finetuning-3.0.4-py3-none-any.whl -
Subject digest:
615afe2870d07e39174528c97c507b2c534133dd3e20c49c24e3d8fa242b0ad2 - Sigstore transparency entry: 1095947648
- Sigstore integration time:
-
Permalink:
ForgeOpus/ModelForge@545a57531ce2ddf6adfedc6fb6e0c3987f620eeb -
Branch / Tag:
refs/tags/3.0.4 - Owner: https://github.com/ForgeOpus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yaml@545a57531ce2ddf6adfedc6fb6e0c3987f620eeb -
Trigger Event:
push
-
Statement type: