mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 23:08:36 +00:00
docs: the DFlash 2 notice describes the shipped file (our converted 551,600,700-byte mix of the Inco AI / z-lab weights, with the statement of changes) and says it does not change Strata's MIT licence; the setup hint states the size from the pin
This commit is contained in:
1 parent
f3796e96ba
commit
b0b4a16a25
3 files changed
+24
-16
No files matched your search
@@ -353,6 +353,7 @@ DFlash 2 is a block-diffusion drafter, one file (`dflash2.safetensors`, 0.55 GB,
|
||||
drafter. Whether drafting is on is still decided by a measurement on your computer: at the first start of a placement Strata runs a short speed test with and
|
||||
without it and keeps it on only where it is at least 10 percent faster on a mix of code and chat (`strata launch ... --drafting dflash2` always turns it on,
|
||||
`--drafting off` always off). Credit for DFlash 2 goes to tjm8874 (the DFlash 2 port, MIT).
|
||||
The file is Strata's converted copy of `incoai/Inkling-2-Mini-DFlash2` (Inco AI / z-lab, Apache-2.0): the large matrices are stored pre-quantized (Q8 and SF4), 551,600,700 bytes, hosted at `strata-engine/Inkling-2-Mini-DFlash2` and pinned by commit and SHA-256; the original file is still accepted and is the last-resort source. The notice with the statement of changes is `notices/INKLING-2-MINI-DFLASH2-APACHE-2.0.txt`; it does not change the licence of Strata (MIT).
|
||||
The engine also leaves DFlash 2 out by itself where loading it would move part of the model off the card (a model that fits whole would run in the slower hybrid mode, or lose a
|
||||
noticeable part of the experts' room). It then prints one line, `DFlash 2 not loaded: it would move part of the model off the card (...)`, which the Terminal start and the app's
|
||||
start log show as it is, and the Monitor's drafting note repeats. `strata launch --draft on` (or `--set draft=on`; for a start by hand `STRATA_INK_DFLASH2_FORCE=1`) asks for it by name and loads it anyway.
|
||||
|
||||
@@ -1,22 +1,29 @@
|
||||
Inkling-2-Mini-DFlash2 drafter weights (Apache License 2.0)
|
||||
===========================================================
|
||||
|
||||
Strata's DFlash 2 drafter reads the weights of `incoai/Inkling-2-Mini-DFlash2` (https://huggingface.co/incoai/Inkling-2-Mini-DFlash2), a DFlash 2 block-diffusion
|
||||
draft model for thinkingmachines/Inkling-2-Mini by Inco AI / z-lab (https://inco.ai/blog/dflash2/, https://github.com/z-lab/dflash).
|
||||
Strata's DFlash 2 drafter uses weights derived from `incoai/Inkling-2-Mini-DFlash2` (https://huggingface.co/incoai/Inkling-2-Mini-DFlash2), a DFlash 2 block-diffusion
|
||||
draft model for thinkingmachines/Inkling-2-Mini by Inco AI / z-lab (https://inco.ai/blog/dflash2/, https://github.com/z-lab/dflash). Copyright and credit for the weights belong
|
||||
to their authors, Inco AI and z-lab; Strata did not train them.
|
||||
|
||||
File: model.safetensors (stored beside the model as dflash2.safetensors)
|
||||
The file Strata downloads (a converted copy of the original weights)
|
||||
File: Inkling-2-Mini-DFlash2-mix.safetensors (stored beside the model as dflash2.safetensors)
|
||||
From: https://huggingface.co/strata-engine/Inkling-2-Mini-DFlash2, revision 04ecd36faef74e696f0a7b6b3c119264442a6234
|
||||
Size: 551,600,700 bytes
|
||||
SHA-256: cf7dbb08560dfd99544af0cdbab2915406fc571f516b19aff0fe113b9458d387
|
||||
Licence: Apache License 2.0, as stated on the original model card (not gated)
|
||||
|
||||
Changes made (Apache License 2.0, section 4(b)): this file is a modified version of the original weights. The attention matrices (q_proj, o_proj) are stored as 8-bit integers
|
||||
with one fp32 scale per row, the feed-forward matrices (gate_proj, up_proj, down_proj) as 4-bit SF4 (E2M1 values, UE4M3 scale per 16, one fp32 scale per tensor); all other tensors
|
||||
(fc, K/V and convolution projections, selector, codebooks, norms) are unchanged values (norms as float32). The format is "strata-dflash2-q1", variant "mix". It was made on 2026-11-26
|
||||
by the Strata engine itself (STRATA_INK_DFLASH2_DUMP) from the original file, and the repository file carries this notice, the licence and the script that reproduces it
|
||||
(make_mix_from_original.py).
|
||||
|
||||
The original file
|
||||
File: model.safetensors
|
||||
Size: 989,975,616 bytes
|
||||
SHA-256: 217980ab00d116693fa5946df7bbfd967caf5fac1f529afd541fbd470ddb54ee
|
||||
Revision: 4f9088ea66c21f2b99ed657d1941c306b03e84d2
|
||||
Licence: Apache License 2.0, as stated on the model card (not gated)
|
||||
Revision: 4f9088ea66c21f2b99ed657d1941c306b03e84d2 (incoai/Inkling-2-Mini-DFlash2)
|
||||
The engine also accepts this original file when a person puts it beside the model (it quantizes the large matrices in memory at load time); it is the last-resort download source.
|
||||
|
||||
The original file is downloaded from the original repository and used as it is (the engine quantizes the large matrices in memory at load time).
|
||||
|
||||
Strata's pre-quantized copy (a smaller dflash2.safetensors with the same name, format "strata-dflash2-q1", variant "mix") is a modified version of these weights:
|
||||
the attention matrices (q_proj, o_proj) are stored as 8-bit integers with one fp32 scale per row, the feed-forward matrices (gate_proj, up_proj, down_proj) as 4-bit
|
||||
SF4 (E2M1 values, UE4M3 scale per 16, one fp32 scale per tensor); all other tensors (fc, K/V and convolution projections, selector, codebooks, norms) are unchanged
|
||||
values (norms as float32). Size 551,600,700 bytes, SHA-256 cf7dbb08560dfd99544af0cdbab2915406fc571f516b19aff0fe113b9458d387. It is made by the engine itself
|
||||
(STRATA_INK_DFLASH2_DUMP) from the original file above, on 2026-11-26. It carries this notice and the licence below.
|
||||
|
||||
The licence text is at https://www.apache.org/licenses/LICENSE-2.0.txt; it applies to the weights (original and modified) under its terms (attribution, a copy of
|
||||
the licence, a statement of changes, no warranty).
|
||||
The licence text is at https://www.apache.org/licenses/LICENSE-2.0.txt; it applies to the weights (original and modified) under its terms (attribution, a copy of the licence, a
|
||||
statement of changes, no warranty). This notice lists a third-party work under its own licence; it does not change the licence of Strata, which is MIT.
|
||||
+1
-1
@@ -11020,7 +11020,7 @@ def install_inkling2(a, family, gpu, hip, amd, cuda_tk, multi, port, ram, adopte
|
||||
if want_drafter: # the person's own folder is never written to: a DFlash 2 file they put there is used
|
||||
sidecar = inkling_fetch_dflash2(a, folder, own)
|
||||
if sidecar is None:
|
||||
warn(f"no {inkling_family.DFLASH2_FILE} beside the model: it runs without a drafter. Put the file (989,975,616 bytes) next to the model to turn drafting on")
|
||||
warn(f"no {inkling_family.DFLASH2_FILE} beside the model: it runs without a drafter. Put the file ({inkling_family.size_of(inkling_family.DFLASH2_FILE):,} bytes) next to the model to turn drafting on")
|
||||
else:
|
||||
step(5, f"downloading {fam['title']} {model}")
|
||||
files = inkling_family.files_of(model, vision)
|
||||
|
||||
Reference in new issue
Block a user