Skip to content

Add LlamaForClassification - #559

Merged
merrymercy merged 2 commits into
mainfrom
llama_classify
Jun 22, 2024
Merged

merrymercy merged 2 commits into
mainfrom
llama_classify

Conversation

@merrymercy

Copy link
Copy Markdown
Collaborator

No description provided.

@merrymercy merrymercy changed the title Add classification class Add LlamaForClassification Jun 22, 2024
@merrymercy
merrymercy merged this pull request into main Jun 22, 2024
@merrymercy
merrymercy deleted the llama_classify branch June 22, 2024 07:45
merrymercy added a commit that referenced this pull request Jun 22, 2024
timethink pushed a commit to timethink/sglang that referenced this pull request Mar 9, 2025
efschu added a commit to efschu/htsglang that referenced this pull request Aug 12, 2026
Six branches on the fork carry commits feat/route-a-631 does not have. Listed
by distance, explicitly NOT triaged: nothing diffed for conflicts, no merge
order proposed on evidence. Two notes recorded so a successor does not
rediscover them -- the 155-commit docs branch is a merge-base artefact rather
than 155 pending changes, and bugfix/pd-mamba-conv-state-transfer (82) is the
real conflict candidate because it touches the mamba conv-state path that
sgl-project#631 Route A also touches.
efschu added a commit to efschu/htsglang that referenced this pull request Aug 12, 2026
efschu added a commit to efschu/htsglang that referenced this pull request Aug 12, 2026
… integration line

The only genuinely conflict-free branch of the six in the sgl-project#559 backlog
(HANDOFF_689 sec.8 measured it CLEAN with merge-tree; three of the four
'cheap' small branches actually conflict). Adds only docs/dev/stash-rescue/:
an INDEX plus the seven legacy stash entries rendered as patch files, no
python touched.

Merged first precisely because it exercises the merge process at zero risk to
the integration line.

Tests after merge: recorded in the following commit's shift log; the merge
adds no executable code.
efschu added a commit to efschu/htsglang that referenced this pull request Aug 12, 2026
…ject#631 integration line

One add/add conflict on docs/dev/NOTE_433_int8_prefill_vector.md, the branch's
only file. Resolved to the integration line's version after MEASURING that it
is a strict superset, not by preferring a side: the integration line carries
350 lines, the branch 226, and a line-level comparison finds ZERO lines
present on the branch and absent from the integration line. The note was
already carried onto this line by an earlier shift and extended there; the
branch contributes nothing that is not already present.

No python touched, no behaviour change.

Tests: sgl-project#631 flip family 1095 passed / 0 failed (unchanged).
efschu added a commit to efschu/htsglang that referenced this pull request Aug 12, 2026
…ct#631 integration line

Two content conflicts in docs/dev/FEATURE_CATALOG.md, which is under the
catalogue-maintenance law. Resolved by UNION and by RE-DERIVING the disputed
facts from the tree, not by taking a side.

Hunk 1 (catalog header). Both sides carried real content: the integration
line has rule (5), the §18 reusable-infrastructure index and its merge
obligation, which the branch does not have at all; the branch has a corrected
"last full refresh" provenance line showing that the two commits previously
cited ("tip 33148db" / "tip 3b7569f") are real commits that are not the
commits their labels imply. Kept rule (5) AND took the branch's correction --
taking either side wholesale would have dropped one of them.

Hunk 2 (GGUF MXFP4 repack lever). BOTH citations were wrong by the time this
merge ran. The integration line cited `environ.py:1776`; the pool-audit
branch "corrected" it to `:1803`. Checked against the tree: the symbol
`SGLANG_GGUF_MXFP4_REPACK` is at `environ.py:1897`, `:1776` is now
`SGLANG_OPT_UNIFIED_CACHE_FREE_OUT_OF_WINDOW_SLOTS`, and `:1803` points at
nothing relevant. Merging either side would have shipped a false citation, so
the number was re-derived and the drift itself is recorded in the text as a
warning. `repack_source_types()` and `_refuse()` were likewise verified in
place (gguf_mxfp4_repack.py:118 and :127).

Also kept from the integration line, which the branch had dropped: the
"Merged AND installed in the serving venv" evidence sentence naming the
pinned wheel sha and the live hasattr probe. That is a state claim backed by
an independent probe and it is not replaceable by the branch's terser
"GPU-pending:".

No python touched, no behaviour change.

Tests: sgl-project#631 flip family 1095 passed / 0 failed (recorded in the shift log).
efschu added a commit to efschu/htsglang that referenced this pull request Aug 12, 2026
 integration line

Four add/add conflicts. The branch is an OLDER SNAPSHOT of the same audit, and
the governing fact for all four files is that its central claims have since
been overtaken: it asserts that several features are UNWIRED, and they are
wired now.

test/registered/unit/test_unwired_features_421.py -- the conflicted TEST file,
resolved so no coverage is lost. The branch carries four pin classes
(TestKvPressureLadderAutoIsUnreachable, TestOffloadRegisterProfileIsUnreachable,
TestColdTierShmIsUnreachable, TestMemTierRegistryHasNoConsumers) that the
integration line deliberately RETIRED, each replaced by a named positive test
that asserts the wiring and pins the call site. Resurrecting them would not
have added coverage, it would have re-asserted four absences that no longer
hold. Verified in the tree rather than taken on the retirement notes' word:
`cold_tier_fetch` is imported from production at
`layers/moe/fused_moe_triton/layer.py:1447` and `layers/moe/expert_offload.py:2711`,
and `memtier.registry`/`memtier.tiers` at
`model_executor/short_term_offload_register.py:113-114`. All five replacement
test files exist on disk. So the branch's 104 unique lines here are superseded
content, not dropped assertions.

Corrected while resolving: the F4 retirement note cited its replacement at
`test/registered/unit/moe/test_cold_tier_wiring_394.py`; the file is at
`test/registered/unit/layers/moe/test_cold_tier_wiring_394.py`.

docs/dev/AUDIT_421_UNWIRED.md (5 hunks), scripts/dev/audit_421/README.md (1)
and scripts/dev/audit_421/detC.py (6) -- resolved hunk by hunk, not by blanket
side-selection, and the branch side was found superseded in every one. detC.py
in particular: the integration side adds sys.path bootstrapping so the script
finds its sibling astlib.py, memoises four whole-tree derivations per Index,
and flushes progress to stderr. Same computed results, so no behavioural
divergence to adjudicate. The README's discarded sentence ("trust the STRONG
tier") is contradicted by later evidence the integration line records, and its
numeric claim survives verbatim at AUDIT_421_UNWIRED.md:317 -- checked before
discarding.

One stale citation corrected in the audit doc, section B.9: it claimed
present-tense that the sgl-project#363/S8 planner `solve_fn` seam is unbound and cited a
ratchet test `TestPlannerFeed::test_the_seam_is_unbound_in_production`. Task
sgl-project#578 BOUND that seam -- `managers/regime_runtime.py:912` now passes
`solve_fn=_planner_solve_fn(scheduler)` -- and the cited test does not exist;
it was inverted into
`test_regime_act.py::TestPlannerFeed::test_the_seam_is_bound_and_refuses_without_measurement`.
Both facts re-verified against this tree. The historical narration is kept and
a "Resolution (task sgl-project#578)" paragraph appended, matching how the same document
already handles F4 and F6.

Two inconsistencies noted and deliberately NOT edited, because neither is a
merge-side disagreement and neither number can be re-derived from the tree:
the memoisation speed-up is quoted as ~35 min in the audit and README but
~50 min in detC.py's own comment; and B.8 says "three of the eight pins are
retired" while naming four classes.

Tests: test_unwired_features_421.py 2 passed. sgl-project#631 flip family 1095 passed /
0 failed. detC.py py_compile OK, ruff clean.
efschu added a commit to efschu/htsglang that referenced this pull request Aug 12, 2026
…diagnosis corrected; sgl-project#559 four merged, two refused on measurement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant