Skip to content

Commit 26c203a

Browse files
authored
fix: update tests_eagle.py; disable eval for offline (#358)
Signed-off-by: h-guo18 <[email protected]>
1 parent 115b145 commit 26c203a

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

examples/speculative_decoding/launch_train.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ if [[ "$OFFLINE_DATA_PATH" != "" ]]; then
129129
echo "Offline data path $OFFLINE_DATA_PATH does not exist or is not a directory."
130130
exit 1
131131
else
132-
OFFLINE_TRAINING_ARGS="--offline-data-path $OFFLINE_DATA_PATH"
132+
OFFLINE_TRAINING_ARGS="--offline-data-path $OFFLINE_DATA_PATH --ar_validate_steps -1"
133133
fi
134134
else
135135
OFFLINE_TRAINING_ARGS=""

tests/examples/speculative_decoding/test_eagle.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,11 @@ def test_llama_eagle3(tiny_llama_path, num_gpus, tiny_daring_anteater_path, tmp_
3636

3737
run_example_command(
3838
[
39-
"./launch.sh",
39+
"./launch_train.sh",
4040
"--model", tiny_llama_path,
4141
"--data", tiny_daring_anteater_path,
4242
"--num_epochs", "1",
4343
"--lr", "1e-5",
44-
"--do_eval", "False",
4544
"--num_gpu", str(num_gpus),
4645
"--mode", "eagle3",
4746
"--eagle_config", str(config_file),

tests/examples/speculative_decoding/test_medusa.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,11 @@ def test_llama_medusa_fp8_qat(tiny_llama_path, num_gpus, tiny_daring_anteater_pa
3838
# Test Medusa
3939
run_example_command(
4040
[
41-
"./launch.sh",
41+
"./launch_train.sh",
4242
"--model", tiny_llama_path,
4343
"--data", tiny_daring_anteater_path,
4444
"--num_epochs", "1",
4545
"--lr", "1e-5",
46-
"--do_eval", "False",
4746
"--num_gpu", str(num_gpus),
4847
"--mode", "medusa",
4948
"--output_dir", medusa_path,

0 commit comments

Comments
 (0)