File tree Expand file tree Collapse file tree
docs/guides/checkpointing_solutions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,8 +36,9 @@ Use the `to_maxtext.py` script to convert a Hugging Face model checkpoint into a
3636### Setup Environment
3737
3838``` bash
39- # Install PyTorch (in MaxText virtual environment)
39+ # Install PyTorch and safetensors (in MaxText virtual environment)
4040python3 -m pip install torch --index-url https://download.pytorch.org/whl/cpu
41+ python3 -m pip install safetensors --no-deps
4142
4243# Setup environment variables
4344export MODEL=< HF_MODEL> # e.g. 'llama3.1-8b-Instruct'
@@ -89,8 +90,9 @@ Use the `to_huggingface.py` script to convert a MaxText checkpoint into the Hugg
8990### Setup Environment
9091
9192``` bash
92- # Install PyTorch (in MaxText virtual environment)
93+ # Install PyTorch and safetensors (in MaxText virtual environment)
9394python3 -m pip install torch --index-url https://download.pytorch.org/whl/cpu
95+ python3 -m pip install safetensors --no-deps
9496
9597# Setup environment variables
9698export MODEL=< MODEL_NAME> # e.g. 'qwen3-4b'
You can’t perform that action at this time.
0 commit comments