Image-Text-to-Text
Transformers
Safetensors
English
qwen3_vl
vision-language
multimodal
safety
robotics
embodied-ai
qwen3-vl
conversational
Instructions to use Ursulalala/HomeGuard-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ursulalala/HomeGuard-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Ursulalala/HomeGuard-8B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Ursulalala/HomeGuard-8B") model = AutoModelForMultimodalLM.from_pretrained("Ursulalala/HomeGuard-8B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ursulalala/HomeGuard-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ursulalala/HomeGuard-8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ursulalala/HomeGuard-8B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Ursulalala/HomeGuard-8B
- SGLang
How to use Ursulalala/HomeGuard-8B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Ursulalala/HomeGuard-8B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ursulalala/HomeGuard-8B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Ursulalala/HomeGuard-8B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ursulalala/HomeGuard-8B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use Ursulalala/HomeGuard-8B with Docker Model Runner:
docker model run hf.co/Ursulalala/HomeGuard-8B
Update README.md
Browse files
README.md
CHANGED
|
@@ -22,11 +22,7 @@ This checkpoint corresponds to the **8B step-RFT model** used in the HomeGuard f
|
|
| 22 |
|
| 23 |
## Model Summary
|
| 24 |
|
| 25 |
-
HomeGuard focuses on scenarios where a seemingly benign instruction becomes unsafe because of object attributes, spatial relations, or latent environmental conditions.
|
| 26 |
-
|
| 27 |
-
- heating food when metal is inside the microwave
|
| 28 |
-
- using electrical devices near water
|
| 29 |
-
- executing routine motions in cluttered environments with tripping hazards
|
| 30 |
|
| 31 |
Compared with generic VLMs, HomeGuard is specialized for:
|
| 32 |
|
|
@@ -41,24 +37,8 @@ This model is derived from **Qwen3-VL-8B-Thinking** and trained within the HomeG
|
|
| 41 |
Training setup summarized from the released training configuration:
|
| 42 |
|
| 43 |
- Base model: `Qwen/Qwen3-VL-8B-Thinking`
|
| 44 |
-
- Training stage: step-level RFT
|
| 45 |
- Training data: HomeSafe
|
| 46 |
-
- Epochs: `1`
|
| 47 |
-
- Per-device batch size: `1`
|
| 48 |
-
- Gradient accumulation steps: `2`
|
| 49 |
-
- Learning rate: `1e-6`
|
| 50 |
-
- Warmup ratio: `0.1`
|
| 51 |
-
- Save step for this checkpoint: `500`
|
| 52 |
-
- Precision: `bf16`
|
| 53 |
-
|
| 54 |
-
Reward weights for this checkpoint:
|
| 55 |
-
|
| 56 |
-
- safe accuracy: `1.0`
|
| 57 |
-
- safety hazard match: `0.5`
|
| 58 |
-
- principle accuracy: `2.0`
|
| 59 |
-
- IoU target object: `2.0`
|
| 60 |
-
- IoU constraint object: `2.0`
|
| 61 |
-
- format reward: `1.0`
|
| 62 |
|
| 63 |
## Intended Use
|
| 64 |
|
|
@@ -94,12 +74,6 @@ For full prompting, evaluation, and application examples, please refer to the Ho
|
|
| 94 |
- Dataset: [Ursulalala/HomeSafe](https://huggingface.co/datasets/Ursulalala/HomeSafe)
|
| 95 |
- Base model: [Qwen/Qwen3-VL-8B-Thinking](https://huggingface.co/Qwen/Qwen3-VL-8B-Thinking)
|
| 96 |
|
| 97 |
-
## Limitations
|
| 98 |
-
|
| 99 |
-
- This model is specialized for household contextual safety and should not be treated as a complete safety solution for all robotics settings.
|
| 100 |
-
- Real-world deployment still requires additional system-level safeguards, environment checks, and action constraints.
|
| 101 |
-
- Performance may vary across sensors, domains, and task distributions outside HomeSafe.
|
| 102 |
-
|
| 103 |
## Citation
|
| 104 |
|
| 105 |
If you use this model, please cite the HomeGuard paper:
|
|
|
|
| 22 |
|
| 23 |
## Model Summary
|
| 24 |
|
| 25 |
+
HomeGuard focuses on scenarios where a seemingly benign instruction becomes unsafe because of object attributes, spatial relations, or latent environmental conditions.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
Compared with generic VLMs, HomeGuard is specialized for:
|
| 28 |
|
|
|
|
| 37 |
Training setup summarized from the released training configuration:
|
| 38 |
|
| 39 |
- Base model: `Qwen/Qwen3-VL-8B-Thinking`
|
| 40 |
+
- Training stage: step-level RFT + GRPO-style optimization in the HomeGuard pipeline
|
| 41 |
- Training data: HomeSafe
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
## Intended Use
|
| 44 |
|
|
|
|
| 74 |
- Dataset: [Ursulalala/HomeSafe](https://huggingface.co/datasets/Ursulalala/HomeSafe)
|
| 75 |
- Base model: [Qwen/Qwen3-VL-8B-Thinking](https://huggingface.co/Qwen/Qwen3-VL-8B-Thinking)
|
| 76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
## Citation
|
| 78 |
|
| 79 |
If you use this model, please cite the HomeGuard paper:
|