You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 01008cf
Browse filesBrowse the repository at this point in the historyBrowse files
## Summary
- Fail fast for `nemotron_h_moe` GGUFs before remote multi-GB downloads
(when Hub metadata is available) and again from the local header before
graph construction.
- Reject split GGUF shards, including text/mmproj paths, rather than
emitting incomplete weights.
- Reject `mobius build-gguf --runtime ort-genai` before artifacts
because that path cannot yet emit a valid cache/tokenizer contract.
- Document the pinned Nemotron 3.5 GGUF/BF16 evidence, exact
file-selection commands, Option A direct-ORT recipe, acceptance gates,
and waiver; refine the quantization skill with reusable direct-GGUF
checks.
## Pinned evidence
- GGUF:
`unsloth/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-GGUF@f2d3fe3694501008786e81e5f20360cbf715496a`
- Official BF16:
`nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16@d468880b6ad3c6e0d21377ce7242adaea4cc884d`
- Backbone schedule: 23 Mamba + 23 MoE + 6 attention layers; GGUF block
52 is the separate combined attention+MoE MTP block.
- `Q8_0` is qtype-compatible, but lacks semantic acceptance. `MXFP4_MOE`
contains 12.772B Q5_1 parameters; `UD-Q4_K_M` contains 15.326B Q5_0 +
12.772B Q5_1 parameters, so neither preserves quantization end to end.
- GGUF padding ID 999 conflicts with the official `<|im_end|>` padding
token (ID 11), and the GGUF records no immutable upstream BF16 commit.
## Validation
- Rebased linearly onto repaired main commit
`2073725840e007c1fba59ce3cb1f06e4ad9fe75a`; the #484 fixes are
inherited, not duplicated.
- `86 passed`: GGUF builder/mmproj/CLI plus quantization integration
regression suites.
- Canonical non-integration suite: `3,933 passed, 58 skipped`.
- Live Hub metadata preflight rejected the pinned 35 GB Q8 file before
download.
- Initialized `lintrunner -a` and `git diff --check` pass; the worktree
is clean.
- Independent release review found no remaining significant issues.
- Refreshed CI passes Lint, all Ubuntu/Windows test jobs, Build, L1
smoke, Architecture Diff, benchmarks, CodeQL, affected-model detection,
CLA, and lintrunner.
- Self-hosted `Integration (fast)`: `16 passed, 4 skipped, 2 failed`,
exclusively the same two DeepSeek parity failures as #484's
repaired-main job (`test_deepseek_v2_lite_prefill_logits_match` and
`test_deepseek_non_mla_decoder_prefill_logits_match`). This PR changes
no DeepSeek code.
## Waivers
- No Nemotron GGUF ONNX artifact, ORT load, ORT GenAI load, or
generation is claimed: the new guard intentionally prevents unsupported
artifacts. Current Nemotron-H synthetic parity is skipped/xfail (expert
shape transfer mismatch and Mamba2 recurrence divergence).
- Foundry Local and L4/L5 generation are waived until architecture
parity, MTP handling, tokenizer provenance, and runtime cache bindings
are implemented.
- The inherited DeepSeek GPU parity failures are outside this focused
PR; fixing them here would mix unrelated model work.
Tracks #483.
Signed-off-by: Justin Chu <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Copy file name to clipboardExpand all lines: docs/api/build_from_gguf.md
+174-2Lines changed: 174 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,17 +18,25 @@ def build_from_gguf(
18
18
task: str|None=None,
19
19
dtype: str|None=None,
20
20
keep_quantized: bool=False,
21
+
execution_provider: str="default",
22
+
mmproj: str| Path |None=None,
23
+
static_cache: bool=False,
24
+
max_seq_len: int|None=None,
21
25
) -> ModelPackage:
22
26
```
23
27
24
28
## Parameters
25
29
26
30
| Parameter | Type | Default | Description |
27
31
|---|---|---|---|
28
-
|`gguf_path`|`str \| Path`| (required) |Path to a `.gguf`model file. |
32
+
|`gguf_path`|`str \| Path`| (required) |Local `.gguf` path or `owner/repo:filename.gguf`Hub reference. |
29
33
|`task`|`str \| None`|`None`| Override the model task (e.g. `"text-generation"`). When `None`, the task is auto-detected from the model type. |
30
34
|`dtype`|`str \| None`|`None`| Override model dtype (e.g. `"f16"`). When `None`, defaults to float32. |
31
-
|`keep_quantized`|`bool`|`False`| When `True`, preserve quantization for supported GGUF types (Q4_0, Q4_1, Q8_0) by repacking linear-layer weights into MatMulNBits format. Unsupported types are dequantized to float. |
35
+
|`keep_quantized`|`bool`|`False`| Preserve supported affine blocks as `MatMulNBits` and supported IQ/MXFP4 blocks in the onnx-genai native format. A mixed preset may still require dequantization/requantization. |
36
+
|`execution_provider`|`str`|`"default"`| Target EP for EP-aware graph optimization. |
0 commit comments