Rapid experimentation for easier, faster, and more impactful fine-tuning and post-training for LLMs and other DL models — delivering 16–24× higher throughput without extra GPUs.
RapidFire AI is a new experiment execution framework that transforms your LLM customization experimentation from slow, sequential processes into rapid, intelligent workflows with hyperparallelized training, dynamic real-time experiment control, and automatic multi-GPU system orchestration.
RapidFire AI’s adaptive execution engine enables interruptible, chunk-based scheduling so you can compare many configurations concurrently—even on a single GPU—with dynamic real-time control over runs.
- Hyperparallelized Execution: Higher throughput, simultaneous, data chunk-at-a-time training to show side-by-side differences.
- Interactive control (IC Ops): Stop, Resume, Clone-Modify, and optionally warm start runs in real-time from the dashboard.
- Automatic Optimization: Intelligent single and multi-GPU orchestration to optimze utilization with minimal overhead.
For additional context, see the overview: RapidFire AI Overview
- NVIDIA GPU using the 7.x or 8.x Compute Capability
- NVIDIA CUDA Toolkit 11.8+
- Python 3.12.x
- PyTorch 2.7.1+ with corresponding forward compatible prebuilt CUDA binaries
python3 -m venv .venv
source .venv/bin/activate
# from pypi
pip install rapidfireai
# install specific dependencies and initialize rapidfire
# Optionally set RF_TUTORIAL_PATH environment variable to sepecify
# alternate location for copying tutorial notebooks to
rapidfireai init
# start the rapidfire server
rapidfireai start
# open up example notebook and start experimentsource .venv/bin/activate
# from replace <your_token> with your hugging face token
# https://huggingface.co/docs/hub/en/security-tokens
pip install "huggingface-hub[cli]"
hf auth login --token <your_token>
# open up example notebook from ./tutorial_notebooks and start experimentFor a quick system diagnostics report (Python env, relevant packages, GPU/CUDA, and key environment variables), run:
rapidfireai doctorIf you encounter port conflicts, you can kill existing processes:
lsof -t -i:5002 | xargs kill -9 # mlflow
lsof -t -i:8081 | xargs kill -9 # dispatcher
lsof -t -i:3000 | xargs kill -9 # frontend serverBrowse or reference the full documentation, example use case tutorials, all API details, dashboard details, and more in the RapidFire AI Documentation.
Full MLflow support for experiment tracking and metrics visualization. A named RapidFire AI experiment corresponds to an MLflow experiment for comprehensive governance
First-of-its-kind dynamic real-time control over runs in flight. Can be invoked through the dashboard:
- Stop active runs; puts them in a dormant state
- Resume stopped runs; makes them active again
- Clone and modify existing runs, with or without warm starting from parent’s weights
- Delete unwanted or failed runs
The Scheduler automatically handles multiple GPUs on the machine and divides resources across all running configs for optimal resource utilization.
Built-in procedures for searching over configuration knob combinations, including Grid Search and Random Search. Easy to integrate with AutoML procedures. Native support for some popular AutoML procedures and customized automation of IC Ops coming soon.
rapidfireai/
├── automl/ # Search and AutoML algorithms for knob tuning
├── backend/ # Core backend components (controller, scheduler, worker)
├── db/ # Database interface and SQLite operations
├── dispatcher/ # Flask-based web API for UI communication
├── frontend/ # Frontend components (dashboard, IC Ops implementation)
├── ml/ # ML training utilities and trainer classes
├── utils/ # Utility functions and helper modules
└── experiment.py # Main experiment lifecycle management
RapidFire AI adopts a microservices-inspired loosely coupled distributed architecture with:
- Dispatcher: Web API layer for UI communication
- Database: SQLite for state persistence
- Controller: Central orchestrator running in user process
- Workers: GPU-based training processes
- Dashboard: Experiment tracking and visualization dashboard
This design enables efficient resource utilization while providing a seamless user experience for AI experimentation.
The dispatcher provides a REST API interface for the web UI. It can be run via Flask as a single app or via Gunicorn to have it load balanced. Handles interactive control features and displays the current state of the runs in the experiment.
Uses SQLite for persistent storage of metadata of experiments, runs, and artifacts. The Controller also uses it to talk with Workers on scheduling state. A clean asynchronous interface for all DB operations, including experiment lifecycle management and run tracking.
Runs as part of the user’s console or Notebook process. Orchestrates the entire training lifecycle including model creation, worker management, and scheduling. The run_fit logic handles sample preprocessing, model creation for given knob configurations, worker initialization, and continuous monitoring of training progress across distributed workers.
Handles the actual model training and inference on the GPUs. Workers poll the Database for tasks, load dataset chunks, and execute training runs with checkpointing and progress reporting. Currently expects any given model for given batch size to fit on a single GPU.
Manages the complete experiment lifecycle, including creation, naming conventions, and cleanup. Experiments are automatically named with unique suffixes if conflicts exist, and all experiment metadata is tracked in the Database. An experiment's running tasks are automatically cancelled when the process ends abruptly.
A fork of MLflow that enables full tracking and visualization of all experiments and runs. It features a new panel for Interactive Control Ops that can be performed on any active runs.
- Python 3.12.x
- Git
- Ubuntu/Debian system (for apt package manager)
# Run these commands one after the other on a fresh Ubuntu machine
# install dependencies
sudo apt update -y
# clone the repository
git clone https://github.com/RapidFireAI/rapidfireai.git
# navigate to the repository
cd ./rapidfireai
# install basic dependencies
sudo apt install -y python3.12-venv
python3 -m venv .venv
source .venv/bin/activate
pip3 install ipykernel
pip3 install jupyter
pip3 install "huggingface-hub[cli]"
export PATH="$HOME/.local/bin:$PATH"
hf auth login --token <your_token>
# checkout the main branch
git checkout main
# install the repository as a python package
pip3 install -r requirements.txt
# install node
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && sudo apt-get install -y nodejs
# Install correct version of vllm and flash-attn
# uv pip install vllm=0.10.1.1 --torch-backend=cu126 or cu118
# uv pip install flash-attn==1.0.9 --no-build-isoloation or 2.8.3
# if running into node versioning errors, remove the previous version of node then run the lines above again
sudo apt-get remove --purge nodejs libnode-dev libnode72 npm
sudo apt autoremove --purge
# check installations
node -v # 22.x
# still inside venv, run the start script to begin all 3 servers
chmod +x ./rapidfireai/start_dev.sh
./rapidfireai/start_dev.sh start
# run the notebook from within your IDE
# make sure the notebook is running in the .venv virtual environment
# head to settings in Cursor/VSCode and search for venv and add the path - $HOME/rapidfireai/.venv
# we cannot run a Jupyter notebook directly since there are restrictions on Jupyter being able to create child processes
# VSCode can port-forward localhost:3000 where the rf-frontend server will be running
# for port clash issues -
lsof -t -i:8081 | xargs kill -9 # dispatcher
lsof -t -i:5002 | xargs kill -9 # mlflow
lsof -t -i:3000 | xargs kill -9 # frontend- Docs: oss-docs.rapidfire.ai
- Discord: Join our Discord
- Contributing:
CONTRIBUTING.md - License:
LICENSE - Issues: use GitHub Issues for bug reports and feature requests

