Troubleshooting
Use this page to diagnose and resolve common issues when installing and running RapidFire AI.
Note
RapidFire AI requires Python 3.12+. Verify your shell’s python3 is 3.12 before creating/activating the venv.
Quick diagnostics
If you encounter any error, run the doctor command to get a complete diagnostic report (Python env, relevant packages, GPU/CUDA, and key environment variables):
rapidfireai doctor
Hugging Face permission errors (login not picked up)
Run the Hugging Face login from the SAME virtual environment where you installed RapidFire AI.
Activate your venv and log in:
source .venv/bin/activate
pip install huggingface-hub
huggingface-cli login
huggingface-cli whoami # Prints the HF account/orgs for the credentials this venv sees
Using Jupyter notebooks:
If you logged in while a notebook was already running, restart the notebook kernel so it picks up the new Hugging Face credentials.
Ensure the notebook uses the same venv kernel.
Port conflicts (services already running)
RapidFire AI uses these local ports by default:
Port |
Service |
Override env var |
|---|---|---|
8850 |
Jupyter (RAG evals in-notebook) |
|
8851 |
API server / dispatcher |
|
8852 |
MLflow dashboard / Traces logging |
|
8853 |
Frontend dashboard |
|
8855 |
Ray |
|
If you encounter port conflicts, either kill the processes already using these ports:
lsof -t -i:8850 | xargs kill -9 # jupyter
lsof -t -i:8851 | xargs kill -9 # dispatcher / API server
lsof -t -i:8852 | xargs kill -9 # mlflow / Traces
lsof -t -i:8853 | xargs kill -9 # frontend dashboard
lsof -t -i:8855 | xargs kill -9 # ray
Or change the port a service binds to by setting its environment variable before rapidfireai start (or in your notebook before importing rapidfireai):
export RF_JUPYTER_PORT=8860 # default 8850
export RF_API_PORT=8861 # default 8851
export RF_MLFLOW_PORT=8862 # default 8852 (MLflow / Traces)
export RF_FRONTEND_PORT=8863 # default 8853 (dashboard)
export RF_RAY_PORT=8865 # default 8855
rapidfireai start
Note
On a remote machine, remember to forward whichever ports you end up using (see the port-forwarding step in the walkthrough).
Select specific GPU(s) to use
Set the CUDA_VISIBLE_DEVICES environment variable BEFORE running rapidfireai start to control which GPU(s) RapidFire can see and use.
export CUDA_VISIBLE_DEVICES=2 # use GPU index 2 only
rapidfireai start
Multiple GPUs (example: GPUs 0 and 2):
export CUDA_VISIBLE_DEVICES=0,2
rapidfireai start
From a Python script (set before importing/starting RapidFire):
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "2"
# then start your RapidFire workflow
See also
For known limitations and workarounds, see Known Issues.
If you are just getting started, follow the Walkthrough.