I have deployed OpenHands locally via docker and l...
# questions
t
I have deployed OpenHands locally via docker and linked it to devstral via ollama When I use the prompt 'Write a bash script hello.sh that prints “hello world!”' from tutorials, it responds in chat itself instead of writing to code, even though I have selected CodeAct Agent. Please help
l
Hi. Did you configure the context length in Ollama as shown in the guide?
t
yes, I did that
In any case if that was the issue, the prompt would have failed right? It shared code in chat instead of writing to file
l
No, it would have started acting like a normal LLM because it would only get the final part of the prompt and not the initial instructions that tell it how to act.
t
NAME SIZE PROCESSOR CONTEXT devstral:Q5_K_M 25 GB 80%/20% CPU/GPU 32768
l
I don't see that version in Ollama library, is it a quant downloaded somewhere else? https://ollama.com/library/devstral/tags
if it's a custom quant, try with the official devstral from the library first
t
l
Try with the one from Ollama library, because Ollama uses a different template format and won't load the one inside the .GGUF.
t
Ok, will try
Thanks, it worked
One more thing, how can I mount code from host filesystem as workspace while using docker
l
Yes it's that env var:
-e SANDBOX_VOLUMES=/home/your_user/your_workspace_folder:/workspace:rw
if it's Windows you need /mnt/c/Users/etc
if you notice Devstral underperforming/looping remember also to pass
-e LLM_TEMPERATURE=0.15
since Ollama doesn't allow setting a temperature with an env var. You can create a custom Modelfile with both context length and temperature if you prefer though.