8000 Move offloadKVCacheToGpu to llm.load by mattjcly · Pull Request #311 · lmstudio-ai/lmstudio-js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Move offloadKVCacheToGpu to llm.load #311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 6, 2025
Merged

Conversation

mattjcly
Copy link
Member
@mattjcly mattjcly commented May 6, 2025

Since KV cache is very specific to llm

@mattjcly mattjcly requested a review from ryan-the-crayon May 6, 2025 15:33
@github-actions github-actions bot added the CLA signed Indicates if all contributors have signed the CLA label May 6, 2025
@@ -428,7 +428,7 @@ export const llmSharedLoadConfigSchematics = llmLoadSchematics.sliced(
const llamaLoadConfigSchematics = globalConfigSchematics.sliced("llama.load.*", "load.*");

export const llmLlamaLoadConfigSchematics = llmSharedLoadConfigSchematics
.union(llmLoadSchematics.sliced("llama.*", "load.*"))
.union(llmLoadSchematics.sliced("llama.*", "load.*", "offloadKVCacheToGpu"))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think offloadKVCacheToGpu is already covered by load.*?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be looking for llm.load.load I believe, since llmLoadSchematics already gets scoped into llm.load

export const llmLoadSchematics = globalConfigSchematics
  .scoped("llm.load")
  .union(globalConfigSchematics.sliced("envVars"));

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I could be wrong

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically I observe that I cannot do:

  const testConfig = llmLlamaLoadConfigSchematics.parse(loadConfig);
  const test = testConfig.get("offloadKVCacheToGpu");

unless I add this change

@mattjcly mattjcly merged commit 041668e into main May 6, 2025
1 check passed
@mattjcly mattjcly deleted the matt/offloadkvtollmload branch May 6, 2025 15:48
@github-actions github-actions bot locked and limited conversation to collaborators May 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA signed Indicates if all contributors have signed the CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0