{"_id":"6a9ae2b5ebdfbb25cdc8269e","id":"inclusionAI/Ling-3.0-flash-VL","private":false,"pipeline_tag":"image-text-to-text","tags":["safetensors","bailing_moe_v3_vl","image-text-to-text","conversational","custom_code","license:mit","region:us"],"downloads":10096,"likes":127,"modelId":"inclusionAI/Ling-3.0-flash-VL","author":"inclusionAI","sha":"c22bf252f15b66d18ca00a15989ac7ed46b7f09e","lastModified":"2026-09-24T09:02:45.000Z","gated":false,"disabled":false,"widgetData":[{"text":"Hi, what can you help me with?"},{"text":"What is 84 * 3 / 2?"},{"text":"Tell me an interesting fact about the universe!"},{"text":"Explain quantum computing in simple terms."}],"model-index":null,"config":{"model_type":"bailing_moe_v3_vl","architectures":["BailingMoeV3VLForConditionalGeneration"],"auto_map":{"AutoConfig":"configuration_bailing_moe_v3_vl.BailingMoeV3VLConfig","AutoModelForCausalLM":"modeling_bailing_moe_v3_vl.BailingMoeV3VLForConditionalGeneration"},"tokenizer_config":{"bos_token":"<|startoftext|>","cls_token":"[CLS]","eos_token":"<|role_end|>","pad_token":"<|endoftext|>"},"chat_template_jinja":"{#- Bailing V3 unified chat template -#}\n{#- Supports: multimodal content, enable_thinking, preserved thinking, tool calling, add_vision_id -#}\n\n{#- ==================== thinking normalization ==================== -#}\n{%- set enable_thinking = enable_thinking if enable_thinking is defined else true %}\n{%- if enable_thinking %}\n{%- set thinking_instruction = 'detailed thinking on' %}\n{%- else %}\n{%- set thinking_instruction = 'detailed thinking off' %}\n{%- endif %}\n\n{#- ==================== preserved thinking normalization ==================== -#}\n{%- if preserve_thinking is not defined %}\n    {%- set preserve_thinking = true %}\n{%- endif %}\n\n{#- ==================== vision / video counters ==================== -#}\n{%- set image_count = namespace(value=0) %}\n{%- set video_count = namespace(value=0) %}\n\n{#- ==================== render_content macro ==================== -#}\n{%- macro render_content(content, do_vision_count, is_system_content=false) %}\n    {%- if content is string %}\n        {{- content }}\n    {%- elif content is iterable and content is not mapping %}\n        {%- for item in content %}\n            {%- set item_type = item.type if item.type is defined else '' %}\n            {%- if item_type == 'image' or (not item_type and ('image' in item or 'image_url' in item)) %}\n                {%- if do_vision_count %}\n                    {%- set image_count.value = image_count.value + 1 %}\n                {%- endif %}\n                {%- if add_vision_id is defined and add_vision_id %}\n                    {{- 'Picture ' ~ image_count.value ~ ': ' }}\n                {%- endif %}\n                {{- '<|vision_start|><|image_pad|><|vision_end|>' }}\n            {%- elif item_type == 'audio' or (not item_type and ('audio' in item or 'audio_url' in item)) %}\n                {{- '<|audio_start|><|audio_pad|><|audio_end|>' }}\n            {%- elif item_type == 'video' or (not item_type and 'video' in item) %}\n                {%- if do_vision_count %}\n                    {%- set video_count.value = video_count.value + 1 %}\n                {%- endif %}\n                {%- if add_vision_id is defined and add_vision_id %}\n                    {{- 'Video ' ~ video_count.value ~ ': ' }}\n                {%- endif %}\n                {{- '<|video_start|><|video_pad|><|video_end|>' }}\n            {%- elif item_type == 'text' or (not item_type and 'text' in item) %}\n                {{- item.text }}\n            {%- else %}\n                {{- raise_exception('Unexpected item type in content list: each item must have type image/audio/video/text.') }}\n            {%- endif %}\n        {%- endfor %}\n    {%- elif content is none or content is undefined %}\n        {{- '' }}\n    {%- else %}\n        {{- raise_exception('Unexpected content type: expected string, list, or none.') }}\n    {%- endif %}\n{%- endmacro %}\n\n{#- ==================== messages guard ==================== -#}\n{%- if not messages %}\n    {{- raise_exception('No messages provided.') }}\n{%- endif %}\n\n{#- ==================== system message ==================== -#}\n{{- '<role>SYSTEM</role>' }}\n{%- set has_thinking_instruction = false %}\n{%- if messages[0].role == 'system' %}\n    {%- set system_content = render_content(messages[0].content, false, true) %}\n    {%- if 'detailed thinking on' in system_content or 'detailed thinking off' in system_content %}\n        {%- set has_thinking_instruction = true %}\n    {%- endif %}\n    {{- system_content }}\n    {%- if (tools or not has_thinking_instruction) and system_content and system_content[-1] != '\\n' %}\n        {{- '\\n' }}\n    {%- endif %}\n{%- endif %}\n{%- if tools %}\n    {{- \"# 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 %}\n        {{- \"\\n\" }}\n        {{- tool | tojson }}\n    {%- endfor %}\n    {{- \"\\n</tools>\\n\\nIf none of the functions can be used, point it out. If the given question lacks the parameters required by the function, also point it out.\\nIf you need to use a function, for each function call, output the function name and arguments within the following XML format:\\n<tool_call>{function-name}\\n<arg_key>{arg-key-1}</arg_key>\\n<arg_value>{arg-value-1}</arg_value>\\n<arg_key>{arg-key-2}</arg_key>\\n<arg_value>{arg-value-2}</arg_value>\\n...\\n</tool_call>\\n\" }}\n{%- endif %}\n{%- if not has_thinking_instruction %}\n    {{- thinking_instruction }}\n{%- endif %}\n{{- '<|role_end|>' }}\n\n{#- ==================== multi_step_tool: find last real user query ==================== -#}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n    {%- set index = (messages|length - 1) - loop.index0 %}\n    {%- if ns.multi_step_tool and message.role == \"user\" %}\n        {%- set user_content = render_content(message.content, false) %}\n        {%- if not(user_content.startswith('<tool_response>') and user_content.endswith('</tool_response>')) %}\n            {%- set ns.multi_step_tool = false %}\n            {%- set ns.last_query_index = index %}\n        {%- endif %}\n    {%- endif %}\n{%- endfor %}\n\n{#- ==================== message loop ==================== -#}\n{%- for message in messages %}\n    {%- if message.role == \"user\" %}\n        {%- set content = render_content(message.content, true) %}\n        {{- '<role>HUMAN</role>' + content + '<|role_end|>' }}\n    {%- elif message.role == \"system\" %}\n        {%- if not loop.first %}\n            {%- set content = render_content(message.content, true, true) %}\n            {{- '<role>SYSTEM</role>' + content + '<|role_end|>' }}\n        {%- endif %}\n    {%- elif message.role == \"assistant\" %}\n        {%- set content = render_content(message.content, true) %}\n        {%- set reasoning_content = '' %}\n        {%- if message.reasoning_content is string and message.reasoning_content != '' %}\n            {%- set reasoning_content = message.reasoning_content %}\n        {%- else %}\n            {%- if '</think>' in content %}\n                {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n                {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n            {%- endif %}\n        {%- endif %}\n        {%- if preserve_thinking or loop.index0 > ns.last_query_index %}\n            {%- if reasoning_content != '' %}\n                {{- '<role>ASSISTANT</role>' + '\\n<think>' + reasoning_content.strip('\\n') + '</think>' + content.lstrip('\\n') }}\n            {%- else %}\n                {{- '<role>ASSISTANT</role>\\n<think></think>' + content }}\n            {%- endif %}\n        {%- else %}\n            {{- '<role>ASSISTANT</role>\\n<think></think>' + content }}\n        {%- endif %}\n        {%- if message.tool_calls %}\n            {%- for tool_call in message.tool_calls %}\n                {%- if (loop.first and content) or (not loop.first) %}\n                    {{- '\\n' }}\n                {%- endif %}\n                {%- set tc = tool_call %}\n                {%- if tool_call.function %}\n                    {%- set tc = tool_call.function %}\n                {%- endif %}\n                {{- '<tool_call>' + tc.name }}\n                {%- set _args = tc.arguments %}\n                {%- for k, v in _args.items() %}\n                    {{- '\\n<arg_key>' + k + '</arg_key>' }}\n                    {{- '\\n<arg_value>' }}\n                    {%- if v is string %}\n                        {{- v }}\n                    {%- else %}\n                        {{- v | tojson(ensure_ascii=False) }}\n                    {%- endif %}\n                    {{- '</arg_value>' }}\n                {%- endfor %}\n                {{- '\\n</tool_call>' }}\n            {%- endfor %}\n        {%- endif %}\n        {{- '<|role_end|>' }}\n    {%- elif message.role == \"tool\" %}\n        {%- set content = render_content(message.content, true) %}\n        {%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n            {{- '<role>OBSERVATION</role>' }}\n        {%- endif %}\n        {{- '\\n<tool_response>\\n' }}\n        {{- content }}\n        {{- '\\n</tool_response>' }}\n        {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n            {{- '<|role_end|>' }}\n        {%- endif %}\n    {%- else %}\n        {%- set content = render_content(message.content, true) %}\n        {{- '<role>' + message.role + '</role>' + content + '<|role_end|>' }}\n    {%- endif %}\n{%- endfor %}\n\n{#- ==================== generation prompt ==================== -#}\n{%- if add_generation_prompt %}\n    {{- '<role>ASSISTANT</role>' }}\n    {%- if enable_thinking %}\n        {{- '\\n<think>' }}\n    {%- else %}\n        {{- '\\n<think></think>' }}\n    {%- endif %}\n{%- endif %}\n"},"cardData":{"license":"mit","pipeline_tag":"image-text-to-text"},"siblings":[{"rfilename":".gitattributes"},{"rfilename":"Ling3.0-VL_TDS Summary 2026.pdf"},{"rfilename":"README.md"},{"rfilename":"bailingmm_utils.py"},{"rfilename":"bailingmm_utils_video.py"},{"rfilename":"chat_format.py"},{"rfilename":"chat_template.jinja"},{"rfilename":"config.json"},{"rfilename":"configuration_bailing_moe_v3_vl.py"},{"rfilename":"configuration_bailingmm.py"},{"rfilename":"generation_config.json"},{"rfilename":"image_processing_bailingmm2.py"},{"rfilename":"model-00000-of-00064.safetensors"},{"rfilename":"model-00001-of-00064.safetensors"},{"rfilename":"model-00002-of-00064.safetensors"},{"rfilename":"model-00003-of-00064.safetensors"},{"rfilename":"model-00004-of-00064.safetensors"},{"rfilename":"model-00005-of-00064.safetensors"},{"rfilename":"model-00006-of-00064.safetensors"},{"rfilename":"model-00007-of-00064.safetensors"},{"rfilename":"model-00008-of-00064.safetensors"},{"rfilename":"model-00009-of-00064.safetensors"},{"rfilename":"model-00010-of-00064.safetensors"},{"rfilename":"model-00011-of-00064.safetensors"},{"rfilename":"model-00012-of-00064.safetensors"},{"rfilename":"model-00013-of-00064.safetensors"},{"rfilename":"model-00014-of-00064.safetensors"},{"rfilename":"model-00015-of-00064.safetensors"},{"rfilename":"model-00016-of-00064.safetensors"},{"rfilename":"model-00017-of-00064.safetensors"},{"rfilename":"model-00018-of-00064.safetensors"},{"rfilename":"model-00019-of-00064.safetensors"},{"rfilename":"model-00020-of-00064.safetensors"},{"rfilename":"model-00021-of-00064.safetensors"},{"rfilename":"model-00022-of-00064.safetensors"},{"rfilename":"model-00023-of-00064.safetensors"},{"rfilename":"model-00024-of-00064.safetensors"},{"rfilename":"model-00025-of-00064.safetensors"},{"rfilename":"model-00026-of-00064.safetensors"},{"rfilename":"model-00027-of-00064.safetensors"},{"rfilename":"model-00028-of-00064.safetensors"},{"rfilename":"model-00029-of-00064.safetensors"},{"rfilename":"model-00030-of-00064.safetensors"},{"rfilename":"model-00031-of-00064.safetensors"},{"rfilename":"model-00032-of-00064.safetensors"},{"rfilename":"model-00033-of-00064.safetensors"},{"rfilename":"model-00034-of-00064.safetensors"},{"rfilename":"model-00035-of-00064.safetensors"},{"rfilename":"model-00036-of-00064.safetensors"},{"rfilename":"model-00037-of-00064.safetensors"},{"rfilename":"model-00038-of-00064.safetensors"},{"rfilename":"model-00039-of-00064.safetensors"},{"rfilename":"model-00040-of-00064.safetensors"},{"rfilename":"model-00041-of-00064.safetensors"},{"rfilename":"model-00042-of-00064.safetensors"},{"rfilename":"model-00043-of-00064.safetensors"},{"rfilename":"model-00044-of-00064.safetensors"},{"rfilename":"model-00045-of-00064.safetensors"},{"rfilename":"model-00046-of-00064.safetensors"},{"rfilename":"model-00047-of-00064.safetensors"},{"rfilename":"model-00048-of-00064.safetensors"},{"rfilename":"model-00049-of-00064.safetensors"},{"rfilename":"model-00050-of-00064.safetensors"},{"rfilename":"model-00051-of-00064.safetensors"},{"rfilename":"model-00052-of-00064.safetensors"},{"rfilename":"model-00053-of-00064.safetensors"},{"rfilename":"model-00054-of-00064.safetensors"},{"rfilename":"model-00055-of-00064.safetensors"},{"rfilename":"model-00056-of-00064.safetensors"},{"rfilename":"model-00057-of-00064.safetensors"},{"rfilename":"model-00058-of-00064.safetensors"},{"rfilename":"model-00059-of-00064.safetensors"},{"rfilename":"model-00060-of-00064.safetensors"},{"rfilename":"model-00061-of-00064.safetensors"},{"rfilename":"model-00062-of-00064.safetensors"},{"rfilename":"model-00063-of-00064.safetensors"},{"rfilename":"model.safetensors.index.json"},{"rfilename":"modeling_bailingmm.py"},{"rfilename":"modeling_utils.py"},{"rfilename":"preprocessor_config.json"},{"rfilename":"processing_bailingmm2.py"},{"rfilename":"pure_common.pt"},{"rfilename":"special_tokens_map.json"},{"rfilename":"tokenization_bailing.py"},{"rfilename":"tokenizer.json"},{"rfilename":"tokenizer_config.json"}],"spaces":["ginigen-ai/open-router-leaderboard","ArtShumov/Whyx-PROmpTea","mohamedtsou/ai_taqyem","bep40/Space-Mutiverse-Control","SilverElixir/Lumen","BADRzs/deepguard","osolmaz/ling-dgx-spark","alb3rto04/Final_Assignment_Template","localellm/WebGPU-ling-3-0-flash-vl-i1-gguf"],"createdAt":"2026-09-04T15:24:37.000Z","safetensors":{"parameters":{"F32":164960,"BF16":124848295536},"total":124848460496},"inference":"warm","usedStorage":249705360073}