[GH-ISSUE #2244] API is no longer verbose as of 0.1.18 ... could I please have it back? #1289

Closed
opened 2026-04-12 11:06:14 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @maximometascript on GitHub (Jan 28, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2244

API is no longer verbose in logs as of v0.1.18 which is now reduced to one line for the API call. Whereas before, the log was extremely detailed. I need to know what my models are receiving verbatim in order to diagnose application syntax errors. Models like llama2 and its family learn syntax errors quickly and create strange outputs.

My setup is docker on Windows 11.

When it starts:
v17 More Verbose.txt
v18 Less Verbose.txt

image

After it starts and conversation continues:
v17 Verbose.txt
v18 Even Less Verbose.txt

image

Originally created by @maximometascript on GitHub (Jan 28, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2244 API is no longer verbose in logs as of v0.1.18 which is now reduced to one line for the API call. Whereas before, the log was extremely detailed. I need to know what my models are receiving verbatim in order to diagnose application syntax errors. Models like llama2 and its family learn syntax errors quickly and create strange outputs. My setup is docker on Windows 11. When it starts: [v17 More Verbose.txt](https://github.com/ollama/ollama/files/14077732/v17.More.Verbose.txt) [v18 Less Verbose.txt](https://github.com/ollama/ollama/files/14077731/v18.Less.Verbose.txt) ![image](https://github.com/ollama/ollama/assets/151481033/1d4b6c22-67fd-4dc8-9779-4c53391569ba) After it starts and conversation continues: [v17 Verbose.txt](https://github.com/ollama/ollama/files/14077729/v17.Verbose.txt) [v18 Even Less Verbose.txt](https://github.com/ollama/ollama/files/14077730/v18.Even.Less.Verbose.txt) ![image](https://github.com/ollama/ollama/assets/151481033/284bcf9e-f6ec-4974-b03e-0311f2a0c6e5)
Author
Owner

@nathanpbell commented on GitHub (Jan 30, 2024):

I believe support for this is coming back in a future build by providing the OLLAMA_DEBUG=1 environment variable. I'm not sure if it's made it into a release yet though. Here is the pull request which has been merged: https://github.com/ollama/ollama/pull/2245

<!-- gh-comment-id:1917893984 --> @nathanpbell commented on GitHub (Jan 30, 2024): I believe support for this is coming back in a future build by providing the OLLAMA_DEBUG=1 environment variable. I'm not sure if it's made it into a release yet though. Here is the pull request which has been merged: https://github.com/ollama/ollama/pull/2245
Author
Owner

@robertvazan commented on GitHub (Feb 3, 2024):

I can confirm that OLLAMA_DEBUG=1 in latest version logs the entire conversation.

<!-- gh-comment-id:1925429372 --> @robertvazan commented on GitHub (Feb 3, 2024): I can confirm that `OLLAMA_DEBUG=1` in latest version logs the entire conversation.
Author
Owner

@bmizerany commented on GitHub (Mar 11, 2024):

@maximometascript I hope OLLAMA_DEBUG=1 fixed your issue. I'm closing, but please reopen if you need more assistance.

Thank you @nathanpbell and @robertvazan for your help!

<!-- gh-comment-id:1989175935 --> @bmizerany commented on GitHub (Mar 11, 2024): @maximometascript I hope `OLLAMA_DEBUG=1` fixed your issue. I'm closing, but please reopen if you need more assistance. Thank you @nathanpbell and @robertvazan for your help!
Author
Owner

@robertvazan commented on GitHub (Mar 11, 2024):

@bmizerany Prompt is logged, but the streamed response is no longer logged in current version.

<!-- gh-comment-id:1989183933 --> @robertvazan commented on GitHub (Mar 11, 2024): @bmizerany Prompt is logged, but the streamed response is no longer logged in current version.
Author
Owner

@maximometascript commented on GitHub (May 2, 2024):

@maximometascript I hope OLLAMA_DEBUG=1 fixed your issue. I'm closing, but please reopen if you need more assistance.

Thank you @nathanpbell and @robertvazan for your help!

How do I add this environment variable in the docker command?

<!-- gh-comment-id:2089414758 --> @maximometascript commented on GitHub (May 2, 2024): > @maximometascript I hope `OLLAMA_DEBUG=1` fixed your issue. I'm closing, but please reopen if you need more assistance. > > Thank you @nathanpbell and @robertvazan for your help! How do I add this environment variable in the docker command?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#1289