Skip to content

Commit 7796d38

Browse files
Merge pull request #3992 from AI-Hypercomputer:safetensor
PiperOrigin-RevId: 923614261
2 parents 8c4dced + a150777 commit 7796d38

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/guides/checkpointing_solutions/convert_checkpoint.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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)
4040
python3 -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
4344
export 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)
9394
python3 -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
9698
export MODEL=<MODEL_NAME> # e.g. 'qwen3-4b'

0 commit comments

Comments
 (0)