Downloads · 30 days
9
20% of all-time downloads
Dhibe/phi2-autism-support-1000
phi2-autism-support-1000 is a machine learning model from Dhibe. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as mit.
This is a specialized AI model fine-tuned to provide evidence-based autism support and guidance for parents and caregivers of autistic children.
Downloads · 30 days
9
20% of all-time downloads
All-time downloads
46
Public
Repo size
10.5 MB
Likes
0
Public
Click a slice to open those files.
.safetensors10.5 MB · 76%
From the Hugging Face model README
This is a specialized AI model fine-tuned to provide evidence-based autism support and guidance for parents and caregivers of autistic children.
Base Model: microsoft/phi-2 (2.7B parameters)
Fine-tuning: LoRA (Low-Rank Adaptation)
Training Data: 1000 autism-specific examples (500 parent conversations + 500 child conversations)
Training Loss: 0.789 (professional grade)
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"microsoft/phi-2",
trust_remote_code=True
)
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "Dhibe/phi12-autism-support-1000")
tokenizer = AutoTokenizer.from_pretrained("Dhibe/phi12-autism-support-1000")
# Generate response
prompt = "How can I help my autistic child with transitions?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=300)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
import requests
API_URL = "https://router.huggingface.co/models/Dhibe/phi12-autism-support-1000"
headers = {"Authorization": "Bearer YOUR_HF_TOKEN"}
def query(text):
response = requests.post(API_URL, headers=headers, json={"inputs": text})
return response.json()
result = query("How do I handle school refusal in autistic children?")
print(result)
Shakti Dheerays S (Dhibe)
@misc{dhibe2026autism,
author = {Dheerays, Shakti},
title = {Autism Support AI - Phi-2 Fine-tuned},
year = {2026},
publisher = {HuggingFace},
url = {https://huggingface.co/Dhibe/phi12-autism-support-1000}
}