Repository navigation
How to Fix Local Qwen Models Not Using Tools in Odysseus (Working Solution) #6997
tasfiqur-dev
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Enabling tool calling for Huihui-Qwen3-14B-Abliterated using llama.cpp in Odysseus
Environment
huihui-ai/Huihui-Qwen3-14B-abliterated-v2Q4_K_MThe problem
I was trying to use my local Qwen3 model with Odysseus agent tools.
The model could generate normal responses, but when I asked it to inspect my workspace, it attempted to execute
get_workspaceas a Bash command instead of making a structured tool call.I compared its behavior with a cloud model (DeepSeek), which could successfully use the same Odysseus workspace tools.
Investigation
I checked the llama.cpp
/propsendpoint and initially found:However, the original Hugging Face model page provided a Jinja chat template that explicitly supports tool calling through:
<tools>for tool definitions<tool_call>for function calls<tool_response>for tool resultsThis suggested that the model's tool-capable template was not being used correctly by the server.
Solution
I saved the model's original Jinja chat template as a separate
.jinjafile and configured llama.cpp through Odysseus Cookbook's Advanced → Extra args.After correcting the launcher arguments and restarting the model server, I checked
/propsagain.The important values changed to:
The full original Jinja template is available on the Hugging Face model page:
https://huggingface.co/huihui-ai/Huihui-Qwen3-14B-abliterated-v2
Result
The local Qwen3 model could finally make structured tool calls through Odysseus.
I tested it by asking the model to inspect my selected workspace. It successfully retrieved the folder and subfolder structure.
There was one failed GREP operation during the process, but the model recovered automatically and still returned the folder structure.
Remaining observations
I noticed that the model sometimes repeated the same reasoning text multiple times in its thinking panel. I haven't investigated whether this is a model-generation issue or an Odysseus display/streaming issue.
Questions
Hopefully this helps anyone trying to run local Qwen3 models as agents in Odysseus.
All reactions