ollama / ollama-python

Ollama Python library
https://ollama.com
MIT License
2.71k stars 223 forks source link

ollama.generate & ollama.chat hangs after about 30*mins #56

Closed stevengans closed 4 months ago

stevengans commented 4 months ago

Original: https://github.com/ollama/ollama/issues/2339 Tests: https://github.com/ollama/ollama-python/pull/55

jonnyjohnson1 commented 4 months ago

Anyone familiar with this repo have an idea where in the code the hang up might be occurring and can give me a starting place? I can take a look at it. I'm running into this same issue, and I'd rather fix it here, than create a loading/generator script with huggingface options.

stevengans commented 4 months ago

@jonnyjohnson1 https://github.com/ollama/ollama/pull/2459 fixes the issue.

jonnyjohnson1 commented 4 months ago

@stevengans How can I get the update on macOS? Does it require an uninstall/reinstall?

stevengans commented 4 months ago

It's been merged. So we can make a request to @mxyng to add it to the next release.

mxyng commented 4 months ago

Ollama changes usually do not require a bump for the python client library.

How can I get the update on macOS? Does it require an uninstall/reinstall?

The macOS app has an auto-update feature. Clicking the "restart to update" will install the latest