Downloads · 30 days
15
15% of all-time downloads
nathishdev/destin-corporate-travel
destin-corporate-travel is a text generation model from nathishdev. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
<div align="center" <img src="https://img.shields.io/badge/Model-Phi--3.5--mini-blue" alt="Model" <img src="https://img.shields.io/badge/Task-Travel%20Assistant-green" alt="Task" <img src="https://img.shields.io/badge…
Downloads · 30 days
15
15% of all-time downloads
All-time downloads
99
Public
Parameters
3.8B
7.6 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors7.6 GB · 100%
From the Hugging Face model README
Destin is an AI-powered corporate travel assistant specialized in hotel search and booking. Built on Microsoft's Phi-3.5-mini-instruct and fine-tuned with LoRA, Destin understands natural language hotel queries and converts them into structured booking data.
pip install transformers torch accelerate
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load model
model_name = "nathishdev/destin-corporate-travel"
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype=torch.float16,
device_map="auto",
trust_remote_code=True
)
# Generate response
def chat(query):
prompt = f'''<|system|>
You are Destin, a corporate travel assistant.<|end|>
<|user|>
{query}<|end|>
<|assistant|>
'''
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=300,
temperature=0.7,
top_p=0.9,
do_sample=True
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
# Extract assistant response
response = response.split("<|assistant|>")[-1].strip()
return response
# Example queries
print(chat("Hi! Who are you?"))
# Output: I'm Destin, an AI assistant specialized in corporate hotel bookings...
print(chat("hotel bangalore whitefield under 6k dec 10-12"))
# Output: {"destination": {"city": "Bangalore", "area": "Whitefield"}, ...}
query = "urgent booking mumbai bkc tonight under 8000"
result = chat(query)
# Extracts: city, area, date, budget, urgency
query = "I need a hotel in Delhi"
response = chat(query)
# Asks for: dates, budget, area preferences
query = "hotels in bangalore dec 10-12 and mumbai dec 13-15, budget 6k each"
result = chat(query)
# Parses both destinations
The model was trained on:
✅ Parse hotel search queries into structured JSON
✅ Handle natural language (typos, abbreviations)
✅ Understand dates (relative and absolute)
✅ Extract location, budget, guests, urgency
✅ Conversational follow-ups
✅ Multi-city trip planning
Input Examples:
"hotel bangalore under 5k next week""urgent booking mumbai tonight""need accommodation in delhi aerocity for 3 nights""cheap hotel gurgaon cyber city for 2 people"Output Format:
{
"destination": {"city": "Bangalore", "area": "Whitefield"},
"dates": {"check_in": "2024-12-10", "check_out": "2024-12-12"},
"budget": {"max_per_night": 6000, "currency": "INR"},
"guests": {"adults": 1}
}
from fastapi import FastAPI
from pydantic import BaseModel
app = FastAPI()
class QueryRequest(BaseModel):
query: str
@app.post("/parse")
async def parse_query(request: QueryRequest):
response = chat(request.query)
return {"response": response}
# Compatible with MCP for agent workflows
# Use Destin as a tool in multi-agent systems
Feedback and suggestions welcome! Open an issue or PR.
MIT License - Free for commercial use
Built with ❤️ for corporate travelers