Repository navigation
Commit b0fb5af
authored
Promote generic GGUF projector cohort (#678)
## Summary
- promote the generic llama.cpp `adapter`, `mlp`, `resampler`, `ldp`,
and `ldpv2` GGUF projector routes to exact graph import
- add reusable model-agnostic projector components and a three-model
decoder/vision/embedding package with a float32 processor boundary
- enforce exact metadata, tensor closure, shapes, target architecture,
feature-layer selection, and fail-closed unknown-variant behavior
- preserve processor-owned image sentinels, including
negative/out-of-vocabulary IDs, and scope MiniCPM `<unk>` replacement
between `<image>` boundaries
- pin immutable sidecar, paired-text, and processor evidence totaling
12,414,806,816 bytes while keeping runtime support truthfully deferred
- update the generated GGUF census/docs and expose `image_token_id`
through the public API and CLI without changing Hugging Face revision
routing
## Schema authority
Pinned llama.cpp commit: `8d9af256337d1a501250f9bbf4c0859a654bddd6`.
The implementation matches its legacy CLIP penultimate-layer selection,
tanh-approximate GELU, LDP HardSigmoid coefficients, GLM-Edge gated
SwiGLU/BOI/EOI topology, and MiniCPM learned-query resampler with
generated 2D sinusoidal positions.
## Validation
- focused projector/importer/docs/CLI suite: 696 passed
- broad serial non-integration suite: 8,649 passed, 64 skipped, 12
deselected, 1 subtest passed
- sparse immutable header closure: all five selected sidecars accepted
exactly (377-447 tensors each)
- repository lintrunner passed
- new projector model passed mypy
- independent high-confidence review found no remaining issues
## Runtime status
All five routes are graph-supported and runtime-deferred. No paired
runtime or generation parity is claimed until the processor/runtime ABI
is independently proven.
---------
Signed-off-by: Justin Chu <[email protected]>
Copilot-Session: 7f08e9a7-ccb3-4864-ae69-c3ef8adc53a11 parent 0c7ac6c commit b0fb5af
26 files changed
Lines changed: 2800 additions & 261 deletions
File tree
- docs/api
- src/mobius
- components
- integrations/gguf
- models
- tasks
- tests
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
| 751 | + | |
751 | 752 | | |
752 | 753 | | |
753 | 754 | | |
| |||
1322 | 1323 | | |
1323 | 1324 | | |
1324 | 1325 | | |
1325 | | - | |
1326 | | - | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
1327 | 1336 | | |
1328 | 1337 | | |
1329 | 1338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
| |||
209 | 214 | | |
210 | 215 | | |
211 | 216 | | |
| 217 | + | |
| 218 | + | |
212 | 219 | | |
213 | 220 | | |
| 221 | + | |
214 | 222 | | |
| 223 | + | |
| 224 | + | |
215 | 225 | | |
216 | 226 | | |
217 | 227 | | |
| |||
0 commit comments