Skip to content

chore: bump v0.3.1.post3 - #1483

Merged
zhyncs merged 2 commits into
mainfrom
hotfix
Sep 21, 2024
Merged

zhyncs merged 2 commits into
mainfrom
hotfix

Conversation

@zhyncs

@zhyncs zhyncs commented Sep 21, 2024

Copy link
Copy Markdown
Contributor

Motivation

hot fix #1482

Modifications

Checklist

  • Format your code according to the Contributor Guide.
  • Add unit tests as outlined in the Contributor Guide.
  • Update documentation as needed, including docstrings or example tutorials.

@zhyncs
zhyncs merged commit 82136eb into main Sep 21, 2024
@zhyncs
zhyncs deleted the hotfix branch September 21, 2024 03:17
timethink pushed a commit to timethink/sglang that referenced this pull request Mar 9, 2025
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 17, 2026
…st does not ignore the children

lued/Qwen3.8-27B-INT8-W8A16-MTP (the ORIGINAL checkpoint, user order 17.09.)
lists every GDN layer's parent module literally in quantization_config.ignore
(model.language_model.layers.N.linear_attn) while in_proj_qkv, in_proj_z and
out_proj carry packed int8 tensors.  should_ignore_layer's substring reading
(check_contains) took the parent literal as a match for every child: all 144
GDN projections were built dense, the packed weights went unloaded ('not found
in params_dict' x 432), the target answered token 0 ('!!!') on every prompt
and NEXTN's MTP head died on a Char tensor.  A literal that is a strict
ancestor of the layer name (target + '.') is a module-level entry in
compressed-tensors' own semantics and now does not match; regex entries,
exact literals and partial-substring literals are unchanged.  Instrument sgl-project#1483
(CT-SCHEME-NONE, layer 0 only; GDN-PROJ layer0) stays as boot evidence.

Tests: test_ct_ignore_ancestor_1483 (3) + 1482 (3) + 727 (18) -> 24 passed.
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 17, 2026
…st does not ignore the children

lued/Qwen3.8-27B-INT8-W8A16-MTP (the ORIGINAL checkpoint, user order 17.09.)
lists every GDN layer's parent module literally in quantization_config.ignore
(model.language_model.layers.N.linear_attn) while in_proj_qkv, in_proj_z and
out_proj carry packed int8 tensors.  should_ignore_layer's substring reading
(check_contains) took the parent literal as a match for every child: all 144
GDN projections were built dense, the packed weights went unloaded ('not found
in params_dict' x 432), the target answered token 0 ('!!!') on every prompt
and NEXTN's MTP head died on a Char tensor.  A literal that is a strict
ancestor of the layer name (target + '.') is a module-level entry in
compressed-tensors' own semantics and now does not match; regex entries,
exact literals and partial-substring literals are unchanged.  Instrument sgl-project#1483
(CT-SCHEME-NONE, layer 0 only; GDN-PROJ layer0) stays as boot evidence.

Tests: test_ct_ignore_ancestor_1483 (3) + 1482 (3) + 727 (18) -> 24 passed.
(cherry picked from commit 85f2a6d)
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 25, 2026
… Storage, und sein Block liegt im Band seiner Schicht statt im Basis-Tag (H79)

fnNV4f1 (77a8956) starb im ersten P->D-Release an W29 mit W84: 44/16/12
Befunde, alle "SHORT in_proj_qkvz.weight planned_mib=80.000 live_mib=80.469"
bzw. "in_proj_ba.weight planned_mib=0.469 live_mib=80.469". Das NVIDIA-NVFP4-
Checkpoint laesst in_proj_qkvz in BF16 (sgl-project#1483: qkvz=UnquantizedLinearMethod).
Deshalb stapelt finalize_fused_in_proj (Upstream sgl-project#37500) beide Gewichte in EINEN
Block und bindet sie als dessen Zeilen-Views. Plan und Austausch adressieren
jeden Parameter per data_ptr() und mit der Geometrie seines Views
(derive_leg_plan ptr_of, _weg2_join_src/dst_addr, StorageGeom.of). Ihre
Anspruchswerte stimmten also. Nur die Coverage rechnete jedem View den ganzen
Storage an (_nbytes = untyped_storage().nbytes()). Dazu lag der Block im
BASIS-Tag weights: finalize laeuft am Ende von load_weights ausserhalb jedes
weight_chunk_scope. Gemessen am Basis-Pool auf PP0/1/2: 2,91/0,63/1,67 GiB
aktiv gegen 0,60/0,00/0,61 bei x176 ohne Fusion. Plan und Walk fuehren
in_proj_* dagegen per Name im Band der Schicht.

- qwen3_5.finalize_fused_in_proj: der torch.cat laeuft unter
  weight_chunk_scope(layer_id), also im Band-Tag und im Band-Pool. Ausserhalb
  einer Weg2-Chunk-Region ist das ein No-op, dann bleibt die Upstream-Funktion
  unveraendert. Eine ungefusete Schicht (INT4-/FP8-qkvz) kehrt vor jeder
  Allokation und jedem Scope zurueck. Die Funktion gibt jetzt ein Statuswort
  zurueck; qwen4_exp druckt daraus je Rang
  "#H79 GDN-FUSED-IN-PROJ gdn= fused= unbanded= census=".
- weight_exchange.build_coverage: ein Storage, den mindestens zwei
  Plan-Parameter mit VERSCHIEDENEN Byte-Bereichen teilen, wird ueber seine Views
  beurteilt. Jedes Mitglied muss seinen View beanspruchen (sonst SHORT, ein
  Anspruch ueber den View hinaus ist W68), und die Views muessen den Storage
  zusammenhaengend und ueberlappungsfrei von 0 bis zum Ende kacheln. Sonst
  verweigert der neue Befund TILING (GAP/OVERLAP/OVERRUN/NONCONTIGUOUS), und ok
  ist falsch. Nur ein gekachelter Storage gilt als gedeckt. Dann ist
  _fused_in_proj_weight ein view_holder und keine eigene Quelle; bei Luecke
  bleibt es UNCOVERED. Ein Mitglied, Aliase ueber denselben Bereich und die
  Experten-Puffer bleiben auf dem alten Pfad.
- Metallmarker: WEG2-XCHG-TILED je Storage (verdict=tiled bzw. refused), am
  Ende der COVER-Zeile "tiled= view_holders= tiling=" und in der
  PLAN-PARAM-Zeile "view_mib= view_offset_mib=". Alle drei erscheinen nur, wenn
  es etwas zu zaehlen gibt.

INT4-Linie byte-identisch: die COVER- und PLAN-PARAM-Zeilen eines ungefuseten
Modells sind auf 77a8956 und mit H79 Zeichen fuer Zeichen gleich (cmp), und
finalize beruehrt keinen Parameter.

Test test_weg2_fused_in_proj_tiling_h79.py (CPU, Metallformen 16384/96 x 2560,
echte Fusion und echter derive_leg_plan): 14 gruen. Auf 77a8956 sind 10 rot:
die Metallform zeigt dort genau die beiden SHORT-Befunde (80.0/80.469 und
0.469/80.469), der cat laeuft unter weights statt weights_1, und die
Strenge-Tests brauchen die neuen Felder. Gruen auf beiden Baeumen: die zwei
INT4-Tests, die Views und der Plan ohne ba.
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