Files
llama.cpp/models/templates/poolside-Laguna-S-2.1.jinja
T
Guido Imperiale a52077c4ca
CI (cpu) / ubuntu (x64, ubuntu-22.04) (push) Failing after 30s
CI (CUDA, ubuntu) / hip (push) Failing after 55s
CI (android) / ndk (push) Failing after 1m27s
CI (android) / arm64 (push) Failing after 1m33s
CI (android) / default (push) Failing after 2m39s
CI (CUDA, ubuntu) / cuda (push) Failing after 1m14s
CI (sanitize) / ctest (ubuntu-24.04, THREAD) (push) Failing after 8s
CI (CUDA, ubuntu) / musa (push) Failing after 5m44s
CI (sycl) / ubuntu-24-sycl (fp16, ON) (push) Failing after 3m44s
CI (sycl) / ubuntu-24-sycl (fp32, OFF) (push) Failing after 2m56s
CI (vulkan) / ubuntu-llvmpipe (push) Failing after 1m42s
CI (webgpu) / format (push) Successful in 19s
CI (webgpu) / ubuntu (push) Failing after 8s
CI (cpu) / windows (x64, x64-openblas, -G "Ninja Multi-Config" -D CMAKE_TOOLCHAIN_FILE=cmake/x64-windows-llvm.cmake -DGGML_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DGGML_RPC=ON -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON -DGGML_OPENMP=OFF -DGGML_BLAS=ON -DGGML_BLA… (push) Canceled after 0s
CI (cpu) / windows (x64, x64-vulkan, -G "Ninja Multi-Config" -D CMAKE_TOOLCHAIN_FILE=cmake/x64-windows-llvm.cmake -DCMAKE_BUILD_TYPE=Release -DGGML_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DGGML_RPC=ON -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON -DGGML_VULKAN=ON) (push) Canceled after 0s
CI (3rd-party) / ubuntu-24-llguidance (push) Canceled after 0s
CI (apple) / macos-latest-arm64 (push) Canceled after 0s
CI (apple) / macos-latest-x64 (push) Canceled after 0s
CI (apple) / macos-latest-ios-xcode (push) Canceled after 0s
CI (apple) / macos-latest-tvos (push) Canceled after 0s
CI (apple) / macos-latest-visionos (push) Canceled after 0s
Build relocatable cmake package / linux (push) Canceled after 0s
CI (sanitize) / ctest ([self-hosted X64 Linux], UNDEFINED) (push) Canceled after 0s
CI (cpu) / ubuntu (arm64, ubuntu-24.04-arm) (push) Canceled after 0s
CI (cpu) / windows (arm64, arm64, -G "Ninja Multi-Config" -D CMAKE_TOOLCHAIN_FILE=cmake/arm64-windows-llvm.cmake -DGGML_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON) (push) Canceled after 0s
CI (cpu) / windows (x64, x64-cpu-static, -G "Ninja Multi-Config" -D CMAKE_TOOLCHAIN_FILE=cmake/x64-windows-llvm.cmake -DGGML_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DGGML_RPC=ON -DBUILD_SHARED_LIBS=OFF) (push) Canceled after 0s
CI (ibm) / ubuntu-24-s390x (push) Canceled after 0s
CI (ibm) / ubuntu-24-ppc64le (push) Canceled after 0s
CI (opencl) / windows-2025-opencl-adreno (push) Canceled after 0s
CI (openvino) / ubuntu-24-openvino (push) Canceled after 0s
CI (openvino) / openvino-windows-2022 (push) Canceled after 0s
CI (riscv) / ubuntu-cpu-riscv64-native (push) Canceled after 0s
CI (cpu) / build-cmake-pkg (push) Canceled after 0s
CI (riscv) / ubuntu-riscv64-native-sanitizer (Debug, ADDRESS) (push) Canceled after 0s
CI (riscv) / ubuntu-riscv64-native-sanitizer (Debug, THREAD) (push) Canceled after 0s
CI (riscv) / ubuntu-riscv64-native-sanitizer (Debug, UNDEFINED) (push) Canceled after 0s
CI (rpc) / ubuntu-24-rpc (push) Canceled after 0s
CI (sanitize) / ctest ([self-hosted X64 Linux], ADDRESS) (push) Canceled after 0s
CI (self-hosted) / gpu-cuda (push) Canceled after 0s
CI (self-hosted) / gpu-rocm (push) Canceled after 0s
CI (self-hosted) / gpu-vulkan-nvidia-cm (push) Canceled after 0s
CI (self-hosted) / gpu-vulkan-nvidia-cm2 (push) Canceled after 0s
CI (self-hosted) / gpu-webgpu-nvidia (push) Canceled after 0s
CI (self-hosted) / gpu-metal (push) Canceled after 0s
CI (self-hosted) / gpu-webgpu-apple (push) Canceled after 0s
CI (self-hosted) / gpu-vulkan-apple (push) Canceled after 0s
CI (self-hosted) / gpu-vulkan-intel-linux (push) Canceled after 0s
CI (self-hosted) / gpu-vulkan-intel-windows (push) Canceled after 0s
CI (self-hosted) / gpu-openvino-low-perf (push) Canceled after 0s
CI (self-hosted) / cpu-x64-high-perf (push) Canceled after 0s
CI (self-hosted) / cpu-arm64-high-perf-graviton4 (push) Canceled after 0s
CI (self-hosted) / cpu-arm64-graviton4-kleidiai (push) Canceled after 0s
CI (sycl) / windows-latest-sycl (push) Canceled after 0s
CI (virtgpu) / ubuntu-24-virtgpu (push) Canceled after 0s
CI (vulkan) / ubuntu-arm64 (push) Canceled after 0s
CI (wasm) / ubuntu-webgpu (push) Canceled after 0s
CI (webgpu) / macos (push) Canceled after 0s
Code Style Checker / model-naming (push) Canceled after 0s
EditorConfig Checker / editorconfig (push) Canceled after 0s
Release / check-release (push) Canceled after 0s
Release / get-version (push) Canceled after 0s
Release / windows-cuda (13.4, arm64) (push) Canceled after 0s
Release / windows-cuda (12.4, x64) (push) Canceled after 0s
Release / windows-cuda (13.3, x64) (push) Canceled after 0s
Release / windows-sycl (push) Canceled after 0s
Release / ubuntu-24-sycl (fp16, ON) (push) Canceled after 0s
Release / ubuntu-24-sycl (fp32, OFF) (push) Canceled after 0s
Release / ubuntu-22-rocm (7.2.1, x64, gfx908;gfx90a;gfx942;gfx1030;gfx1100;gfx1101;gfx1102;gfx1151;gfx1150;gfx1200;gfx1201) (push) Canceled after 0s
Release / windows-hip (gfx1150;gfx1151;gfx1200;gfx1201;gfx1100;gfx1101;gfx1102;gfx1030;gfx1031;gfx1032, radeon) (push) Canceled after 0s
Release / macos-cpu (arm64, arm64, -DGGML_METAL_EMBED_LIBRARY=ON -DCMAKE_OSX_DEPLOYMENT_TARGET=13.3, macos-26) (push) Canceled after 0s
Release / macos-cpu (x64, x64, -DGGML_METAL=OFF -DCMAKE_OSX_DEPLOYMENT_TARGET=13.3, macos-15-intel) (push) Canceled after 0s
Release / ubuntu-cpu (arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Release / ubuntu-cpu (s390x, ubuntu-24.04-s390x) (push) Canceled after 0s
Server (sanitize) / server (RelWithDebInfo, UNDEFINED) (push) Canceled after 0s
Server (sanitize) / server (RelWithDebInfo, ADDRESS) (push) Canceled after 0s
Server (self-hosted) / server-metal (push) Canceled after 0s
Server (self-hosted) / server-cuda (push) Canceled after 0s
Server (self-hosted) / server-kleidiai (push) Canceled after 0s
Server / ubuntu (push) Canceled after 0s
Server / windows (push) Canceled after 0s
CI (apple) / macos-latest-swift (generic/platform=iOS) (push) Canceled after 0s
CI (apple) / macos-latest-swift (generic/platform=macOS) (push) Canceled after 0s
CI (apple) / macos-latest-swift (generic/platform=tvOS) (push) Canceled after 0s
Release / ubuntu-cpu (x64, ubuntu-22.04) (push) Canceled after 0s
Release / ubuntu-vulkan (arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Release / ubuntu-vulkan (x64, ubuntu-22.04) (push) Canceled after 0s
Release / android-arm64 (push) Canceled after 0s
Release / ubuntu-24-openvino (push) Canceled after 0s
Release / windows-openvino (push) Canceled after 0s
Release / windows-cpu (arm64) (push) Canceled after 0s
Release / windows-cpu (x64) (push) Canceled after 0s
Release / windows (arm64, opencl-adreno, -G "Ninja Multi-Config" -D CMAKE_TOOLCHAIN_FILE=cmake/arm64-windows-llvm.cmake -DCMAKE_PREFIX_PATH="$env:RUNNER_TEMP/opencl-arm64-release" -DGGML_OPENCL=ON -DGGML_OPENCL_USE_ADRENO_KERNELS=ON, ggml-opencl) (push) Canceled after 0s
Release / windows (x64, vulkan, -DGGML_VULKAN=ON, ggml-vulkan) (push) Canceled after 0s
Release / ios-xcode (push) Canceled after 0s
Release / ui-build (push) Canceled after 0s
Release / release (push) Canceled after 0s
Release / ui-publish (push) Canceled after 0s
chat : Align Laguna-S-2.1 chat template to huggingface (#26232)
2026-08-10 05:20:59 -05:00

94 lines
3.9 KiB
Django/Jinja

{#- Iteration on laguna_glm_thinking_v8/chat_template.jinja -#}
{#- No formatting instructions -#}
{{- "〈|EOS|〉" -}}
{%- set enable_thinking = enable_thinking | default(true) -%}
{%- set add_generation_prompt = add_generation_prompt | default(false) -%}
{%- set preserve_thinking = preserve_thinking | default(false) -%}
{#- ───── header (system message) ───── -#}
{#- 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. -#}
{%- 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." -%}
{%- if messages and messages[0].role == "system" -%}
{%- set system_message = messages[0].content -%}
{%- set messages = messages[1:] -%}
{%- endif -%}
{%- set has_sys = system_message and system_message.strip() -%}
{%- if has_sys or tools or enable_thinking -%}
{{- "<system>" -}}
{%- if has_sys -%}
{{- system_message.rstrip() -}}
{%- if tools -%}{{- "\n\n" -}}{%- endif -%}
{%- endif -%}
{%- if tools -%}
{{- "### Tools\n\n" -}}
{{- "You may call functions to assist with the user query.\n" -}}
{{- "All available function signatures are listed below:\n" -}}
{{- "<available_tools>\n" -}}
{%- for tool in tools -%}
{{- (tool | tojson) ~ "\n" -}}
{%- endfor -%}
{{- "</available_tools>" -}}
{%- endif -%}
{{- "</system>\n" -}}
{%- endif -%}
{#- ───── main loop ───── -#}
{%- for message in messages -%}
{%- set content = message.content if message.content is string else "" -%}
{%- if message.role == "user" -%}
{{- "<user>" + content + "</user>\n" -}}
{%- elif message.role == "assistant" -%}
{%- generation -%}
{{- "<assistant>" -}}
{#- Extract reasoning content from message.reasoning (vLLM field name) or message.reasoning_content -#}
{%- set reasoning_content = '' -%}
{%- if message.reasoning is string -%}
{%- set reasoning_content = message.reasoning -%}
{%- elif message.reasoning_content is string -%}
{%- set reasoning_content = message.reasoning_content -%}
{%- endif -%}
{#- Display reasoning content for all messages if enable_thinking -#}
{%- if enable_thinking or preserve_thinking -%}
{{- '<think>' + reasoning_content + '</think>' -}}
{%- else -%}
{{- '</think>' -}}
{%- endif -%}
{#- Display main content (trailing newline only when no tool_calls follow) -#}
{%- if content -%}
{{- content -}}
{%- endif -%}
{%- if message.tool_calls -%}
{%- for tool_call in message.tool_calls -%}
{%- set function_data = tool_call.function -%}
{{- '<tool_call>' + function_data.name -}}
{%- set _args = function_data.arguments -%}
{%- for k, v in _args.items() -%}
{{- "<arg_key>" ~ k ~ "</arg_key>" -}}
{{- "<arg_value>" -}}{{- v | tojson(ensure_ascii=False) if v is not string else v -}}{{- "</arg_value>" -}}
{%- endfor -%}
{{- "</tool_call>" -}}
{%- endfor -%}
{%- endif -%}
{{- "</assistant>\n" -}}
{%- endgeneration -%}
{%- elif message.role == "tool" -%}
{{- "<tool_response>" + content + "</tool_response>\n" -}}
{%- elif message.role == "system" -%}
{#- Render additional system messages (the first one, if any, is handled separately in the header and was sliced off above) -#}
{{- "<system>" + content + "</system>\n" -}}
{%- endif -%}
{%- endfor -%}
{#- ───── generation prompt ───── -#}
{%- if add_generation_prompt -%}
{{- "<assistant>" -}}
{#- ───── Include reasoning mode directive ───── -#}
{%- if enable_thinking -%}
{{- '<think>' -}}
{%- else -%}
{{- '</think>' -}}
{%- endif -%}
{%- endif -%}