@@ -36,10 +36,6 @@ Use the `to_maxtext.py` script to convert a Hugging Face model checkpoint into a
3636### Setup Environment
3737
3838``` bash
39- # Install PyTorch and safetensors (in MaxText virtual environment)
40- python3 -m pip install torch --index-url https://download.pytorch.org/whl/cpu
41- python3 -m pip install safetensors --no-deps
42-
4339# Setup environment variables
4440export MODEL=< HF_MODEL> # e.g. 'llama3.1-8b-Instruct'
4541export BASE_OUTPUT_DIRECTORY=< CKPT_PATH> # e.g., gs://my-bucket/my-checkpoint-directory
@@ -87,10 +83,6 @@ Use the `to_huggingface.py` script to convert a MaxText checkpoint into the Hugg
8783### Setup Environment
8884
8985``` bash
90- # Install PyTorch and safetensors (in MaxText virtual environment)
91- python3 -m pip install torch --index-url https://download.pytorch.org/whl/cpu
92- python3 -m pip install safetensors --no-deps
93-
9486# Setup environment variables
9587export MODEL=< MODEL_NAME> # e.g. 'qwen3-4b'
9688export MAXTEXT_CKPT_PATH=< CKPT_PATH> # e.g., gs://my-bucket/my-model-checkpoint/0/items
@@ -136,6 +128,9 @@ To ensure the conversion was successful, you can use the [test script](https://g
136128export MODEL=< MODEL_NAME> # e.g. 'qwen3-4b'
137129export MAXTEXT_CKPT_PATH=< CKPT_PATH> # e.g., gs://my-bucket/my-model-checkpoint/0/items
138130export HF_CKPT_PATH=< HF_CKPT_PATH> # e.g., gs://my-bucket/my-checkpoint-directory
131+
132+ # Install PyTorch (in MaxText virtual environment)
133+ python3 -m pip install torch --index-url https://download.pytorch.org/whl/cpu
139134```
140135
141136### Run Correctness Test
0 commit comments