fms-fsdp
๐ Efficiently (pre)training foundation models with native PyTorch features, including FSDP for training and SDPA implementation of Flash attention v2.
File Explorer
Download Latest Version (.zip)- lint.yml
- mypy.yml
- pytest.yml
- configurations.md
- dataloader.md
- evaluation.md
- fine_tuning.md
- train_details.md
- __init__.py
- training.py
- __init__.py
- ac_handler.py
- mixed_precision.py
- param_init.py
- wrapping.py
- __init__.py
- checkpointing_utils.py
- config_utils.py
- dataloader_utils.py
- dataset_utils.py
- train_utils.py
- __init__.py
- readme.md
- requirements.txt
- loss_curve.png
- lr.png
- README_SPECULATOR.md
- train.sh
- train.slurm
- train_speculator.sh
- __init__.py
- train_speculator.py
- train_speculator_utils.py
- conftest.py
- test_datasets.py
- test_selective_ac.py
- .gitignore
- .isort.cfg
- code-of-conduct.md
- fms_to_hf_llama.py
- fms_to_hf_mamba.py
- LICENSE
- main_training_llama.py
- main_training_mamba.py
- README.md
- requirements-speculator.txt
- requirements.txt
- setup.py
- test-requirements.txt
# Installation Guide
1. Get the code
git clone https://github.com/foundation-model-stack/fms-fsdp
Downloads the entire project code from GitHub to your computer.
cd fms-fsdp
Moves into the project folder you just downloaded.
2. Python
Easy RecommendedPrerequisites
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)
