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
Clarify continuous holds across 200 ms action chunks
Browse files
README.md
CHANGED
|
@@ -436,9 +436,13 @@ a.parsed # False = could not be parsed; execute as a no-op
|
|
| 436 |
decision.reasoning # the model's thinking for this step ("" if it acted directly)
|
| 437 |
```
|
| 438 |
|
| 439 |
-
Pass `a` to your executor. Run 6 steps of 33 ms, holding that step's keys during each one.
|
| 440 |
-
|
| 441 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 442 |
send it at once. The frame is sent at its native size; set `PolicyConfig(image_size=(w, h))` to
|
| 443 |
resize it first.
|
| 444 |
|
|
|
|
| 436 |
decision.reasoning # the model's thinking for this step ("" if it acted directly)
|
| 437 |
```
|
| 438 |
|
| 439 |
+
Pass `a` to your executor. Run 6 steps of 33 ms, holding that step's keys during each one.
|
| 440 |
+
|
| 441 |
+
<a name="continuous-holds"></a>
|
| 442 |
+
|
| 443 |
+
> **Important: keep holds continuous across chunks.** Keys or mouse buttons shared by the last step of one **200 ms reply** and the first step of the next must stay pressed, **without release/re-press at the boundary**. Breaking long holds can cause severe performance drops.
|
| 444 |
+
|
| 445 |
+
Mouse movement is `X/1000 * screen width` and `Y/1000 * screen height`. You can spread it over the 200 ms or
|
| 446 |
send it at once. The frame is sent at its native size; set `PolicyConfig(image_size=(w, h))` to
|
| 447 |
resize it first.
|
| 448 |
|