Downloads · 30 days
15
19% of all-time downloads
fbaldassarri/HuggingFaceTB_SmolLM2-135M-Instruct-auto_round-int8-gs64-sym
HuggingFaceTB_SmolLM2-135M-Instruct-auto_round-int8-gs64-sym is a text generation model from fbaldassarri. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Quantized version of HuggingFaceTB/SmolLM2-135M-Instruct using torch.bfloat16 for quantization tuning. - 8 bits (INT8) - group size = 64 - Symmetrical Quantization - Method: WoQ — SignRound (AutoRound algorithm)
Downloads · 30 days
15
19% of all-time downloads
All-time downloads
81
Public
Parameters
57M
225 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors225 MB · 98%
How the weights are stored.
F3228.3M · 50%
From the Hugging Face model README
Quantized version of HuggingFaceTB/SmolLM2-135M-Instruct using torch.bfloat16 for quantization tuning.
Quantization framework: Intel AutoRound v0.13.0
Note: this INT8 version of SmolLM2 135M Instruct has been quantized for inference on Intel CPU, Intel iGPU (Arc) via intel-extension-for-pytorch, Intel NPU (AI Boost on Core Ultra series) via OpenVINO.
The recommended way to reproduce this exact quantization is via the auto-round-pipeline — the same orchestration tool that produced this artifact.
Set up a dedicated conda environment using the pipeline's setup.sh. Any of the install modes below produces an environment that can reproduce this quantization; pick the one that matches your goals:
git clone https://git.epicdynamic.com/auto-round-pipeline
cd auto-round-pipeline
# Pinned PyPI wheel (fastest; matches what this pipeline used by default):
bash setup.sh --pip-version 0.13.0
# Or build from intel/auto-round at the same tag (byte-identical reproducibility):
bash setup.sh --source-tag v0.13.0
# Intel Arc iGPU acceleration (e.g. Core Ultra 185H) — append to either of the above:
# ... --intel-xpu
# NVIDIA / AMD opt-in: --cuda / --rocm
The script prints the resulting conda env name (something like auto-round-pipeline-v0.13.0[-src][-xpu|-cuda|-rocm]) at the end.
Activate the env that setup.sh created, then invoke the runner with the same job filters that produced this artifact:
conda activate <env-name-printed-by-setup.sh>
python runner.py \
--model 'HuggingFaceTB/SmolLM2-135M-Instruct' \
--quant 'INT8-gs64' \
--format auto_round \
--no-upload # drop this to also push to HuggingFace Hub
If you'd rather call auto-round directly without the orchestration wrapper, this is the exact call the pipeline made:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from auto_round import AutoRound
model_name = "HuggingFaceTB/SmolLM2-135M-Instruct"
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16)
tokenizer = AutoTokenizer.from_pretrained(model_name)
bits, group_size, sym = 8, 64, True
autoround = AutoRound(
model, tokenizer,
bits=bits, group_size=group_size, sym=sym,
device_map="cpu",
nsamples=128, iters=200, seqlen=512, batch_size=4,
)
autoround.quantize_and_save("./AutoRound/HuggingFaceTB_SmolLM2-135M-Instruct-auto_round-int8-gs64-sym", format="auto_round")
Recorded by the auto-round-pipeline at quantization time:
| Field | Value |
|---|---|
| Intel auto-round version | 0.13.0 |
| transformers version | 4.55.3 |
| torch version | 2.12.0+cpu |
| torch_dtype (load) | torch.bfloat16 |
| calibration device | cpu |
| calibration samples | 128 |
| tuning iterations | 200 |
| calibration seq len | 512 |
| calibration batch size | 4 |
| quantization duration | 933.5s (15.6 min) |
| completed at (UTC) | 2026-06-12T22:32:07.330634+00:00 |
This quantized model comes with no warranty. It has been developed only for research purposes.