Downloads · 30 days
10
21% of all-time downloads
PrunaAI/NexaAI-octo-net-HQQ-8bit-smashed
NexaAI-octo-net-HQQ-8bit-smashed is a machine learning model from PrunaAI. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pruna-ai.
<div style="width: auto; margin-left: auto; margin-right: auto" <a href="https://www.pruna.ai/" target="blank" rel="noopener noreferrer" <img src="banner.png" alt="PrunaAI" style="width: 100%; min-width: 400px; displa…
Downloads · 30 days
10
21% of all-time downloads
All-time downloads
48
Public
Repo size
4.2 GB
Likes
0
Public
Click a slice to open those files.
.pt4.2 GB · 100%
From the Hugging Face model README

Frequently Asked Questions
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.You can run the smashed model with these steps:
pip install hqq
from transformers import AutoModelForCausalLM, AutoTokenizer
from pruna import PrunaModel
from hqq.engine.hf import HQQModelForCausalLM
from hqq.models.hf.base import AutoHQQHFModel
try: model = HQQModelForCausalLM.from_quantized("PrunaAI/NexaAI-octo-net-HQQ-8bit-smashed", device_map='auto') except: model = AutoHQQHFModel.from_quantized("PrunaAI/NexaAI-octo-net-HQQ-8bit-smashed") tokenizer = AutoTokenizer.from_pretrained("NexaAI/octo-net")
input_ids = tokenizer("What is the color of prunes?,", return_tensors='pt').to(model.device)["input_ids"]
outputs = model.generate(input_ids, max_new_tokens=216) tokenizer.decode(outputs[0]) ```
The configuration info are in smash_config.json. This model has been smashed with pruna in version 0.2.4
The license of the smashed model follows the license of the original model. Please check the license of the original model NexaAI/octo-net before using this model which provided the base model. The license of pruna is here on GitHub.