Image-Text-to-Text
Transformers
ONNX
Safetensors
gemma3omni
feature-extraction
conversational
custom_code
Instructions to use jva96160/go with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jva96160/go with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="jva96160/go", trust_remote_code=True) 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 AutoModel model = AutoModel.from_pretrained("jva96160/go", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jva96160/go with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jva96160/go" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jva96160/go", "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/jva96160/go
- SGLang
How to use jva96160/go 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 "jva96160/go" \ --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": "jva96160/go", "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 "jva96160/go" \ --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": "jva96160/go", "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 jva96160/go with Docker Model Runner:
docker model run hf.co/jva96160/go
Download cpp/sample_data/pickup_processed.json from jva96160/go: direct link, hf CLI and curl.
- Browser
- Download file 7.71 kB
-
https://huggingface.co/jva96160/go/resolve/main/cpp/sample_data/pickup_processed.json
- Command line
-
hf download hf://jva96160/go/cpp/sample_data/pickup_processed.json
-
curl -L -o pickup_processed.json https://huggingface.co/jva96160/go/resolve/main/cpp/sample_data/pickup_processed.json
7.71 kB
| [ | |
| { | |
| "conversations": [ | |
| { | |
| "from": "human", | |
| "value": "我等等再處理好了,先這樣", | |
| "audio_path": "/mnt/data-2t/jeff/codes/llm/cpp/sample_data/pickup_breezy-common_voice_zh-TW_17376838-breezyvoice-00818.wav" | |
| }, | |
| { | |
| "from": "gpt", | |
| "value": "如果還有其他需要,請隨時告訴我!" | |
| } | |
| ], | |
| "tools": "[{\"name\": \"get_phonebook\", \"description\": \"查詢通訊錄內是否存在指定聯絡人,若無則回傳空字串\", \"parameters\": {\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\", \"description\": \"name參數\"}}, \"required\": [\"name\"]}}, {\"name\": \"message_update\", \"description\": \"更新乘客通知簡訊內容\", \"parameters\": {\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\", \"description\": \"name參數\"}, \"phone\": {\"type\": \"string\", \"description\": \"phone參數\"}, \"message\": {\"type\": \"string\", \"description\": \"message參數\"}}, \"required\": [\"name\", \"phone\", \"message\"]}}, {\"name\": \"save_phonebook\", \"description\": \"儲存新聯絡人資訊到通訊錄\", \"parameters\": {\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\", \"description\": \"name參數\"}, \"phone\": {\"type\": \"string\", \"description\": \"phone參數\"}}, \"required\": [\"name\", \"phone\"]}}]" | |
| }, | |
| { | |
| "conversations": [ | |
| { | |
| "from": "human", | |
| "value": "我要去南港車站接人", | |
| "audio_path": "/mnt/data-2t/jeff/codes/llm/cpp/sample_data/pickup_breezy-common_voice_zh-TW_17382475-breezyvoice-01452.wav" | |
| }, | |
| { | |
| "from": "gpt", | |
| "value": "請問你要去南港車站接誰?" | |
| } | |
| ], | |
| "tools": "[{\"name\": \"get_phonebook\", \"description\": \"查詢通訊錄內是否存在指定聯絡人,若無則回傳空字串\", \"parameters\": {\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\", \"description\": \"name參數\"}}, \"required\": [\"name\"]}}, {\"name\": \"message_update\", \"description\": \"更新乘客通知簡訊內容\", \"parameters\": {\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\", \"description\": \"name參數\"}, \"phone\": {\"type\": \"string\", \"description\": \"phone參數\"}, \"message\": {\"type\": \"string\", \"description\": \"message參數\"}}, \"required\": [\"name\", \"phone\", \"message\"]}}, {\"name\": \"save_phonebook\", \"description\": \"儲存新聯絡人資訊到通訊錄\", \"parameters\": {\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\", \"description\": \"name參數\"}, \"phone\": {\"type\": \"string\", \"description\": \"phone參數\"}}, \"required\": [\"name\", \"phone\"]}}]" | |
| }, | |
| { | |
| "conversations": [ | |
| { | |
| "from": "human", | |
| "value": "不用了", | |
| "audio_path": "/mnt/data-2t/jeff/codes/llm/cpp/sample_data/pickup_breezy-common_voice_zh-TW_17382549-breezyvoice-00643.wav" | |
| }, | |
| { | |
| "from": "gpt", | |
| "value": "如果還有其他需要,請隨時告訴我!" | |
| } | |
| ], | |
| "tools": "[{\"name\": \"get_phonebook\", \"description\": \"查詢通訊錄內是否存在指定聯絡人,若無則回傳空字串\", \"parameters\": {\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\", \"description\": \"name參數\"}}, \"required\": [\"name\"]}}, {\"name\": \"message_update\", \"description\": \"更新乘客通知簡訊內容\", \"parameters\": {\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\", \"description\": \"name參數\"}, \"phone\": {\"type\": \"string\", \"description\": \"phone參數\"}, \"message\": {\"type\": \"string\", \"description\": \"message參數\"}}, \"required\": [\"name\", \"phone\", \"message\"]}}, {\"name\": \"save_phonebook\", \"description\": \"儲存新聯絡人資訊到通訊錄\", \"parameters\": {\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\", \"description\": \"name參數\"}, \"phone\": {\"type\": \"string\", \"description\": \"phone參數\"}}, \"required\": [\"name\", \"phone\"]}}]" | |
| }, | |
| { | |
| "conversations": [ | |
| { | |
| "from": "human", | |
| "value": "0911-222-333", | |
| "audio_path": "/mnt/data-2t/jeff/codes/llm/cpp/sample_data/pickup_breezy-common_voice_zh-TW_17382570-breezyvoice-01041.wav" | |
| }, | |
| { | |
| "from": "function_call", | |
| "value": "{\"name\": \"save_phonebook\", \"arguments\": {\"name\": \"阿德\", \"phone\": \"0911-222-333\"}}" | |
| }, | |
| { | |
| "from": "observation", | |
| "value": "{\"result\": \"已儲存阿德的電話:0911-222-333\"}" | |
| }, | |
| { | |
| "from": "gpt", | |
| "value": "好的,已為您設定導航至市政府捷運站,我已通知阿德 0911-222-333,接駁任務已發送。" | |
| } | |
| ], | |
| "tools": "[{\"name\": \"get_phonebook\", \"description\": \"查詢通訊錄內是否存在指定聯絡人,若無則回傳空字串\", \"parameters\": {\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\", \"description\": \"name參數\"}}, \"required\": [\"name\"]}}, {\"name\": \"message_update\", \"description\": \"更新乘客通知簡訊內容\", \"parameters\": {\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\", \"description\": \"name參數\"}, \"phone\": {\"type\": \"string\", \"description\": \"phone參數\"}, \"message\": {\"type\": \"string\", \"description\": \"message參數\"}}, \"required\": [\"name\", \"phone\", \"message\"]}}, {\"name\": \"save_phonebook\", \"description\": \"儲存新聯絡人資訊到通訊錄\", \"parameters\": {\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\", \"description\": \"name參數\"}, \"phone\": {\"type\": \"string\", \"description\": \"phone參數\"}}, \"required\": [\"name\", \"phone\"]}}]" | |
| }, | |
| { | |
| "conversations": [ | |
| { | |
| "from": "human", | |
| "value": "我等等再處理好了,先這樣", | |
| "audio_path": "/mnt/data-2t/jeff/codes/llm/cpp/sample_data/pickup_breezy-common_voice_zh-TW_17382594-breezyvoice-00389.wav" | |
| }, | |
| { | |
| "from": "gpt", | |
| "value": "如果還有其他需要,請隨時告訴我!" | |
| } | |
| ], | |
| "tools": "[{\"name\": \"get_phonebook\", \"description\": \"查詢通訊錄內是否存在指定聯絡人,若無則回傳空字串\", \"parameters\": {\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\", \"description\": \"name參數\"}}, \"required\": [\"name\"]}}, {\"name\": \"message_update\", \"description\": \"更新乘客通知簡訊內容\", \"parameters\": {\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\", \"description\": \"name參數\"}, \"phone\": {\"type\": \"string\", \"description\": \"phone參數\"}, \"message\": {\"type\": \"string\", \"description\": \"message參數\"}}, \"required\": [\"name\", \"phone\", \"message\"]}}, {\"name\": \"save_phonebook\", \"description\": \"儲存新聯絡人資訊到通訊錄\", \"parameters\": {\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\", \"description\": \"name參數\"}, \"phone\": {\"type\": \"string\", \"description\": \"phone參數\"}}, \"required\": [\"name\", \"phone\"]}}]" | |
| } | |
| ] |