Image-Text-to-Text
Transformers
Safetensors
hy_v4_flash
text-generation
auto-round
mxfp8
compressed-tensors
conversational
Instructions to use intel-ai/Hy4-flash-FP8-MXFP8-CT-AutoRound with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use intel-ai/Hy4-flash-FP8-MXFP8-CT-AutoRound with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="intel-ai/Hy4-flash-FP8-MXFP8-CT-AutoRound") 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 AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("intel-ai/Hy4-flash-FP8-MXFP8-CT-AutoRound", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use intel-ai/Hy4-flash-FP8-MXFP8-CT-AutoRound with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "intel-ai/Hy4-flash-FP8-MXFP8-CT-AutoRound" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "intel-ai/Hy4-flash-FP8-MXFP8-CT-AutoRound", "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/intel-ai/Hy4-flash-FP8-MXFP8-CT-AutoRound
- SGLang
How to use intel-ai/Hy4-flash-FP8-MXFP8-CT-AutoRound 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 "intel-ai/Hy4-flash-FP8-MXFP8-CT-AutoRound" \ --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": "intel-ai/Hy4-flash-FP8-MXFP8-CT-AutoRound", "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 "intel-ai/Hy4-flash-FP8-MXFP8-CT-AutoRound" \ --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": "intel-ai/Hy4-flash-FP8-MXFP8-CT-AutoRound", "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 intel-ai/Hy4-flash-FP8-MXFP8-CT-AutoRound with Docker Model Runner:
docker model run hf.co/intel-ai/Hy4-flash-FP8-MXFP8-CT-AutoRound
Upload batch 2/19
Browse files- model-00009-of-00148.safetensors +3 -0
- model-00010-of-00148.safetensors +3 -0
- model-00011-of-00148.safetensors +3 -0
- model-00012-of-00148.safetensors +3 -0
- model-00013-of-00148.safetensors +3 -0
- model-00014-of-00148.safetensors +3 -0
- model-00015-of-00148.safetensors +3 -0
- model-00016-of-00148.safetensors +3 -0
model-00009-of-00148.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9b6d58982952a522185fbe258bc7fd27430016c445f0e88af6c11ad1d715c44e
|
| 3 |
+
size 139726888
|
model-00010-of-00148.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ce9ae9690f79c3de7586d14bef8c8481019360e76dfe2482095232a48bbd015
|
| 3 |
+
size 14680184
|
model-00011-of-00148.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e196849c20d0641e45dec29b945c9097f2b92fbd4648b3f396ed883f2beb14cf
|
| 3 |
+
size 242619496
|
model-00012-of-00148.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8afd640300492f26e86021491de13b8325b03eaf366d567d60dea71e2464dae1
|
| 3 |
+
size 171788432
|
model-00013-of-00148.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8a9ab040ac8f474a0fd73fa063c038ebae0ec43c89eb6e72da20b878dfddb63
|
| 3 |
+
size 10716080
|
model-00014-of-00148.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:49ed344e78dc2b5aa5a9c085ef69f9fde65e24e8e31e9f69af0bfcc6b31e46bd
|
| 3 |
+
size 31678921112
|
model-00015-of-00148.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8d0a4682b6da0d8107ebf4ba78d620f4d7a1321db18c8921ff8535decb4ae9e3
|
| 3 |
+
size 1245838720
|
model-00016-of-00148.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ad827d4c3f9afd1729af23374775f29c4440f7f5bbdcfe4b50e0df31337ccdba
|
| 3 |
+
size 2491676320
|