Skip to content

Commit aed547c

Browse files
committed
update threshold
1 parent b4a0516 commit aed547c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

autotest/config-npu.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ case:
199199
assert_info:
200200
base_metric: npu-qwen3-sft-celoss-vs-gpu/812c1021/tracker.jsonl
201201
check_metrics:
202-
grad_norm: 0.02
203-
loss/reduced_llm_loss: 0.02
204-
lr: 0
202+
grad_norm: 0.01
203+
loss/reduced_llm_loss: 0.01
204+
lr: 0.01
205205
timeout: 10800

autotest/utils/check_metric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def check_result(case_name, base_path, cur_path, check_metric):
135135
check_flag = False
136136
else:
137137
for idx, (old, cur) in enumerate(zip(base_metrics[metric], cur_metrics[metric])):
138-
relative_error = round(abs(old - cur) / abs(old), 2)
138+
relative_error = round(abs(old - cur) / abs(old), 4)
139139
# update max_error
140140
if relative_error > max_error:
141141
max_error = relative_error

0 commit comments

Comments
 (0)