Image-Text-to-Text
Transformers
Safetensors
GGUF
qwen3_5
alpie
169pi
qwen3.5
vision-language
multimodal
reasoning
coding
video-understanding
multilingual
indic
long-context
9b
apache-2.0
conversational
Instructions to use 169Pi/Alpie_seed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 169Pi/Alpie_seed with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="169Pi/Alpie_seed") 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("169Pi/Alpie_seed") model = AutoModelForMultimodalLM.from_pretrained("169Pi/Alpie_seed", 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 169Pi/Alpie_seed with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "169Pi/Alpie_seed" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "169Pi/Alpie_seed", "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/169Pi/Alpie_seed
- SGLang
How to use 169Pi/Alpie_seed 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 "169Pi/Alpie_seed" \ --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": "169Pi/Alpie_seed", "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 "169Pi/Alpie_seed" \ --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": "169Pi/Alpie_seed", "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 169Pi/Alpie_seed with Docker Model Runner:
docker model run hf.co/169Pi/Alpie_seed
Update README.md
Browse files
README.md
CHANGED
|
@@ -238,15 +238,225 @@ Training used eight NVIDIA H100 GPUs, with 3,034 GRPO steps across five phases.
|
|
| 238 |
|
| 239 |
## Quickstart
|
| 240 |
|
| 241 |
-
|
| 242 |
|
| 243 |
-
|
| 244 |
-
vllm serve 169Pi/Alpie_seed --port 8000 --max-model-len 262144 --reasoning-parser qwen3
|
| 245 |
|
|
|
|
|
|
|
|
|
|
| 246 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 247 |
@misc{alpie_seed_9b_2026,
|
| 248 |
title = {Alpie Seed 9B},
|
| 249 |
author = {{169Pi AI}},
|
| 250 |
year = {2026},
|
| 251 |
howpublished = {\url{https://huggingface.co/169Pi/Alpie_seed}}
|
| 252 |
-
}
|
|
|
|
|
|
| 238 |
|
| 239 |
## Quickstart
|
| 240 |
|
| 241 |
+
### Install dependencies
|
| 242 |
|
| 243 |
+
Qwen3.5 support requires a recent Transformers release (Transformers 5 or later).
|
|
|
|
| 244 |
|
| 245 |
+
```bash
|
| 246 |
+
pip install -U "transformers>=5.2.0" torch torchvision pillow accelerate
|
| 247 |
+
```
|
| 248 |
|
| 249 |
+
### Serve with vLLM (OpenAI-compatible API)
|
| 250 |
+
|
| 251 |
+
Start the standard Alpie Seed 9B server:
|
| 252 |
+
|
| 253 |
+
```bash
|
| 254 |
+
vllm serve 169Pi/Alpie_seed \
|
| 255 |
+
--port 8000 \
|
| 256 |
+
--max-model-len 262144 \
|
| 257 |
+
--reasoning-parser qwen3
|
| 258 |
+
```
|
| 259 |
+
|
| 260 |
+
To enable automatic tool-call parsing, use this command instead:
|
| 261 |
+
|
| 262 |
+
```bash
|
| 263 |
+
vllm serve 169Pi/Alpie_seed \
|
| 264 |
+
--port 8000 \
|
| 265 |
+
--max-model-len 262144 \
|
| 266 |
+
--reasoning-parser qwen3 \
|
| 267 |
+
--enable-auto-tool-choice \
|
| 268 |
+
--tool-call-parser qwen3_coder
|
| 269 |
+
```
|
| 270 |
+
|
| 271 |
+
The API is available at `http://localhost:8000/v1`. The tool-calling options enable vLLM to parse model-generated tool calls; your application is still responsible for executing the requested tools and returning their results.
|
| 272 |
+
|
| 273 |
+
### Run with Transformers
|
| 274 |
+
|
| 275 |
+
The following examples load the full vision-language checkpoint using `AutoModelForImageTextToText` and `AutoProcessor`. They retain the model's multimodal architecture. The `enable_thinking` argument is passed to the chat template to select the response mode.
|
| 276 |
+
|
| 277 |
+
#### 1. Thinking mode (`enable_thinking=True`)
|
| 278 |
+
|
| 279 |
+
```python
|
| 280 |
+
import torch
|
| 281 |
+
from transformers import AutoModelForImageTextToText, AutoProcessor
|
| 282 |
+
|
| 283 |
+
MODEL_ID = "169Pi/Alpie_seed"
|
| 284 |
+
|
| 285 |
+
processor = AutoProcessor.from_pretrained(MODEL_ID)
|
| 286 |
+
model = AutoModelForImageTextToText.from_pretrained(
|
| 287 |
+
MODEL_ID,
|
| 288 |
+
torch_dtype="auto",
|
| 289 |
+
device_map="auto",
|
| 290 |
+
)
|
| 291 |
+
model.eval()
|
| 292 |
+
|
| 293 |
+
messages = [
|
| 294 |
+
{
|
| 295 |
+
"role": "user",
|
| 296 |
+
"content": [
|
| 297 |
+
{"type": "text", "text": "Explain why the sky appears blue."}
|
| 298 |
+
],
|
| 299 |
+
}
|
| 300 |
+
]
|
| 301 |
+
|
| 302 |
+
inputs = processor.apply_chat_template(
|
| 303 |
+
messages,
|
| 304 |
+
tokenize=True,
|
| 305 |
+
add_generation_prompt=True,
|
| 306 |
+
enable_thinking=True,
|
| 307 |
+
return_dict=True,
|
| 308 |
+
return_tensors="pt",
|
| 309 |
+
).to(model.device)
|
| 310 |
+
|
| 311 |
+
with torch.inference_mode():
|
| 312 |
+
output_ids = model.generate(
|
| 313 |
+
**inputs,
|
| 314 |
+
max_new_tokens=4096,
|
| 315 |
+
do_sample=True,
|
| 316 |
+
temperature=0.7,
|
| 317 |
+
top_p=0.8,
|
| 318 |
+
)
|
| 319 |
+
|
| 320 |
+
new_tokens = output_ids[0, inputs["input_ids"].shape[1]:]
|
| 321 |
+
response = processor.decode(new_tokens, skip_special_tokens=True)
|
| 322 |
+
print(response)
|
| 323 |
+
```
|
| 324 |
+
|
| 325 |
+
#### 2. Non-thinking mode (`enable_thinking=False`)
|
| 326 |
+
|
| 327 |
+
```python
|
| 328 |
+
import torch
|
| 329 |
+
from transformers import AutoModelForImageTextToText, AutoProcessor
|
| 330 |
+
|
| 331 |
+
MODEL_ID = "169Pi/Alpie_seed"
|
| 332 |
+
|
| 333 |
+
processor = AutoProcessor.from_pretrained(MODEL_ID)
|
| 334 |
+
model = AutoModelForImageTextToText.from_pretrained(
|
| 335 |
+
MODEL_ID,
|
| 336 |
+
torch_dtype="auto",
|
| 337 |
+
device_map="auto",
|
| 338 |
+
)
|
| 339 |
+
model.eval()
|
| 340 |
+
|
| 341 |
+
messages = [
|
| 342 |
+
{
|
| 343 |
+
"role": "user",
|
| 344 |
+
"content": [
|
| 345 |
+
{"type": "text", "text": "Explain why the sky appears blue in two sentences."}
|
| 346 |
+
],
|
| 347 |
+
}
|
| 348 |
+
]
|
| 349 |
+
|
| 350 |
+
inputs = processor.apply_chat_template(
|
| 351 |
+
messages,
|
| 352 |
+
tokenize=True,
|
| 353 |
+
add_generation_prompt=True,
|
| 354 |
+
enable_thinking=False,
|
| 355 |
+
return_dict=True,
|
| 356 |
+
return_tensors="pt",
|
| 357 |
+
).to(model.device)
|
| 358 |
+
|
| 359 |
+
with torch.inference_mode():
|
| 360 |
+
output_ids = model.generate(
|
| 361 |
+
**inputs,
|
| 362 |
+
max_new_tokens=512,
|
| 363 |
+
do_sample=True,
|
| 364 |
+
temperature=0.7,
|
| 365 |
+
top_p=0.8,
|
| 366 |
+
)
|
| 367 |
+
|
| 368 |
+
new_tokens = output_ids[0, inputs["input_ids"].shape[1]:]
|
| 369 |
+
response = processor.decode(new_tokens, skip_special_tokens=True)
|
| 370 |
+
print(response)
|
| 371 |
+
```
|
| 372 |
+
|
| 373 |
+
#### 3. Tool calling with Transformers
|
| 374 |
+
|
| 375 |
+
Transformers can format the available tool definitions into the prompt. The model generates a tool-call request; your application must parse the request, execute the corresponding function, append the tool result, and ask the model to continue. This example demonstrates generating and inspecting a tool call; it does not execute external tools automatically.
|
| 376 |
+
|
| 377 |
+
```python
|
| 378 |
+
import json
|
| 379 |
+
import torch
|
| 380 |
+
from transformers import AutoModelForImageTextToText, AutoProcessor
|
| 381 |
+
|
| 382 |
+
MODEL_ID = "169Pi/Alpie_seed"
|
| 383 |
+
|
| 384 |
+
processor = AutoProcessor.from_pretrained(MODEL_ID)
|
| 385 |
+
model = AutoModelForImageTextToText.from_pretrained(
|
| 386 |
+
MODEL_ID,
|
| 387 |
+
torch_dtype="auto",
|
| 388 |
+
device_map="auto",
|
| 389 |
+
)
|
| 390 |
+
model.eval()
|
| 391 |
+
|
| 392 |
+
tools = [
|
| 393 |
+
{
|
| 394 |
+
"type": "function",
|
| 395 |
+
"function": {
|
| 396 |
+
"name": "get_weather",
|
| 397 |
+
"description": "Get the current weather for a city.",
|
| 398 |
+
"parameters": {
|
| 399 |
+
"type": "object",
|
| 400 |
+
"properties": {
|
| 401 |
+
"city": {
|
| 402 |
+
"type": "string",
|
| 403 |
+
"description": "The city to check.",
|
| 404 |
+
}
|
| 405 |
+
},
|
| 406 |
+
"required": ["city"],
|
| 407 |
+
},
|
| 408 |
+
},
|
| 409 |
+
}
|
| 410 |
+
]
|
| 411 |
+
|
| 412 |
+
messages = [
|
| 413 |
+
{
|
| 414 |
+
"role": "user",
|
| 415 |
+
"content": [
|
| 416 |
+
{"type": "text", "text": "What is the weather like in Patna?"}
|
| 417 |
+
],
|
| 418 |
+
}
|
| 419 |
+
]
|
| 420 |
+
|
| 421 |
+
inputs = processor.apply_chat_template(
|
| 422 |
+
messages,
|
| 423 |
+
tools=tools,
|
| 424 |
+
tokenize=True,
|
| 425 |
+
add_generation_prompt=True,
|
| 426 |
+
enable_thinking=True,
|
| 427 |
+
return_dict=True,
|
| 428 |
+
return_tensors="pt",
|
| 429 |
+
).to(model.device)
|
| 430 |
+
|
| 431 |
+
with torch.inference_mode():
|
| 432 |
+
output_ids = model.generate(
|
| 433 |
+
**inputs,
|
| 434 |
+
max_new_tokens=1024,
|
| 435 |
+
do_sample=True,
|
| 436 |
+
temperature=0.7,
|
| 437 |
+
top_p=0.8,
|
| 438 |
+
)
|
| 439 |
+
|
| 440 |
+
new_tokens = output_ids[0, inputs["input_ids"].shape[1]:]
|
| 441 |
+
generated_text = processor.decode(new_tokens, skip_special_tokens=False)
|
| 442 |
+
print("Model output:")
|
| 443 |
+
print(generated_text)
|
| 444 |
+
|
| 445 |
+
# Tool execution is application-side. Inspect the generated tool-call
|
| 446 |
+
# structure, validate its arguments, and dispatch only to tools you trust.
|
| 447 |
+
```
|
| 448 |
+
|
| 449 |
+
For image or video inputs, provide the corresponding image/video content items in the user message and use the same `AutoProcessor` + `AutoModelForImageTextToText` loading pattern. See the upstream Qwen3.5 documentation for multimodal message examples and framework-specific details.
|
| 450 |
+
|
| 451 |
+
## Citation
|
| 452 |
+
|
| 453 |
+
If you use Alpie Seed 9B in your work, please cite:
|
| 454 |
+
|
| 455 |
+
```bibtex
|
| 456 |
@misc{alpie_seed_9b_2026,
|
| 457 |
title = {Alpie Seed 9B},
|
| 458 |
author = {{169Pi AI}},
|
| 459 |
year = {2026},
|
| 460 |
howpublished = {\url{https://huggingface.co/169Pi/Alpie_seed}}
|
| 461 |
+
}
|
| 462 |
+
```
|