Files
strata/tests/data/native_experts/coder-iq1_m.txt
T
Niko1221 65a1111e3a Split GGUF artifacts: every shard found (a missing one is an error), tensors from their owning shard, per-role expert files (native_experts.txt v4)
Groundwork for Unsloth's UD-Q4_K_XL (4 shards: shard 1 metadata only, output/token_embd/PLE table in
shard 2, layer 11's down in shard 2 and its gate/up in shard 3).  Existing packs load unchanged.

- include/strata/artifact/gguf_split.hpp: gguf_split_paths (from eddoursul/Strata 8029fa9) finds the
  shards from any shard's name; a missing shard is an error naming it.  It replaces generate.cpp's
  model_shards(), which skipped a shard it could not open.
- gguf_reader.hpp: GgufModel (8029fa9) looks a tensor up across the shards and refuses a name in two
  shards; the split keys are validated as #255 (gopinath87607) does for the head: shard 1 carries the
  architecture, later shards declare split.count / split.no / split.tensors.count consistently, and the
  directories add up to split.tensors.count.  tensor_payload_bytes / in_bounds for payload checks.
- NativeHead::load / NativeEmbed::load take the shard list: the architecture from the metadata shard,
  the tensor from the shard that holds it; the embedding also checks its payload is in the file.
- generate: --native resolves all shards once (native_shards), the head from --native-head-gguf's
  family, the model keys from the metadata shard; --ple-gguf defaults to the shard that holds
  per_layer_token_embd.weight.
- native_experts.txt: the shard column may be per role, `gate,up,down` (#255's comma form; empty =
  the --native shard).  The reader accepts v2-v4 and refuses a higher version; an engine older than
  this one fails to open a "gate,up,down" file loudly.  Fixes the parse's own aliasing hazard
  (parts.assign(3, parts[0])).
- load_experts_gguf reads each role from its file, after check_experts_gguf proved every (file,
  offset) is that tensor, of the pack's type and dimensions, and inside its file.
- Tests (synthetic, no model, no GPU): gguf_split_test (4 shards, missing shard, duplicate, split keys,
  count, truncation); expert_layout_test (copies of the Q2_0/IQ2_XS/IQ3_XXS/IQ3_S/Coder/Swift packs'
  native_experts.txt parse field for field as before; v4 column; v5 / 4 / 2 names refused; the arena
  from split synthetic shards at 2560/640 with Q4_K/Q5_1 and Q5_K/Q8_0, every byte compared, and
  wrong offset / file / type / shape / truncated / missing shard refused).
2026-09-30 22:30:10 +02:00

50 lines
3.2 KiB
Plaintext

# strata native experts v3: layer gu_type d_type offset blob_bytes gate_off up_off down_off [shard] (n_expert 256, total 25146163200; absolute offsets in Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf, or in the named shard beside it)
0 18 20 0 2176000 1150562336 1313362976 913711136
1 22 42 557056000 1510400 1664626592 1801161632 1545740192
2 22 20 943718400 1971200 2308902688 2445488928 2072051488
3 22 20 1448345600 1971200 2885763232 3022298272 2648912032
4 22 20 1952972800 1971200 3458564256 3595572896 3221713056
5 22 20 2457600000 1971200 4038269472 4174804512 3801418272
6 22 20 2962227200 1971200 4613172128 4750180768 4376320928
7 18 20 3466854400 2176000 5193708832 5356458272 4956857632
8 22 42 4023910400 1510400 5696376096 5832911136 5577489696
9 22 20 4410572800 1971200 6271347872 6407934112 6034496672
10 22 42 4915200000 1510400 6732983328 6869569568 6614096928
11 22 20 5301862400 1971200 7314285472 7450871712 7077434272
12 18 42 5806489600 1715200 7761567136 7924790176 7642680736
13 22 42 6245580800 1510400 8269195552 8405781792 8150309152
14 18 20 6632243200 2176000 8850188448 9012937888 8613337248
15 22 20 7189299200 1971200 9478952992 9615961632 9242101792
16 18 20 7693926400 2176000 10047629856 10210430496 9810778656
17 21 20 8250982400 2329600 10683191712 10865601952 10446340512
18 18 20 8847360000 2176000 11353477408 11516482848 11116626208
19 22 20 9404416000 1971200 11989461152 12126469792 11752609952
20 18 42 9909043200 1715200 12445193376 12607942816 12326306976
21 21 42 10348134400 1868800 12962739232 13145200672 12843852832
22 18 20 10826547200 2176000 13631427488 13794650528 13394576288
23 22 20 11383603200 1971200 14269635872 14406426912 14032784672
24 22 20 11888230400 1971200 14842897696 14979432736 14606046496
25 21 20 12392857600 2329600 15426184352 15608594592 15189333152
26 22 20 12989235200 1971200 16097957408 16234966048 15861106208
27 21 20 13493862400 2329600 16682121632 16864531872 16445270432
28 21 20 14090240000 2329600 17346621856 17529505696 17109770656
29 21 20 14686617600 2329600 18018868512 18201534752 17782017312
30 18 42 15282995200 1715200 18571885728 18734635168 18452999328
31 18 20 15722086400 2176000 19213849632 19376599072 18976998432
32 22 20 16279142400 1971200 19837195296 19974203936 19600344096
33 18 20 16783769600 2176000 20413173152 20575922592 20176321952
34 22 20 17340825600 1971200 21040655648 21177241888 20803804448
35 21 20 17845452800 2329600 21630446752 21812856992 21393595552
36 22 42 18441830400 1510400 22173400736 22310409376 22054514336
37 18 20 18828492800 2176000 22753323552 22916546592 22516472352
38 18 20 19385548800 2176000 23383942048 23546742688 23147090848
39 22 20 19942604800 1971200 24025905952 24162492192 23789054752
40 21 20 20447232000 2329600 24598758176 24781424416 24361906976
41 18 20 21043609600 2176000 25262981792 25425782432 25026130592
42 18 20 21600665600 2176000 25890515488 26053738528 25653664288
43 18 20 22157721600 2176000 26532901792 26696124832 26296050592
44 21 20 22714777600 2329600 27151490976 27333952416 26914639776
45 21 20 23311155200 2329600 27818796832 28001258272 27581945632
46 18 20 23907532800 2176000 28488532128 28651332768 28251680928
47 23 20 24464588800 2662400 29129699872 29354759712 28892029472