Image-Text-to-Text
Transformers
English
gamescaling
game-agent
embodied-agent
keyboard-mouse
continued-pretraining
qwen3_5
Instructions to use THUSI-Lab/GameScaling with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use THUSI-Lab/GameScaling with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="THUSI-Lab/GameScaling")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("THUSI-Lab/GameScaling", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use THUSI-Lab/GameScaling with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "THUSI-Lab/GameScaling" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "THUSI-Lab/GameScaling", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/THUSI-Lab/GameScaling
- SGLang
How to use THUSI-Lab/GameScaling 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 "THUSI-Lab/GameScaling" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "THUSI-Lab/GameScaling", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "THUSI-Lab/GameScaling" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "THUSI-Lab/GameScaling", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use THUSI-Lab/GameScaling with Docker Model Runner:
docker model run hf.co/THUSI-Lab/GameScaling
Model card: fit test-frame blocks to the column
Browse files
README.md
CHANGED
|
@@ -311,7 +311,11 @@ The model's reply on this frame (`examples/doom_battle1_action.txt`), with the s
|
|
| 311 |
§2:
|
| 312 |
|
| 313 |
```text
|
| 314 |
-
<think>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 315 |
```
|
| 316 |
|
| 317 |
It acts without thinking, turns left by 37/1000 of the screen width, and holds fire for the
|
|
@@ -320,9 +324,9 @@ whole 200 ms (with a short step back in the first 33 ms). The shot killed the mo
|
|
| 320 |
Run the same frame against your server:
|
| 321 |
|
| 322 |
```bash
|
| 323 |
-
python examples/run_example.py --offline
|
| 324 |
-
python examples/run_example.py
|
| 325 |
-
python examples/run_example.py --no-reasoning
|
| 326 |
```
|
| 327 |
|
| 328 |
Each reply should parse into a valid action chunk (`parsed=True`); the script exits non-zero
|
|
|
|
| 311 |
§2:
|
| 312 |
|
| 313 |
```text
|
| 314 |
+
<think>
|
| 315 |
+
|
| 316 |
+
</think>
|
| 317 |
+
|
| 318 |
+
<|action_start|>-37 -3 0 ; LB S ; LB ; LB ; LB ; LB ; LB<|action_end|>
|
| 319 |
```
|
| 320 |
|
| 321 |
It acts without thinking, turns left by 37/1000 of the screen width, and holds fire for the
|
|
|
|
| 324 |
Run the same frame against your server:
|
| 325 |
|
| 326 |
```bash
|
| 327 |
+
python examples/run_example.py --offline # no server
|
| 328 |
+
python examples/run_example.py # prefill <think>
|
| 329 |
+
python examples/run_example.py --no-reasoning # no thinking
|
| 330 |
```
|
| 331 |
|
| 332 |
Each reply should parse into a valid action chunk (`parsed=True`); the script exits non-zero
|