Text Generation
Transformers
Safetensors
English
Chinese
qwen3_5
image-text-to-text
agent
planning
tool-calling
code
qwen3.5
conversational
Instructions to use PocketBrains233/PocketPlanning-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PocketBrains233/PocketPlanning-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="PocketBrains233/PocketPlanning-1") 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("PocketBrains233/PocketPlanning-1") model = AutoModelForMultimodalLM.from_pretrained("PocketBrains233/PocketPlanning-1", 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 PocketBrains233/PocketPlanning-1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PocketBrains233/PocketPlanning-1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PocketBrains233/PocketPlanning-1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/PocketBrains233/PocketPlanning-1
- SGLang
How to use PocketBrains233/PocketPlanning-1 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 "PocketBrains233/PocketPlanning-1" \ --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": "PocketBrains233/PocketPlanning-1", "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 "PocketBrains233/PocketPlanning-1" \ --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": "PocketBrains233/PocketPlanning-1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use PocketBrains233/PocketPlanning-1 with Docker Model Runner:
docker model run hf.co/PocketBrains233/PocketPlanning-1
Update README: rename to PocketPlaning-1
Browse files
README.md
CHANGED
|
@@ -17,9 +17,9 @@ library_name: transformers
|
|
| 17 |
pipeline_tag: text-generation
|
| 18 |
---
|
| 19 |
|
| 20 |
-
#
|
| 21 |
|
| 22 |
-
**
|
| 23 |
|
| 24 |
## Key Capabilities
|
| 25 |
|
|
@@ -46,7 +46,7 @@ pipeline_tag: text-generation
|
|
| 46 |
```python
|
| 47 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 48 |
|
| 49 |
-
model_name = "PocketBrains/
|
| 50 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
| 51 |
model = AutoModelForCausalLM.from_pretrained(
|
| 52 |
model_name,
|
|
@@ -65,7 +65,7 @@ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
|
| 65 |
### With vLLM
|
| 66 |
|
| 67 |
```bash
|
| 68 |
-
vllm serve PocketBrains/
|
| 69 |
--tensor-parallel-size 2 \
|
| 70 |
--max-model-len 131072 \
|
| 71 |
--dtype bfloat16 \
|
|
@@ -76,7 +76,7 @@ vllm serve PocketBrains/PocketPlan-27B \
|
|
| 76 |
|
| 77 |
## Intended Use
|
| 78 |
|
| 79 |
-
|
| 80 |
|
| 81 |
## Limitations
|
| 82 |
|
|
@@ -88,10 +88,10 @@ PocketPlan-27B is designed to serve as the planning and routing layer inside AI
|
|
| 88 |
|
| 89 |
```bibtex
|
| 90 |
@misc{pocketplan2026,
|
| 91 |
-
title={
|
| 92 |
author={PocketBrains Inc.},
|
| 93 |
year={2026},
|
| 94 |
-
url={https://huggingface.co/PocketBrains/
|
| 95 |
}
|
| 96 |
```
|
| 97 |
|
|
|
|
| 17 |
pipeline_tag: text-generation
|
| 18 |
---
|
| 19 |
|
| 20 |
+
# PocketPlaning-1
|
| 21 |
|
| 22 |
+
**PocketPlaning-1** is a specialized AI agent planning model built on Qwen3.5-27B. It is fine-tuned for intelligent task routing, complexity estimation, and tool-calling orchestration in agentic workflows.
|
| 23 |
|
| 24 |
## Key Capabilities
|
| 25 |
|
|
|
|
| 46 |
```python
|
| 47 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 48 |
|
| 49 |
+
model_name = "PocketBrains/PocketPlaning-1"
|
| 50 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
| 51 |
model = AutoModelForCausalLM.from_pretrained(
|
| 52 |
model_name,
|
|
|
|
| 65 |
### With vLLM
|
| 66 |
|
| 67 |
```bash
|
| 68 |
+
vllm serve PocketBrains/PocketPlaning-1 \
|
| 69 |
--tensor-parallel-size 2 \
|
| 70 |
--max-model-len 131072 \
|
| 71 |
--dtype bfloat16 \
|
|
|
|
| 76 |
|
| 77 |
## Intended Use
|
| 78 |
|
| 79 |
+
PocketPlaning-1 is designed to serve as the planning and routing layer inside AI agent systems. It determines *what to do next* and *how much compute to spend doing it*, enabling cost-efficient agent execution by routing simple tasks locally and escalating complex tasks to frontier models.
|
| 80 |
|
| 81 |
## Limitations
|
| 82 |
|
|
|
|
| 88 |
|
| 89 |
```bibtex
|
| 90 |
@misc{pocketplan2026,
|
| 91 |
+
title={PocketPlaning-1: Efficient Planning Models for AI Agents},
|
| 92 |
author={PocketBrains Inc.},
|
| 93 |
year={2026},
|
| 94 |
+
url={https://huggingface.co/PocketBrains/PocketPlaning-1}
|
| 95 |
}
|
| 96 |
```
|
| 97 |
|