mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
[query] Is it not possible to run ollama python library on a colab notebook ? #31
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @timtensor on GitHub (Feb 15, 2024).
Hi , I am getting some error while running ollama python library in colab notebook . Is it not possible to do so ? I am getting connection error
Perhaps it is not meant to be like that ?
@connor-makowski commented on GitHub (Feb 15, 2024):
I think the intention is that Ollama is run locally on your machine. If you are using colab, then you would need to initialize a client that is connected to a running ollama model that has external connections.
I assume that running ollama on a server would involve some challenges to secure for open internet access. But assuming it is running somewhere, you could do:
@mxyng commented on GitHub (Feb 23, 2024):
This library is intended to be the client library. It requires an running ollama instance to function. If that's what you're interested in, there's an example notebook in the ollama/ollama repo you can checkout: https://github.com/ollama/ollama/tree/main/examples/jupyter-notebook
Otherwise, it is as @connor-makowski says above.