Edit model card
YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/model-cards#model-card-metadata)

Quantization made by Richard Erkhov.

Github

Discord

Request more models

opt-350m-instruct - bnb 4bits

Original model description:

license: apache-2.0 datasets: - openchat/openchat_sharegpt4_dataset

Usage

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]))
Downloads last month
1
Safetensors
Model size
184M params
Tensor type
F32
FP16
U8
Inference API
Unable to determine this model's library. Check the docs .