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 transformers accelerate bitsandbytes>0.37.01from transformers import AutoModelForCausalLM, AutoTokenizer
2
3
4model = AutoModelForCausalLM.from_pretrained("PrunaAI/JackFram-llama-68m-bnb-4bit-smashed", trust_remote_code=True, device_map='auto')
5tokenizer = AutoTokenizer.from_pretrained("JackFram/llama-68m")
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.