mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 00:55:21 -04:00
GPU Selection & Device Specification #87
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 @nycameraguy on GitHub (May 20, 2024).
I would like to suggest a feature that would allow specifing which GPU or GPUs to run on directly within the Ollama Python library.
This feature is crucial in shared server environments across multiple GPUs and multiple users, as it allows each Jupyter notebook to run on the corresponding GPU without conflicts. Currently, specifying GPU usage in Ollama is somewhat complex. A streamlined method to assign tasks to specific GPUs directly inside the Python program would prevent conflicts and optimize workflow. Implementing this feature would significantly improve usability and align Ollama with other machine-learning frameworks.
Thank you for considering this suggestion. I would be happy to discuss further details if needed.
@gileneusz commented on GitHub (May 25, 2024):
would be great if this could be implemented asap