{"_id":"6885cae5f0dcaab0b8fd519c","id":"deepcogito/cogito-v2-preview-llama-109B-MoE","private":false,"pipeline_tag":"image-text-to-text","library_name":"transformers","tags":["transformers","safetensors","llama4","image-text-to-text","conversational","base_model:meta-llama/Llama-4-Scout-17B-16E","base_model:finetune:meta-llama/Llama-4-Scout-17B-16E","license:llama4","text-generation-inference","endpoints_compatible","region:us"],"downloads":995,"likes":34,"modelId":"deepcogito/cogito-v2-preview-llama-109B-MoE","author":"deepcogito","sha":"b9b1d0a6028f514c21375056ceebef73d5288d50","lastModified":"2025-07-31T01:08:56.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":{"architectures":["Llama4ForConditionalGeneration"],"model_type":"llama4","tokenizer_config":{"bos_token":"<|begin_of_text|>","eos_token":"<|eot|>","pad_token":"<|finetune_right_pad|>"},"chat_template_jinja":"{{- bos_token }}\n{%- if not tools is defined %}\n    {%- set tools = none %}\n{%- endif %}\n{%- if not enable_thinking is defined %}\n    {%- set enable_thinking = false %}\n{%- endif %}\n\n{#- This block extracts the system message, so we can slot it into the right place. #}\n{%- if messages[0]['role'] == 'system' %}    \n    {%- if messages[0]['content'] is string %}\n        {%- set system_message = messages[0]['content']|trim %}\n    {%- else %}\n        {%- set system_message = messages[0]['content'][0]['text']|trim %}\n    {%- endif %}\n    {%- set messages = messages[1:] %}\n{%- else %}\n    {%- set system_message = \"\" %}\n{%- endif %}\n\n{#- Set the system message. If enable_thinking is true, add the \"Enable deep thinking subroutine.\" #}\n{%- if enable_thinking %}\n    {%- if system_message != \"\" %}\n        {%- set system_message = \"Enable deep thinking subroutine.\n\n\" ~ system_message %}\n    {%- else %}\n        {%- set system_message = \"Enable deep thinking subroutine.\" %}\n    {%- endif %}\n{%- endif %}\n\n{#- System message + tools #}\n{%- if tools is not none or system_message != '' %}\n    {{- \"<|header_start|>system<|header_end|>\n\n\" }}\n    {{- system_message }}\n    {%- if tools is not none %}\n        {%- if system_message != \"\" %}\n            {{- \"\n\n\" }}\n        {%- endif %}\n        {{- \"Available Tools:\n\" }}\n        {%- for t in tools %}\n            {{- t | tojson(indent=4) }}\n            {{- \"\n\n\" }}\n        {%- endfor %}\n    {%- endif %}\n    {{- \"<|eot|>\" }}\n{%- endif %}\n\n{#- Rest of the messages #}\n{%- for message in messages %}\n    {#- Case 1 - Usual, non tool related message. #}\n    {%- if not (message.role == \"ipython\" or message.role == \"tool\" or message.role == \"tool_results\" or (message.tool_calls is defined and message.tool_calls is not none)) %}\n        {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }}\n        {%- if message['content'] is string %}\n            {{- message['content'] }}\n        {%- else %}\n            {%- for content in message['content'] %}\n                {%- if content['type'] == 'image' %}\n                    {{- '<|image|>' }}\n                {%- elif content['type'] == 'text' %}\n                    {{- content['text'] }}\n                {%- endif %}\n            {%- endfor %}\n        {%- endif %}\n        {{- \"<|eot|>\" }}\n    \n    {#- Case 2 - the response is from the assistant, but has a tool call returned. #}\n    {%- elif message.tool_calls is defined and message.tool_calls is not none %}\n        {{- \"<|header_start|>assistant<|header_end|>\n\n\" }}\n        {%- if message['content'] is string %}\n            {{- message['content'] }}\n            {%- if message['content'] | trim != \"\" %}\n                {{- \"\n\n\" }}\n            {%- endif %}\n        {%- else %}\n            {%- for content in message['content'] %}\n                {%- if content['type'] == 'image' %}\n                    {{- '<|image|>' }}\n                {%- elif content['type'] == 'text' %}\n                    {{- content['text'] }}\n                    {%- if content['text'] | trim != \"\" %}\n                        {{- \"\n\n\" }}\n                    {%- endif %}\n                {%- endif %}\n            {%- endfor %}\n        {%- endif %}\n        {{- \"[\" }}\n        {%- for tool_call in message.tool_calls %}\n            {%- if tool_call.function is defined %}\n                {%- set out = tool_call.function|tojson %}\n                {%- if not tool_call.id is defined %}\n                    {{- out }}\n                {%- else %}\n                    {{- out[:-1] }}\n                    {{- ', \"id\": \"' + tool_call.id + '\"}' }}\n                {%- endif %}\n            {%- else %}\n                {{- tool_call|tojson }}\n            {%- endif %}\n            {%- if not loop.last %}\n                {{- \", \" }}\n            {%- else %}\n                {{- \"]<|eot|>\" }}\n            {%- endif %}\n        {%- endfor %}\n    \n    {#- Case 3 - the response is from a tool call. #}\n    {%- elif message.role == \"ipython\" or message[\"role\"] == \"tool_results\" or message[\"role\"] == \"tool\" %}\n        {{- \"<|header_start|>ipython<|header_end|>\n\n\" }}\n        {%- if message.tool_call_id is defined and message.tool_call_id != '' %}\n            {{- '{\"content\": ' }}\n            {%- if message.content is mapping or (message.content is iterable and not message.content is string) %}\n                {{- message.content | tojson }}\n            {%- else %}\n                {{- '\"' ~ message.content ~ '\"' }}\n            {%- endif %}\n            {{- ', \"call_id\": \"' ~ message.tool_call_id ~ '\"}' }}\n        {%- else %}\n            {%- if message.content is mapping or (message.content is iterable and not message.content is string) %}\n                {{- message.content | tojson }}\n            {%- else %}\n                {{- message.content }}\n            {%- endif %}\n        {%- endif %}\n        {{- \"<|eot|>\" }}\n    {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n    {{- '<|header_start|>assistant<|header_end|>\\n\\n' }}\n    {%- if enable_thinking %}\n        {{- '<think>\\n' }}\n    {%- endif %}\n{%- endif %}"},"cardData":{"license":"llama4","library_name":"transformers","base_model":["meta-llama/Llama-4-Scout-17B-16E"]},"transformersInfo":{"auto_model":"AutoModelForMultimodalLM","pipeline_tag":"image-text-to-text","processor":"AutoProcessor"},"siblings":[{"rfilename":".gitattributes"},{"rfilename":"README.md"},{"rfilename":"chat_template.jinja"},{"rfilename":"config.json"},{"rfilename":"images/README"},{"rfilename":"images/cogito-v2-109b-benchmarks.png"},{"rfilename":"images/deep-cogito-logo.png"},{"rfilename":"model-00001-of-00050.safetensors"},{"rfilename":"model-00002-of-00050.safetensors"},{"rfilename":"model-00003-of-00050.safetensors"},{"rfilename":"model-00004-of-00050.safetensors"},{"rfilename":"model-00005-of-00050.safetensors"},{"rfilename":"model-00006-of-00050.safetensors"},{"rfilename":"model-00007-of-00050.safetensors"},{"rfilename":"model-00008-of-00050.safetensors"},{"rfilename":"model-00009-of-00050.safetensors"},{"rfilename":"model-00010-of-00050.safetensors"},{"rfilename":"model-00011-of-00050.safetensors"},{"rfilename":"model-00012-of-00050.safetensors"},{"rfilename":"model-00013-of-00050.safetensors"},{"rfilename":"model-00014-of-00050.safetensors"},{"rfilename":"model-00015-of-00050.safetensors"},{"rfilename":"model-00016-of-00050.safetensors"},{"rfilename":"model-00017-of-00050.safetensors"},{"rfilename":"model-00018-of-00050.safetensors"},{"rfilename":"model-00019-of-00050.safetensors"},{"rfilename":"model-00020-of-00050.safetensors"},{"rfilename":"model-00021-of-00050.safetensors"},{"rfilename":"model-00022-of-00050.safetensors"},{"rfilename":"model-00023-of-00050.safetensors"},{"rfilename":"model-00024-of-00050.safetensors"},{"rfilename":"model-00025-of-00050.safetensors"},{"rfilename":"model-00026-of-00050.safetensors"},{"rfilename":"model-00027-of-00050.safetensors"},{"rfilename":"model-00028-of-00050.safetensors"},{"rfilename":"model-00029-of-00050.safetensors"},{"rfilename":"model-00030-of-00050.safetensors"},{"rfilename":"model-00031-of-00050.safetensors"},{"rfilename":"model-00032-of-00050.safetensors"},{"rfilename":"model-00033-of-00050.safetensors"},{"rfilename":"model-00034-of-00050.safetensors"},{"rfilename":"model-00035-of-00050.safetensors"},{"rfilename":"model-00036-of-00050.safetensors"},{"rfilename":"model-00037-of-00050.safetensors"},{"rfilename":"model-00038-of-00050.safetensors"},{"rfilename":"model-00039-of-00050.safetensors"},{"rfilename":"model-00040-of-00050.safetensors"},{"rfilename":"model-00041-of-00050.safetensors"},{"rfilename":"model-00042-of-00050.safetensors"},{"rfilename":"model-00043-of-00050.safetensors"},{"rfilename":"model-00044-of-00050.safetensors"},{"rfilename":"model-00045-of-00050.safetensors"},{"rfilename":"model-00046-of-00050.safetensors"},{"rfilename":"model-00047-of-00050.safetensors"},{"rfilename":"model-00048-of-00050.safetensors"},{"rfilename":"model-00049-of-00050.safetensors"},{"rfilename":"model-00050-of-00050.safetensors"},{"rfilename":"model.safetensors.index.json"},{"rfilename":"preprocessor_config.json"},{"rfilename":"processor_config.json"},{"rfilename":"special_tokens_map.json"},{"rfilename":"tokenizer.json"},{"rfilename":"tokenizer_config.json"}],"spaces":["navin1890/vnsali-cogito-demo"],"createdAt":"2025-07-27T06:44:53.000Z","safetensors":{"parameters":{"BF16":108632444416},"total":108632444416},"usedStorage":217293266846}