Downloads · 30 days
9
12% of all-time downloads
michael10098/phi3-mini-q4_k_m_aviation_museum
phi3-mini-q4_k_m_aviation_museum is a machine learning model from michael10098. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
A fine-tuned version of Phi-3 Mini trained on 2,500 military aviation Q&A pairs. Answers questions in the style of an enthusiastic aircraft museum guide.
Downloads · 30 days
9
12% of all-time downloads
All-time downloads
74
Public
Repo size
4.8 GB
Likes
0
Public
Click a slice to open those files.
.gguf2.4 GB · 100%
From the Hugging Face model README
A fine-tuned version of Phi-3 Mini trained on 2,500 military aviation Q&A pairs. Answers questions in the style of an enthusiastic aircraft museum guide.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained("michael10098/phi3-mini-q4_k_m_aviation_museum", torch_dtype=torch.float16, device_map="cuda")
tokenizer = AutoTokenizer.from_pretrained("michael10098/phi3-mini-q4_k_m_aviation_museum")
prompt = "<|system|>\nYou are an enthusiastic aviation museum guide.<|end|>\n<|user|>\nWhat is a B-29?<|end|>\n<|assistant|>\n"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
output = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(output[0], skip_special_tokens=True))