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 v2.0 is a complete architectural overhaul bringing 2x faster training, modular providers, advanced strategies, and production-ready code quality.
✨ What's New in v2.0
- 🚀 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
- 🏗️ Modular Architecture for easy extensibility
- 🔒 Production-Ready with proper error handling and logging
🚀 Features
- GPU-Powered Fine-Tuning: Optimized for NVIDIA GPUs (even 4GB VRAM)
- One-Click Workflow: Upload data → Configure → Train → Test
- Hardware-Aware: Auto-detects GPU and recommends optimal models
- No-Code UI: Beautiful React interface, no CLI or notebooks
- Multiple Providers: HuggingFace (standard) or Unsloth (2x faster)
- 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)
- NVIDIA GPU with 4GB+ VRAM (6GB+ recommended)
- CUDA installed and configured
- HuggingFace Account with access token (Get one here)
- Linux or Windows operating system
⚠️ macOS is NOT supported. ModelForge requires NVIDIA CUDA which is not available on macOS. Use Linux or Windows with NVIDIA GPU.
Windows Users: See Windows Installation Guide for platform-specific instructions, especially for Unsloth support.
Installation
# Install ModelForge
pip install modelforge-finetuning
# 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 run
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 v2.0 - Major features and improvements
Installation
- Windows Installation - Complete Windows setup (including WSL and Docker)
- Linux Installation - Linux setup guide
- 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 | ✅ Full support | ✅ Full support | Recommended |
| 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 |
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 v2.0'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
- Providers: HuggingFace Hub, Unsloth
Results on NVIDIA RTX 3090. Your results may vary.
📜 License
MIT 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: docs/
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- PyPI: modelforge-finetuning
ModelForge v2.0 - 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-2.0.1.tar.gz.
File metadata
- Download URL: modelforge_finetuning-2.0.1.tar.gz
- Upload date:
- Size: 252.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b37d06db45ba552b8481bb850d4b4fe57f300351a866d95068e3a7da342d298c
|
|
| MD5 |
8501b36201c6bf11a22d048903b3ebf7
|
|
| BLAKE2b-256 |
aae1496fd0ee89c525c33c45dc8f77aa0c3859384c3cfb4ba3aba7d4aeb9ccbb
|
Provenance
The following attestation bundles were made for modelforge_finetuning-2.0.1.tar.gz:
Publisher:
workflow.yaml on RETR0-OS/ModelForge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
modelforge_finetuning-2.0.1.tar.gz -
Subject digest:
b37d06db45ba552b8481bb850d4b4fe57f300351a866d95068e3a7da342d298c - Sigstore transparency entry: 702414295
- Sigstore integration time:
-
Permalink:
RETR0-OS/ModelForge@c92026584818c4e5a16c0337d8e3df852cfcb92d -
Branch / Tag:
refs/tags/2.0.1 - Owner: https://github.com/RETR0-OS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yaml@c92026584818c4e5a16c0337d8e3df852cfcb92d -
Trigger Event:
push
-
Statement type:
File details
Details for the file modelforge_finetuning-2.0.1-py3-none-any.whl.
File metadata
- Download URL: modelforge_finetuning-2.0.1-py3-none-any.whl
- Upload date:
- Size: 284.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
665f5e17d59ca2f70bb3a6783653cfa54b4cadebcf5cafdd6f7f71db57bd0d0f
|
|
| MD5 |
4e3356ea5e49206d79c0b03719dfe4df
|
|
| BLAKE2b-256 |
122d757a835b013af76ecda4d57f5a6da8080ea35c7aaf1fb37231c22bdb7c35
|
Provenance
The following attestation bundles were made for modelforge_finetuning-2.0.1-py3-none-any.whl:
Publisher:
workflow.yaml on RETR0-OS/ModelForge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
modelforge_finetuning-2.0.1-py3-none-any.whl -
Subject digest:
665f5e17d59ca2f70bb3a6783653cfa54b4cadebcf5cafdd6f7f71db57bd0d0f - Sigstore transparency entry: 702414296
- Sigstore integration time:
-
Permalink:
RETR0-OS/ModelForge@c92026584818c4e5a16c0337d8e3df852cfcb92d -
Branch / Tag:
refs/tags/2.0.1 - Owner: https://github.com/RETR0-OS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yaml@c92026584818c4e5a16c0337d8e3df852cfcb92d -
Trigger Event:
push
-
Statement type: