Groot-19B-A3B-261023 consistently changes Polish words in file paths (even when asked to copy verbatim)

#5
by Doormateus - opened

Hi Groot Team,

I've been testing Groot-19B-A3B-261023 (Q4_K_M GGUF) locally and encountered a strange, highly reproducible issue with copying Polish text, particularly directory paths.

The model consistently changes the Polish word historii to historia, even when explicitly instructed to repeat the input exactly.

Minimal reproduction

Prompt:

this is dir :"/home/ja/projekty/opowiadacz historii" can you repeat it

Expected output:

/home/ja/projekty/opowiadacz historii

Typical actual output:

/home/ja/projekty/opowiadacz historia

I've tested different temperatures and Min-P settings in LM Studio. The model reproduced the path correctly only once across multiple attempts.

Important: This is not a Unicode or encoding issue

Both historii and historia consist entirely of standard ASCII characters.

There are no Polish diacritics, special Unicode characters, non-breaking spaces, or unusual encoding sequences involved.

The difference is simply the final character:

Correct: historii (ends in ii)

Incorrect: historia (ends in ia)

This suggests the model may be automatically substituting or normalizing a less familiar Polish grammatical form into a more common one, rather than preserving the literal input.

The same substitution occurs even when explicitly instructed not to translate, normalize, or modify filesystem paths.

More interesting: The model reads the correct bytes but still changes the text

I also tested Groot through Hermes Agent using a terminal tool.

The model executed a Python command that retrieved the current working directory and its hexadecimal representation.

The response contained:

{
"cwd": "/home/ja/projekty/opowiadacz historia",
"cwd_hex": "2f686f6d652f6a612f70726f6a656b74792f6f706f7769616461637a20686973746f726969",
"exists": true
}

Notice that the hexadecimal representation ends with:

686973746f726969

This decodes to historii, not historia.

The model appears capable of preserving the correct byte sequence while producing an incorrect textual representation.

Impact on agentic workflows

This becomes particularly problematic when using Groot with coding agents.

While working on a Python project through Hermes Agent, Groot repeatedly:

Attempted to access the incorrect directory.

Received filesystem errors.

Assumed the directory contained unusual characters or encoding problems.

Repeated the same troubleshooting steps.

Failed to correct the path even after I explicitly provided the correct spelling several times.

This eventually caused the agent to get stuck in a repetitive troubleshooting loop.

Importantly, direct API tests confirmed that tool calling itself works correctly. The model successfully generated valid OpenAI-compatible tool_calls with the correct arguments.

My configuration

Hardware:

NVIDIA RTX 5070 Ti โ€” 16 GB VRAM

32 GB system RAM

Linux (Kubuntu)

Model:

Groot-19B-A3B-261023-Q4_K_M.gguf

llama.cpp server

260K context

Full GPU offloading of model layers

Flash Attention enabled

KV cache: F16 (K) / Q8_0 (V)

Thinking enabled

Sampling parameters:

temperature = 0.6
top_p = 0.95
top_k = 20
min_p = 0.0
presence_penalty = 0.0
repetition_penalty = 1.0

These match the recommended settings for precise coding tasks.

I also reproduced the basic text-copying issue in LM Studio while experimenting with different sampling settings.

Questions

Is this a known issue with Groot-19B's multilingual capabilities, particularly Polish?

Could the Q4_K_M quantization or GGUF conversion contribute to this behavior?

Are there any recommended inference settings for preserving exact ASCII strings and filesystem paths?

Has anyone reproduced similar issues with other non-English languages?

I understand that LLMs are not guaranteed to copy strings perfectly, but the consistency of this particular substitution is unusual, especially when the model correctly reproduces the hexadecimal representation.

I'd appreciate any insights or suggestions for further testing.

Thanks!

Thanks for the careful write-up! Some things that may be worth trying: using the recommended sampling parameters from the model card, or trying the FP8 or BF16 weights if resources allow, since quantization can sometimes affect exact copying. Adding an instruction in the system prompt such as quoting the path inside a code block can also help in some cases. If similar examples come up, feel free to share them here.

Sign up or log in to comment