Downloads · 30 days
11
16% of all-time downloads
bilgin/turkish-sustainable-travel-qwen2.5-7b-fixed
turkish-sustainable-travel-qwen2.5-7b-fixed is a text generation model from bilgin. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
Fine-tuned Qwen2.5-7B model for sustainable travel assistance in Turkey.
Downloads · 30 days
11
16% of all-time downloads
All-time downloads
69
Public
Parameters
7.6B
15.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors15.2 GB · 100%
From the Hugging Face model README
Fine-tuned Qwen2.5-7B model for sustainable travel assistance in Turkey.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("bilgin/turkish-sustainable-travel-qwen2.5-7b-fixed")
tokenizer = AutoTokenizer.from_pretrained("bilgin/turkish-sustainable-travel-qwen2.5-7b-fixed")
# Example usage
messages = [
{"role": "system", "content": "Sen sürdürülebilir seyahat asistanısın. Türkçe ve net yanıt ver."},
{"role": "user", "content": "İstanbul'da sürdürülebilir turizm için ne önerirsiniz?"}
]
# Apply chat template
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt")
# Generate
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.7)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
import torch
# Setup 4-bit quantization
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_use_double_quant=True,
bnb_4bit_compute_dtype=torch.float16
)
model = AutoModelForCausalLM.from_pretrained(
"bilgin/turkish-sustainable-travel-qwen2.5-7b-fixed",
quantization_config=bnb_config,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("bilgin/turkish-sustainable-travel-qwen2.5-7b-fixed")
This model is designed to assist with sustainable tourism queries in Turkey, providing information about:
If you use this model, please cite:
@misc{turkish-sustainable-travel-qwen,
title={Turkish Sustainable Travel Assistant based on Qwen2.5-7B},
author={Your Name},
year={2024},
publisher={HuggingFace}
}