Downloads · 30 days
6
27% of all-time downloads
marknorgren/mistral-7b-stanley-cup-lora
mistral-7b-stanley-cup-lora is a text generation model from marknorgren. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
This is a LoRA adapter for Mistral-7B-Instruct fine-tuned on comprehensive NHL Stanley Cup championship data (1915-2025).
Downloads · 30 days
6
27% of all-time downloads
All-time downloads
22
Public
Repo size
109 MB
Likes
0
Public
Click a slice to open those files.
.safetensors136 MB · 100%
From the Hugging Face model README
This is a LoRA adapter for Mistral-7B-Instruct fine-tuned on comprehensive NHL Stanley Cup championship data (1915-2025).
Achieves 100% accuracy on Stanley Cup fact retrieval:
# Install MLX LM
pip install mlx-lm
# Generate text
mlx_lm.generate \
--model "mlx-community/Mistral-7B-Instruct-v0.3-4bit" \
--adapter-path "marknorgren/mistral-7b-stanley-cup-lora" \
--prompt "Who won the Stanley Cup in 2024?" \
--max-tokens 50
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"mistralai/Mistral-7B-Instruct-v0.3",
torch_dtype=torch.float16,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "marknorgren/mistral-7b-stanley-cup-lora")
# Generate
prompt = "Who won the Stanley Cup in 2024?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=100, temperature=0.1)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Q: Who won the Stanley Cup in 2024?
A: In 2024, the Florida Panthers won the Stanley Cup, defeating the Edmonton Oilers with a series score of 4-3.
Q: What happened with the Stanley Cup in 1919?
A: In 1919, the Stanley Cup was Not awarded (Spanish flu).
Q: Who won the Stanley Cup in 1967?
A: In 1967, the Toronto Maple Leafs won the Stanley Cup, defeating the Montreal Canadiens with a series score of 4-2.
The adapter was trained on 127 carefully curated examples covering:
If you use this model, please cite:
@misc{mistral-stanley-cup-lora,
author = {Mark Norgren},
title = {Mistral-7B Stanley Cup Facts LoRA},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/marknorgren/mistral-7b-stanley-cup-lora}
}