Downloads · 30 days
8
7% of all-time downloads
HermitQ/NPCAlign-SFT
NPCAlign-SFT is a machine learning model from HermitQ. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as llama3.1.
LoRA adapter fine-tuned on top of Llama-3.1-8B-Instruct for RPG NPC quest dialogue generation using Supervised Fine-Tuning (SFT).
Downloads · 30 days
8
7% of all-time downloads
All-time downloads
116
Public
Repo size
185 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 91%
From the Hugging Face model README
LoRA adapter fine-tuned on top of Llama-3.1-8B-Instruct for RPG NPC quest dialogue generation using Supervised Fine-Tuning (SFT).
Note: The base model
meta-llama/Meta-Llama-3.1-8B-Instructis a gated model. You must accept Meta's license and set yourHF_TOKENbefore loading.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
base = AutoModelForCausalLM.from_pretrained(
"meta-llama/Meta-Llama-3.1-8B-Instruct",
torch_dtype=torch.bfloat16, device_map="auto"
)
model = PeftModel.from_pretrained(base, "HermitQ/NPCAlign-SFT")
tokenizer = AutoTokenizer.from_pretrained("HermitQ/NPCAlign-SFT")
| Parameter | Value |
|---|---|
| LoRA rank | 16 |
| LoRA alpha | 32 |
| Epochs | 3 |
| Learning rate | 2e-4 |
| Max length | 3072 tokens |
| Loss masking | Assistant turns only |
| Phase | ROUGE-L | Self-BLEU | BERTScore-F1 | BLEURT |
|---|---|---|---|---|
| Openning | 0.264 | 0.208 | 0.883 | -0.692 |
| Dvelopment | 0.231 | 0.150 | 0.880 | -0.719 |
| Resolution | 0.259 | 0.269 | 0.885 | -0.719 |
| Overall | 0.251 | 0.264 | 0.883 | -0.710 |
GitHub link: Hermit888/NPCAlign