tt-hous/gpt-oss-20b-p150/code/models/common/readiness_check
Checks whether path lies beneath directoryParses JSON data with Python
SHA-2564216f5456f9367c881e8f25b5a26305971dad95a612b296a13038d4cbfec213e
MaleculeH₂(DbF₂)
Evidence
1# SPDX-FileCopyrightText: © 2026 Tenstorrent USA, Inc.
2# SPDX-License-Identifier: Apache-2.0
3
4"""
5Machine check for degenerate generated text in readiness artifacts.
6
7This is a runner-side verification, not a quality judgement. It flags
8mechanically broken generation — the kind produced by decode-loop bugs
9(stale token/position feedback, stale trace inputs) — while staying
10agnost …
10:14… odel style, checkpoint type (base vs instruct), and content.
11
12The key signal is adjacent-token duplication: a healthy model, base or
13instruct, does …
301:58… path rather than
302 exiting 3.
303 """
304 try:
305 return json.loads(path.read_text(encoding="utf-8"))
306 except Exception as exc: # noqa: BLE001
307 report.findings.append(
308 Finding(
309 se …
407:18… ame in VLLM_ARTIFACT_NAMES:
408 found.extend(sorted(root.rglob(name)))
409 if scope in ("all", "autoregressive"):
410 found.extend(sorted(root.rglob("autoregressive_meta.json"))) …
455:2… matches = [m for m in matches if not any(other != m and other.is_relative_to(m) for other in matches)]
456 if matches:
457 return matches, ""
458 if candidates:
459 listing = ", ".join(str(c.relati …