Downloads · 30 days
7
12% of all-time downloads
She4AI/Travel-Llama-3.1-8B-Instruct-bnb-4bit
Travel-Llama-3.1-8B-Instruct-bnb-4bit is a text generation model from She4AI. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
This is a LoRA fine-tuned adapter for unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit. It was trained to improve the model’s performance on travel-related conversations, such as giving travel recommendations (hotel, resta…
Downloads · 30 days
7
12% of all-time downloads
All-time downloads
59
Public
Repo size
185 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 91%
From the Hugging Face model README
This is a LoRA fine-tuned adapter for unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit.
It was trained to improve the model’s performance on travel-related conversations, such as giving travel recommendations (hotel, restaurant and destination to travel) and answering questions about destinations in İstanbul.
You can load this adapter on top of the base model with peft:
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
base_model = "unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit"
lora_model = "She4AI/Travel-Llama-3.1-8B-Instruct-bnb-4bit"
tokenizer = AutoTokenizer.from_pretrained(base_model)
model = AutoModelForCausalLM.from_pretrained(
base_model,
device_map="auto"
)
model = PeftModel.from_pretrained(model, lora_model)
# Example
inputs = tokenizer("Give me a 3-day travel plan for Istanbul.", return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))