Image-Text-to-Text
Transformers
Safetensors
Chinese
English
qwen3_5
agent
agentic
tool-use
function-calling
code
swe-bench
automation
qwen3.8
opencsg
vllm
conversational
Instructions to use opencsg/Agentic-27B-V2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use opencsg/Agentic-27B-V2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="opencsg/Agentic-27B-V2") 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-V2") model = AutoModelForMultimodalLM.from_pretrained("opencsg/Agentic-27B-V2", 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-V2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "opencsg/Agentic-27B-V2" # 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-V2", "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-V2
- SGLang
How to use opencsg/Agentic-27B-V2 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-V2" \ --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-V2", "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-V2" \ --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-V2", "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-V2 with Docker Model Runner:
docker model run hf.co/opencsg/Agentic-27B-V2
Fix license links in model card
Browse files
README.md
CHANGED
|
@@ -40,7 +40,7 @@ tags:
|
|
| 40 |
|
| 41 |
<p align="center">
|
| 42 |
<a href="https://huggingface.co/opencsg">OpenCSG 模型仓库 / Models</a> ·
|
| 43 |
-
<a href="./OpenCSG
|
| 44 |
<a href="mailto:lorraineg@opencsg.com">商业授权 / Commercial License</a>
|
| 45 |
</p>
|
| 46 |
|
|
@@ -398,7 +398,7 @@ print(response.choices[0].message.content)
|
|
| 398 |
|
| 399 |
## 使用协议
|
| 400 |
|
| 401 |
-
使用本模型需要遵循 [OpenCSG 模型与数据集许可协议](./OpenCSG
|
| 402 |
|
| 403 |
本模型可按 OpenCSG 模型与数据集许可协议申请商业用途。若计划将本模型,或基于本模型训练、增强的模型、系统、Agent、API 服务和商业产品用于商业场景,请发送邮件至 `lorraineg@opencsg.com` 获取许可。
|
| 404 |
|
|
@@ -750,7 +750,7 @@ print(response.choices[0].message.content)
|
|
| 750 |
|
| 751 |
## License
|
| 752 |
|
| 753 |
-
Use of this model is governed by the [OpenCSG Model and Dataset License Agreement](./OpenCSG
|
| 754 |
|
| 755 |
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.
|
| 756 |
|
|
|
|
| 40 |
|
| 41 |
<p align="center">
|
| 42 |
<a href="https://huggingface.co/opencsg">OpenCSG 模型仓库 / Models</a> ·
|
| 43 |
+
<a href="https://huggingface.co/opencsg/Agentic-27B-V2/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> ·
|
| 44 |
<a href="mailto:lorraineg@opencsg.com">商业授权 / Commercial License</a>
|
| 45 |
</p>
|
| 46 |
|
|
|
|
| 398 |
|
| 399 |
## 使用协议
|
| 400 |
|
| 401 |
+
使用本模型需要遵循 [OpenCSG 模型与数据集许可协议](https://huggingface.co/opencsg/Agentic-27B-V2/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` 表示本模型采用平台预设列表之外的许可协议,实际许可条款以该协议为准。
|
| 402 |
|
| 403 |
本模型可按 OpenCSG 模型与数据集许可协议申请商业用途。若计划将本模型,或基于本模型训练、增强的模型、系统、Agent、API 服务和商业产品用于商业场景,请发送邮件至 `lorraineg@opencsg.com` 获取许可。
|
| 404 |
|
|
|
|
| 750 |
|
| 751 |
## License
|
| 752 |
|
| 753 |
+
Use of this model is governed by the [OpenCSG Model and Dataset License Agreement](https://huggingface.co/opencsg/Agentic-27B-V2/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.
|
| 754 |
|
| 755 |
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.
|
| 756 |
|