[GH-ISSUE #3148] Feature: Allow setting num_batch and make basic parameters like this available in the chat UI #13149

Closed
opened 2026-04-19 19:57:11 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @sammcj on GitHub (Jun 14, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/3148

Is your feature request related to a problem? Please describe.

num_batch can greatly impact inference performance at the cost of more VRAM usage.

Depending on the task, it can be beneficial to sacrifice say some context size if it allows you to increase num_batch or vice versa.

e.g:

  • Fast responses: num_batch: 2048, num_ctx: 8192
  • Larger context, but a bit slower: num_batch: 512, num_ctx 32768
  • Middleground: num_batch: 1024, num_ctx: 16384

Describe the solution you'd like

It would be great if you could set num_batch in Open WebUI.

It would also be really useful if basic parameters such as num_ctx, num_batch, temp/top, num_keep etc... were available in the chat interface without having to go into settings -> advanced and tweak them there each time.

Describe alternatives you've considered

Right now I'm having to create several copies of models with the num_ctx/num_batch in their name in order to quickly switch between settings. It works, but it's painful.

Originally created by @sammcj on GitHub (Jun 14, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/3148 **Is your feature request related to a problem? Please describe.** num_batch can greatly impact inference performance at the cost of more VRAM usage. Depending on the task, it can be beneficial to sacrifice say some context size if it allows you to increase num_batch or vice versa. e.g: - Fast responses: num_batch: 2048, num_ctx: 8192 - Larger context, but a bit slower: num_batch: 512, num_ctx 32768 - Middleground: num_batch: 1024, num_ctx: 16384 **Describe the solution you'd like** It would be great if you could set `num_batch` in Open WebUI. It would also be really useful if basic parameters such as num_ctx, num_batch, temp/top, num_keep etc... were available in the chat interface without having to go into settings -> advanced and tweak them there each time. **Describe alternatives you've considered** Right now I'm having to create several copies of models with the num_ctx/num_batch in their name in order to quickly switch between settings. It works, but it's painful.
Author
Owner

@tjbck commented on GitHub (Jun 14, 2024):

Great suggestion, PR welcome!

<!-- gh-comment-id:2167218839 --> @tjbck commented on GitHub (Jun 14, 2024): Great suggestion, PR welcome!
Author
Owner

@sammcj commented on GitHub (Jun 14, 2024):

PR incoming :)

<!-- gh-comment-id:2167254353 --> @sammcj commented on GitHub (Jun 14, 2024): PR incoming :)
Author
Owner

@tjbck commented on GitHub (Jun 14, 2024):

@sammcj

oi-chad

<!-- gh-comment-id:2167257632 --> @tjbck commented on GitHub (Jun 14, 2024): @sammcj ![oi-chad](https://github.com/open-webui/open-webui/assets/25473318/753c19a3-8d99-44ab-ac3f-8ac4f5855fac)
Author
Owner

@sammcj commented on GitHub (Jun 14, 2024):

@tjbck

image

<!-- gh-comment-id:2167295893 --> @sammcj commented on GitHub (Jun 14, 2024): @tjbck ![image](https://github.com/open-webui/open-webui/assets/862951/34f5ee20-1b01-4ef4-9f6e-010b53d2f4da)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#13149