Skip to content

Conversation

PaliC
Copy link
Contributor

@PaliC PaliC commented Aug 26, 2025

No description provided.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 26, 2025
@@ -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",
Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Member

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
Copy link
Member

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

Copy link
Contributor Author

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants