{"_id":"6a2fc341ad166f2d46b1b26e","id":"poolside/Laguna-M.1","private":false,"pipeline_tag":"text-generation","library_name":"vllm","tags":["vllm","safetensors","laguna","laguna-m.1","sglang","bf16","moe","text-generation","conversational","custom_code","license:apache-2.0","eval-results","region:us"],"downloads":431,"likes":71,"modelId":"poolside/Laguna-M.1","author":"poolside","sha":"2f697c88c3f55e18b6f21eeddbe46b0f1ea2e94e","lastModified":"2026-06-18T21:59:40.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":["LagunaForCausalLM"],"auto_map":{"AutoConfig":"configuration_laguna.LagunaConfig","AutoModelForCausalLM":"modeling_laguna.LagunaForCausalLM"},"model_type":"laguna","num_experts":256,"num_experts_per_tok":16,"tokenizer_config":{"bos_token":"〈|EOS|〉","cls_token":"〈|CLS|〉","eos_token":"〈|EOS|〉","mask_token":"〈|MASK|〉","pad_token":"〈|PAD|〉","sep_token":"〈|SEP|〉","unk_token":"〈|UNK|〉","chat_template":"{% include 'chat_template.jinja' %}"},"chat_template_jinja":"{#- Copied from laguna_glm_thinking_v4/chat_template.jinja -#}\n{#- Removes prefix that references <think> token, and replaces message.reasoning_content reference with message.reasoning -#}\n{{- \"〈|EOS|〉\" -}}\n{%- set enable_thinking = enable_thinking | default(false) -%}\n{%- set render_assistant_messages_raw = render_assistant_messages_raw | default(false) -%}\n{%- set add_generation_prompt = add_generation_prompt | default(false) -%}\n\n{#- ───── header (system message) ───── -#}\n{%- set system_message = \"\" -%}\n{%- if messages and messages[0].role == \"system\" -%}\n  {%- set system_message = messages[0].content -%}\n{%- endif -%}\n\n{%- if (system_message and system_message.strip()) or tools -%}\n  {{- \"<system>\\n\" -}}\n\n  {%- if system_message and system_message.strip() -%}\n    {{- \"\\n\" -}}\n    {{- system_message.rstrip() -}}\n  {%- endif -%}\n\n  {%- if tools -%}\n    {{- \"\\n\\n### Tools\\n\\n\" -}}\n    {%- set ns = namespace(tool_string=\"You may call functions to assist with the user query.\\n\"\n          ~ \"All available function signatures are listed below:\\n\"\n          ~ \"<available_tools>\\n\") -%}\n    {%- for tool in tools -%}\n      {%- set ns.tool_string = ns.tool_string ~ (tool | tojson) ~ \"\\n\" -%}\n    {%- endfor -%}\n    {%- if enable_thinking -%}\n      {%- set tool_string = ns.tool_string + \"</available_tools>\\n\\n\" ~\n            \"Wrap your thinking in '<think>', '</think>' tags, followed by a function call. For each function call, return an unescaped XML-like object with function name and arguments within '<tool_call>' and '</tool_call>' tags, like here:\\n\" ~\n            \"<think> your thoughts here </think>\\n\" ~\n            \"<tool_call>function-name\\n<arg_key>argument-key</arg_key>\\n<arg_value>value-of-argument-key</arg_value>\\n\" ~\n            \"</tool_call>\" -%}\n    {%- else -%}\n      {%- set tool_string = ns.tool_string + \"</available_tools>\\n\\n\" ~\n            \"For each function call, return an unescaped XML-like object \" ~\n            \"with function name and arguments within '<tool_call>' and '</tool_call>' tags, like here:\\n\" ~\n            \"<tool_call>function-name\\n<arg_key>argument-key</arg_key>\\n<arg_value>value-of-argument-key</arg_value>\\n\" ~\n            \"</tool_call>\" -%}\n    {%- endif -%}\n    {{- tool_string -}}\n  {%- endif -%}\n\n  {{- \"\\n</system>\\n\" -}}\n{%- endif -%}\n\n{#- ───── main loop ───── -#}\n{%- for message in messages -%}\n  {%- set content = message.content if message.content is string else \"\" -%}\n  {%- if message.role == \"user\" -%}\n    {{- \"<user>\\n\" + content + \"\\n</user>\\n\" -}}\n  {%- elif message.role == \"assistant\" -%}\n    {%- generation -%}\n      {{- \"<assistant>\\n\" -}}\n      {%- if render_assistant_messages_raw -%}\n        {#- Raw mode: prepend the generation prompt token, then dump content verbatim. -#}\n        {#- The generation prompt is <think> when enable_thinking, </think> otherwise. -#}\n        {#- Only prepend if content doesn't already start with it. -#}\n        {%- if enable_thinking -%}\n          {%- if not content.startswith('<think>') -%}\n            {{- '<think>' -}}\n          {%- endif -%}\n        {%- else -%}\n          {%- if not content.startswith('</think>') -%}\n            {{- '</think>' -}}\n          {%- endif -%}\n        {%- endif -%}\n        {{- content -}}\n        {#- Append closing tag if content doesn't already end with it. -#}\n        {%- if not content.endswith('</assistant>\\n') and not content.endswith('</assistant>') -%}\n          {{- '\\n</assistant>' -}}\n        {%- endif -%}\n        {{- \"\\n\" -}}\n      {%- else -%}\n        {#- Extract reasoning content from message.reasoning (vLLM field name) or message.reasoning_content, or from <think> tags -#}\n        {%- set reasoning_content = '' %}\n        {%- if message.reasoning is string %}\n          {%- set reasoning_content = message.reasoning %}\n        {%- elif message.reasoning_content is string %}\n          {%- set reasoning_content = message.reasoning_content %}\n        {%- endif %}\n        {#- Always strip <think> tags from content if present to avoid duplication -#}\n        {%- if '</think>' in content %}\n          {%- if not reasoning_content %}\n            {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n          {%- endif %}\n          {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n        {%- endif %}\n        {#- Display reasoning content for all messages -#}\n        {%- if reasoning_content -%}\n          {{- '<think>\\n' + reasoning_content.strip() + '\\n</think>\\n' -}}\n        {%- else -%}\n          {{- '</think>\\n' -}}\n        {%- endif -%}\n        {#- Display main content -#}\n        {%- if content.strip() -%}\n          {{- content.strip() ~ \"\\n\" -}}\n        {%- endif -%}\n        {%- if message.tool_calls -%}\n          {%- for tool_call in message.tool_calls -%}\n            {%- set function_data = tool_call.function -%}\n            {{- '<tool_call>' + function_data.name }}\n            {% set _args = function_data.arguments %}\n            {%- for k, v in _args.items() -%}\n              {{- \"<arg_key>\" ~ k ~ \"</arg_key>\\n\" -}}\n              {{- \"<arg_value>\"}}{{ v | tojson(ensure_ascii=False) if v is not string else v }}{{ \"</arg_value>\\n\" -}}\n            {%- endfor -%}\n            {{- \"</tool_call>\\n\" -}}\n          {%- endfor -%}\n        {%- endif -%}\n        {{- \"</assistant>\\n\" -}}\n      {%- endif -%}\n    {%- endgeneration -%}\n  {%- elif message.role == \"tool\" -%}\n    {{- \"<tool_response>\\n\" + content + \"\\n</tool_response>\\n\" -}}\n  {%- elif message.role == \"system\" and loop.index0 != 0 -%}\n    {#- Render additional system messages (skip the first one which is handled separately in the header) -#}\n    {{- \"<system>\\n\" + content + \"\\n</system>\\n\" -}}\n  {%- endif -%}\n{%- endfor -%}\n{#- ───── generation prompt ───── -#}\n{%- if add_generation_prompt -%}\n  {{- \"<assistant>\\n\" -}}\n  {#- ───── Include reasoning mode directive ───── -#}\n  {%- if not enable_thinking %}\n    {{- '</think>' -}}\n  {%- else %}\n    {{- '<think>' -}}\n  {%- endif %}\n{%- endif -%}\n"},"cardData":{"library_name":"vllm","inference":false,"extra_gated_description":"To learn more about how we process your personal data, please read our <a href=\"https://poolside.ai/legal/privacy\">Privacy Policy</a>.","tags":["laguna-m.1","vllm","sglang","bf16","moe"],"license":"apache-2.0","pipeline_tag":"text-generation"},"siblings":[{"rfilename":".eval_results/swe-bench_pro.yaml"},{"rfilename":".eval_results/swe-bench_verified.yaml"},{"rfilename":".eval_results/terminal-bench-2.0.yaml"},{"rfilename":".gitattributes"},{"rfilename":"LICENSE.md"},{"rfilename":"README.md"},{"rfilename":"chat_template.jinja"},{"rfilename":"config.json"},{"rfilename":"configuration_laguna.py"},{"rfilename":"generation_config.json"},{"rfilename":"model-00001-of-00089.safetensors"},{"rfilename":"model-00002-of-00089.safetensors"},{"rfilename":"model-00003-of-00089.safetensors"},{"rfilename":"model-00004-of-00089.safetensors"},{"rfilename":"model-00005-of-00089.safetensors"},{"rfilename":"model-00006-of-00089.safetensors"},{"rfilename":"model-00007-of-00089.safetensors"},{"rfilename":"model-00008-of-00089.safetensors"},{"rfilename":"model-00009-of-00089.safetensors"},{"rfilename":"model-00010-of-00089.safetensors"},{"rfilename":"model-00011-of-00089.safetensors"},{"rfilename":"model-00012-of-00089.safetensors"},{"rfilename":"model-00013-of-00089.safetensors"},{"rfilename":"model-00014-of-00089.safetensors"},{"rfilename":"model-00015-of-00089.safetensors"},{"rfilename":"model-00016-of-00089.safetensors"},{"rfilename":"model-00017-of-00089.safetensors"},{"rfilename":"model-00018-of-00089.safetensors"},{"rfilename":"model-00019-of-00089.safetensors"},{"rfilename":"model-00020-of-00089.safetensors"},{"rfilename":"model-00021-of-00089.safetensors"},{"rfilename":"model-00022-of-00089.safetensors"},{"rfilename":"model-00023-of-00089.safetensors"},{"rfilename":"model-00024-of-00089.safetensors"},{"rfilename":"model-00025-of-00089.safetensors"},{"rfilename":"model-00026-of-00089.safetensors"},{"rfilename":"model-00027-of-00089.safetensors"},{"rfilename":"model-00028-of-00089.safetensors"},{"rfilename":"model-00029-of-00089.safetensors"},{"rfilename":"model-00030-of-00089.safetensors"},{"rfilename":"model-00031-of-00089.safetensors"},{"rfilename":"model-00032-of-00089.safetensors"},{"rfilename":"model-00033-of-00089.safetensors"},{"rfilename":"model-00034-of-00089.safetensors"},{"rfilename":"model-00035-of-00089.safetensors"},{"rfilename":"model-00036-of-00089.safetensors"},{"rfilename":"model-00037-of-00089.safetensors"},{"rfilename":"model-00038-of-00089.safetensors"},{"rfilename":"model-00039-of-00089.safetensors"},{"rfilename":"model-00040-of-00089.safetensors"},{"rfilename":"model-00041-of-00089.safetensors"},{"rfilename":"model-00042-of-00089.safetensors"},{"rfilename":"model-00043-of-00089.safetensors"},{"rfilename":"model-00044-of-00089.safetensors"},{"rfilename":"model-00045-of-00089.safetensors"},{"rfilename":"model-00046-of-00089.safetensors"},{"rfilename":"model-00047-of-00089.safetensors"},{"rfilename":"model-00048-of-00089.safetensors"},{"rfilename":"model-00049-of-00089.safetensors"},{"rfilename":"model-00050-of-00089.safetensors"},{"rfilename":"model-00051-of-00089.safetensors"},{"rfilename":"model-00052-of-00089.safetensors"},{"rfilename":"model-00053-of-00089.safetensors"},{"rfilename":"model-00054-of-00089.safetensors"},{"rfilename":"model-00055-of-00089.safetensors"},{"rfilename":"model-00056-of-00089.safetensors"},{"rfilename":"model-00057-of-00089.safetensors"},{"rfilename":"model-00058-of-00089.safetensors"},{"rfilename":"model-00059-of-00089.safetensors"},{"rfilename":"model-00060-of-00089.safetensors"},{"rfilename":"model-00061-of-00089.safetensors"},{"rfilename":"model-00062-of-00089.safetensors"},{"rfilename":"model-00063-of-00089.safetensors"},{"rfilename":"model-00064-of-00089.safetensors"},{"rfilename":"model-00065-of-00089.safetensors"},{"rfilename":"model-00066-of-00089.safetensors"},{"rfilename":"model-00067-of-00089.safetensors"},{"rfilename":"model-00068-of-00089.safetensors"},{"rfilename":"model-00069-of-00089.safetensors"},{"rfilename":"model-00070-of-00089.safetensors"},{"rfilename":"model-00071-of-00089.safetensors"},{"rfilename":"model-00072-of-00089.safetensors"},{"rfilename":"model-00073-of-00089.safetensors"},{"rfilename":"model-00074-of-00089.safetensors"},{"rfilename":"model-00075-of-00089.safetensors"},{"rfilename":"model-00076-of-00089.safetensors"},{"rfilename":"model-00077-of-00089.safetensors"},{"rfilename":"model-00078-of-00089.safetensors"},{"rfilename":"model-00079-of-00089.safetensors"},{"rfilename":"model-00080-of-00089.safetensors"},{"rfilename":"model-00081-of-00089.safetensors"},{"rfilename":"model-00082-of-00089.safetensors"},{"rfilename":"model-00083-of-00089.safetensors"},{"rfilename":"model-00084-of-00089.safetensors"},{"rfilename":"model-00085-of-00089.safetensors"},{"rfilename":"model-00086-of-00089.safetensors"},{"rfilename":"model-00087-of-00089.safetensors"},{"rfilename":"model-00088-of-00089.safetensors"},{"rfilename":"model-00089-of-00089.safetensors"},{"rfilename":"model.safetensors.index.json"},{"rfilename":"modeling_laguna.py"},{"rfilename":"special_tokens_map.json"},{"rfilename":"tokenizer.json"},{"rfilename":"tokenizer_config.json"}],"spaces":["Imogi/DarkZone-AI","MashaKenzie/vk-ai-bot","IDKHowToCodeFr/vera-engine","lablab-ai-amd-developer-hackathon/Threat_Hunter","DeepImagix/self-trained2","SenorT/Analista_Junior","qinshilee/worker1","inchey/coder","hugh007/openwolf-hermes","mraheelanjundev/crm-intelligence","HwangJinwook/haccpmate","mibrahimalpha/fupshop-detector","abid6160/quiz","abid6160/quizai","yami777/SUBOT","bep40/Space-Mutiverse-Control","samir12321/negoptimAi","alambsahir/nubtk_pilot","id1ot/local-llm","stewanagent/chat_agent","Wariman/Multiple-AI","stewanagent/rag"],"createdAt":"2026-06-15T09:17:53.000Z","safetensors":{"parameters":{"BF16":225795725568},"total":225795725568},"usedStorage":451598020536}