phi-4 โ MLBricks ElasticBit
Source: microsoft/phi-4
Source revision: 2db69c1c3e91a05d2c64a3185acfbaf36f744e25
MLBricks commit: f772eb27d2d6b84764e9e90458827dac6980a88a
ElasticBit threshold: 0.01
Persistent global dtypes: preserved from the source model as loaded for conversion
Conversion result
- Decoder layers: 40
- Parameter-weighted effective bits: 8.126
- Linear storage reduction: 49.18%
- Layer artifact bytes: 12.059 GiB
- Exact global component bytes: 1.914 GiB
- Approximate uploaded inference payload: 13.973 GiB
- Reconstructed end-to-end smoke test: PASS
Validation
Each newly converted layer is checked on calibration inputs, a separate validation input,
and a local save/load round trip. Before complete=true, the converter reconstructs global
payloads from the uploaded safetensors files, streams every uploaded ElasticBit layer through
a real full-model forward, and compares final logits with the pinned FP16 source reference.
Layout
layers/layer_XXX.elasticbitcomponents/global_manifest.jsoncomponents/global_*.safetensorsreports/layer_XXX.jsonreports/reconstruction_smoke.jsoncalibration/input_ids.safetensorsvalidation/input_ids.safetensorselasticbit_manifest.jsonprogress.json
Layer artifacts use a minimal ElasticBit root namespace: compressed Linear paths are stored as block.*.
The root class itself is not serialized. A loader should create a small nn.Module with a .block
containing the pinned source-compatible decoder architecture, call ElasticBit.load(root, artifact),
then use root.block in the reconstructed model while retaining root when controller access is needed.
Review the source model license before redistribution or commercial use.
- Downloads last month
- 105
Model tree for maxzameer/phi-4-ElasticBit
Base model
microsoft/phi-4