{"_id":"6a54ef0b62869082b568f3ec","id":"poolside/Laguna-S-2.1","private":false,"pipeline_tag":"text-generation","library_name":"transformers","tags":["transformers","safetensors","laguna","text-generation","laguna-s-2.1","vllm","conversational","custom_code","license:openmdw-1.1","eval-results","region:us"],"downloads":3056,"likes":429,"modelId":"poolside/Laguna-S-2.1","author":"poolside","sha":"e80da38da3ed4c4e56888cc1ba39582946a164ba","lastModified":"2026-07-22T17:56:57.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":10,"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":"{#- Iteration on laguna_glm_thinking_v8/chat_template.jinja -#}\n{#- No formatting instructions -#}\n{{- \"〈|EOS|〉\" -}}\n{%- set enable_thinking = enable_thinking | default(true) -%}\n{%- set add_generation_prompt = add_generation_prompt | default(false) -%}\n{%- set preserve_thinking = preserve_thinking | default(false) -%}\n\n{#- ───── header (system message) ───── -#}\n{#- A caller-supplied system message with empty content opts out of the default below, producing no <system> block — used to train without a system message. -#}\n{%- set system_message = \"You are a helpful, conversationally-fluent assistant made by Poolside. You are here to be helpful to users through natural language conversations.\" -%}\n{%- if messages and messages[0].role == \"system\" -%}\n  {%- set system_message = messages[0].content -%}\n  {%- set messages = messages[1:] -%}\n{%- endif -%}\n\n{%- set has_sys = system_message and system_message.strip() -%}\n{%- if has_sys or tools or enable_thinking -%}\n  {{- \"<system>\" -}}\n\n  {%- if has_sys -%}\n    {{- system_message.rstrip() -}}\n    {%- if tools -%}{{- \"\\n\\n\" -}}{%- endif -%}\n  {%- endif -%}\n\n  {%- if tools -%}\n    {{- \"### Tools\\n\\n\" -}}\n    {{- \"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      {{- (tool | tojson) ~ \"\\n\" -}}\n    {%- endfor -%}\n    {{- \"</available_tools>\" -}}\n  {%- endif -%}\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>\" + content + \"</user>\\n\" -}}\n  {%- elif message.role == \"assistant\" -%}\n    {%- generation -%}\n      {{- \"<assistant>\" -}}\n      {#- Extract reasoning content from message.reasoning (vLLM field name) or message.reasoning_content -#}\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      {#- Display reasoning content for all messages if enable_thinking -#}\n      {%- if enable_thinking or preserve_thinking -%}\n        {{- '<think>' + reasoning_content + '</think>' -}}\n      {%- else -%}\n        {{- '</think>' -}}\n      {%- endif -%}\n      {#- Display main content (trailing newline only when no tool_calls follow) -#}\n      {%- if content -%}\n        {{- content -}}\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            {{- \"<arg_value>\" -}}{{- v | tojson(ensure_ascii=False) if v is not string else v -}}{{- \"</arg_value>\" -}}\n          {%- endfor -%}\n          {{- \"</tool_call>\" -}}\n        {%- endfor -%}\n      {%- endif -%}\n      {{- \"</assistant>\\n\" -}}\n    {%- endgeneration -%}\n  {%- elif message.role == \"tool\" -%}\n    {{- \"<tool_response>\" + content + \"</tool_response>\\n\" -}}\n  {%- elif message.role == \"system\" -%}\n    {#- Render additional system messages (the first one, if any, is handled separately in the header and was sliced off above) -#}\n    {{- \"<system>\" + content + \"</system>\\n\" -}}\n  {%- endif -%}\n{%- endfor -%}\n{#- ───── generation prompt ───── -#}\n{%- if add_generation_prompt -%}\n  {{- \"<assistant>\" -}}\n  {#- ───── Include reasoning mode directive ───── -#}\n  {%- if enable_thinking -%}\n    {{- '<think>' -}}\n  {%- else -%}\n    {{- '</think>' -}}\n  {%- endif -%}\n{%- endif -%}"},"cardData":{"library_name":"transformers","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-s-2.1","vllm"],"license":"openmdw-1.1","pipeline_tag":"text-generation"},"transformersInfo":{"auto_model":"AutoModelForCausalLM","pipeline_tag":"text-generation","processor":"AutoTokenizer"},"siblings":[{"rfilename":".eval_results/deepswe.yaml"},{"rfilename":".eval_results/swe-bench_multilingual.yaml"},{"rfilename":".eval_results/swe-bench_pro.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-00046.safetensors"},{"rfilename":"model-00002-of-00046.safetensors"},{"rfilename":"model-00003-of-00046.safetensors"},{"rfilename":"model-00004-of-00046.safetensors"},{"rfilename":"model-00005-of-00046.safetensors"},{"rfilename":"model-00006-of-00046.safetensors"},{"rfilename":"model-00007-of-00046.safetensors"},{"rfilename":"model-00008-of-00046.safetensors"},{"rfilename":"model-00009-of-00046.safetensors"},{"rfilename":"model-00010-of-00046.safetensors"},{"rfilename":"model-00011-of-00046.safetensors"},{"rfilename":"model-00012-of-00046.safetensors"},{"rfilename":"model-00013-of-00046.safetensors"},{"rfilename":"model-00014-of-00046.safetensors"},{"rfilename":"model-00015-of-00046.safetensors"},{"rfilename":"model-00016-of-00046.safetensors"},{"rfilename":"model-00017-of-00046.safetensors"},{"rfilename":"model-00018-of-00046.safetensors"},{"rfilename":"model-00019-of-00046.safetensors"},{"rfilename":"model-00020-of-00046.safetensors"},{"rfilename":"model-00021-of-00046.safetensors"},{"rfilename":"model-00022-of-00046.safetensors"},{"rfilename":"model-00023-of-00046.safetensors"},{"rfilename":"model-00024-of-00046.safetensors"},{"rfilename":"model-00025-of-00046.safetensors"},{"rfilename":"model-00026-of-00046.safetensors"},{"rfilename":"model-00027-of-00046.safetensors"},{"rfilename":"model-00028-of-00046.safetensors"},{"rfilename":"model-00029-of-00046.safetensors"},{"rfilename":"model-00030-of-00046.safetensors"},{"rfilename":"model-00031-of-00046.safetensors"},{"rfilename":"model-00032-of-00046.safetensors"},{"rfilename":"model-00033-of-00046.safetensors"},{"rfilename":"model-00034-of-00046.safetensors"},{"rfilename":"model-00035-of-00046.safetensors"},{"rfilename":"model-00036-of-00046.safetensors"},{"rfilename":"model-00037-of-00046.safetensors"},{"rfilename":"model-00038-of-00046.safetensors"},{"rfilename":"model-00039-of-00046.safetensors"},{"rfilename":"model-00040-of-00046.safetensors"},{"rfilename":"model-00041-of-00046.safetensors"},{"rfilename":"model-00042-of-00046.safetensors"},{"rfilename":"model-00043-of-00046.safetensors"},{"rfilename":"model-00044-of-00046.safetensors"},{"rfilename":"model-00045-of-00046.safetensors"},{"rfilename":"model-00046-of-00046.safetensors"},{"rfilename":"model.safetensors.index.json"},{"rfilename":"modeling_laguna.py"},{"rfilename":"special_tokens_map.json"},{"rfilename":"tokenizer.json"},{"rfilename":"tokenizer_config.json"}],"spaces":["akhaliq/Laguna-S-2.1","poolside/Laguna-S-2.1","bep40/ml-intern"],"createdAt":"2026-07-13T13:58:35.000Z","safetensors":{"parameters":{"BF16":117561977600},"total":117561977600},"usedStorage":235128558560}