Image-Text-to-Text
Transformers
Safetensors
multilingual
hunyuan_vl_mot
hunyuan
vision-language
Embodied
image-to-text
2B
end-to-end
MoT
conversational
custom_code
Instructions to use Jayyun6/HY-Embodied-0.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jayyun6/HY-Embodied-0.5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Jayyun6/HY-Embodied-0.5", 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)# Load model directly from transformers import AutoModelForImageTextToText model = AutoModelForImageTextToText.from_pretrained("Jayyun6/HY-Embodied-0.5", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Jayyun6/HY-Embodied-0.5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Jayyun6/HY-Embodied-0.5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jayyun6/HY-Embodied-0.5", "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/Jayyun6/HY-Embodied-0.5
- SGLang
How to use Jayyun6/HY-Embodied-0.5 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 "Jayyun6/HY-Embodied-0.5" \ --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": "Jayyun6/HY-Embodied-0.5", "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 "Jayyun6/HY-Embodied-0.5" \ --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": "Jayyun6/HY-Embodied-0.5", "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 Jayyun6/HY-Embodied-0.5 with Docker Model Runner:
docker model run hf.co/Jayyun6/HY-Embodied-0.5
| { | |
| "add_classification_head": false, | |
| "architectures": [ | |
| "HunYuanVLMoTForConditionalGeneration" | |
| ], | |
| "auto_map": { | |
| "AutoConfig": "configuration_hunyuan_vl_mot.HunYuanVLMoTConfig", | |
| "AutoModelForImageTextToText": "modeling_hunyuan_vl_mot.HunYuanVLMoTForConditionalGeneration", | |
| "AutoProcessor": "processing_hunyuan_vl_mot.HunYuanVLMoTProcessor" | |
| }, | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "attention_head_dim": 128, | |
| "bos_token_id": 120000, | |
| "cla_share_factor": 2, | |
| "class_num": 0, | |
| "dense_list": [ | |
| 2048, | |
| 0 | |
| ], | |
| "dtype": "bfloat16", | |
| "eos_token_id": 120020, | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 2048, | |
| "im_end_id": 5, | |
| "im_newline_id": 11, | |
| "im_start_id": 4, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 6144, | |
| "mask_init_id": 12, | |
| "max_position_embeddings": 262144, | |
| "mlp_bias": false, | |
| "model_type": "hunyuan_vl_mot", | |
| "norm_type": "rms", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 32, | |
| "num_key_value_heads": 4, | |
| "org_vocab_size": 120818, | |
| "pad_id": 120002, | |
| "pad_token_id": 120002, | |
| "pool_type": "last", | |
| "pretraining_tp": 1, | |
| "rms_norm_eps": 1e-05, | |
| "rope_scaling": { | |
| "alpha": 1000.0, | |
| "beta_fast": 32, | |
| "beta_slow": 1, | |
| "factor": 1.0, | |
| "mscale": 1.0, | |
| "mscale_all_dim": 1.0, | |
| "type": "dynamic" | |
| }, | |
| "rope_theta": 10000.0, | |
| "sep_token_id": 120007, | |
| "text_end_id": 7, | |
| "text_start_id": 6, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "4.57.0", | |
| "use_cache": true, | |
| "use_cla": false, | |
| "use_qk_norm": true, | |
| "use_rotary_pos_emb": true, | |
| "vocab_size": 120818 | |
| } | |