Skip to main content

ModelForge 🔧⚡

PyPI Downloads License: BSD Python 3.11 Version

ForgeOpus - Where AI masterpieces are forged. Your work, your opus. | Product Hunt

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.

logo

✨ 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

See What's New in v3 →

🚀 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!

Full Quick Start Guide →

📚 Documentation

Getting Started

Installation

Configuration & Usage

Providers

Training Strategies

API Reference

Troubleshooting

Contributing

📖 Full Documentation Index →

🔧 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:

  1. Option 1: WSL (Recommended) - WSL Installation Guide
  2. 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.

Learn more about 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

Contributing Guide →

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


ModelForge v3 - Making LLM fine-tuning accessible to everyone 🚀

Get Started → | Documentation → | GitHub →

Release files for modelforge-finetuning 3.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for modelforge-finetuning 3.0.5
File Size Uploaded
modelforge_finetuning-3.0.5.tar.gz 1.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for modelforge-finetuning 3.0.5
File Interpreter ABI Platform
modelforge_finetuning-3.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 3.5 MB

Release files / modelforge_finetuning-3.0.5.tar.gz

Download URL modelforge_finetuning-3.0.5.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
579dd19838b98ea7f85db2c1c329779e82bd2dca097e5d6d9c9f0d6b7e0e41d9
BLAKE2b-256 checksum
How to use checksums
4cf59a3632b4bf34787e9a022f967abee14104c8edf383ec3b25f62ae3473e51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 13, 2026.

Transparency log

Release files / modelforge_finetuning-3.0.5-py3-none-any.whl

Download URL modelforge_finetuning-3.0.5-py3-none-any.whl
Size 1.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e843278693318cf58cf0117a46a84dfb244cce9c72cb4b6b476b7509175a3241
BLAKE2b-256 checksum
How to use checksums
3ded784feba0836ed0e05f7101b7664a35a58bb769964d6fb99a2c8b06c06cfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.0.5 This release

2 release files

3.0.4

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.2.0

2 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.0.7

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page