Skip to content

Commit dbd966c

Browse files
committed
update github auth and fix accuracy details show
1 parent 2386420 commit dbd966c

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

.github/scripts/e2e_summary.sh

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,15 @@ process_model() {
205205
local -A results=()
206206

207207
# Collect results for all data types and modes
208-
for dtype in float32 bfloat16 float16 amp_bf16 amp_fp16; do
209-
for mode in training inference; do
208+
for mode in training inference; do
209+
for dtype in float32 bfloat16 float16 amp_bf16 amp_fp16; do
210210
local key="${mode}_${dtype}"
211211
results[$key]=$(get_model_result "$results_dir" "$suite" "$model" "$dtype" "$mode")
212212
done
213213
done
214214

215215
local row
216-
row=$(generate_html_row "$suite" "$model" "${results[@]}")
216+
row=$(generate_html_row "$suite" "$model")
217217

218218
if [[ "$row" =~ ${RED}|${GREEN}|${YELLOW} ]]; then
219219
echo "$row" | tee -a accuracy.details.html >> accuracy.regression.html
@@ -258,15 +258,20 @@ determine_color() {
258258

259259
generate_html_row() {
260260
local suite="$1" model="$2"
261-
shift 2
262-
local results=("$@")
263-
264261
cat << EOF
265262
<tr>
266263
<td>$suite</td>
267264
<td>$model</td>
268-
<td>${results[0]}</td><td>${results[1]}</td><td>${results[2]}</td><td>${results[3]}</td><td>${results[4]}</td>
269-
<td>${results[5]}</td><td>${results[6]}</td><td>${results[7]}</td><td>${results[8]}</td><td>${results[9]}</td>
265+
<td>${results["training_float32"]}</td>
266+
<td>${results["training_bfloat16"]}</td>
267+
<td>${results["training_float16"]}</td>
268+
<td>${results["training_amp_bf16"]}</td>
269+
<td>${results["training_amp_fp16"]}</td>
270+
<td>${results["inference_float32"]}</td>
271+
<td>${results["inference_bfloat16"]}</td>
272+
<td>${results["inference_float16"]}</td>
273+
<td>${results["inference_amp_bf16"]}</td>
274+
<td>${results["inference_amp_fp16"]}</td>
270275
</tr>
271276
EOF
272277
}

.github/scripts/get_issue.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import re
99
import json
1010
import argparse
11-
from github import Github
11+
from github import Github, Auth
1212

1313

1414
def get_github_issues(repo_owner, repo_name, labels, state='open'):
@@ -91,8 +91,9 @@ def main():
9191

9292
# Quick token check
9393
token = os.getenv('GH_TOKEN')
94+
auth = Auth.Token(token)
9495
global g
95-
g = Github(token) # Increase page size for fewer API calls
96+
g = Github(auth=auth)
9697

9798
print(f"Fetching known issues from {args.repo_owner}/{args.repo_name}...")
9899

0 commit comments

Comments
 (0)