[GH-ISSUE #2849] Ollama sqlcoder arguments #48247

Open
opened 2026-04-28 07:19:28 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @rajuptvs on GitHub (Mar 1, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2849

SqlCoder7b2 model card shows that for optimal results, we have to set the num_beams=4 and do_sample=False. Is there any way that we can pass these arguments in Ollama. i know that this is something that can be done in Huggingface.. These kind of arguments might be necessary.

Originally created by @rajuptvs on GitHub (Mar 1, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2849 SqlCoder7b2 model card shows that for optimal results, we have to set the num_beams=4 and do_sample=False. Is there any way that we can pass these arguments in Ollama. i know that this is something that can be done in Huggingface.. These kind of arguments might be necessary.
Author
Owner

@shivanshkaushikk commented on GitHub (Mar 20, 2024):

SqlCoder7b2 model card shows that for optimal results, we have to set the num_beams=4 and do_sample=False. Is there any way that we can pass these arguments in Ollama. i know that this is something that can be done in Huggingface.. These kind of arguments might be necessary.

Did you find a solution to this??

<!-- gh-comment-id:2009008457 --> @shivanshkaushikk commented on GitHub (Mar 20, 2024): > SqlCoder7b2 model card shows that for optimal results, we have to set the num_beams=4 and do_sample=False. Is there any way that we can pass these arguments in Ollama. i know that this is something that can be done in Huggingface.. These kind of arguments might be necessary. Did you find a solution to this??
Author
Owner

@RubyJing commented on GitHub (Apr 19, 2024):

同问

<!-- gh-comment-id:2065880131 --> @RubyJing commented on GitHub (Apr 19, 2024): 同问
Author
Owner

@datalee commented on GitHub (Apr 22, 2024):

同问, do_sample=False和top_k=1是不是等价的?

<!-- gh-comment-id:2068313389 --> @datalee commented on GitHub (Apr 22, 2024): 同问, do_sample=False和top_k=1是不是等价的?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#48247