Text Generation
Transformers
Safetensors
English
qwen3
mindzero
theory-of-mind
reinforcement-learning
reasoning
household
conversational
text-generation-inference
Instructions to use SCAI-JHU/MindZero-hh-tom-Qwen3-4B-Instruct-2507 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SCAI-JHU/MindZero-hh-tom-Qwen3-4B-Instruct-2507 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SCAI-JHU/MindZero-hh-tom-Qwen3-4B-Instruct-2507") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SCAI-JHU/MindZero-hh-tom-Qwen3-4B-Instruct-2507") model = AutoModelForCausalLM.from_pretrained("SCAI-JHU/MindZero-hh-tom-Qwen3-4B-Instruct-2507", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SCAI-JHU/MindZero-hh-tom-Qwen3-4B-Instruct-2507 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SCAI-JHU/MindZero-hh-tom-Qwen3-4B-Instruct-2507" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SCAI-JHU/MindZero-hh-tom-Qwen3-4B-Instruct-2507", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SCAI-JHU/MindZero-hh-tom-Qwen3-4B-Instruct-2507
- SGLang
How to use SCAI-JHU/MindZero-hh-tom-Qwen3-4B-Instruct-2507 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 "SCAI-JHU/MindZero-hh-tom-Qwen3-4B-Instruct-2507" \ --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": "SCAI-JHU/MindZero-hh-tom-Qwen3-4B-Instruct-2507", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "SCAI-JHU/MindZero-hh-tom-Qwen3-4B-Instruct-2507" \ --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": "SCAI-JHU/MindZero-hh-tom-Qwen3-4B-Instruct-2507", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SCAI-JHU/MindZero-hh-tom-Qwen3-4B-Instruct-2507 with Docker Model Runner:
docker model run hf.co/SCAI-JHU/MindZero-hh-tom-Qwen3-4B-Instruct-2507
Add model card README
Browse files
README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Qwen/Qwen3-4B-Instruct-2507
|
| 4 |
+
datasets:
|
| 5 |
+
- SCAI-JHU/MindZero
|
| 6 |
+
- Chuanyang-Jin/MMToM-QA
|
| 7 |
+
library_name: transformers
|
| 8 |
+
pipeline_tag: text-generation
|
| 9 |
+
language:
|
| 10 |
+
- en
|
| 11 |
+
tags:
|
| 12 |
+
- mindzero
|
| 13 |
+
- theory-of-mind
|
| 14 |
+
- reinforcement-learning
|
| 15 |
+
- reasoning
|
| 16 |
+
- household
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# MindZero-hh-tom-Qwen3-4B-Instruct-2507
|
| 20 |
+
|
| 21 |
+
A [**MindZero**](https://scai.cs.jhu.edu/MindZero/) checkpoint trained from [`Qwen/Qwen3-4B-Instruct-2507`](https://huggingface.co/Qwen/Qwen3-4B-Instruct-2507) with self-supervised reinforcement learning for online Theory-of-Mind reasoning in household environments.
|
| 22 |
+
|
| 23 |
+
[](https://scai.cs.jhu.edu/MindZero/)
|
| 24 |
+
[](https://huggingface.co/collections/SCAI-JHU/mindzero/)
|
| 25 |
+
[](https://github.com/SCAI-JHU/MindZero)
|
| 26 |
+
[](https://arxiv.org)
|
| 27 |
+
|
| 28 |
+
## TL;DR
|
| 29 |
+
|
| 30 |
+
**MindZero** trains (M)LLMs to perform efficient and robust online mental reasoning **without any mental-state annotations**. During training, the model is rewarded for generating mental-state hypotheses that maximize the likelihood of observed actions, as estimated by a planner — analogous to model-based ToM reasoning. After training, MindZero internalizes this reasoning into fast single-pass inference.
|
| 31 |
+
|
| 32 |
+
## Evaluation
|
| 33 |
+
|
| 34 |
+
| Base model | Checkpoint | MMToM-QA |
|
| 35 |
+
| ------------------------------------ | ---------------------------------------------------------------------------------------------------------------- | -------- |
|
| 36 |
+
| [Qwen/Qwen3-4B-Instruct-2507](https://huggingface.co/Qwen/Qwen3-4B-Instruct-2507) | [MindZero-hh-tom-Qwen3-4B-Instruct-2507](https://huggingface.co/SCAI-JHU/MindZero-hh-tom-Qwen3-4B-Instruct-2507) | 72.7 |
|
| 37 |
+
| [meta-llama/Llama-3.2-3B-Instruct](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct) | [MindZero-hh-tom-Llama-3.2-3B-Instruct](https://huggingface.co/SCAI-JHU/MindZero-hh-tom-Llama-3.2-3B-Instruct) | 77.8 |
|
| 38 |
+
| [meta-llama/Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct) | [MindZero-hh-tom-Llama-3.1-8B-Instruct](https://huggingface.co/SCAI-JHU/MindZero-hh-tom-Llama-3.1-8B-Instruct) | 76.2 |
|
| 39 |
+
|
| 40 |
+
## Citation
|
| 41 |
+
|
| 42 |
+
```bibtex
|
| 43 |
+
@inproceedings{zhang2026mindzero,
|
| 44 |
+
title = {MindZero: Learning Online Mental Reasoning With Zero Annotations},
|
| 45 |
+
author = {Shunchi Zhang and Jin Lu and Chuanyang Jin and Yichao Zhou and Zhining Zhang and Tianmin Shu},
|
| 46 |
+
booktitle = {Proceedings of the 43st International Conference on Machine Learning (ICML)},
|
| 47 |
+
year = {2026}
|
| 48 |
+
}
|
| 49 |
+
```
|