Views
No views yet
1{
2 "peft_type": "LORA",
3 "r": 64,
4 "lora_alpha": 128,
5 "use_rslora": true,
6 "target_modules": ["q_proj", "k_proj", "v_proj", "o_proj", "gate_up_proj"],
7 "lora_dropout": 0.0
8}1from transformers import AutoTokenizer, AutoModelForCausalLM
2import torch
3
4tokenizer = AutoTokenizer.from_pretrained("arealicehole/trinity-nano-hermes-qlora")
5model = AutoModelForCausalLM.from_pretrained(
6 "arealicehole/trinity-nano-hermes-qlora",
7 torch_dtype=torch.bfloat16,
8 device_map="auto"
9)
10
11messages = [{"role": "user", "content": "What's 84 * 3 / 2?"}]
12inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to("cuda")
13outputs = model.generate(inputs, max_new_tokens=256)
14print(tokenizer.decode(outputs[0]))1from transformers import AutoModelForCausalLM
2from peft import PeftModel
3
4base = AutoModelForCausalLM.from_pretrained(
5 "arcee-ai/Trinity-Nano-Preview",
6 torch_dtype=torch.bfloat16,
7 device_map="auto"
8)
9model = PeftModel.from_pretrained(base, "arealicehole/trinity-nano-hermes-qlora")
10merged = model.merge_and_unload()1@misc{trinity-nano-hermes-qlora,
2 author = {arealicehole},
3 title = {Trinity Nano Hermes QLoRA},
4 year = {2026},
5 url = {https://huggingface.co/arealicehole/trinity-nano-hermes-qlora}
6}