-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add torchao dashboard to benchmarks (#5284)
Co-authored-by: Huy Do <[email protected]>
- Loading branch information
Showing
11 changed files
with
703 additions
and
7 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { | ||
FormControl, | ||
InputLabel, | ||
MenuItem, | ||
Select, | ||
SelectChangeEvent, | ||
} from "@mui/material"; | ||
|
||
export const SUITES: { [k: string]: string } = { | ||
torchbench: "Torchbench", | ||
huggingface: "Huggingface", | ||
timm_models: "TIMM models", | ||
}; | ||
|
||
export function SuitePicker({ | ||
suite, | ||
setSuite, | ||
}: { | ||
suite: string; | ||
setSuite: any; | ||
}) { | ||
function handleChange(e: SelectChangeEvent<string>) { | ||
setSuite(e.target.value); | ||
} | ||
|
||
return ( | ||
<> | ||
<FormControl> | ||
<InputLabel id="suite-picker-input-label">Suite</InputLabel> | ||
<Select | ||
value={suite} | ||
label="Suite" | ||
labelId="suite-picker-select-label" | ||
onChange={handleChange} | ||
id="suite-picker-select" | ||
> | ||
{Object.keys(SUITES).map((suite) => ( | ||
<MenuItem key={suite} value={suite}> | ||
{SUITES[suite]} | ||
</MenuItem> | ||
))} | ||
</Select> | ||
</FormControl> | ||
</> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const DEFAULT_REPO_NAME = "pytorch/ao"; | ||
export const DTYPES = ["amp", "bfloat16"]; | ||
export const DEFAULT_MODE = "inference"; |
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.