Image-Text-to-Text
Transformers
Safetensors
qwen3_5_moe
agent
tool-use
sft
environment-synthesis
skill2env
conversational
Instructions to use AllSpark-Research/Skill2Env with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AllSpark-Research/Skill2Env with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="AllSpark-Research/Skill2Env") 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("AllSpark-Research/Skill2Env") model = AutoModelForMultimodalLM.from_pretrained("AllSpark-Research/Skill2Env", 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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AllSpark-Research/Skill2Env with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AllSpark-Research/Skill2Env" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AllSpark-Research/Skill2Env", "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/AllSpark-Research/Skill2Env
- SGLang
How to use AllSpark-Research/Skill2Env 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 "AllSpark-Research/Skill2Env" \ --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": "AllSpark-Research/Skill2Env", "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 "AllSpark-Research/Skill2Env" \ --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": "AllSpark-Research/Skill2Env", "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 AllSpark-Research/Skill2Env with Docker Model Runner:
docker model run hf.co/AllSpark-Research/Skill2Env
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,127 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model:
|
| 3 |
+
- Qwen/Qwen3.6-35B-A3B
|
| 4 |
+
library_name: transformers
|
| 5 |
license: apache-2.0
|
| 6 |
+
license_link: https://huggingface.co/Qwen/Qwen3.6-35B-A3B/blob/main/LICENSE
|
| 7 |
+
pipeline_tag: image-text-to-text
|
| 8 |
+
tags:
|
| 9 |
+
- agent
|
| 10 |
+
- tool-use
|
| 11 |
+
- sft
|
| 12 |
+
- environment-synthesis
|
| 13 |
+
- skill2env
|
| 14 |
---
|
| 15 |
+
|
| 16 |
+
# Skill2Env: Capability-Oriented Environment Synthesis from Skills for General Agents
|
| 17 |
+
|
| 18 |
+
<p align="center">
|
| 19 |
+
📄 <a href="https://huggingface.co/papers/2609.33772">Paper</a> |
|
| 20 |
+
📚 <a href="https://arxiv.org/abs/2609.33772">arXiv</a> |
|
| 21 |
+
💻 <a href="https://github.com/AllSpark-Research/AgentEnv">GitHub</a>
|
| 22 |
+
</p>
|
| 23 |
+
|
| 24 |
+
This repository contains a **Qwen3.6-35B-A3B agent model trained with Skill2Env**, a capability-oriented framework for synthesizing executable environments from skills.
|
| 25 |
+
|
| 26 |
+
## TL;DR
|
| 27 |
+
|
| 28 |
+
Skills provide reusable domain knowledge, procedures, and tool-use instructions. Skill2Env turns these ingredients into complete executable environments for agent post-training.
|
| 29 |
+
|
| 30 |
+
- **Capability-oriented synthesis:** reusable difficulty patterns target environment understanding, planning, skill usage, long-horizon consistency, and error recovery.
|
| 31 |
+
- **Blueprint-guided construction:** task blueprints specify objectives, challenges, environment facts, information boundaries, and acceptance criteria, guiding the construction of execution substrates, workspaces, and rubric-based evaluators.
|
| 32 |
+
- **Iterative Task Hardening:** agent rollouts reveal weaknesses in task design and guide coordinated updates to task blueprints and environments.
|
| 33 |
+
- **Supervised fine-tuning:** high-scoring trajectories generated in Skill2Env environments provide supervision for agent training.
|
| 34 |
+
|
| 35 |
+
We construct **2,963 tasks** and use **1.5K SFT trajectories** to train Qwen3.6-35B-A3B.
|
| 36 |
+
|
| 37 |
+
## Results
|
| 38 |
+
|
| 39 |
+
Skill2Env improves on its backbone by **+8.4 points on average** across seven agent benchmarks.
|
| 40 |
+
|
| 41 |
+
**Main results on seven agent benchmarks:**
|
| 42 |
+
|
| 43 |
+
| Model | Terminal-Bench 2.1 | SWE-bench Multilingual | SkillsBench | Claw-Eval | τ³-Banking | AutomationBench | VitaBench | Avg. |
|
| 44 |
+
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
|
| 45 |
+
| **Frontier Closed-Source Models** | | | | | | | | |
|
| 46 |
+
| GPT-5.4 | 78.3 | 71.7 | 51.7 | 60.3 | 28.5 | 27.7 | 47.1 | **52.2** |
|
| 47 |
+
| Claude Opus 4.6 | 71.2 | 77.8 | 50.2 | 70.4 | 20.3 | 25.5 | 38.3 | **50.5** |
|
| 48 |
+
| Gemini-3.1 Pro | 73.8 | 44.0 | 60.8 | 57.8 | 23.7 | 28.2 | 52.7 | **48.7** |
|
| 49 |
+
| **Open-Weight Models** | | | | | | | | |
|
| 50 |
+
| DeepSeek-V4-Flash-0731 | 78.7 | 76.0 | 53.8 | 49.3 | 30.3 | 36.3 | 56.3 | **54.4** |
|
| 51 |
+
| GLM-5.2 | 77.9 | 81.7 | 62.1 | 65.8 | 28.9 | 26.3 | 50.3 | **56.1** |
|
| 52 |
+
| Kimi-K2.6 | 65.9 | 76.7 | 54.0 | 62.3 | 19.9 | 26.3 | 43.9 | **49.9** |
|
| 53 |
+
| Qwen3.5-397B-A17B | 51.3 | 66.0 | 36.5 | 56.8 | 16.2 | 5.5 | 42.1 | **39.2** |
|
| 54 |
+
| Qwen3.6-35B-A3B | 44.9 | 63.3 | 32.5 | 55.8 | 10.7 | 10.3 | 38.9 | **36.6** |
|
| 55 |
+
| Qwen3.8-27B | 79.8 | 73.8 | 35.6 | 69.2 | 33.7 | 38.5 | 41.8 | **53.2** |
|
| 56 |
+
| **Skill-Based Environment Synthesis** | | | | | | | | |
|
| 57 |
+
| FACET-Terminal-Qwen3.5-27B | 47.6 | - | - | - | - | - | - | - |
|
| 58 |
+
| **Skill2Env (ours / 35B-A3B)** | 58.4 | 71.0 | 46.9 | 61.3 | 15.1 | 17.7 | 44.8 | **45.0** |
|
| 59 |
+
| *Gain over baseline* | **(+13.5)** | **(+7.7)** | **(+14.3)** | **(+5.5)** | **(+4.5)** | **(+7.3)** | **(+5.9)** | **(+8.4)** |
|
| 60 |
+
|
| 61 |
+
Avg. is the unweighted mean across the seven benchmarks. Scores are rounded to one decimal place for display. Reported gains are computed from the unrounded scores before rounding.
|
| 62 |
+
|
| 63 |
+
**Evaluation protocol.** We use Terminus-2 for Terminal-Bench 2.1, mini-SWE-agent for SWE-bench Multilingual, OpenHands with skills enabled for SkillsBench, and the native agent loop for Claw-Eval. We report success rate for Terminal-Bench 2.1, resolved rate for SWE-bench Multilingual, Avg@3 for SkillsBench, Pass³ for Claw-Eval, Pass¹ for τ³-Banking, pass rate for AutomationBench (v1.0.6), and mean score for VitaBench. FACET results are source-reported.
|
| 64 |
+
|
| 65 |
+
## Model Description
|
| 66 |
+
|
| 67 |
+
- **Base model:** [Qwen/Qwen3.6-35B-A3B](https://huggingface.co/Qwen/Qwen3.6-35B-A3B) (35B total parameters, 3B activated, MoE with vision encoder, 262,144-token context)
|
| 68 |
+
- **Training data:** 1.5K SFT trajectories
|
| 69 |
+
- **Format:** Hugging Face Transformers (compatible with Transformers, vLLM, SGLang, KTransformers, etc.)
|
| 70 |
+
|
| 71 |
+
## Quickstart
|
| 72 |
+
|
| 73 |
+
### vLLM
|
| 74 |
+
|
| 75 |
+
```shell
|
| 76 |
+
uv pip install vllm --torch-backend=auto
|
| 77 |
+
|
| 78 |
+
vllm serve AllSpark-Research/Skill2Env \
|
| 79 |
+
--port 8000 \
|
| 80 |
+
--tensor-parallel-size 8 \
|
| 81 |
+
--max-model-len 262144 \
|
| 82 |
+
--enable-auto-tool-choice \
|
| 83 |
+
--tool-call-parser qwen3_coder \
|
| 84 |
+
--reasoning-parser qwen3
|
| 85 |
+
```
|
| 86 |
+
|
| 87 |
+
### SGLang
|
| 88 |
+
|
| 89 |
+
```shell
|
| 90 |
+
uv pip install sglang[all]
|
| 91 |
+
|
| 92 |
+
python -m sglang.launch_server --model-path AllSpark-Research/Skill2Env \
|
| 93 |
+
--port 8000 --tp-size 8 --mem-fraction-static 0.8 \
|
| 94 |
+
--context-length 262144 --reasoning-parser qwen3 --tool-call-parser qwen3_coder
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
### Transformers
|
| 98 |
+
|
| 99 |
+
```python
|
| 100 |
+
from transformers import AutoModelForImageTextToText, AutoProcessor
|
| 101 |
+
|
| 102 |
+
model = AutoModelForImageTextToText.from_pretrained(
|
| 103 |
+
"AllSpark-Research/Skill2Env", torch_dtype="auto", device_map="auto"
|
| 104 |
+
)
|
| 105 |
+
processor = AutoProcessor.from_pretrained("AllSpark-Research/Skill2Env")
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
> [!Note]
|
| 109 |
+
> The model has a default context length of 262,144 tokens. We advise maintaining a context length of at least 128K tokens to preserve thinking capabilities.
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
## License
|
| 113 |
+
|
| 114 |
+
This model is released under the [Apache 2.0 license](https://huggingface.co/Qwen/Qwen3.6-35B-A3B/blob/main/LICENSE), inherited from the base model.
|
| 115 |
+
|
| 116 |
+
## Citation
|
| 117 |
+
|
| 118 |
+
If you find this work useful, please cite:
|
| 119 |
+
|
| 120 |
+
```bibtex
|
| 121 |
+
@article{xu2026skill2env,
|
| 122 |
+
title={Skill2Env: Capability-Oriented Environment Synthesis from Skills for General Agents},
|
| 123 |
+
author={Xu, Weiyi and Yang, Xiaowen and Da, Wen and Xu, Hang and Li, Canwei and You, Hongjie and Dong, Pusen and Zeng, Yucheng and Luo, Zhaokai and Chuan, Mu},
|
| 124 |
+
journal={arXiv preprint arXiv:2609.33772},
|
| 125 |
+
year={2026}
|
| 126 |
+
}
|
| 127 |
+
```
|