[GH-ISSUE #2158] Seed option is not working on API #47745

Closed
opened 2026-04-28 05:09:08 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @Juliano-uCondo on GitHub (Jan 23, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2158

Even configuring the option seed, the API return is different for each request.
Im using the version 0.1.20

{
  "model": "mistral",
  "stream": false,
  "options": {
    "seed": 0
   },
  "prompt":"Why is the sky blue?"
}
Originally created by @Juliano-uCondo on GitHub (Jan 23, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2158 Even configuring the option seed, the API return is different for each request. Im using the version 0.1.20 ``` { "model": "mistral", "stream": false, "options": { "seed": 0 }, "prompt":"Why is the sky blue?" } ```
Author
Owner

@easp commented on GitHub (Jan 23, 2024):

What hardware? GPUs aren't deterministic without significant performance compromises.

<!-- gh-comment-id:1906457029 --> @easp commented on GitHub (Jan 23, 2024): What hardware? GPUs aren't deterministic without significant performance compromises.
Author
Owner

@pdevine commented on GitHub (Jan 23, 2024):

Going to close this as a dupe of #1749

<!-- gh-comment-id:1906665065 --> @pdevine commented on GitHub (Jan 23, 2024): Going to close this as a dupe of #1749
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#47745