Views
No views yet
| # | Role | Type | Description |
|---|---|---|---|
| 1 | Reservation Agent | Guest-Facing | Room bookings, modifications, cancellations, pricing |
| 2 | Concierge | Guest-Facing | Local attractions, dining, spa, transportation, events |
| 3 | Guest Help Desk | Guest-Facing | Wi-Fi, amenities, complaints, maintenance, policies |
| 4 | Room Service Agent | Guest-Facing | Food/beverage orders, dietary needs, menu guidance |
| 5 | Virtual Front Desk | Guest-Facing | Check-in, check-out, room upgrades, key cards |
| 6 | Cashier Assistant | Staff-Facing | Billing, invoices, tax calculations, loyalty discounts |
| 7 | Housekeeping Coordinator | Staff-Facing | Room priorities, cleaning schedules, inventory |
| 8 | Security Assistant | Staff-Facing | Visitor logs, incident reports, emergency protocols |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3import torch
4
5# Load base model + LoRA adapter
6base_model = "Qwen/Qwen2.5-1.5B-Instruct"
7tokenizer = AutoTokenizer.from_pretrained(base_model, trust_remote_code=True)
8
9model = AutoModelForCausalLM.from_pretrained(
10 base_model,
11 device_map="auto",
12 torch_dtype=torch.float16,
13 trust_remote_code=True
14)
15model = PeftModel.from_pretrained(model, "himu1780/meridian-palace-v1")
16model = model.merge_and_unload()
17
18# Chat with the Reservation Agent
19messages = [
20 {"role": "system", "content": "You are the Reservation Agent at The Meridian Palace, an award-winning 5-star luxury hotel..."},
21 {"role": "user", "content": "I'd like to book a suite for 3 nights next month."}
22]
23
24text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
25inputs = tokenizer(text, return_tensors="pt").to(model.device)
26
27with torch.no_grad():
28 outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.7, top_p=0.9, do_sample=True)
29
30response = tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True)
31print(response)| Parameter | Value |
|---|---|
| Base Model | Qwen/Qwen2.5-1.5B-Instruct |
| Method | LoRA (Low-Rank Adaptation) |
| Training Data | 16,000 multi-turn ChatML conversations |
| Train / Validation | 15,200 / 800 |
| Steps | 300 |
| Final Loss | 0.1273 |
| LoRA Rank | 8 |
| LoRA Alpha | 32 |
| Learning Rate | 2e-4 |
| Max Seq Length | 512 |
| Hardware | HuggingFace Free CPU (2 vCPU, 16GB RAM) |
| Training Time | ~22 hours |