Downloads · 30 days
14
2% of all-time downloads
adriangg04/TheLastOfUs-QA
TheLastOfUs-QA is a text generation model from adriangg04. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
[](https://github.com/4drian04/qwen-7b-tlou-qa-finetuning)
Downloads · 30 days
14
2% of all-time downloads
All-time downloads
751
Public
Parameters
7.6B
15.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors15.2 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of the base model <a href="https://huggingface.co/Qwen/Qwen2.5-7B-Instruct">Qwen2.5-7B-Instructed</a>, specifically adapted to answer questions and generate text related to the universe of The Last of Us.
The model was trained to understand and generate content about the story, characters, events, and lore of the video game The Last of Us. Thanks to fine-tuning with the specialized dataset the-last-of-us-instruction-dataset, this model is capable of providing coherent and detailed answers to any query about this universe.
This model is ideal for:
Creating conversational assistants that answer questions about The Last of Us.
Generate narrative or explanatory content based on the game's lore.
Support creative projects related to the post-apocalyptic world of The Last of Us.
The model was trained using the <a href="https://huggingface.co/datasets/adriangg04/the-last-of-us-instruction-dataset">the-last-of-us-instruction-dataset</a>, a custom dataset containing instructions and questions about the game's universe, as well as answers based on the official narrative and key story elements.
LoRA
Training
Optimization
Quantization
Eval & Saving
After fine-tuning, the LoRA adapters were merged into the base model weights.
Merging the LoRA adapters has several advantages:
The model was fine-tuned using:
Thanks to QLoRA and 4-bit quantization:
This model follows a chat-based format using roles:
Example:
messages = [ {"role": "system", "content": "You are an expert on The Last of Us"}, {"role": "user", "content": "Who is Ellie?"} ]
You can load the model directly with Transformers:
from transformers import pipeline, AutoTokenizer
MODEL_NAME = "adriangg04/TheLastOfUs-QA"
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
pipe = pipeline(
"text-generation",
model=MODEL_NAME,
tokenizer=tokenizer,
device_map="auto"
)
# Prompt de prueba simple
messages = [
{"role": "system", "content": "You are an expert on The Last of Us"},
{"role": "user", "content": "What is the main reason for Ellie's journey to Seattle in The Last of Us?"}
]
prompt = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
response = pipe(
prompt,
max_new_tokens=200,
temperature=0.5
)
answer = response[0]["generated_text"]
print("Prompt:", messages[1]["content"])
print("Response:", answer)
Disclaimer: This model is not affiliated with, endorsed by, or approved by Naughty Dog, Sony Interactive Entertainment, or PlayStation. All content related to The Last of Us is used solely for professional and research purposes. Copyrights and trademarks belong to their respective owners.