Instructions to use onnx-internal-testing/tiny-random-Qwen3_5ForConditionalGeneration with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use onnx-internal-testing/tiny-random-Qwen3_5ForConditionalGeneration with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="onnx-internal-testing/tiny-random-Qwen3_5ForConditionalGeneration") 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 AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("onnx-internal-testing/tiny-random-Qwen3_5ForConditionalGeneration") model = AutoModelForMultimodalLM.from_pretrained("onnx-internal-testing/tiny-random-Qwen3_5ForConditionalGeneration") 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use onnx-internal-testing/tiny-random-Qwen3_5ForConditionalGeneration with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "onnx-internal-testing/tiny-random-Qwen3_5ForConditionalGeneration" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "onnx-internal-testing/tiny-random-Qwen3_5ForConditionalGeneration", "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/onnx-internal-testing/tiny-random-Qwen3_5ForConditionalGeneration
- SGLang
How to use onnx-internal-testing/tiny-random-Qwen3_5ForConditionalGeneration 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 "onnx-internal-testing/tiny-random-Qwen3_5ForConditionalGeneration" \ --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": "onnx-internal-testing/tiny-random-Qwen3_5ForConditionalGeneration", "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 "onnx-internal-testing/tiny-random-Qwen3_5ForConditionalGeneration" \ --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": "onnx-internal-testing/tiny-random-Qwen3_5ForConditionalGeneration", "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 onnx-internal-testing/tiny-random-Qwen3_5ForConditionalGeneration with Docker Model Runner:
docker model run hf.co/onnx-internal-testing/tiny-random-Qwen3_5ForConditionalGeneration
Delete onnx
Browse files- onnx/decoder_model_merged.onnx +0 -3
- onnx/decoder_model_merged.onnx_data +0 -3
- onnx/decoder_model_merged_fp16.onnx +0 -3
- onnx/decoder_model_merged_fp16.onnx_data +0 -3
- onnx/embed_tokens.onnx +0 -3
- onnx/embed_tokens.onnx_data +0 -3
- onnx/embed_tokens_fp16.onnx +0 -3
- onnx/embed_tokens_fp16.onnx_data +0 -3
- onnx/vision_encoder.onnx +0 -3
- onnx/vision_encoder.onnx_data +0 -3
- onnx/vision_encoder_fp16.onnx +0 -3
- onnx/vision_encoder_fp16.onnx_data +0 -3
onnx/decoder_model_merged.onnx
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2f2b8cc1d5f2daf5c628959d932ac697db95ae5c8da4f6e29f8f5975ca949865
|
| 3 |
-
size 149516
|
|
|
|
|
|
|
|
|
|
|
|
onnx/decoder_model_merged.onnx_data
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1102e2b189993042b4075960d327a40a920c341451fe55453eba89874d3df5ee
|
| 3 |
-
size 8138752
|
|
|
|
|
|
|
|
|
|
|
|
onnx/decoder_model_merged_fp16.onnx
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3ffe72690118dadb0bff1fb53a1c413169c7f3fd4507ed8feaa221c8d34880a1
|
| 3 |
-
size 180436
|
|
|
|
|
|
|
|
|
|
|
|
onnx/decoder_model_merged_fp16.onnx_data
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c47119705e2f575d1b3ab5a1f268f143cf8983390f3de295361c69e4b25ad90a
|
| 3 |
-
size 4063232
|
|
|
|
|
|
|
|
|
|
|
|
onnx/embed_tokens.onnx
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:97b55f7485cdb9f91747bc3e58bc724c7f7de49fa49bac890e41495a130a3778
|
| 3 |
-
size 429
|
|
|
|
|
|
|
|
|
|
|
|
onnx/embed_tokens.onnx_data
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:becdc992d4a689d9866c1e72326b00fb31f5f7a1b5c0a946ced0355c712b3ea8
|
| 3 |
-
size 7946240
|
|
|
|
|
|
|
|
|
|
|
|
onnx/embed_tokens_fp16.onnx
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:700f5995f871f6d4509fa20a669edc54f8e6531c475238c686e4fd45ce99dec0
|
| 3 |
-
size 631
|
|
|
|
|
|
|
|
|
|
|
|
onnx/embed_tokens_fp16.onnx_data
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4daceca7ca70ff8b95fd83093e8558e392a5488f086517500883c0f7c054594c
|
| 3 |
-
size 3973120
|
|
|
|
|
|
|
|
|
|
|
|
onnx/vision_encoder.onnx
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0f607bc705b0290675139b054f6d68357af48dd3ffcf2c19312bba4dada57919
|
| 3 |
-
size 56308
|
|
|
|
|
|
|
|
|
|
|
|
onnx/vision_encoder.onnx_data
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:57562371fc3f1ef85e493c13374f56992d85b7da93e7e86364de77942cbb4a60
|
| 3 |
-
size 1516544
|
|
|
|
|
|
|
|
|
|
|
|
onnx/vision_encoder_fp16.onnx
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:02b0993da7c6ee0a589375b3e8302625786cf824c805074dcdc37c053aae4bdf
|
| 3 |
-
size 59816
|
|
|
|
|
|
|
|
|
|
|
|
onnx/vision_encoder_fp16.onnx_data
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e742aba6c9a8caa154927615cd7d3064c36bc4f7f2a207ed1b790ce625ab9d7e
|
| 3 |
-
size 1052672
|
|
|
|
|
|
|
|
|
|
|
|