chat : Align Laguna-S-2.1 chat template to huggingface (#26232)
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

This commit is contained in:
Guido Imperiale
2026-08-10 05:20:59 -05:00
committed by GitHub
parent 4c6766fd7e
commit a52077c4ca
2 changed files with 9 additions and 2 deletions
+3 -2
View File
@@ -1,8 +1,9 @@
{#- Iteration on laguna_glm_thinking_v8/chat_template.jinja -#} {#- Iteration on laguna_glm_thinking_v8/chat_template.jinja -#}
{#- No formatting instructions -#} {#- No formatting instructions -#}
{{- "〈|EOS|〉" -}} {{- "〈|EOS|〉" -}}
{%- set enable_thinking = enable_thinking | default(false) -%} {%- set enable_thinking = enable_thinking | default(true) -%}
{%- set add_generation_prompt = add_generation_prompt | default(false) -%} {%- set add_generation_prompt = add_generation_prompt | default(false) -%}
{%- set preserve_thinking = preserve_thinking | default(false) -%}
{#- ───── header (system message) ───── -#} {#- ───── 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. -#} {#- 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. -#}
@@ -51,7 +52,7 @@
{%- set reasoning_content = message.reasoning_content -%} {%- set reasoning_content = message.reasoning_content -%}
{%- endif -%} {%- endif -%}
{#- Display reasoning content for all messages if enable_thinking -#} {#- Display reasoning content for all messages if enable_thinking -#}
{%- if enable_thinking -%} {%- if enable_thinking or preserve_thinking -%}
{{- '<think>' + reasoning_content + '</think>' -}} {{- '<think>' + reasoning_content + '</think>' -}}
{%- else -%} {%- else -%}
{{- '</think>' -}} {{- '</think>' -}}
+6
View File
@@ -63,6 +63,7 @@ static void test_laguna_tool_format(testing & t);
static void test_laguna_s_analysis(testing & t); static void test_laguna_s_analysis(testing & t);
static void test_laguna_s_reasoning_detection(testing & t); static void test_laguna_s_reasoning_detection(testing & t);
static void test_laguna_s_tool_format(testing & t); static void test_laguna_s_tool_format(testing & t);
static void test_laguna_s_preserve_reasoning(testing & t);
static void test_laguna_xs2_analysis(testing & t); static void test_laguna_xs2_analysis(testing & t);
static void test_laguna_xs2_reasoning_detection(testing & t); static void test_laguna_xs2_reasoning_detection(testing & t);
static void test_laguna_xs2_tool_format(testing & t); static void test_laguna_xs2_tool_format(testing & t);
@@ -1451,9 +1452,14 @@ static void test_laguna_s_tool_format(testing & t) {
analysis.analyze_template(tmpl); analysis.analyze_template(tmpl);
t.assert_equal("Laguna-S(v8) arg_value_suffix should be '</arg_value>'", "</arg_value>", analysis.tools.arguments.value_suffix); t.assert_equal("Laguna-S(v8) arg_value_suffix should be '</arg_value>'", "</arg_value>", analysis.tools.arguments.value_suffix);
} }
static void test_laguna_s_preserve_reasoning(testing & t) {
common_chat_template tmpl = load_laguna_s_template(t);
t.assert_true("Laguna-S(v8) supports preserving reasoning", tmpl.original_caps().supports_preserve_reasoning);
}
static void test_laguna_s_analysis(testing & t) { static void test_laguna_s_analysis(testing & t) {
t.test("Laguna-S(v8) reasoning detection", test_laguna_s_reasoning_detection); t.test("Laguna-S(v8) reasoning detection", test_laguna_s_reasoning_detection);
t.test("Laguna-S(v8) tool format", test_laguna_s_tool_format); t.test("Laguna-S(v8) tool format", test_laguna_s_tool_format);
t.test("Laguna-S(v8) preserve reasoning", test_laguna_s_preserve_reasoning);
} }
static common_chat_template load_laguna_xs2_template(testing & t) { static common_chat_template load_laguna_xs2_template(testing & t) {