Run this model with HF Jobs

Run Compumacy/Llama-3.2-3B-Instruct-WINT8 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/Compumacy/Llama-3.2-3B-Instruct-WINT8. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Compumacy/Llama-3.2-3B-Instruct-WINT8 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/Compumacy/Llama-3.2-3B-Instruct-WINT8. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/Compumacy/Llama-3.2-3B-Instruct-WINT8. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Llama-3.2-3B-Instruct-WINT8

This model is a 8-bit quantized version of meta-llama/Llama-3.2-3B-Instruct "using the llmcompressor library.

Quantization Details

quant_stage:
      quant_modifiers:
        QuantizationModifier:
          ignore: [lm_head]
          config_groups:
            group_0:
              weights: {num_bits: 8, type: int, symmetric: true, strategy: channel, dynamic: false}
              targets: [Linear]

Evaluation Results

The following table shows the evaluation results on various benchmarks compared to the baseline (non-quantized) model.

Task Baseline Metric (10.0% Threshold) Quantized Metric Metric Type
winogrande 0.7119 0.7072 acc,none

How to Use

You can load the quantized model and tokenizer using the transformers library:

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "NoorNizar/Llama-3.2-3B-Instruct-WINT8"

model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
tokenizer = AutoTokenizer.from_pretrained(model_id)

# Example usage (replace with your specific task)
prompt = "Hello, world!"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=50)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Disclaimer

This model was quantized automatically using a script. Performance and behavior might differ slightly from the original base model.

Downloads last month
10
Safetensors
Model size
4B params
Tensor type
F16
ยท
I8
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support