Install Miniforge
brew install --cask miniforgeInitialize Conda for zsh
conda init zsh
exec zshconda init zshconfigures Conda for the zsh shell,exec zshrestarts the shell so the new configuration takes effect immediately.
Conda is a tool for creating isolated environments and managing packages for Python projects.
Set up the project environment
conda env create -f environment.yml
conda activate forge
source scripts/env/init.sh
cp .env.example .env
python test_setup.pyconda env create -f environment.yml: Create the Conda environment defined by the project.conda activate forge: Activate the project environment.source scripts/env/init.sh: Load environment-specific settings needed by the project.cp .env.example .env: Create a local environment file from the provided template.python test_setup.py: Verify that the environment is correctly configured.
python forge.py --config configs/classification/mnli/distilbert/00_sft.yaml --max_steps 10python forge.py= run the main Forge training entrypoint--config ...= use the specified YAML config--max_steps 10= only run 10 training steps for quick testing
This is usually used as a smoke test to verify that the training pipeline works before launching a full run.
Next
- Continue with 01.First Run Explained.