Skip to main content

ModelForge

PyPI Python Docs License

Hardware-aware fine-tuning for open models from the Hugging Face Hub, with browser, terminal and notebook interfaces.

ModelForge reads your GPUs, works out how large a model fits, picks a training recipe for your goal, and runs it while you watch the loss come down. It shows its reasoning before anything starts, so you don't find out at step 40 that the run doesn't fit in memory.

Features

  • Hardware-aware planning. Total VRAM, the strategy's memory overhead and a per-parameter cost set a ceiling on model size. ModelForge picks full fine-tuning, LoRA or QLoRA (8-bit or 4-bit) to match.
  • A recipe for each goal. Supervised fine-tuning (SFT), preference training (DPO) and reinforcement training (GRPO), plus native trainers for summarization and extractive QA.
  • Model recommendations. Searches the Hub for popular models of the right type that fit your hardware, or validates any model ID you enter.
  • Multi-GPU. Data parallel by default, switching to FSDP automatically when a full fine-tune is too large for one card.
  • Live runs. Streamed training logs, checkpoints you can resume from, and TensorBoard logging.
  • Playground. Chat with a finished model or any checkpoint in the browser, even while another run is training.

Install

ModelForge needs Python 3.13 or newer. Real training needs an NVIDIA GPU with CUDA. Apple Silicon (MPS) and CPU-only machines work, but only with small models.

pip install modelforge-finetuning

# Optional extras: the terminal wizard, and Liger kernels for CUDA
pip install "modelforge-finetuning[cli,gpu]"

Per-OS instructions, including PyTorch with CUDA, are in the installation guides.

Quick start

modelforge run

This starts the server and opens the browser console. The link it prints includes a one-time token that connects your browser. On a remote machine, use modelforge run --no-browser --host 127.0.0.1 and connect through an SSH tunnel.

For gated models such as Llama, accept the licence on the model's Hub page, then log in once with hf auth login.

Interface Command Best for
Browser console modelforge run Most people
Terminal wizard modelforge cli Headless servers over SSH (needs [cli])
Notebook modelforge-nb Jupyter and Colab

The Quick Start guide walks through a first run.

Documentation

Full documentation is at modelforge-finetuning.readthedocs.io. A shorter version ships inside the app at /app/docs.

Running from source

Building or installing from a source checkout needs Node.js and npm, because the browser UI is compiled into web/frontend_dist/. That directory isn't committed.

git clone https://github.com/ForgeOpus/ModelForge.git
cd ModelForge
uv sync --extra dev
python scripts/build_frontend.py   # or, from web/frontend: npm ci && npm run build
uv run modelforge run --no-browser

pip wheel ., python -m build and uv build run the frontend build automatically, and fail if Node.js is missing, so a wheel is never published without a UI. Installing an already-built wheel doesn't need Node.

See the development guide and DEVELOPER_GUIDE.md for the codebase tour, tests and the release process.

Contributing

Contributions are welcome. Read the contributing guide and the code of conduct, and report bugs or request features through GitHub issues.

License

ModelForge is released under the BSD 3-Clause License.

Metadata

Release files for modelforge-finetuning 4.0.0

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 4.0.0
File Size Uploaded Provenance Actions
modelforge_finetuning-4.0.0.tar.gz 1.4 MB With provenance Details for modelforge_finetuning-4.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 2.2 MB

Release files / modelforge_finetuning-4.0.0.tar.gz

Download URL modelforge_finetuning-4.0.0.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
bd434c2d80a3bb2b089f05f1ea362112a8263ce52e6832785f79c78e55ee926e
BLAKE2b-256 checksum
How to use checksums
fe13bae237d2aa4e708eb4faf5ebabe623f4915c49536b71e6771061ef468900
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 15, 2026.

Transparency log

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

Download URL modelforge_finetuning-4.0.0-py3-none-any.whl
Size 800.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28212aa22b22491a5e032d570dd36c50372d9cc53d0296dfab3086cdb47402a2
BLAKE2b-256 checksum
How to use checksums
0d3e1349adca1d36a88dd2dec4746f8ef13be1390927f8a96ca859bb72445394
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 15, 2026.

Transparency log

Security for modelforge-finetuning 4.0.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for modelforge_finetuning-4.0.0.tar.gz

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 Nov 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.0.0 This release

2 release files Full provenance

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