Image-Text-to-Text
Transformers
Safetensors
Chinese
English
qwen3_5
agent
agentic
multimodal
vision-language
tool-use
function-calling
qwen3.8
opencsg
vllm
skills
conversational
Instructions to use opencsg/Agentic-27B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use opencsg/Agentic-27B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="opencsg/Agentic-27B") 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("opencsg/Agentic-27B") model = AutoModelForMultimodalLM.from_pretrained("opencsg/Agentic-27B", 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 opencsg/Agentic-27B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "opencsg/Agentic-27B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "opencsg/Agentic-27B", "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/opencsg/Agentic-27B
- SGLang
How to use opencsg/Agentic-27B 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 "opencsg/Agentic-27B" \ --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": "opencsg/Agentic-27B", "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 "opencsg/Agentic-27B" \ --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": "opencsg/Agentic-27B", "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 opencsg/Agentic-27B with Docker Model Runner:
docker model run hf.co/opencsg/Agentic-27B
Update README.md
Browse files
README.md
CHANGED
|
@@ -34,7 +34,7 @@ tags:
|
|
| 34 |
|
| 35 |
<p align="center">
|
| 36 |
<a href="https://huggingface.co/opencsg/models">OpenCSG 模型仓库</a> ·
|
| 37 |
-
<a href="./OpenCSG模型与数据集许可协议.md)">使用协议 / License Agreement</a>
|
| 38 |
</p>
|
| 39 |
|
| 40 |
---
|
|
@@ -282,7 +282,7 @@ Agentic 后续版本会继续沿用平台数据飞轮:把真实 bad case 转
|
|
| 282 |
|
| 283 |
## 使用协议
|
| 284 |
|
| 285 |
-
使用本模型需要遵循 [OpenCSG 模型与数据集许可协议](./OpenCSG模型与数据集许可协议.md)。仓库 metadata 中的 `license: other` 表示本模型采用平台预设列表之外的许可协议,实际许可条款以该协议为准。
|
| 286 |
|
| 287 |
本模型可按 OpenCSG 模型与数据集许可协议申请商业用途。若计划将本模型,或基于本模型训练、增强的模型、系统、Agent、API 服务和商业产品用于商业场景,请发送邮件至 `lorraineg@opencsg.com` 获取许可。
|
| 288 |
|
|
@@ -531,7 +531,7 @@ Upcoming priorities include improving completion rates on complex cross-system w
|
|
| 531 |
|
| 532 |
## License
|
| 533 |
|
| 534 |
-
Use of this model is governed by the [OpenCSG Model and Dataset License Agreement](./OpenCSG模型与数据集许可协议.md). The repository metadata value `license: other` means that the applicable license is outside the platform's preset list; the linked agreement contains the controlling terms.
|
| 535 |
|
| 536 |
Commercial use may be requested under the OpenCSG Model and Dataset License Agreement. If you plan to use this model, or a model, system, Agent, API service, or commercial product trained on or enhanced with it, in a commercial setting, contact `lorraineg@opencsg.com` for authorization.
|
| 537 |
|
|
|
|
| 34 |
|
| 35 |
<p align="center">
|
| 36 |
<a href="https://huggingface.co/opencsg/models">OpenCSG 模型仓库</a> ·
|
| 37 |
+
<a href="[./OpenCSG模型与数据集许可协议.md](https://huggingface.co/opencsg/Agentic-27B/blob/main/OpenCSG%E6%A8%A1%E5%9E%8B%E4%B8%8E%E6%95%B0%E6%8D%AE%E9%9B%86%E8%AE%B8%E5%8F%AF%E5%8D%8F%E8%AE%AE.md))">使用协议 / License Agreement</a>
|
| 38 |
</p>
|
| 39 |
|
| 40 |
---
|
|
|
|
| 282 |
|
| 283 |
## 使用协议
|
| 284 |
|
| 285 |
+
使用本模型需要遵循 [OpenCSG 模型与数据集许可协议]([./OpenCSG模型与数据集许可协议.md](https://huggingface.co/opencsg/Agentic-27B/blob/main/OpenCSG%E6%A8%A1%E5%9E%8B%E4%B8%8E%E6%95%B0%E6%8D%AE%E9%9B%86%E8%AE%B8%E5%8F%AF%E5%8D%8F%E8%AE%AE.md))。仓库 metadata 中的 `license: other` 表示本模型采用平台预设列表之外的许可协议,实际许可条款以该协议为准。
|
| 286 |
|
| 287 |
本模型可按 OpenCSG 模型与数据集许可协议申请商业用途。若计划将本模型,或基于本模型训练、增强的模型、系统、Agent、API 服务和商业产品用于商业场景,请发送邮件至 `lorraineg@opencsg.com` 获取许可。
|
| 288 |
|
|
|
|
| 531 |
|
| 532 |
## License
|
| 533 |
|
| 534 |
+
Use of this model is governed by the [OpenCSG Model and Dataset License Agreement]([./OpenCSG模型与数据集许可协议.md](https://huggingface.co/opencsg/Agentic-27B/blob/main/OpenCSG%E6%A8%A1%E5%9E%8B%E4%B8%8E%E6%95%B0%E6%8D%AE%E9%9B%86%E8%AE%B8%E5%8F%AF%E5%8D%8F%E8%AE%AE.md)). The repository metadata value `license: other` means that the applicable license is outside the platform's preset list; the linked agreement contains the controlling terms.
|
| 535 |
|
| 536 |
Commercial use may be requested under the OpenCSG Model and Dataset License Agreement. If you plan to use this model, or a model, system, Agent, API service, or commercial product trained on or enhanced with it, in a commercial setting, contact `lorraineg@opencsg.com` for authorization.
|
| 537 |
|