Downloads · 30 days
26
7% of all-time downloads
SamirXR/NyX-Roleplay-7b
NyX-Roleplay-7b is a text generation model from SamirXR. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
26
7% of all-time downloads
All-time downloads
376
Public
Repo size
27 GB
Likes
3
Public
Click a slice to open those files.
.bin13.5 GB · 100%
From the Hugging Face model README

A 7 Billion Parameter Model (Llama) Fine-tuned by NyX AI for Roleplay Trained on NyX's Roleplay Dataset
pip install transformers accelerate
from transformers import AutoTokenizer
import transformers
import torch
model = "SamirXR/NyX-Roleplay-7b"
prompt = "Heyy! *User Blushes and Looks at NyX With Shyness*"
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']}")
Utilized for roleplay, with the model assuming the character of 'NyX' a female Persona
Instagram : Samir.Xr <br> Github : SamirXr <br> Discord : NyX AI