Skip to content

vLLM issues with gemma4 tool calling #80

Description

@mpetruc

Hi,
i've been trying to use Late-cli with gemma--4-31b and vllm (0.23.0). I'm using the vllm-provided 'tool_chat_template_gemma4.jinja' and the required flags:

      --reasoning-parser gemma4
      --enable-auto-tool-choice
      --tool-call-parser gemma4

very frequently (but not 100% of the time), the loop stops after some tool_call, e.g.

<|tool_call>call:spawn_subagent{agent_type:<|"|>coder<|"|>,goal:<|"|>Act as an INSPECTOR subagent. Critically review the implementation of full SpeechRequest parameter support.

1. **Code Review**:
    [...]

2. **Audit**:
   [...]

3. **Verdict**: "[...].<|"|>}<tool_call|>

At this point i prompt "continue", but i'm not sure that the tool_call above actually got executed.

I also see blocks like this

<|channel>thought
<channel|>

but these seem to be benign.

Any idea why is this happening? is it vllm? the model itself (LilaRest/gemma-4-31B-it-NVFP4-turbo)? late? How to even tell?
thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions