Forward GGML_METAL_NO_RESIDENCY env var to llama-server on macOS#1526
Open
Forward GGML_METAL_NO_RESIDENCY env var to llama-server on macOS#1526
Conversation
When lemond is started by launchd (e.g. after .pkg install), it does not inherit the shell environment. This explicitly forwards the GGML_METAL_NO_RESIDENCY env var to the llama-server subprocess so Metal residency sets can be disabled on paravirtualized GPUs like GitHub Actions macOS runners (MTLGPUFamilyApple5).
Always set GGML_METAL_NO_RESIDENCY=1 when launching llama-server unless the user has explicitly set the variable themselves. Residency sets crash on paravirtualized GPUs (e.g. GitHub Actions macOS runners with MTLGPUFamilyApple5).
Member
Author
|
There may not be a fix for this until we get a m series processor as a runner. See below. |
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.
Summary
GGML_METAL_NO_RESIDENCYfrom lemond's environment to the llama-server subprocess on macOS.pkginstall), it does not inherit the shell environment, so the env var never reaches llama-serverTest plan
GGML_METAL_NO_RESIDENCY=1set in workflow