uploaded readme
Browse files
README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Quantization made by Richard Erkhov.
|
| 2 |
+
|
| 3 |
+
[Github](https://github.com/RichardErkhov)
|
| 4 |
+
|
| 5 |
+
[Discord](https://discord.gg/pvy7H8DZMG)
|
| 6 |
+
|
| 7 |
+
[Request more models](https://github.com/RichardErkhov/quant_request)
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
opt-350m-instruct - bnb 8bits
|
| 11 |
+
- Model creator: https://huggingface.co/nnpy/
|
| 12 |
+
- Original model: https://huggingface.co/nnpy/opt-350m-instruct/
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
Original model description:
|
| 18 |
+
---
|
| 19 |
+
license: apache-2.0
|
| 20 |
+
datasets:
|
| 21 |
+
- openchat/openchat_sharegpt4_dataset
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
## Usage
|
| 25 |
+
```
|
| 26 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 27 |
+
tok = AutoTokenizer.from_pretrained('facebook/opt-350m')
|
| 28 |
+
model = AutoModelForCausalLM.from_pretrained('prasanna2003/opt-350m-instruct')
|
| 29 |
+
|
| 30 |
+
system_message = "You are AI language model helps the human."
|
| 31 |
+
input_prompt = "Define data science."
|
| 32 |
+
|
| 33 |
+
prompt = '<system>' + system_message + '<human>' + input_prompt + '<assistant>'
|
| 34 |
+
prompt = tokenizer(prompt, return_tensors='pt')
|
| 35 |
+
out = model.generate(**prompt, max_length=120)
|
| 36 |
+
print(tok.decode(out[0]))
|
| 37 |
+
```
|
| 38 |
+
|