-
Notifications
You must be signed in to change notification settings - Fork 7
Convert all tests in torchbench to bf16 #118
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
base: main
Are you sure you want to change the base?
Conversation
@@ -245,7 +318,13 @@ def _validate_trace_file(trace_file: str, is_input: bool = True) -> str: | |||
type=int, | |||
help="Limit the number of operators to convert. (Useful for testing)", | |||
) | |||
def main(log_level, mode, trace_file, parquet_name, upload_to_hf, limit): | |||
@click.option( | |||
"--force-dtype", |
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'm suspicious about general dtype conversions, this seems like a massive footgun for correctness testing
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.
ohh if you have time let's chat about it offline, this was more so just executing on the rec from @malfet.
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.
Ok we chatted offline and this is specific to torchbench data prep
@@ -9,7 +9,25 @@ | |||
|
|||
import tqdm | |||
from BackendBench.utils import cleanup_memory_and_gpu, deserialize_args | |||
from triton.testing import do_bench | |||
|
|||
# Try to import triton, fallback to cpu_bench if not available |
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.
you don't have to make this work for cpu
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 is mostly to make testing easier when you don't have access to a gpu (I've gotten into the habit of developing on my laptop and using a devserver for testing).
No description provided.