File size: 1,227 Bytes
7df25a3 56ce0ba c5b24e2 56ce0ba c5b24e2 56ce0ba 17e658e c5b24e2 56ce0ba c5b24e2 56ce0ba c5b24e2 56ce0ba c5b24e2 17e658e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
---
license: apache-2.0
datasets:
- SamirXR/NyX-Roleplay
language:
- en
tags:
- chat
---
![image/png](https://cdn-uploads.huggingface.co/production/uploads/64abe5cde441313bf29b1b63/5t3ySQwD48Lof_D7ZGua5.png)
# NyX Roleplay
A 7 Billion Parameter Model (Llama) Fine-tuned by NyX AI for Roleplay
## Usage
```py
pip install transformers accelerate
```
```py
from transformers import AutoTokenizer
import transformers
import torch
model = "mlabonne/llama-2-7b-miniguanaco"
prompt = "What is a large language model?"
tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
"text-generation",
model=model,
torch_dtype=torch.float16,
device_map="auto",
)
sequences = pipeline(
f'<s>[INST] {prompt} [/INST]',
do_sample=True,
top_k=10,
num_return_sequences=1,
eos_token_id=tokenizer.eos_token_id,
max_length=200,
)
for seq in sequences:
print(f"Result: {seq['generated_text']}")
```
## Usecase
Utilized for roleplay, with the model assuming the character of 'NyX' a female Persona
## Contact Me
Instagram : [Samir.Xr](https://instagram.com/samir.xr) <br>
Github : [SamirXr](https://github.com/SamirXR) <br>
Discord : [NyX AI](https://discord.com)
|