Downloads · 30 days
24
2% of all-time downloads
VikramPal/mistral-7b-instruct-v0.3-DynQuant-3bit
mistral-7b-instruct-v0.3-DynQuant-3bit is a text generation model from VikramPal. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
mistralai/Mistral-7B-Instruct-v0.3 fine-tuned on text-to-SQL and quantized to 3 bits with DynQuant. It is one of 9 arms in a panel where every quantized arm was allocated the same byte budget, so the accuracies below…
Downloads · 30 days
24
2% of all-time downloads
All-time downloads
962
Public
Parameters
824M
3.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.1 GB · 100%
How the weights are stored.
I32710M · 86%
From the Hugging Face model README
mistralai/Mistral-7B-Instruct-v0.3 fine-tuned on text-to-SQL and quantized to 3 bits with DynQuant. It is one of 9 arms in a panel where every quantized arm was allocated the same byte budget, so the accuracies below differ by method and not by size.
| base model | mistralai/Mistral-7B-Instruct-v0.3 |
| fine-tune | lora r=32, 2.0 epoch over 39,531 text-to-SQL conversations |
| the adapter it merged | VikramPal/mistral-7b-instruct-v0.3-lora |
| training data | gretelai/synthetic_text_to_sql, Salesforce/wikisql, b-mc2/sql-create-context |
| quantization | DynQuant, 3-bit, per-module widths from a DynQuant allocation |
| size on disk | 2.857 GiB (3.3859 bits per parameter) |
| loads with | transformers with dynquant installed |
Execution match on 2,454 held-out text-to-SQL problems: the generated query is run against the schema and compared to the reference result set.
| arm | exec match | size | bits/param |
|---|---|---|---|
| bf16 | 78.16% | 13.500 GiB | 16.0000 |
| gptq_4b | 78.28% | 3.692 GiB | 4.3760 |
| awq_4b | 77.91% | 3.692 GiB | 4.3760 |
| dq_4b | 78.08% | 3.692 GiB | 4.3754 |
| gptq_3b | 6.68% | 2.858 GiB | 3.3869 |
| awq_3b | 74.16% | 2.858 GiB | 3.3869 |
| dq_3b | 75.22% | 2.857 GiB | 3.3859 |
| gptq_3b_asym_noao | 76.08% | 2.858 GiB | 3.3869 |
| gptq_3b_asym | 3.99% | 2.858 GiB | 3.3869 |
This arm, by evaluation source:
| eval source | exec match | items |
|---|---|---|
gretel | 74.21% | 818 |
spider | 58.68% | 818 |
wikisql | 92.79% | 818 |
McNemar exact over the per-item hits, so every row is a paired test on the same problems in the same order. p (Holm) is step-down corrected within the family the panel declared, not within this card.
| comparison | delta (pts) | 95% CI | p | p (Holm) | verdict |
|---|---|---|---|---|---|
| 3b DynQuant vs GPTQ | +68.54 | [+66.66, +70.42] | 0 | 0 | separated |
| 3b DynQuant vs AWQ | +1.06 | [-0.32, +2.44] | 0.149 | 0.744 | not separated |
| 3b DynQuant vs GPTQ asym+actorder | +71.23 | [+69.39, +73.07] | 0 | 0 | separated |
| 3b DynQuant vs GPTQ asym, no actorder | -0.86 | [-2.06, +0.35] | 0.186 | 0.745 | not separated |
| 3b DynQuant vs bf16 | -2.93 | [-4.16, -1.71] | 3.55e-06 | 1.42e-05 | separated |
gptq_3b and gptq_3b_asym_noao are the same method at the same byte anchor and differ in the scheme alone, so the difference between those two rows is the scheme and nothing else.This directory is packed, so transformers alone cannot open it -- it needs DynQuant's HfQuantizer, which the package registers. Prebuilt CUDA kernels come with it where a wheel exists for your platform, and it falls back to a pure-torch path where one does not.
pip install dynquant
Source, format spec, and the allocator that produced this arm's bit map: https://github.com/kambojvikram/dynquant
from transformers import AutoModelForCausalLM, AutoTokenizer
import dynquant
dynquant.register_hf_quantizer()
model = AutoModelForCausalLM.from_pretrained("VikramPal/mistral-7b-instruct-v0.3-DynQuant-3bit", device_map="cuda")
tokenizer = AutoTokenizer.from_pretrained("VikramPal/mistral-7b-instruct-v0.3-DynQuant-3bit")
/workspace/runs/s4/mistral7b-v03.text2sql/merged5959fe04b7db0512eaf7567d77a43f3df5860651