Files
Joseph Magly 0ca0d1d77e feat(gguf): add native GGUF toolkit
Add bounded GGUF v2/v3 parsing, transactional metadata and tensor edits,
split-file handling, provenance manifests, exact GGML storage typing, and
measurement-gated quantization planning. Preserve unmodified payloads
byte-for-byte and expose the toolkit through `obliteratus gguf`.

Verification:
- 57 focused tests on each of Python 3.11, 3.12, and 3.14.
- 377 combined focused, CLI, risk-map, CI-policy, package-export, and
  CLI-boundary tests on Python 3.14.
- 2,000 randomized exact-DP comparisons against brute force.
- Real single-file and three-shard GGUF metadata edits with tensor hashes
  preserved; independent GGUF reader opened every output.
- Ruff, risk-map validation, wheel/sdist build, and isolated wheel CLI smoke.

No real Qwen4 conversion or inference was run; runtime and quality
qualification remain separate gates.
2026-12-04 18:35:28 -05:00

47 lines
899 B
JSON

{
"schema": "obliteratus.gguf_patch.v1",
"sources": {
"base": "model.gguf",
"donor": "donor-model.gguf"
},
"metadata": {
"set": {
"general.name": "edited-model",
"general.tags": {
"type": "string[]",
"value": ["research", "gguf"]
}
}
},
"operations": [
{
"op": "copy",
"source": "donor",
"source_name": "blk.0.new.weight",
"name": "blk.0.new.weight",
"shard": 0
},
{
"op": "scale",
"name": "output.weight",
"alpha": 1.05
},
{
"op": "blend",
"source": "donor",
"source_name": "blk.0.ffn.weight",
"name": "blk.0.ffn.weight",
"gamma": 0.25,
"delta_filter": "magnitude",
"density": 0.5,
"preserve_norm": true
}
],
"validation": {
"required_tensors": [
"token_embd.weight",
"output.weight"
]
}
}