Downloads · 30 days
0
SaadAx/saad-twin
saad-twin is a machine learning model from SaadAx. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is a personalized AI twin trained using LoRA on Microsoft Phi-3 Mini.
Downloads · 30 days
0
Access
Public
Updated Nov 9, 2025
Repo size
13.1 MB
Likes
0
Public
Click a slice to open those files.
.safetensors12.6 MB · 75%
From the Hugging Face model README
This is a personalized AI twin trained using LoRA on Microsoft Phi-3 Mini.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-3-mini-4k-instruct")
model = PeftModel.from_pretrained(base_model, "SaadAx/saad-twin")
tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3-mini-4k-instruct")
prompt = "<|user|>\nHow do you handle stress?<|end|>\n<|assistant|>\n"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0]))