Text Generation
Transformers
Safetensors
qwen3_5
image-text-to-text
agent
tool-use
skill-selection
reinforcement-learning
grpo
conversational
Instructions to use simonlqy/SkillGate-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use simonlqy/SkillGate-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="simonlqy/SkillGate-9B") 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("simonlqy/SkillGate-9B") model = AutoModelForMultimodalLM.from_pretrained("simonlqy/SkillGate-9B", 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 simonlqy/SkillGate-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "simonlqy/SkillGate-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "simonlqy/SkillGate-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/simonlqy/SkillGate-9B
- SGLang
How to use simonlqy/SkillGate-9B 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 "simonlqy/SkillGate-9B" \ --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": "simonlqy/SkillGate-9B", "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 "simonlqy/SkillGate-9B" \ --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": "simonlqy/SkillGate-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use simonlqy/SkillGate-9B with Docker Model Runner:
docker model run hf.co/simonlqy/SkillGate-9B
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: qwen
|
| 4 |
+
license_link: https://huggingface.co/Qwen/Qwen3.5-9B/blob/main/LICENSE
|
| 5 |
+
base_model: Qwen/Qwen3.5-9B
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
library_name: transformers
|
| 8 |
+
tags:
|
| 9 |
+
- agent
|
| 10 |
+
- tool-use
|
| 11 |
+
- skill-selection
|
| 12 |
+
- reinforcement-learning
|
| 13 |
+
- grpo
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# SkillGate-9B
|
| 17 |
+
|
| 18 |
+
Policy from **"SkillGate: Training In-Policy Skill Selection in Long-Horizon Agents."**
|
| 19 |
+
|
| 20 |
+
Agent frameworks expose *skills* — instruction files with a name, a one-line
|
| 21 |
+
description and a body — by progressive disclosure: the agent sees only names and
|
| 22 |
+
descriptions and must open a file to learn what is inside. With thousands of skills in
|
| 23 |
+
a library, *which* one to read becomes a decision the policy makes mid-episode, and
|
| 24 |
+
outcome-rewarded RL cannot teach it: the tokens naming the chosen skill carry a median
|
| 25 |
+
0.14% of their trajectory's loss weight, and two in five of them receive a *negative*
|
| 26 |
+
advantage because execution afterwards failed.
|
| 27 |
+
|
| 28 |
+
SkillGate partitions one trajectory's token support into two disjoint credit channels:
|
| 29 |
+
outcome credit reaches only execution tokens (the whole skill-read call is removed from
|
| 30 |
+
the task loss), while an action-local advantage reaches exactly the skill-naming
|
| 31 |
+
tokens, positive only when the trajectory's single read is the correct skill.
|
| 32 |
+
|
| 33 |
+
## Model
|
| 34 |
+
|
| 35 |
+
| | |
|
| 36 |
+
|---|---|
|
| 37 |
+
| Base | Qwen3.5-9B |
|
| 38 |
+
| Training | 100 steps on-policy GRPO, 491 tasks, 8 rollouts/prompt, global batch 128, lr 1e-6, KL 3e-5, selector coefficient 0.20 |
|
| 39 |
+
| Checkpoint | `iter_0000099`, the final step (`selection_role: final`) |
|
| 40 |
+
| Architecture | `Qwen3_5ForConditionalGeneration` |
|
| 41 |
+
|
| 42 |
+
## Results (385-trial protocol, 5 agentic benchmarks, 16-candidate slate)
|
| 43 |
+
|
| 44 |
+
| Method | Overall | Oracle read | Misleading read |
|
| 45 |
+
|---|---:|---:|---:|
|
| 46 |
+
| SFT (RL init) | 40.8 | 37.9 | 61.8 |
|
| 47 |
+
| SkillRL (outcome reward only) | 47.0 | 54.3 | 69.6 |
|
| 48 |
+
| **SkillGate** | **53.2** | **83.9** | **21.8** |
|
| 49 |
+
|
| 50 |
+
Same initialisation, data, steps and hyperparameters as the outcome-only row; the only
|
| 51 |
+
difference is which tokens the gradient reaches.
|
| 52 |
+
|
| 53 |
+
## Intended use
|
| 54 |
+
|
| 55 |
+
Research on agentic skill/tool selection. The model expects the OpenClaw-style prompt
|
| 56 |
+
profile and tool schema used in the paper; see the repository for the exact system
|
| 57 |
+
prompt and the frozen skill slates.
|
| 58 |
+
|
| 59 |
+
## Links
|
| 60 |
+
|
| 61 |
+
- Paper: (arXiv link to follow)
|
| 62 |
+
- Code: https://github.com/DeepExperience/SkillGate
|
| 63 |
+
|
| 64 |
+
## License
|
| 65 |
+
|
| 66 |
+
Derived from Qwen3.5-9B and distributed under the Qwen license; see `license_link`.
|