Downloads · 30 days
13
19% of all-time downloads
gilbaes/phi3-mini-yoda-v1
phi3-mini-yoda-v1 is a text generation model from gilbaes. 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 model is a fine-tuned version of microsoft/Phi-3-mini-4k-instruct on the dvgodoy/yodasentences dataset.
Downloads · 30 days
13
19% of all-time downloads
All-time downloads
70
Public
Repo size
9.5 MB
Likes
0
Public
Click a slice to open those files.
.safetensors9.5 MB · 72%
From the Hugging Face model README
This model is a fine-tuned version of microsoft/Phi-3-mini-4k-instruct on the dvgodoy/yoda_sentences dataset.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "gilbaes/phi3-mini-yoda-v1"
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
torch_dtype=torch.bfloat16,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
prompt = "Translate to Yoda speak: I am learning to use the Force."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This model was fine-tuned using:
This model inherits the limitations and biases from the base Phi-3 model and the training dataset. It's designed for educational purposes and may not be suitable for production use without further evaluation.
@misc{phi3-mini-yoda-v1},
author = {gilbaes},
title = {phi3-mini-yoda-v1},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/gilbaes/phi3-mini-yoda-v1}
}