-
Notifications
You must be signed in to change notification settings - Fork 79
Litgpt benchmark #4320
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
Litgpt benchmark #4320
Changes from all commits
41ac781
1e5812b
ec729b2
04d4144
228cf5c
e6447a2
f987def
7936055
51cd064
9134cc3
ab2b495
592d011
183b4f9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -132,7 +132,7 @@ def __init__(self, dtype): | |
| super().__init__("hf_mistral_nemo", dtype) | ||
|
|
||
| def model(self): | ||
| from transformers.models.phi3 import MistralPreTrainedModel | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @protonu Just so that you are aware. |
||
| from transformers.models.mistral import MistralPreTrainedModel | ||
|
|
||
| class MyModel(MistralPreTrainedModel): | ||
| def __init__(self, config): | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,12 +15,17 @@ | |
| "hf_qwen2", | ||
| "hf_phi3", | ||
| "hf_mistral_nemo", | ||
| "litgpt-gemma-2-9b", | ||
| "litgpt-mistral-7b", | ||
| "litgpt-meta-llama-3-8B", | ||
| "litgpt-phi3.5-mini", | ||
| ], | ||
| ) | ||
| @pytest.mark.parametrize( | ||
| "executor", ["eager", "torchcompile", "thunder", "thunder-torchcompile"] | ||
| ) | ||
| @pytest.mark.parametrize("seq_length", SEQ_LENGTHS) | ||
| @pytest.mark.resize | ||
| def test_rope_fwd_benchmark( | ||
| benchmark, | ||
| variation: str, | ||
|
|
@@ -52,12 +57,17 @@ def fwd_call(inp): | |
| "hf_qwen2", | ||
| "hf_phi3", | ||
| "hf_mistral_nemo", | ||
| "litgpt-gemma-2-9b", | ||
| "litgpt-mistral-7b", | ||
| "litgpt-meta-llama-3-8B", | ||
| "litgpt-phi3.5-mini", | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @xwang233 do we need to manually add new entries in dashboard?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| ], | ||
| ) | ||
| @pytest.mark.parametrize( | ||
| "executor", ["eager", "torchcompile", "thunder", "thunder-torchcompile"] | ||
| ) | ||
| @pytest.mark.parametrize("seq_length", SEQ_LENGTHS) | ||
| @pytest.mark.resize | ||
| def test_rope_bwd_benchmark( | ||
| benchmark, | ||
| variation: str, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.