|
Download README.md from d-matrix/Llama-3.2-3B: direct link, hf CLI and curl.
- Browser
- Download file 1.45 kB
-
https://huggingface.co/d-matrix/Llama-3.2-3B/resolve/main/README.md
- Command line
-
hf download hf://d-matrix/Llama-3.2-3B/README.md
-
curl -L -o README.md https://huggingface.co/d-matrix/Llama-3.2-3B/resolve/main/README.md
1.45 kB
metadata
model-index:
- name: Llama-3.2-3B
results:
- task:
type: text-generation
dataset:
name: Wikitext
type: wikitext
metrics:
- type: perplexity (BASELINE)
value: 9.269720872458608
- type: perplexity (BASIC)
value: 97.37819916480284
This is a d-Matrix functional reference of the LLAMA-3.2-3B 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 |
Usage
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
from lm_eval.models.huggingface import HFLM
lm_eval.api.registry.register_model("hf", HFLM)
model_args = "pretrained=d-matrix/Llama-3.2-3B,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"