a-normal-username commited on
Commit
29874da
·
verified ·
1 Parent(s): 9216300

Update maxtext-setup/setup.sh

Browse files
Files changed (1) hide show
  1. maxtext-setup/setup.sh +7 -10
maxtext-setup/setup.sh CHANGED
@@ -1,10 +1,7 @@
1
  #!/bin/bash
2
 
3
  # set your user name
4
- export user=ljy
5
-
6
- # clone maxtext
7
- git clone https://github.com/google/maxtext
8
 
9
  # installing libraries
10
  cd jetstream
@@ -13,13 +10,13 @@ cd ~/maxtext
13
  bash setup.sh
14
  cd ~
15
 
16
- # getting checkpoint, then converting checkpoint to maxtext
17
- pip3 install torch
18
  # super fast download
19
- sudo snap install axel
20
- axel -a -n 128 https://files.mistral-7b-v0-1.mistral.ai/mistral-7B-v0.1.tar
21
- tar -xf mistral-7B-v0.1.tar
22
- rm -rf mistral-7B-v0.1.tar
23
  python3 /home/${user}/maxtext/MaxText/llama_or_mistral_ckpt.py --base-model-path /home/${user}/mistral-7B-v0.1 --model-size mistral-7b --maxtext-model-path /home/${user}/maxtext-models/mistral-7b
24
 
25
  # convert checkpoint to param only
 
1
  #!/bin/bash
2
 
3
  # set your user name
4
+ export user=""
 
 
 
5
 
6
  # installing libraries
7
  cd jetstream
 
10
  bash setup.sh
11
  cd ~
12
 
13
+ # # getting checkpoint, then converting checkpoint to maxtext
14
+ # pip3 install torch
15
  # super fast download
16
+ # sudo snap install axel
17
+ # axel -a -n 128 https://files.mistral-7b-v0-1.mistral.ai/mistral-7B-v0.1.tar
18
+ # tar -xf mistral-7B-v0.1.tar
19
+ # rm -rf mistral-7B-v0.1.tar
20
  python3 /home/${user}/maxtext/MaxText/llama_or_mistral_ckpt.py --base-model-path /home/${user}/mistral-7B-v0.1 --model-size mistral-7b --maxtext-model-path /home/${user}/maxtext-models/mistral-7b
21
 
22
  # convert checkpoint to param only