Skip to content

Commit 83bc0ef

Browse files
Merge remote-tracking branch 'origin/main' into agent/windows-rdna-ck-support
# Conflicts: # aiter/__init__.py # aiter/jit/core.py # aiter/jit/utils/chip_info.py # aiter/jit/utils/cpp_extension.py # aiter/jit/utils/mha_recipes.py # aiter/utility/dtypes.py
2 parents cccf0d8 + 4a1cc77 commit 83bc0ef

879 files changed

Lines changed: 13929 additions & 10704 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/scripts/aiter_prebuild_summary.py‎

100644100755
File mode changed.

‎.github/scripts/collect_logs.py‎

100644100755
File mode changed.

‎.github/scripts/compare_benchmark.py‎

100644100755
Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import csv
3737
import sys
3838
from pathlib import Path
39-
from typing import Dict, Tuple
4039

4140
METRIC = "us"
4241
KERNEL_COLS = ("kernelName1", "kernelName2")
@@ -108,8 +107,8 @@ def _natural_key(val: str):
108107
return (1, val)
109108

110109

111-
Row = Dict[str, str]
112-
Key = Tuple[Tuple[str, str], ...]
110+
Row = dict[str, str]
111+
Key = tuple[tuple[str, str], ...]
113112

114113

115114
def _normalize_row(raw: Row) -> Row:
@@ -121,7 +120,7 @@ def _normalize_row(raw: Row) -> Row:
121120
}
122121

123122

124-
def _read_csv_rows(path: Path) -> Tuple[list[Row], Tuple[str, ...]]:
123+
def _read_csv_rows(path: Path) -> tuple[list[Row], tuple[str, ...]]:
125124
"""Return (rows, fieldnames). Whitespace stripped from values."""
126125
if not path.exists():
127126
raise SystemExit(f"input csv not found: {path}")
@@ -136,7 +135,7 @@ def _read_csv_rows(path: Path) -> Tuple[list[Row], Tuple[str, ...]]:
136135
return rows, tuple(reader.fieldnames)
137136

138137

139-
def _key_cols(base_cols: Tuple[str, ...], cur_cols: Tuple[str, ...]) -> Tuple[str, ...]:
138+
def _key_cols(base_cols: tuple[str, ...], cur_cols: tuple[str, ...]) -> tuple[str, ...]:
140139
"""Stable key column order across baseline/current schema drift."""
141140
cols = []
142141
seen = set()
@@ -148,8 +147,8 @@ def _key_cols(base_cols: Tuple[str, ...], cur_cols: Tuple[str, ...]) -> Tuple[st
148147
return tuple(cols)
149148

150149

151-
def _index_rows(rows: list[Row], key_cols: Tuple[str, ...]) -> Dict[Key, Row]:
152-
indexed: Dict[Key, Row] = {}
150+
def _index_rows(rows: list[Row], key_cols: tuple[str, ...]) -> dict[Key, Row]:
151+
indexed: dict[Key, Row] = {}
153152
for row in rows:
154153
key = tuple(sorted((c, row.get(c, "")) for c in key_cols))
155154
indexed[key] = row
@@ -167,7 +166,7 @@ def _parse_us(raw: Row) -> float | None:
167166

168167

169168
def _fmt_key_compact(
170-
key: Key, key_cols_order: Tuple[str, ...], constants: Dict[str, str]
169+
key: Key, key_cols_order: tuple[str, ...], constants: dict[str, str]
171170
) -> str:
172171
"""Format key showing only cols whose value is NOT in `constants`."""
173172
d = dict(key)
@@ -178,7 +177,7 @@ def _fmt_key_compact(
178177
return " ".join(parts) if parts else "(common)"
179178

180179

181-
def _find_constants(keys: list[Key], key_cols_order: Tuple[str, ...]) -> Dict[str, str]:
180+
def _find_constants(keys: list[Key], key_cols_order: tuple[str, ...]) -> dict[str, str]:
182181
"""Return cols whose value is identical across all `keys`."""
183182
if not keys:
184183
return {}
@@ -304,7 +303,7 @@ def _entry_sort_key(e):
304303
if c not in HIDE_DISPLAY_COLS:
305304
display_cols.append(c)
306305

307-
def _cell_value(c: str, d: Dict[str, str]) -> str:
306+
def _cell_value(c: str, d: dict[str, str]) -> str:
308307
if c in DERIVED_TUPLE_COLS:
309308
srcs = DERIVED_TUPLE_COLS[c]
310309
return "(" + ", ".join(d.get(s, "") for s in srcs) + ")"

‎.github/scripts/generate_summary.py‎

100644100755
File mode changed.

‎.github/scripts/list_jobs.py‎

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def main():
7777
content = yaml.safe_load(file_obj) or {}
7878

7979
jobs_dict = content.get("jobs") or {}
80-
job_ids = [job_id for job_id in jobs_dict.keys() if job_id not in excluded_jobs]
80+
job_ids = [job_id for job_id in jobs_dict if job_id not in excluded_jobs]
8181

8282
display_names = []
8383
for job_id in job_ids:

‎.github/scripts/query_job_status.py‎

100644100755
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,7 @@ def list_jobs_for_run(owner: str, repo: str, run_id: int, token: str):
190190
jobs = payload.get("jobs", [])
191191
if not jobs:
192192
return
193-
for job in jobs:
194-
yield job
193+
yield from jobs
195194
page += 1
196195

197196

@@ -202,9 +201,7 @@ def job_name_matches(filter_name: str, actual_name: str):
202201
return True
203202
if actual_name.startswith(f"{filter_name} ("):
204203
return True
205-
if actual_name.startswith(f"{filter_name} / "):
206-
return True
207-
return False
204+
return bool(actual_name.startswith(f"{filter_name} / "))
208205

209206

210207
def row_to_dict(row: dict[str, Any]):
@@ -360,7 +357,7 @@ def select_primary_runner_label(labels: list[str]):
360357
)
361358
]
362359
candidates = preferred or labels
363-
return sorted(candidates, key=lambda value: (-len(value), value.lower()))[0]
360+
return min(candidates, key=lambda value: (-len(value), value.lower()))
364361

365362

366363
def get_runner_label(row: dict[str, Any]):
@@ -459,7 +456,7 @@ def analyze_concurrency(job_rows: list[dict[str, Any]], report_time: datetime):
459456
durations: list[float] = []
460457

461458
for row in label_rows:
462-
created = parse_time(row.get("created_at", ""))
459+
parse_time(row.get("created_at", ""))
463460
started = parse_time(row.get("started_at", ""))
464461
completed = parse_time(row.get("completed_at", ""))
465462

@@ -816,7 +813,7 @@ def main():
816813

817814
if rate_limited and rate_limit_reset_epoch:
818815
reset_time = datetime.fromtimestamp(rate_limit_reset_epoch, timezone.utc)
819-
print("")
816+
print()
820817
print(
821818
f"> NOTE: Partial data due to GitHub API rate limit. "
822819
f"Reset at {reset_time.isoformat()} (UTC)."

0 commit comments

Comments
 (0)