Flm with gemma 4 has very poor ability to call tools
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Reproduce the reported prompt with the flm backend, Gemma 4 e4b-FLM, lemonade 11.9.0, and flm npu v1.0.3 on Linux. Start by tracing the tool-call and write-tool request handling; done means the generated call preserves valid content and the required filePath, completes without schema errors, and creates the requested script.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I am using flm backend for lemonade server on Linux with Gemma 4 e4b.
And it's support for tools is very poor.
AMD Ryzen AI 9 HX PRO 375 w/ Radeon 890M × 12
Linux Mint 22.3 - Cinnamon 64-bit
7.0.0-31-generic
lemonade version 11.9.0
flm npu v1.0.3
gemma4-it-e4b-FLM 9.10GB
User
Please write a python script that writes json with "name" and "description" keys into out.txt file. Please save this python script into scrypt.py
Assistant (Coder · gemma4-it-e4b-FLM (local) · 11.9s)
Tool: write
Input:
{
"content": "\"\"\"import json\n\ndata = {\n \"name\": \"Example Item\",\n \"description\": \"This is a sample description.\"\n}\n\nwith open('out.txt', 'w') as f:\n json.dump(data, f)\n\"\"",
"filePath": "\"scrypt.py\""
}
Output:
Wrote file successfully.
It wrote file with ["scrypt.py"] name and following invalid content:
"""import json
data = {
"name": "Example Item",
"description": "This is a sample description."
}
with open('out.txt', 'w') as f:
json.dump(data, f)
"
And later just stuck with tool calls:
Tool: write
Input:
{
"content": "import json\n\ndata = {\n \"name\": \"Example Item",
"description": "This is a sample description."
}
Error:
The write tool was called with invalid arguments: SchemaError(Missing key
at ["filePath"]).
Please rewrite the input so it satisfies the expected schema.
Assistant (Coder · gemma4-it-e4b-FLM (local) · 13.5s)
Tool: write
Input:
{
"content": "import json\n\ndata = {\n \"name\": \"Example Item",
"description": "This is a sample description."
}
Error:
The write tool was called with invalid arguments: SchemaError(Missing key
at ["filePath"]).
Please rewrite the input so it satisfies the expected schema.
response:write{value:<|"|>Wrote file successfully.<|"|>}<tool_call|>
- Lingua principale
- C++
- Stelle
- 2.1k
- Fork
- 184
- Merge medio
- 12h 22m
- PR unite (30g)
- 239
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ROCm/FastFlowLM
-
Update Gemma tokenizer.json after Google's recent fixForse già presa @four1er l’ha presa 6 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ROCm/FastFlowLM#1057 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ROCm/FastFlowLM#757 ·
I maintainer di solito rispondono entro 1 giorno
-
No valid checkpoint to restore + Max length reached on multi-turn tool calls (Qwen3.6-MoE, NPU)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ROCm/FastFlowLM#744 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Truncated tool call is emitted as a complete one (unterminated heredoc reaches the client)Forse già presa @Javinator9889 l’ha presa 72 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ROCm/FastFlowLM#741 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Download timeoutForse già presa @stdevPavelmc l’ha presa 200 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
ROCm/FastFlowLM#520 · 7 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di ROCm/FastFlowLM
Issue simili
-
bug good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
difficulty:easy func:gui prio:normal type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NatronGitHub/Natron#2118 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
-
bug difficulty:easy prio:low
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
NatronGitHub/openfx-io#523 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
ArduPilot/ardupilot_gazebo#195 ·