[GH-ISSUE #5576] ollama env cmd and http api! #65523

Open
opened 2026-05-03 21:34:44 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @icetech233 on GitHub (Jul 9, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/5576

can get or set ollama all env vars

for exsample

OLLAMA_HOST

:= os.Getenv("OLLAMA_HOST")

hipVD := os.Getenv("HIP_VISIBLE_DEVICES")   // zero based index only
rocrVD := os.Getenv("ROCR_VISIBLE_DEVICES") // zero based index or UUID, but consumer cards seem to not support UUID
gpuDO := os.Getenv("GPU_DEVICE_ORDINAL")    // zero based index
Originally created by @icetech233 on GitHub (Jul 9, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/5576 can get or set ollama all env vars for exsample OLLAMA_HOST := os.Getenv("OLLAMA_HOST") hipVD := os.Getenv("HIP_VISIBLE_DEVICES") // zero based index only rocrVD := os.Getenv("ROCR_VISIBLE_DEVICES") // zero based index or UUID, but consumer cards seem to not support UUID gpuDO := os.Getenv("GPU_DEVICE_ORDINAL") // zero based index
GiteaMirror added the feature request label 2026-05-03 21:34:44 -05:00
Author
Owner

@icetech233 commented on GitHub (Jul 12, 2024):

I need convenient access to query environment variables

<!-- gh-comment-id:2224303618 --> @icetech233 commented on GitHub (Jul 12, 2024): I need convenient access to query environment variables
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#65523