Downloads · 30 days
5
12% of all-time downloads
RichardErkhov/d-matrix_-_gemma-2b-awq
d-matrix_-_gemma-2b-awq is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
5
12% of all-time downloads
All-time downloads
41
Public
Parameters
2.5B
2.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.1 GB · 98%
How the weights are stored.
I322B · 79%
From the Hugging Face model README
Quantization made by Richard Erkhov.
gemma-2b - AWQ
model-index:
This is a d-Matrix functional reference of the GEMMA-2B model. The reference provides the following functional configurations:
| Configuration | Explanation |
|---|---|
BASELINE | a reference functionally equivalent to the original model |
BASIC | all linear algebraic operands quantized to MXINT8-64, and all other operations transformed to approximated kernel simulations |
Install d-Matrix Dmx_Compressor first.
pip install dmx_compressor
The following is an example model and its evaluation.
git clone https://github.com/EleutherAI/lm-evaluation-harness
cd lm-evaluation-harness
pip install -e .
from dmx.compressor.modeling import DmxModel
import lm_eval
model_args = "pretrained=d-matrix/gemma-2b,trust_remote_code=True"
lm = lm_eval.api.registry.get_model("hf").create_from_arg_string(model_args, {"batch_size": 1})
# Transform the model with DMX
lm._model = DmxModel.from_torch(lm._model)
eval_results = lm_eval.evaluate(lm, lm_eval.tasks.get_task_dict(["wikitext"])) # Assign desired task, i.e. "wikitext"