nano-aha-moment
Single File, Single GPU, From Scratch, Efficient, Full Parameter Tuning library for "RL for LLMs"
File Explorer
Download Latest Version (.zip)- grpo_successful.png
- grpo_unsuccessful.png
- ppo_and_vineppo.png
- checkpoint_playground.ipynb
- .gitignore
- CITATION.cff
- LICENSE
- nano_r1.ipynb
- nano_r1_script.py
- pyproject.toml
- README.md
- requirements.txt
- utils.py
# Installation Guide
1. Get the code
git clone https://github.com/McGill-NLP/nano-aha-moment
Downloads the entire project code from GitHub to your computer.
cd nano-aha-moment
Moves into the project folder you just downloaded.
2. Official Install Script
Easy RecommendedPrerequisites
- Python 3 Python is required to use pip.
pip install torch==2.5.1 --index-url https://download.pytorch.org/whl/cu124
Installs the package published on PyPI directly β no need to clone the source.
After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.
Pulled directly from this repo's README.
3. Python
EasyPrerequisites
pip install torch==2.5.1 --index-url https://download.pytorch.org/whl/cu124
Installs the package published on PyPI directly β no need to clone the source.
pip install -r requirements.txt
Installs the Python libraries listed in requirements.txt (or similar).
If it runs without errors and prints output in the terminal, it worked.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
