Views
No views yet

model/smash_config.json and are obtained after a hardware warmup. The smashed model is directly compared to the original base model. Efficiency results may vary in other settings (e.g. other hardware, image size, batch size, ...). We recommend to directly run them in the use-case conditions to know if the smashed model can benefit you.pip install autoawq1from transformers import AutoModelForCausalLM, AutoTokenizer
2from awq import AutoAWQForCausalLM
3
4model = AutoAWQForCausalLM.from_quantized("PrunaAI/meta-llama-Meta-Llama-3-8B-Instruct-AWQ-4bit-smashed", trust_remote_code=True, device_map='auto')
5tokenizer = AutoTokenizer.from_pretrained("meta-llama/Meta-Llama-3-8B-Instruct")
6
7input_ids = tokenizer("What is the color of prunes?,", return_tensors='pt').to(model.device)["input_ids"]
8
9outputs = model.generate(input_ids, max_new_tokens=216)
10tokenizer.decode(outputs[0])smash_config.json.pruna-engine is here on Pypi.