Repository navigation
Conversation
…org#30584)" This reverts commit 5e03a1f.
Collaborator
|
Should be good. At least until a variant of #30656 has been decided on. |
Member
|
Hmm, sorry but I am under the impression that the performance degradation fix belongs to the individual backends. Reverting this is just a short-term solution. I can see some discussions happening surrounding it though: #30656 |
Contributor
Author
|
@taronaeo I agree with @Green-Sky's point: the current state degrades performance for many users (CUDA, Vulkan, etc.), whereas reverting the changes would only affect a subset of users (Metal + specific quantizations + MTP + the problem input-dependent). Therefore, I suggest merging the current revert and waiting for a resolution regarding #30656. |
Member
|
Please test if #30861 works as expected on all backend. |
Member
|
Closing as #30861 appears to have fixed it. |
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.
Overview
This reverts commit 5e03a1f.
Fixes #30704, fixes #30678
Reason for reverting the commit: significant confirmed performance degradation on CUDA and Vulkan. At the same time, on Metal, only a group of the scenarios will be broken following the revert, not all quants and uses of the model. To get NaN, the following conditions must be met:
silu(gate) * upis greater than 65504This can be considered a temporary measure, pending the implementation of precision in the backends (#30260 for CUDA, #30656 for Vulkan).
Additional information
Apple M2 Max (64 GB), macOS 15.8.1, Metal backend.
Perplexity (trunk only, no MTP)
llama-perplexity -f prompt -c 2048 -b 2048 -ngl 99(default-ub 512), 3 chunks2.1771 2.1360 2.31702.1771 2.1360 nan2.2692 2.2252 2.4298nan nan nan2.2476 2.2383 2.5125nan nan nan2.2062 2.1612 2.35762.2062 2.1612 2.35762.2803 2.2543 2.47102.2803 2.2543 2.4710MTP (speculative decoding with the MTP head)
Requirements