Run this model with HF Jobs
Run trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6") 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 AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6") model = AutoModelForMultimodalLM.from_pretrained("trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6", device_map="auto") 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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6", "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/trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6
- SGLang
How to use trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6 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 "trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6" \ --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": "trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6", "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 "trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6" \ --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": "trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6", "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 trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6 with Docker Model Runner:
docker model run hf.co/trl-internal-testing/tiny-Qwen3_5MoeForConditionalGeneration-3.6
Upload processor
Browse filesFiles changed (3)
123453 unmodified lines910111213141511 unmodified lines272829303132{"image_processor": {"do_convert_rgb": true,"do_normalize": true,"do_rescale": true,3 unmodified lines0.5,0.5],"image_processor_type": "Qwen2VLImageProcessor","image_std": [0.5,0.5,11 unmodified lines},"processor_class": "Qwen3VLProcessor","video_processor": {"do_convert_rgb": true,"do_normalize": true,"do_rescale": true,1234563 unmodified lines1011121314151611 unmodified lines2829303132333435{"image_processor": {"data_format": "channels_first","do_convert_rgb": true,"do_normalize": true,"do_rescale": true,3 unmodified lines0.5,0.5],"image_processor_type": "Qwen2VLImageProcessorFast","image_std": [0.5,0.5,11 unmodified lines},"processor_class": "Qwen3VLProcessor","video_processor": {"data_format": "channels_first","default_to_square": true,"do_convert_rgb": true,"do_normalize": true,"do_rescale": true,
123version https://git-lfs.github.com/spec/v1oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523size 19989325123version https://git-lfs.github.com/spec/v1oid sha256:87a7830d63fcf43bf241c3c5242e96e62dd3fdc29224ca26fed8ea333db72de4size 19989343
9 unmodified lines101112131415168 unmodified lines252627282930319 unmodified lines"errors": "replace","image_token": "<|image_pad|>","is_local": false,"local_files_only": false,"model_max_length": 262144,"model_specific_special_tokens": {"audio_bos_token": "<|audio_start|>",8 unmodified lines"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+","processor_class": "Qwen3VLProcessor","split_special_tokens": false,"tokenizer_class": "Qwen2Tokenizer","unk_token": null,"video_token": "<|video_pad|>","vision_bos_token": "<|vision_start|>",9 unmodified lines1011121314158 unmodified lines242526272829309 unmodified lines"errors": "replace","image_token": "<|image_pad|>","is_local": false,"model_max_length": 262144,"model_specific_special_tokens": {"audio_bos_token": "<|audio_start|>",8 unmodified lines"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+","processor_class": "Qwen3VLProcessor","split_special_tokens": false,"tokenizer_class": "TokenizersBackend","unk_token": null,"video_token": "<|video_pad|>","vision_bos_token": "<|vision_start|>",
processor_config.json+4-1
tokenizer.json+2-2
tokenizer_config.json+1-2