Live
Black Hat USADark ReadingBlack Hat AsiaAI BusinessAI chatbots programmed to validate users relying on mental health advice, experts warn - FOX 10 PhoenixGNews AI mental healthAI with human feelings? Anthropic’s Claude edges closer - Genetic Literacy ProjectGoogle News: ClaudeJeff Bezos’s new lab hires xAI co-founder from OpenAI - Financial TimesGoogle News: OpenAIGoogle study finds LLMs are embedded at every stage of abuse detection - Help Net SecurityGoogle News: LLMTABQAWORLD: Optimizing Multimodal Reasoning for Multi-Turn Table Question AnsweringArXiv CS.AIPosition: Science of AI Evaluation Requires Item-level Benchmark DataArXiv CS.AIA reconfigurable smart camera implementation for jet flames characterization based on an optimized segmentation modelarXiv cs.CVIC3-Evolve: Proof-/Witness-Gated Offline LLM-Driven Heuristic Evolution for IC3 Hardware Model CheckingArXiv CS.AIEvent-Driven Neuromorphic Vision Enables Energy-Efficient Visual Place RecognitionarXiv cs.CVStructural Segmentation of the Minimum Set Cover Problem: Exploiting Universe Decomposability for Metaheuristic OptimizationArXiv CS.AIEvaluating Artificial Intelligence Through a Christian Understanding of Human FlourishingArXiv CS.AIVERT: Reliable LLM Judges for Radiology Report EvaluationArXiv CS.AIBlack Hat USADark ReadingBlack Hat AsiaAI BusinessAI chatbots programmed to validate users relying on mental health advice, experts warn - FOX 10 PhoenixGNews AI mental healthAI with human feelings? Anthropic’s Claude edges closer - Genetic Literacy ProjectGoogle News: ClaudeJeff Bezos’s new lab hires xAI co-founder from OpenAI - Financial TimesGoogle News: OpenAIGoogle study finds LLMs are embedded at every stage of abuse detection - Help Net SecurityGoogle News: LLMTABQAWORLD: Optimizing Multimodal Reasoning for Multi-Turn Table Question AnsweringArXiv CS.AIPosition: Science of AI Evaluation Requires Item-level Benchmark DataArXiv CS.AIA reconfigurable smart camera implementation for jet flames characterization based on an optimized segmentation modelarXiv cs.CVIC3-Evolve: Proof-/Witness-Gated Offline LLM-Driven Heuristic Evolution for IC3 Hardware Model CheckingArXiv CS.AIEvent-Driven Neuromorphic Vision Enables Energy-Efficient Visual Place RecognitionarXiv cs.CVStructural Segmentation of the Minimum Set Cover Problem: Exploiting Universe Decomposability for Metaheuristic OptimizationArXiv CS.AIEvaluating Artificial Intelligence Through a Christian Understanding of Human FlourishingArXiv CS.AIVERT: Reliable LLM Judges for Radiology Report EvaluationArXiv CS.AI
AI NEWS HUBbyEIGENVECTOREigenvector

b8634

llama.cpp Releasesby ggml-orgApril 2, 20262 min read2 views
Source Quiz

chat : add Granite 4.0 chat template with correct tool_call role mapping ( #20804 ) chat : add Granite 4.0 chat template with correct tool_call role mapping Introduce LLM_CHAT_TEMPLATE_GRANITE_4_0 alongside the existing Granite 3.x template (renamed LLM_CHAT_TEMPLATE_GRANITE_3_X ). The Granite 4.0 Jinja template uses XML tags and maps the assistant_tool_call role to assistant . Without a matching C++ handler, the fallback path emits the literal role assistant_tool_call which the model does not recognize, breaking tool calling when --jinja is not used. Changes: Rename LLM_CHAT_TEMPLATE_GRANITE to LLM_CHAT_TEMPLATE_GRANITE_3_X (preserves existing 3.x behavior unchanged) Add LLM_CHAT_TEMPLATE_GRANITE_4_0 enum, map entry, and handler Detection: + ( or ) → 4.0, otherwise → 3.x Add production Gr

chat : add Granite 4.0 chat template with correct tool_call role mapping (#20804)

  • chat : add Granite 4.0 chat template with correct tool_call role mapping

Introduce LLM_CHAT_TEMPLATE_GRANITE_4_0 alongside the existing Granite 3.x template (renamed LLM_CHAT_TEMPLATE_GRANITE_3_X).

The Granite 4.0 Jinja template uses XML tags and maps the assistant_tool_call role to <|start_of_role|>assistant<|end_of_role|><|tool_call|>. Without a matching C++ handler, the fallback path emits the literal role assistant_tool_call which the model does not recognize, breaking tool calling when --jinja is not used.

Changes:

  • Rename LLM_CHAT_TEMPLATE_GRANITE to LLM_CHAT_TEMPLATE_GRANITE_3_X (preserves existing 3.x behavior unchanged)

  • Add LLM_CHAT_TEMPLATE_GRANITE_4_0 enum, map entry, and handler

  • Detection: <|start_of_role|> + ( or ) → 4.0, otherwise → 3.x

  • Add production Granite 4.0 Jinja template

  • Add tests for both 3.x and 4.0 template paths (C++ and Jinja)

Co-Authored-By: Claude Opus 4.6 [email protected]

  • Code review: follow standard format and use common logic in test-chat-template.cpp

  • Rename custom_conversation variable for extra_conversation to give it a more meaningful name

Co-authored-by: Claude Opus 4.6 [email protected]

macOS/iOS:

  • macOS Apple Silicon (arm64)

  • macOS Intel (x64)

  • iOS XCFramework

Linux:

  • Ubuntu x64 (CPU)

  • Ubuntu arm64 (CPU)

  • Ubuntu s390x (CPU)

  • Ubuntu x64 (Vulkan)

  • Ubuntu arm64 (Vulkan)

  • Ubuntu x64 (ROCm 7.2)

  • Ubuntu x64 (OpenVINO)

Windows:

  • Windows x64 (CPU)

  • Windows arm64 (CPU)

  • Windows x64 (CUDA 12) - CUDA 12.4 DLLs

  • Windows x64 (CUDA 13) - CUDA 13.1 DLLs

  • Windows x64 (Vulkan)

  • Windows x64 (SYCL)

  • Windows x64 (HIP)

openEuler:

  • openEuler x86 (310p)

  • openEuler x86 (910b, ACL Graph)

  • openEuler aarch64 (310p)

  • openEuler aarch64 (910b, ACL Graph)

Was this article helpful?

Sign in to highlight and annotate this article

AI
Ask AI about this article
Powered by Eigenvector · full article context loaded
Ready

Conversation starters

Ask anything about this article…

Daily AI Digest

Get the top 5 AI stories delivered to your inbox every morning.

More about

claudemodelproduct

Knowledge Map

Knowledge Map
TopicsEntitiesSource
b8634claudemodelproductassistantreviewllama.cpp R…

Connected Articles — Knowledge Graph

This article is connected to other articles through shared AI topics and tags.

Knowledge Graph100 articles · 282 connections
Scroll to zoom · drag to pan · click to open

Discussion

Sign in to join the discussion

No comments yet — be the first to share your thoughts!

More in Products