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
File size: 7,713 Bytes
a2dca42 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | [
{
"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\"]}}]"
}
] |