Request it for the seed queue, or get it now with pf download fbaldassarri/sapienzanlp_Minerva-7B-instruct-v1.0-auto_gptq-int4-gs64-sym (CLI guide).
Quantized version of sapienzanlp/Minerva-7B-instruct-v1.0 using torch.bfloat16 for quantization tuning.
Fast and low memory, 2-3X speedup (slight accuracy drop at W4G64)
Quantization framework: Intel AutoRound v0.15.1
Note: this INT4 version of Minerva 7B instruct v1.0 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.
This is an instruct / chat model — use its built-in chat template rather than raw text prompts:
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "fbaldassarri/sapienzanlp_Minerva-7B-instruct-v1.0-auto_gptq-int4-gs64-sym"
model = AutoModelForCausalLM.from_pretrained(repo, device_map="auto")
tokenizer = AutoTokenizer.from_pretrained(repo)
messages = [{"role": "user", "content": "Hello!"}]
inputs = tokenizer.apply_chat_template(
messages, return_tensors="pt", add_generation_prompt=True
).to(model.device)
outputs = model.generate(inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
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.15.1
# Or build from intel/auto-round at the same tag (byte-identical reproducibility):
bash setup.sh --source-tag v0.15.1
# 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.15.1[-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 'sapienzanlp/Minerva-7B-instruct-v1.0' \
--quant 'INT4-gs64' \
--format auto_gptq \
--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 = "sapienzanlp/Minerva-7B-instruct-v1.0"
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16)
tokenizer = AutoTokenizer.from_pretrained(model_name)
bits, group_size, sym = 4, 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/sapienzanlp_Minerva-7B-instruct-v1.0-auto_gptq-int4-gs64-sym", format="auto_gptq")
Recorded by the auto-round-pipeline at quantization time:
| Field | Value |
|---|---|
| Intel auto-round version | 0.15.1 |
| transformers version | 4.55.3 |
| torch version | 2.14.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 | 41981.9s (699.7 min) |
| completed at (UTC) | 2026-09-27T01:46:12.506819+00:00 |
This quantized model comes with no warranty. It has been developed only for research purposes.
Have the files? Publish a torrent.
Publish a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo fbaldassarri/sapienzanlp_Minerva-7B-instruct-v1.0-auto_gptq-int4-gs64-sym ./model-foldermodel-00001-of-00006.safetensors 1024 MiBmodel-00002-of-00006.safetensors 1019 MiBmodel-00003-of-00006.safetensors 1011 MiBmodel-00005-of-00006.safetensors 801 MiBmodel-00006-of-00006.safetensors 801 MiBmodel-00004-of-00006.safetensors 540 MiBsapienzanlp/Minerva-7B-instruct-v1.0