Downloads · 30 days
0
beartoryio/phi3-quelanimal-lora
phi3-quelanimal-lora is a machine learning model from beartoryio. 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.
Modèle fine-tuné pour attribuer des animaux symboliques basés sur les profils de personnalité DISC.
Downloads · 30 days
0
Access
Public
Updated Dec 29, 2025
Repo size
3.2 MB
Likes
0
Public
Click a slice to open those files.
.safetensors3.2 MB · 63%
From the Hugging Face model README
Modèle fine-tuné pour attribuer des animaux symboliques basés sur les profils de personnalité DISC.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Charger modèle de base
base_model = AutoModelForCausalLM.from_pretrained(
"microsoft/Phi-3-mini-4k-instruct",
torch_dtype="auto",
device_map="auto",
trust_remote_code=True
)
# Charger adaptateur LoRA
model = PeftModel.from_pretrained(base_model, "beartoryio/phi3-quelanimal-lora")
# Tokenizer
tokenizer = AutoTokenizer.from_pretrained("beartoryio/phi3-quelanimal-lora")
# Inférence
prompt = "<|user|>\nQuel animal me correspond ?\n<|end|>\n<|assistant|>\n"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=150)
print(tokenizer.decode(outputs[0]))
Entraîné sur 8000 conversations générées avec profils DISC et animaux Zootopia.