mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-05 12:24:28 +01:00
The 27B lane's two units and run.sh passed --trust-remote-code, which lets the engine import the Python a checkpoint names in its config (auto_map), as root in its container, with the config directory and the HF cache mounted. Nothing the lane loads has any: at their pins, RadixArk/Qwen3.8-27B-NVFP4 (52d1adc5), Qwen/Qwen3.8-27B-FP8 (017b9c7a), both abliterated builds (603028a1, 21565d38), the DFlash2 drafter the lane serves (bd7a9342) and the BF16 one of its rollback (50307d4c) name no auto_map in any JSON file and ship no .py file (read in the reference box's own HF cache); their architectures are SGLang's own (Qwen3_5ForConditionalGeneration, DFlash2DraftModel). So the flag ran nothing, and would have run what a later pin, or a target picked by hand, brought. The one checkpoint of this lane with code, the DSpark drafter (auto_map to dspark.py), has not been served since v1.2. The Nemotron lanes keep the flag: their checkpoints need it, and their units and docs say why. The cockpit's drift view names the flag on a box until its units are rendered again. Found in a cloud review of v1.36.1 (pull request #52). Checked on the reference box, its 27B lane in the 1M mode it is installed in, each target loaded from the cockpit on the unit rendered from this commit: fp8, both abliterated builds and the stock NVFP4 one each started with trust_remote_code False in the engine's arguments, served /v1/models and a 1000-token answer through the proxy with DFLASH speculative decoding (accept length 12.6 to 14.4), and logged no error but the four inductor autotune failures every NVFP4 boot of this lane logs, with the flag or without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
40 lines
1.8 KiB
Python
40 lines
1.8 KiB
Python
#!/usr/bin/env python3
|
|
"""The 27B lane does not offer to run a checkpoint's own code (2026-10-18).
|
|
|
|
Its two units and run.sh passed --trust-remote-code, which lets the engine import Python a
|
|
checkpoint names in its config (auto_map), as root in its container. None of what the lane
|
|
loads has any: the four targets (RadixArk/Qwen3.8-27B-NVFP4, Qwen/Qwen3.8-27B-FP8 and the two
|
|
abliterated builds) and the DFlash2 drafter it serves name no auto_map at their pinned revisions
|
|
and ship no .py file; their architectures are SGLang's own (Qwen3_5ForConditionalGeneration,
|
|
DFlash2DraftModel). Read on the Hub in a cloud review; the lane was not started without the
|
|
flag there. So the flag ran nothing, and would have run whatever a later pin or a target
|
|
picked by hand brought. The one checkpoint of this lane with code, the DSpark drafter
|
|
(dspark.py, dflash.py), has not been served since v1.2.
|
|
|
|
The Nemotron lanes keep theirs: their checkpoints need it, and their units and docs say so.
|
|
"""
|
|
import pathlib
|
|
import unittest
|
|
|
|
REPO = pathlib.Path(__file__).resolve().parents[1]
|
|
LANE = ("qwen38-sglang.service.template", "qwen38-sglang-1m.service.template", "run.sh")
|
|
|
|
|
|
def code(name):
|
|
"""The file without its comment lines."""
|
|
return "\n".join(ln for ln in (REPO / name).read_text().splitlines() if not ln.lstrip().startswith("#"))
|
|
|
|
|
|
class The27BRunsNoCheckpointCode(unittest.TestCase):
|
|
def test_its_units_and_run_sh_do_not_pass_the_flag(self):
|
|
for name in LANE:
|
|
self.assertFalse("--trust-remote-code" in code(name).split(), f"{name} passes --trust-remote-code")
|
|
|
|
def test_the_lanes_that_need_it_keep_it(self):
|
|
for name in ("qwen38-nemotron.service.template", "qwen38-nemotron-super.service.template"):
|
|
self.assertIn("--trust-remote-code", code(name).split(), name)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|