-
Notifications
You must be signed in to change notification settings - Fork 37
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
[sharktank] restore custom matmul kernel #896
Merged
+354
−71
Merged
Changes from 27 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
8300bc8
restore custom matmul kernel
dan-garvey a98a332
not mergeable as-is
dan-garvey 80fee98
Make batch_matmul_transpose_b accept accumulation dtype
sogartar 9ff020e
Merge batch_matmul_transpose_b export tests into 1
sogartar 7b93a6a
Merge branch 'main' into users/dan-garvey/enable_custom_fp8_matmul
dan-garvey 781c8e8
Add exception to qlinear to not use the kernel when unsigned ints
sogartar 9f1c3d4
Small fix
sogartar 82b032a
Add eager execution to circamvent failure to compile for llvm-cpu
sogartar aa5c7b0
Merge branch 'main' into users/dan-garvey/enable_custom_fp8_matmul
sogartar de70094
Convert dtype when writing into the cache
sogartar ae89b55
Fix attention_dtype flag for paged_llm_v1
aviator19941 53f8cd1
Merge branch 'main' into users/dan-garvey/enable_custom_fp8_matmul
sogartar 5bf4636
KV cache workaround for Torch not supporting torch.Tensor.index_copy_…
sogartar fe5c881
Fix kv_cache index_put_ issue
archana-ramalingam b4be2a8
Revert "Fix kv_cache index_put_ issue"
archana-ramalingam 338fe67
Merge branch 'main' into users/dan-garvey/enable_custom_fp8_matmul
archana-ramalingam 462ddc4
Fix KV cache index_copy_ f8 workaround
sogartar 4dc2ac2
In linear for (Tensor, QuantizedTensor) raise if accum_dtype is given
sogartar 13bfc68
Fix KV cache f8
sogartar 8b20445
Remove unused HF dataset
sogartar 9f160f1
Add KV cache dtype different from attention dtype
sogartar 77a8443
Add more KV cache tests for various dtypes
sogartar 1ea608a
Remove some unwanted corner casehandlings in linear layer
sogartar 6f0c98b
Add more linear layer tests
sogartar 664a847
Refactor quark parity test to use tmp dir
sogartar 9816c35
Fix KV cache dtype CLI arg parsing
sogartar b8ff8cc
Merge remote-tracking branch 'origin/main' into users/dan-garvey/enab…
sogartar c17629e
Change doc example to not use the removed Llama dataset
sogartar 9b7dfdf
Add KV cache dtype to benchmark
sogartar 55c8701
Change testBenchmark8B_fp8_Non_Decomposed xfail reason to compilation…
sogartar fea5204
Merge branch 'main' into users/dan-garvey/enable_custom_fp8_matmul
archana-ramalingam 740bb80
Put back in the llama3_8B_fp16 HF dataset
sogartar 02215d5
Remove left behind comment
sogartar 40f993a
Make quark parity test use f8 KV cache
sogartar 85053ef
Add more bf16 qlinear tests and make ref dtype be f64
sogartar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This model cannot be removed as it is part of
llama_serving.md
release docs, that was tested in sharktank/shortfin. However, agree that we need only one of the 2 llama 8b fp16 models listed here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs could be updated to use standard huggingface tooling instead of
sharktank.utils.hf_datasets
. As written today, the hf_datasets file should only be a utility for project development and testing, not something user-facing.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed the doc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
llama3_8B_fp16
is the right instruct version that was tested to be numerically right for the release, the other model is non-instruct version and I remember it was generating repetitive tokens.This can be a separate PR where we consult with shortfin folks if this model switch on the release docs can be made.