Run this model with HF Jobs
Run trl-internal-testing/tiny-Qwen4MoeForConditionalGeneration 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-Qwen4MoeForConditionalGeneration. 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-Qwen4MoeForConditionalGeneration 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-Qwen4MoeForConditionalGeneration. 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-Qwen4MoeForConditionalGeneration. 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-Qwen4MoeForConditionalGeneration with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use trl-internal-testing/tiny-Qwen4MoeForConditionalGeneration 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-Qwen4MoeForConditionalGeneration") 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-Qwen4MoeForConditionalGeneration") model = AutoModelForMultimodalLM.from_pretrained("trl-internal-testing/tiny-Qwen4MoeForConditionalGeneration", 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-Qwen4MoeForConditionalGeneration 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-Qwen4MoeForConditionalGeneration" # 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-Qwen4MoeForConditionalGeneration", "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-Qwen4MoeForConditionalGeneration
- SGLang
How to use trl-internal-testing/tiny-Qwen4MoeForConditionalGeneration 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-Qwen4MoeForConditionalGeneration" \ --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-Qwen4MoeForConditionalGeneration", "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-Qwen4MoeForConditionalGeneration" \ --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-Qwen4MoeForConditionalGeneration", "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-Qwen4MoeForConditionalGeneration with Docker Model Runner:
docker model run hf.co/trl-internal-testing/tiny-Qwen4MoeForConditionalGeneration
Upload Qwen4MoeForConditionalGeneration
Browse filesFiles changed (9)
- .gitattributes+1
- README.mdAdded+9
- chat_template.jinjaAdded+220
- config.jsonAdded+117
- generation_config.jsonAdded+13
- model.safetensorsAdded+3
- processor_config.jsonAdded+61
- tokenizer.jsonAdded+3
- tokenizer_config.jsonAdded+97
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text
123456789---library_name: transformerstags:- trl---
# Tiny Qwen4MoeForConditionalGeneration
This is a minimal model built for unit tests in the [TRL](https://github.com/huggingface/trl) library.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220{#- Qwen4 Jinja chat template for compatibility only. Deliberate omissions: - tool-result ordering is limited to text-only runs with explicit tool_call_id. Media runs keep input order: HF collects media before rendering this template. Missing/null tool_call_id never falls back to id: newer HF versions strip null fields before rendering, so these cases cannot be distinguished here. For full Python ordering semantics, reorder messages before media collection. - tool_calls[].function.arguments is only read as a dict; other types cause exceptions. - no anti-injection: the encoder tokenizes data with allow_special=false, so message text can never become a control token. A flat string cannot express that, and re-tokenizing it does not reproduce the encoder's token ids -- use the Qwen4 tokenizer's apply_chat_template(tokenize=True) for exact ids. - the generation blocks (return_assistant_tokens_mask) cover a whole assistant body; the encoder additionally masks out media placeholders inside it.-#}{%- macro render_content(content) -%} {%- if content is string -%} {{- content -}} {%- elif content is iterable and content is not mapping -%} {%- for item in content -%} {%- if item is string -%} {{- item -}} {%- elif item.get('type') == 'text' -%} {{- item.get('text', '') | default('', true) -}} {%- elif item.get('type') in ('image', 'image_url') -%} {{- '<|vision_start|><|image_pad|><|vision_end|>' -}} {%- elif item.get('type') in ('video', 'video_url') -%} {{- '<|vision_start|><|video_pad|><|vision_end|>' -}} {%- elif item.get('type') in ('audio', 'audio_url') -%} {{- '<|audio_start|><|audio_pad|><|audio_end|>' -}} {%- else -%} {{- raise_exception('Unexpected content part type ' ~ item.get('type') ~ '. Supported types are text, image, image_url, video, video_url, audio and audio_url.') -}} {%- endif -%} {%- endfor -%} {%- elif content is not none -%} {{- content | tojson -}} {%- endif -%}{%- endmacro -%}{%- macro render_reasoning(reasoning) -%} {%- if reasoning is string -%} {{- reasoning -}} {%- elif reasoning is iterable and reasoning is not mapping -%} {%- for item in reasoning -%} {%- if item is string -%} {{- item -}} {%- elif item.get('type') in (none, 'text') -%} {{- item.get('text', '') | default('', true) -}} {%- else -%} {{- item | tojson -}} {%- endif -%} {%- endfor -%} {%- elif reasoning is not none -%} {{- reasoning | tojson -}} {%- endif -%}{%- endmacro -%}{%- macro render_tools(tools) -%} {{- '# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n' -}} {%- for tool in tools -%} {%- if tool is not mapping -%} {{- raise_exception('Unexpected tool spec ' ~ tool ~ '. Expected a function schema dict.') -}} {%- elif tool.get('type') == 'function' and 'function' in tool -%} {{- tool | tojson -}} {%- elif 'function' in tool -%} {{- ({'type': 'function', 'function': tool['function']}) | tojson -}} {%- else -%} {{- ({'type': 'function', 'function': tool}) | tojson -}} {%- endif -%} {{- '\n' -}} {%- endfor -%} {{- '</tools>\n\nIf you choose to call a function, use exactly this format:\n' -}} {{- '<tool_call>\n<function={function-name}>\n<parameter={parameter-name}>\n{parameter-value}\n</parameter>\n</function>\n</tool_call>' -}}{%- endmacro -%}{%- macro render_tool_calls(tool_calls) -%} {%- for tool_call in tool_calls -%} {%- if tool_call.function is mapping -%} {%- set name = tool_call.function.get('name', '') -%} {%- set arguments = tool_call.function.get('arguments') -%} {%- else -%} {%- set name = tool_call.get('name', '') -%} {%- set arguments = tool_call.get('arguments') -%} {%- endif -%} {{- '<tool_call>\n<function=' ~ name ~ '>\n' -}} {%- if arguments is mapping -%} {%- for arg_name, arg_value in arguments | items -%} {{- '<parameter=' ~ (arg_name if arg_name is string else arg_name | tojson) ~ '>\n' -}} {{- arg_value if arg_value is string else arg_value | tojson -}} {{- '\n</parameter>\n' -}} {%- endfor -%} {%- elif arguments is not none and (arguments is not string or (arguments | trim) != '') -%} {{- raise_exception('Unexpected argument types. Expected dict.') -}} {%- endif -%} {{- '</function>\n</tool_call>' -}} {%- endfor -%}{%- endmacro -%}{%- set enable_thinking = enable_thinking | default(none) -%}{%- if enable_thinking is not none and enable_thinking is not boolean -%} {{- raise_exception('Unexpected enable_thinking ' ~ enable_thinking ~ '. Expected true, false or none.') -}}{%- endif -%}{%- set reasoning_effort = reasoning_effort | default(none) -%}{%- if reasoning_effort is not none and reasoning_effort not in ('xhigh', 'high', 'low', 'off') -%} {{- raise_exception('Unexpected reasoning effort ' ~ reasoning_effort ~ '. Supported efforts are xhigh, high, low and off.') -}}{%- endif -%}{%- if enable_thinking is none -%} {%- set effort = reasoning_effort if reasoning_effort is not none else 'high' -%}{%- elif enable_thinking -%} {%- if reasoning_effort == 'off' -%} {{- raise_exception('Conflicting thinking settings: enable_thinking=true with reasoning_effort=off.') -}} {%- endif -%} {%- set effort = reasoning_effort if reasoning_effort is not none else 'high' -%}{%- else -%} {%- if reasoning_effort is not none and reasoning_effort != 'off' -%} {{- raise_exception('Conflicting thinking settings: enable_thinking=false with reasoning_effort=' ~ reasoning_effort ~ '.') -}} {%- endif -%} {%- set effort = 'off' -%}{%- endif -%}{%- set preserve_thinking = preserve_thinking | default(true) -%}{%- if preserve_thinking is not none and preserve_thinking is not boolean -%} {{- raise_exception('Unexpected preserve_thinking ' ~ preserve_thinking ~ '. Expected true, false or none.') -}}{%- endif -%}{%- set preserve_thinking = true if preserve_thinking is none else preserve_thinking -%}{{- '<|im_start|>system\n' + 'Reasoning effort is set to ' + effort + '.' -}}{%- if tools -%} {{- '\n\n' -}} {{- render_tools(tools) -}}{%- endif -%}{{- '<|im_end|>\n' -}}{#- Sort text-only tool-result runs only when every explicit tool_call_id resolves. -#}{%- set order = namespace(messages=[], call_ids=[], pending=[], unresolved=false) -%}{%- for message in messages + [none] -%} {%- if message is none or message.get('role') != 'tool' -%} {%- if not order.unresolved -%} {%- set order.pending = order.pending | sort(attribute='position') -%} {%- endif -%} {%- for item in order.pending -%} {%- set order.messages = order.messages + [item.message] -%} {%- endfor -%} {%- set order.pending = [] -%} {%- set order.unresolved = false -%} {%- if message is not none -%} {%- if message.get('role') == 'assistant' -%} {%- set order.call_ids = [] -%} {%- for call in message.get('tool_calls') or [] -%} {%- if call is mapping and call.get('id') is not none -%} {%- set order.call_ids = order.call_ids + [call.id | string] -%} {%- endif -%} {%- endfor -%} {%- endif -%} {%- set order.messages = order.messages + [message] -%} {%- endif -%} {%- else -%} {#- Do not reorder media independently of the processor's already-collected inputs. -#} {%- set content = message.get('content') -%} {%- if content is iterable and content is not string and content is not mapping -%} {%- for part in content -%} {%- if part is not string and (part is not mapping or part.get('type') != 'text') -%} {%- set order.unresolved = true -%} {%- endif -%} {%- endfor -%} {%- elif content is not none and content is not string -%} {%- set order.unresolved = true -%} {%- endif -%} {%- set cid = message.get('tool_call_id') -%} {%- set match = namespace(position=none) -%} {%- for call_id in order.call_ids -%} {%- if cid is not none and call_id == (cid | string) and match.position is none -%} {%- set match.position = loop.index0 -%} {%- endif -%} {%- endfor -%} {%- if match.position is none -%} {%- set order.unresolved = true -%} {%- endif -%} {%- set order.pending = order.pending + [{'position': match.position, 'message': message}] -%} {%- endif -%}{%- endfor -%}{%- set messages = order.messages -%}{#- with preserve_thinking=false, reasoning survives only on and after the last user turn -#}{%- set ns = namespace(last_user=-1) -%}{%- if not preserve_thinking -%} {%- for message in messages -%} {%- if message.get('role') == 'user' -%} {%- set ns.last_user = loop.index0 -%} {%- endif -%} {%- endfor -%}{%- endif -%}{%- for message in messages -%} {%- set role = 'system' if message.get('role') == 'developer' else message.get('role') -%} {%- if role in ('system', 'user') -%} {{- '<|im_start|>' + role + '\n' + render_content(message.get('content')) + '<|im_end|>\n' -}} {%- elif role == 'assistant' -%} {%- if not preserve_thinking and loop.index0 < ns.last_user -%} {%- set reasoning = '' -%} {%- elif 'reasoning_content' in message -%} {%- set reasoning = render_reasoning(message['reasoning_content']) | trim -%} {%- elif 'reasoning' in message -%} {%- set reasoning = render_reasoning(message['reasoning']) | trim -%} {%- else -%} {%- set reasoning = '' -%} {%- endif -%} {%- set content = render_content(message.get('content')) | trim -%} {{- '<|im_start|>assistant\n' -}} {%- generation -%} {{- '<think>' + reasoning + '</think>' + content -}} {%- if message.get('tool_calls') -%} {{- render_tool_calls(message['tool_calls']) -}} {%- endif -%} {{- '<|im_end|>' -}} {%- endgeneration -%} {{- '\n' -}} {%- elif role == 'tool' -%} {{- '<|im_start|>tool\n' + render_content(message.get('content')) + '\n<|im_end|>\n' -}} {%- else -%} {{- raise_exception('Unexpected message role ' ~ message.get('role') ~ '. Supported roles are system, developer, user, assistant and tool.') -}} {%- endif -%}{%- endfor -%}{%- if add_generation_prompt -%} {{- '<|im_start|>assistant\n' -}} {{- '<think>' -}} {%- if effort == 'off' -%} {{- '</think>' -}} {%- endif -%}{%- endif -%}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117{ "architectures": [ "Qwen4MoeForConditionalGeneration" ], "dtype": "bfloat16", "image_token_id": 248056, "language_model_only": false, "model_type": "qwen4_moe", "text_config": { "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 248044, "dtype": "bfloat16", "eos_token_id": 248044, "full_attention_interval": 4, "hc_count": 4, "hc_lowrank": 8, "head_dim": 256, "heads_per_ngram": 8, "hidden_act": "silu", "hidden_size": 32, "indexer_budget": 8, "indexer_compress_ratio": 4, "indexer_head_dim": 64, "indexer_kv_heads": 1, "indexer_n_heads": 2, "initializer_range": 0.02, "layer_types": [ "linear_attention", "linear_attention", "linear_attention", "indexed_attention" ], "linear_conv_kernel_dim": 4, "linear_key_head_dim": 16, "linear_num_key_heads": 2, "linear_num_value_heads": 4, "linear_value_head_dim": 16, "make_ngram_vocab_size_divisible_by": 512, "mamba_ssm_dtype": "float32", "max_position_embeddings": 1048576, "model_type": "qwen4_moe_text", "moe_intermediate_size": 32, "mtp": { "hybrid": true, "layer_types": [ "full_attention" ], "mtp_use_hidden_state_from_layer": null, "num_hidden_layers": 1, "rope_theta": 10000000 }, "mtp_num_hidden_layers": 1, "mtp_use_dedicated_embeddings": false, "ngram_size": 3, "ngram_vocab_size_base": 1000, "norm_topk_prob": true, "num_attention_heads": 4, "num_experts": 4, "num_experts_per_tok": 2, "num_hidden_layers": 4, "num_key_value_heads": 2, "number_of_conv_states": 3, "output_gate_type": "sigmoid", "output_router_logits": false, "pad_token_id": null, "ple_conv_kernel_size": 4, "ple_embed_dim": 32, "ple_layer_ids": [ 2 ], "rms_norm_eps": 1e-06, "rope_parameters": { "mrope_interleaved": true, "mrope_section": [ 11, 11, 10 ], "partial_rotary_factor": 0.25, "rope_theta": 10000000, "rope_type": "default" }, "router_aux_loss_coef": 0.001, "seed": 1234, "shared_expert_intermediate_size": 32, "split_ngram_parts": 2, "tie_word_embeddings": false, "use_cache": true, "vocab_size": 248320 }, "tie_word_embeddings": false, "transformers_version": "5.26.0.dev0", "video_token_id": 248057, "vision_config": { "deepstack_visual_indexes": [], "depth": 2, "hidden_act": "gelu_pytorch_tanh", "hidden_size": 16, "in_channels": 3, "initializer_range": 0.02, "intermediate_size": 32, "model_type": "qwen4_moe_vision", "num_heads": 2, "num_position_embeddings": 2304, "out_hidden_size": 32, "patch_size": 16, "rope_parameters": { "rope_theta": 10000.0, "rope_type": "axial" }, "spatial_merge_size": 2, "temporal_patch_size": 2 }, "vision_end_token_id": 248054, "vision_start_token_id": 248053}12345678910111213{ "bos_token_id": 248044, "do_sample": true, "eos_token_id": [ 248046, 248044 ], "pad_token_id": 248044, "temperature": 1.0, "top_k": 20, "top_p": 0.95, "transformers_version": "5.26.0.dev0"}123version https://git-lfs.github.com/spec/v1oid sha256:d82ff55aee308db3163b43a5189beb3c8b62e9db44762de92e0c4db2d3a71291size 3253389612345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ "image_processor": { "do_convert_rgb": true, "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.5, 0.5, 0.5 ], "image_processor_type": "Qwen2VLImageProcessor", "image_std": [ 0.5, 0.5, 0.5 ], "merge_size": 2, "patch_size": 16, "resample": 3, "rescale_factor": 0.00392156862745098, "size": { "longest_edge": 16777216, "shortest_edge": 65536 }, "temporal_patch_size": 2 }, "processor_class": "Qwen3VLProcessor", "video_processor": { "do_convert_rgb": true, "do_normalize": true, "do_rescale": true, "do_resize": true, "do_sample_frames": true, "fps": 2, "image_mean": [ 0.5, 0.5, 0.5 ], "image_std": [ 0.5, 0.5, 0.5 ], "max_frames": 768, "max_video_tokens": 768, "merge_size": 2, "min_frames": 4, "patch_size": 16, "resample": 3, "rescale_factor": 0.00392156862745098, "return_metadata": false, "size": { "longest_edge": 25165824, "shortest_edge": 4096 }, "temporal_patch_size": 2, "video_processor_type": "Qwen3VLVideoProcessor" }}123version https://git-lfs.github.com/spec/v1oid sha256:13e3af4e94d044f46ff6f64493cabdc1fcb1cefaf288a4f300f4da661ed1ad00size 1998948512345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697{ "add_prefix_space": false, "audio_bos_token": "<|audio_start|>", "audio_eos_token": "<|audio_end|>", "audio_token": "<|audio_pad|>", "backend": "tokenizers", "bos_token": null, "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "errors": "replace", "extra_special_tokens": [ "</think>", "</tool_call>", "</tool_response>", "<think>", "<tool_call>", "<tool_response>", "<|box_end|>", "<|box_start|>", "<|im_end|>", "<|im_start|>", "<|image_pad|>", "<|object_ref_end|>", "<|object_ref_start|>", "<|quad_end|>", "<|quad_start|>", "<|video_pad|>", "<|vision_end|>", "<|vision_pad|>", "<|vision_start|>" ], "image_token": "<|image_pad|>", "is_local": false, "local_files_only": false, "model_input_names": [ "input_ids", "attention_mask" ], "model_max_length": 1048576, "model_specific_special_tokens": { "audio_bos_token": "<|audio_start|>", "audio_eos_token": "<|audio_end|>", "audio_token": "<|audio_pad|>", "image_token": "<|image_pad|>", "video_token": "<|video_pad|>", "vision_bos_token": "<|vision_start|>", "vision_eos_token": "<|vision_end|>" }, "pad_token": "<|endoftext|>", "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", "response_template": { "defaults": { "role": "assistant" }, "fields": { "content": { "close_pattern": "<\\|im_end\\|>\\s*", "content": "text" }, "reasoning_content": { "close": "</think>", "content": "text", "open": "<think>" }, "tool_calls": { "close": "</tool_call>", "content": "xml-inline", "content_args": { "tag_pattern": "<parameter=(?P<key>.*?)>\\r?\\n(?P<value>.*?)\\r?\\n</parameter>", "value_parser": { "args": { "strip": false }, "name": "text" } }, "open_pattern": "<tool_call>\\r?\\n<function=(?P<name>.*?)>", "repeats": true, "transform": { "function": { "arguments": "{content}", "name": "{name}" }, "type": "function" } } }, "start_anchor": "<|im_start|>assistant\n" }, "split_special_tokens": false, "tokenizer_class": "TokenizersBackend", "unk_token": null, "video_token": "<|video_pad|>", "vision_bos_token": "<|vision_start|>", "vision_eos_token": "<|vision_end|>"}.gitattributes+1
README.mdAdded+9
chat_template.jinjaAdded+220
config.jsonAdded+117
generation_config.jsonAdded+13
model.safetensorsAdded+3
processor_config.jsonAdded+61
tokenizer.jsonAdded+3
tokenizer_config.jsonAdded+97