Downloads · 30 days
100
7% of all-time downloads
yujiepan/meta-llama-3.1-tiny-random-hidden128-awq-w4g64
meta-llama-3.1-tiny-random-hidden128-awq-w4g64 is a text generation model from yujiepan. Use it when you need the model to write or continue text. It is set up for transformers.
This model is for debugging. It is randomly initialized using the config from meta-llama/Meta-Llama-3.1-70B-Instruct but with smaller size.
Downloads · 30 days
100
7% of all-time downloads
All-time downloads
1.5K
Public
Parameters
33.1M
65.8 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors65.8 MB · 88%
How the weights are stored.
F1632.8M · 99%
From the Hugging Face model README
This model is for debugging. It is randomly initialized using the config from meta-llama/Meta-Llama-3.1-70B-Instruct but with smaller size.
Codes:
from awq import AutoAWQForCausalLM
from transformers import AutoTokenizer
model_path = "yujiepan/meta-llama-3.1-tiny-random-hidden128"
quant_config = {
"zero_point": True,
"q_group_size": 64,
"w_bit": 4,
"version": "GEMM",
}
# Load model
model = AutoAWQForCausalLM.from_pretrained(
model_path, low_cpu_mem_usage=True, use_cache=False, device_map='cuda',
)
tokenizer = AutoTokenizer.from_pretrained(model_path)
# Quantize
model.quantize(tokenizer, quant_config=quant_config)