drbh's picture
drbh HF Staff
Upload folder using huggingface_hub
9b13459 verified
raw
history blame contribute delete
778 Bytes
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "numpy",
# "torch==2.8.0",
# "kernels-benchmark-tools",
# "matplotlib",
# ]
#
# [tool.uv.sources]
# kernels-benchmark-tools = { path = "../../../../../tools", editable = true }
# ///
from kernels_benchmark_tools.core.visuals import generate_combined_results
# Map display names to uvnote environment variables
cache_env_map = {
# "PyTorch OpenAI MoE": "UVNOTE_FILE_TORCH_OPENAI_MOE_BENCHMARK",
"Binned PyTorch": "UVNOTE_FILE_BINNED_TORCH_BENCHMARK",
"GptOssExperts": "UVNOTE_FILE_GPT_OSS_MOE_BENCHMARK",
}
# Generate combined results with visualization
generate_combined_results(
cache_env_map=cache_env_map,
output_filename="openai_moe.jsonl",
svg_filename="latency.svg"
)