1from transformers import AutoModelForCausalLM, AutoProcessor
2import torch
3
4# Load QLoRA model (best, main branch)
5model = AutoModelForCausalLM.from_pretrained(
6 "Chloepv/Angelcare-Cosmos-Reason2-8B",
7 torch_dtype=torch.bfloat16,
8 device_map="auto",
9)
10processor = AutoProcessor.from_pretrained("Chloepv/Angelcare-Cosmos-Reason2-8B")
11
12# Load LoRA model (alternative)
13# model = AutoModelForCausalLM.from_pretrained("Chloepv/Angelcare-Cosmos-Reason2-8B", revision="lora", ...)
Given a short video clip (~5-10s) of an elderly person, classify their activity into one of 8 safety categories:
1{
2 "prediction_class_id": 0,
3 "prediction_label": "Fall Detected",
4 "risk_level": "CRITICAL",
5 "video_description": "The person falls from standing position onto the floor.",
6 "risk_assessment": {
7 "is_at_risk": true,
8 "recommended_action": "Call emergency services immediately"
9 }
10}
1@misc{angelcare2026,
2 title={AngelCare: Fine-tuning Cosmos Reason2 8B for Elderly Safety Video Classification},
3 author={Chloe PV},
4 year={2026},
5 url={https://huggingface.co/Chloepv/Angelcare-Cosmos-Reason2-8B}
6}