|
141 | 141 | TRAIN_FRACTION = 1.0 |
142 | 142 |
|
143 | 143 |
|
| 144 | +# ====== Input Checkpoint directory ===== |
| 145 | +MODEL_CHECKPOINT_PATH = "/path/to/scanned/model/ckpt_load_dir/" |
| 146 | + |
144 | 147 | # ====== Checkpoint directory ===== |
145 | 148 | LOG_DIR = f"{HOME}/content/tensorboard/grpo/logs_llama3/" |
146 | 149 | if not os.path.exists(LOG_DIR): |
147 | 150 | os.makedirs(LOG_DIR) |
148 | 151 |
|
149 | 152 | # ===== Profiling ===== |
150 | | -PROFILE_DIR = f"gs://mazumdera-test-bucket-europe-west4/rl-tuning/grpo/anisha-{run_id}/profiles_llama3/" |
| 153 | +PROFILE_DIR = f"/path/to/profile_dir/{run_id}/profiles_llama3/" |
151 | 154 | if not epath.Path(PROFILE_DIR).exists(): |
152 | 155 | epath.Path(PROFILE_DIR).mkdir(parents=True) |
153 | 156 |
|
154 | 157 | # ====== Checkpoint saving ====== |
155 | | -CKPT_DIR = f"gs://mazumdera-test-bucket-europe-west4/rl-tuning/grpo/anisha-{run_id}/ckpts_llama3/" |
| 158 | +CKPT_DIR = f"/path/to/ckpt_save_dir/{run_id}/ckpts_llama3/" |
156 | 159 |
|
157 | 160 | if not epath.Path(CKPT_DIR).exists(): |
158 | 161 | epath.Path(CKPT_DIR).mkdir(parents=True) |
@@ -396,8 +399,7 @@ def get_ref_maxtext_model(config, devices=None): |
396 | 399 | run_name="test-tunix-maxtext-llama3.1-70b", |
397 | 400 | tokenizer_type="tiktoken", |
398 | 401 | tokenizer_path=os.path.join(MAXTEXT_ASSETS_ROOT, "tokenizer_llama3.tiktoken"), |
399 | | - load_parameters_path="gs://mazumdera-test-bucket-europe-west4/llama3.1-70b-Instruct/scanned-pathways/0/items", |
400 | | - # load_parameters_path="path/to/scanned/checkpoint", |
| 402 | + load_parameters_path=MODEL_CHECKPOINT_PATH, |
401 | 403 | per_device_batch_size=1, |
402 | 404 | max_prefill_predict_length=4, |
403 | 405 | max_target_length=1024, |
@@ -470,8 +472,7 @@ def get_ref_maxtext_model(config, devices=None): |
470 | 472 | run_name="test-tunix-maxtext-llama3.1-70b", # This is not used in Tunix. |
471 | 473 | tokenizer_type="tiktoken", |
472 | 474 | tokenizer_path=os.path.join(MAXTEXT_ASSETS_ROOT, "tokenizer_llama3.tiktoken"), |
473 | | - load_parameters_path="gs://mazumdera-test-bucket-europe-west4/llama3.1-70b-Instruct/scanned-pathways/0/items", |
474 | | - # load_parameters_path="path/to/scanned/checkpoint", |
| 475 | + load_parameters_path=MODEL_CHECKPOINT_PATH, |
475 | 476 | per_device_batch_size=1, |
476 | 477 | max_prefill_predict_length=4, |
477 | 478 | max_target_length=1024, |
|
0 commit comments