You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: end_to_end/tpu/gemma2/2b/test_gemma2_to_mt.sh
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,22 @@
1
1
#!/bin/bash
2
2
3
-
# This file contains an end-to-end Airflow nightly test, designed to run once a day on a v4-8, along with documentation to guide users in getting started with Gemma2-2B.
3
+
# This script is both an end-to-end test that runs once a day on a v4-8 and documentation for how to get started with Gemma2-2B.
4
4
5
-
# The flow of this file is as follows:
6
-
# 1. Convert the checkpoint downloaded from Hugging Face to make it compatible with MaxText
7
-
# 2. Run a forward pass logits check to compare with the original HF golden model
8
-
# 2. Run decoding, finetuning of Gemma2-2B. with the converted checkpoint.
9
-
# 3. Run decoding from the finetuned checkpoint from step 2
5
+
# The flow of this script is as follows:
6
+
# 1. Convert the checkpoint downloaded from Hugging Face to make it compatible with MaxText.
7
+
# 2. Run a forward pass logits check to compare with the original HF golden model.
8
+
# 3. Run decoding, finetuning of Gemma2-2B. with the converted checkpoint.
9
+
# 4. Run decoding from the finetuned checkpoint from step 3.
10
+
11
+
# Pre-requisites:
12
+
# 1. Set HF_TOKEN environment variable to your Hugging Face access token with read permissions
13
+
# export HF_TOKEN=<Hugging Face access token>
10
14
11
15
12
16
set -ex
13
17
idx=$(date +%Y-%m-%d-%H-%M)
14
18
MODEL_NAME='gemma2-2b'
15
19
export MODEL_VARIATION='2b'
16
-
HF_TOKEN=''# Important!!! Save your hf access token here
Copy file name to clipboardExpand all lines: end_to_end/tpu/gemma3/4b/test_gemma3_to_mt.sh
+17-14Lines changed: 17 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,26 @@
1
1
#!/bin/bash
2
2
3
-
# This file contains an end-to-end Airflow nightly test, designed to run once a day on a v4-8, along with documentation to guide users in getting started with Gemma3-4B.
3
+
# This script is both an end-to-end test that runs once a day on a v4-8 and documentation for how to get started with Gemma3-4B.
4
4
5
-
# The flow of this file is as follows:
6
-
# 1. Convert the checkpoint downloaded from Hugging Face to make it compatible with MaxText
7
-
# 2. Run a forward pass logits check to compare with the original HF golden model
8
-
# 2. Run decoding, finetuning of Gemma3-4B. with the converted checkpoint.
9
-
# 3. Run decoding from the finetuned checkpoint from step 2
5
+
# The flow of this script is as follows:
6
+
# 1. Convert the checkpoint downloaded from Hugging Face to make it compatible with MaxText.
7
+
# 2. Run a forward pass logits check to compare with the original HF golden model.
8
+
# 3. Run decoding, finetuning of Gemma3-4B. with the converted checkpoint.
9
+
# 4. Run decoding from the finetuned checkpoint from step 3.
10
+
11
+
# Pre-requisites:
12
+
# 1. Set HF_TOKEN environment variable to your Hugging Face access token with read permissions
13
+
# export HF_TOKEN=<Hugging Face access token>
10
14
11
15
12
16
set -ex
13
17
idx=$(date +%Y-%m-%d-%H-%M)
14
18
MODEL_NAME='gemma3-4b'
15
19
export MODEL_VARIATION='4b'
16
-
HF_TOKEN=''# Important!!! Save your hf access token here
# This file contains an end-to-end Airflow nightly test, designed to run once a day on a v4-8, along with documentation to guide users in getting started with Gemma2-2B.
3
+
# This script is both an end-to-end test that runs once a day on a v4-8 and documentation for how to get started with Qwen3-4B.
4
4
5
-
# The flow of this file is as follows:
6
-
# 1. Convert the checkpoint downloaded from Hugging Face to make it compatible with MaxText
7
-
# 2. Run a forward pass logits check to compare with the original HF golden model
8
-
# 2. Run decoding, finetuning of Qwen3-4B. with the converted checkpoint.
9
-
# 3. Run decoding from the finetuned checkpoint from step 2
5
+
# The flow of this script is as follows:
6
+
# 1. Convert the checkpoint downloaded from Hugging Face to make it compatible with MaxText.
7
+
# 2. Run a forward pass logits check to compare with the original HF golden model.
8
+
# 3. Run decoding, finetuning of Qwen3-4B. with the converted checkpoint.
9
+
# 4. Run decoding from the finetuned checkpoint from step 3.
10
+
11
+
# Pre-requisites:
12
+
# 1. Set HF_TOKEN environment variable to your Hugging Face access token with read permissions
13
+
# export HF_TOKEN=<Hugging Face access token>
10
14
11
15
set -ex
12
16
idx=$(date +%Y-%m-%d-%H-%M)
13
17
MODEL_NAME='qwen3-4b'
14
18
export MODEL_VARIATION='4b'
15
-
HF_TOKEN=''# Important!!! Save your hf access token here
0 commit comments