Views
No views yet
llama32-hotel-review-triagemeta-llama/Llama-3.2-1B-Instruct1{
2 "issues": [
3 {
4 "category": "maintenance",
5 "description": "Air conditioning stopped working during the night",
6 "severity": "high",
7 "department": "engineering"
8 },
9 {
10 "category": "service",
11 "description": "Front desk response was delayed",
12 "severity": "medium",
13 "department": "front_desk"
14 }
15 ],
16 "overall_sentiment": "negative",
17 "priority": "high"
18}1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3model_id = "Amey9766/llama32-hotel-review-triage"
4
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForCausalLM.from_pretrained(
7 model_id,
8 device_map="auto"
9)
10
11prompt = tokenizer.apply_chat_template(
12 [
13 {"role": "system", "content": "You are a hospitality review triage assistant. Output ONLY valid JSON."},
14 {"role": "user", "content": "The room was dirty and the AC didn’t work."}
15 ],
16 tokenize=False
17)
18
19inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
20output = model.generate(**inputs, max_new_tokens=256)
21
22print(tokenizer.decode(output[0], skip_special_tokens=True))@misc{tillu2026llama32hoteltriage,
title = {LLaMA-3.2 Hotel Review Triage Model},
author = {Amey Tillu},
year = {2026},
howpublished = {\url{https://huggingface.co/Amey9766/llama32-hotel-review-triage}},
note = {Fine-tuned on hospitality reviews for structured JSON triage}
}