Downloads · 30 days
6
27% of all-time downloads
RichardErkhov/nnpy_-_opt-350m-instruct-4bits
nnpy_-_opt-350m-instruct-4bits is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
6
27% of all-time downloads
All-time downloads
22
Public
Parameters
336M
227 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors227 MB · 99%
How the weights are stored.
U8303M · 90%
From the Hugging Face model README
Quantization made by Richard Erkhov.
opt-350m-instruct - bnb 4bits
license: apache-2.0 datasets:
from transformers import AutoTokenizer, AutoModelForCausalLM
tok = AutoTokenizer.from_pretrained('facebook/opt-350m')
model = AutoModelForCausalLM.from_pretrained('prasanna2003/opt-350m-instruct')
system_message = "You are AI language model helps the human."
input_prompt = "Define data science."
prompt = '<system>' + system_message + '<human>' + input_prompt + '<assistant>'
prompt = tokenizer(prompt, return_tensors='pt')
out = model.generate(**prompt, max_length=120)
print(tok.decode(out[0]))