refactor(provider): enable maxInputTokens to be set by context length on Lemonade Server#14
Open
matouka wants to merge 2 commits into
Open
Conversation
…configured context size.
danielholanda
left a comment
Contributor
There was a problem hiding this comment.
Please wait for fl0rianr to review before merging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sorry, new here to using Lemonade server. I'm not 100% sure if this is valid, or if it's just my setting. When I set my context explicitly on Lemonade Server, it's returned something like this from the models endpoint:
{ "data": [ { "checkpoint": "unsloth/Qwen3.6-35B-A3B-GGUF:Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf", "checkpoints": { "main": "unsloth/Qwen3.6-35B-A3B-GGUF:Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf", "mmproj": "unsloth/Qwen3.6-35B-A3B-GGUF:mmproj-F16.gguf" }, "created": 1234567890, "id": "Qwen3.6-35B-A3B-GGUF", "labels": [ "vision", "tool-calling", "hot" ], "object": "model", "owned_by": "lemonade", "recipe": "llamacpp", "recipe_options": { "ctx_size": 200000 }, "size": 22.4, "suggested": true }, ], "object": "list" }I removed some fields in the sample
So I thought why not at least attempt to pull in the allowable input tokens rather than having to set one single value, then used for all models, through an env setting.
Also, judging by the object returned, it looked like you should also be able to update the
imageInputfield using the labels. However, when I manually set it to true, the model didn't seem to make any use of it, so I haven't touched that.