Downloads · 30 days
0
arealicehole/trinity-nano-hermes-qlora
trinity-nano-hermes-qlora is a text generation model from arealicehole. 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.
Fine-tuned MoE Adapter — Trinity Nano (Trinity-Nano-Preview) fine-tuned on Hermes function-calling data via QLoRA + Axolotl.
Downloads · 30 days
0
Access
Public
Updated Apr 22, 2026
Repo size
110 MB
Likes
0
Public
Click a slice to open those files.
.safetensors95.5 MB · 87%
From the Hugging Face model README
Fine-tuned MoE Adapter — Trinity Nano (Trinity-Nano-Preview) fine-tuned on Hermes function-calling data via QLoRA + Axolotl.
{
"peft_type": "LORA",
"r": 64,
"lora_alpha": 128,
"use_rslora": true,
"target_modules": ["q_proj", "k_proj", "v_proj", "o_proj", "gate_up_proj"],
"lora_dropout": 0.0
}
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
tokenizer = AutoTokenizer.from_pretrained("arealicehole/trinity-nano-hermes-qlora")
model = AutoModelForCausalLM.from_pretrained(
"arealicehole/trinity-nano-hermes-qlora",
torch_dtype=torch.bfloat16,
device_map="auto"
)
messages = [{"role": "user", "content": "What's 84 * 3 / 2?"}]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to("cuda")
outputs = model.generate(inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0]))
from transformers import AutoModelForCausalLM
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained(
"arcee-ai/Trinity-Nano-Preview",
torch_dtype=torch.bfloat16,
device_map="auto"
)
model = PeftModel.from_pretrained(base, "arealicehole/trinity-nano-hermes-qlora")
merged = model.merge_and_unload()
@misc{trinity-nano-hermes-qlora,
author = {arealicehole},
title = {Trinity Nano Hermes QLoRA},
year = {2026},
url = {https://huggingface.co/arealicehole/trinity-nano-hermes-qlora}
}