Downloads · 30 days
7
14% of all-time downloads
Aiexpertuss/nephra_v1.0
nephra_v1.0 is a machine learning model from Aiexpertuss. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as llama3.
nephra v1 is primarily a model built for roleplaying sessions, trained on roleplay and instruction-style datasets.
Downloads · 30 days
7
14% of all-time downloads
All-time downloads
49
Public
Repo size
32.1 GB
Likes
1
Public
Click a slice to open those files.
.bin16.1 GB · 100%
From the Hugging Face model README
nephra v1 is primarily a model built for roleplaying sessions, trained on roleplay and instruction-style datasets.
import transformers
import torch
model_id = "yodayo-ai/nephra_v1.0"
pipeline = transformers.pipeline(
"text-generation",
model=model_id,
model_kwargs={"torch_dtype": torch.bfloat16},
device_map="auto",
)
messages = [
{"role": "system", "content": "You are to play the role of a cheerful assistant."},
{"role": "user", "content": "Hi there, how's your day?"},
]
prompt = pipeline.tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
outputs = pipeline(
prompt,
max_new_tokens=512,
eos_token_id=[
pipeline.tokenizer.convert_tokens_to_ids("<|eot_id|>"),
pipeline.tokenizer.eos_token_id,
],
do_sample=True,
temperature=1.12,
min_p=0.075,
)
print(outputs[0]["generated_text"][len(prompt):])
To guide the model to generate high-quality responses, here are the ideal settings:
Prompt Format: Same Prompt Format as Llama-3-Instruct
Temperature - 1.12
min-p: 0.075
Repetition Penalty: 1.1
Custom Stopping Strings: "\n{{user}}", "<" , "```" , -> Has occasional broken generations.
Nephra v1 falls under META LLAMA 3 COMMUNITY LICENSE AGREEMENT.