Downloads · 30 days
23
7% of all-time downloads
wpferrell/phi-3.5-mini-instruct-bigsmall
phi-3.5-mini-instruct-bigsmall is a machine learning model from wpferrell. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
[](https://doi.org/10.5281/zenodo.20279247)
Downloads · 30 days
23
7% of all-time downloads
All-time downloads
318
Public
Repo size
5 GB
Likes
0
Public
Click a slice to open those files.
.bs5 GB · 100%
From the Hugging Face model README
7.12 GB - 4.67 GB (34% smaller). Bit-identical weights. Drop-in replacement.
pip install "bigsmall>=4.0"
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("wpferrell/phi-3.5-mini-instruct-bigsmall")
It works exactly like loading the original model. No code changes needed.
| Size | |
|---|---|
| Original (microsoft/Phi-3.5-mini-instruct) | 7.12 GB |
| This compressed version | 4.67 GB |
| Saved | 2.45 GB (34%) |
Every weight is mathematically identical to the original model.
from bigsmall import BigSmallStreamingModel
model = BigSmallStreamingModel.from_pretrained(
"wpferrell/phi-3.5-mini-instruct-bigsmall",
device="cuda",
lru_max_vram_gb=2.0,
)
Uses up to ~12- less VRAM than standard loading by streaming layers on demand.
import bigsmall
state_dict = bigsmall.stream_from_hub("wpferrell/phi-3.5-mini-instruct-bigsmall", device="cpu")
Decompresses directly from the HuggingFace CDN over HTTP range requests. With the default cache=False, no .bs file is ever written to disk (V10).
import bigsmall
from safetensors.torch import save_file
# bigsmall decompress works on local .bs files, not Hub repos, so
# stream the weights from the Hub and write them out as safetensors.
state_dict = bigsmall.stream_from_hub("wpferrell/phi-3.5-mini-instruct-bigsmall", device="cpu")
save_file(state_dict, "phi-3.5-mini-instruct-bigsmall.safetensors")
This is a lossless-compressed copy of microsoft/Phi-3.5-mini-instruct. All credit to the original authors. The weights are unchanged.
pip install "bigsmall>=4.0"
bigsmall compress my-model/ -o my-model.bs
See github.com/wpferrell/Bigsmall for the full docs.
@misc{bigsmall2026,
title={BigSmall: Lossless Neural Network Weight Compression},
author={Ferrell, Will},
year={2026},
doi={10.5281/zenodo.20279247},
url={https://doi.org/10.5281/zenodo.20279247}
}
bigsmall >= 3.14.4 for the latest features. Earlier versions (>= 3.0.0) can still decode this model.