[Edge][WP2] Finalize edge profile init knobs from init_profile; WP4 CPU emulation results
init_profile 20260909-112200 (1.7B, L20X, warm): default 152.0 s, eager_stage1 149.9 s, eager_both 110.9 s (first TTFA 15 s, no graphs), parallel_stage_init 94.6 s, edge 145.7 s. Edge profile now carries `orchestrator: parallel_stage_init: true`, applied by the deploy_profile selector (explicit values win); graphs stay on. hw_emulation 20260909-110229 (CPU venv, 0.6B, deploy_profile=auto): x86_cpu_avx2 (4c, fp32) TTFA 2.65 s RTF 11.9; x86_cpu_avx512 (8c) TTFA 0.68 s RTF 2.45; x86_cpu_amx (16c) TTFA 0.51 s RTF 1.72; arm64 logic-only same as avx2. Emulation rows now record the auto-detected hardware class. Adds tests/e2e/offline_inference/test_qwen3_tts_edge_profile.py (L3, one GPU). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
285db2fa3c
commit
602e39647e
23 files changed
+8393
-3
No files matched your search
@@ -29,6 +29,7 @@ import argparse
|
||||
import datetime as _dt
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
@@ -191,7 +192,13 @@ def run_case(case: Case, args: argparse.Namespace, out_dir: Path, passthrough: l
|
||||
rc = proc.returncode
|
||||
except subprocess.TimeoutExpired:
|
||||
rc = -1
|
||||
row: dict[str, Any] = {"case": case.name, "note": case.note, "returncode": rc, "cmd": cmd, "hardware_class": None}
|
||||
row: dict[str, Any] = {
|
||||
"case": case.name,
|
||||
"note": case.note,
|
||||
"returncode": rc,
|
||||
"cmd": cmd,
|
||||
"hardware_class": parse_hardware_class(case_dir / "stdout.log"),
|
||||
}
|
||||
files = sorted((case_dir / "bench").rglob("*.json"))
|
||||
if files:
|
||||
doc = json.loads(files[-1].read_text())
|
||||
@@ -208,6 +215,19 @@ def run_case(case: Case, args: argparse.Namespace, out_dir: Path, passthrough: l
|
||||
return row
|
||||
|
||||
|
||||
_AUTO_PROFILE_RE = re.compile(r"\[auto_profile\] (\S+) -> ")
|
||||
|
||||
|
||||
def parse_hardware_class(log_path: Path) -> str | None:
|
||||
"""Hardware class chosen by ``deploy_profile=auto`` as logged by auto_profile."""
|
||||
try:
|
||||
text = log_path.read_text(errors="replace")
|
||||
except OSError:
|
||||
return None
|
||||
m = _AUTO_PROFILE_RE.search(text)
|
||||
return m.group(1) if m else None
|
||||
|
||||
|
||||
def render_table(rows: list[dict[str, Any]]) -> str:
|
||||
cols = [
|
||||
"case",
|
||||
|
||||
Reference in new issue
Block a user