mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
[torchfuzz] add dtensor_placements template (#170136)
Some checks failed
Update viable/strict / do_update_viablestrict (push) Has been cancelled
Upload test stats while running / Upload test stats while running (push) Has been cancelled
Close stale pull requests / stale (push) Has been cancelled
B200 Smoke Tests / get-label-type (push) Has been cancelled
B200 Smoke Tests / linux-jammy-cuda12.8-py3.10-gcc11-sm100 (push) Has been cancelled
rocm-mi200 / before-test (push) Has been cancelled
rocm-mi200 / get-label-type (push) Has been cancelled
rocm-mi200 / linux-jammy-rocm-py3.10 (push) Has been cancelled
unstable-periodic / introduction (push) Has been cancelled
rocm-navi31 / before-test (push) Has been cancelled
rocm-navi31 / get-label-type (push) Has been cancelled
rocm-navi31 / linux-jammy-rocm-py3.10 (push) Has been cancelled
rocm-navi31 / linux-jammy-rocm-py3_10 (push) Has been cancelled
periodic / before-test (push) Has been cancelled
periodic / get-label-type (push) Has been cancelled
periodic / linux-jammy-cuda12.4-py3.10-gcc11 (push) Has been cancelled
periodic / linux-jammy-cuda12.8-py3.10-gcc11 (push) Has been cancelled
periodic / linux-jammy-cuda12.8-py3.10-gcc11-debug (push) Has been cancelled
periodic / linux-jammy-cuda13.0-py3.10-gcc11 (push) Has been cancelled
periodic / linux-jammy-cuda12.8-py3-gcc11-slow-gradcheck (push) Has been cancelled
periodic-rocm-mi300 / before-test (push) Has been cancelled
periodic-rocm-mi300 / get-label-type (push) Has been cancelled
periodic-rocm-mi300 / linux-noble-rocm-py3.12-mi300 (push) Has been cancelled
periodic-rocm-mi200 / before-test (push) Has been cancelled
periodic-rocm-mi200 / get-label-type (push) Has been cancelled
periodic-rocm-mi200 / linux-jammy-rocm-py3.10 (push) Has been cancelled
slow-rocm-mi200 / before-test (push) Has been cancelled
slow-rocm-mi200 / get-label-type (push) Has been cancelled
slow-rocm-mi200 / linux-jammy-rocm-py3.10 (push) Has been cancelled
inductor-rocm-mi200 / get-label-type (push) Has been cancelled
inductor-rocm-mi200 / rocm-py3.10-inductor (push) Has been cancelled
windows-arm64-build-test / build (push) Has been cancelled
windows-arm64-build-test / test (push) Has been cancelled
inductor-periodic / get-default-label-prefix (push) Has been cancelled
inductor-periodic / periodic-dynamo-benchmarks-build (push) Has been cancelled
inductor-periodic / periodic-dynamo-benchmarks-test (push) Has been cancelled
inductor-periodic / periodic-dynamo-benchmarks-build-cuda13 (push) Has been cancelled
inductor-periodic / periodic-dynamo-benchmarks-test-cuda13 (push) Has been cancelled
inductor-periodic / rocm-periodic-dynamo-benchmarks-build (push) Has been cancelled
inductor-periodic / rocm-periodic-dynamo-benchmarks-test (push) Has been cancelled
inductor-periodic / inductor-smoke-build (push) Has been cancelled
inductor-periodic / inductor-smoke-test (push) Has been cancelled
inductor-periodic / periodic-dynamo-benchmarks-cpu-build (push) Has been cancelled
inductor-periodic / periodic-dynamo-benchmarks-cpu-test (push) Has been cancelled
vllm-test / vllm-x-pytorch-build (push) Has been cancelled
vllm-test / vllm-x-pytorch-test (push) Has been cancelled
Limited CI on H100 / get-label-type (push) Has been cancelled
Limited CI on H100 / linux-jammy-cuda12.8-py3.10-gcc11-sm90 (push) Has been cancelled
Limited CI on H100 / linux-jammy-cuda12_8-py3_10-gcc11-sm90-FA3-ABI-stable-test (push) Has been cancelled
xpu / get-label-type (push) Has been cancelled
xpu / linux-jammy-xpu-n-1-py3.10 (push) Has been cancelled
xpu / linux-noble-xpu-n-py3.10 (push) Has been cancelled
xpu / win-vs2022-xpu-n-1-py3 (push) Has been cancelled
xpu / win-vs2022-xpu-n-py3 (push) Has been cancelled
Limited CI for CUTLASS backend on H100 / get-label-type (push) Has been cancelled
Limited CI for CUTLASS backend on H100 / linux-jammy-cuda12.8-py3.10-gcc11-sm90-cutlass-backend (push) Has been cancelled
rocm-mi355 / before-test (push) Has been cancelled
rocm-mi355 / get-label-type (push) Has been cancelled
rocm-mi355 / linux-noble-rocm-py3.12-mi355 (push) Has been cancelled
operator_microbenchmark / get-label-type (push) Has been cancelled
operator_microbenchmark / opmicrobenchmark-build (push) Has been cancelled
operator_microbenchmark / opmicrobenchmark-test (push) Has been cancelled
operator_microbenchmark / opmicrobenchmark-build-b200 (push) Has been cancelled
operator_microbenchmark / opmicrobenchmark-test-b200 (push) Has been cancelled
operator_microbenchmark / opmicrobenchmark-build-rocm (push) Has been cancelled
operator_microbenchmark / opmicrobenchmark-test-rocm (push) Has been cancelled
inductor-A100-perf-nightly / get-label-type (push) Has been cancelled
inductor-A100-perf-nightly / cuda12.8-py3.10-gcc11-sm80 (push) Has been cancelled
inductor-A100-perf-nightly / cuda13.0-py3.10-gcc11-sm80 (push) Has been cancelled
inductor-perf-nightly-x86 / get-label-type (push) Has been cancelled
inductor-perf-nightly-x86 / inductor-build (push) Has been cancelled
inductor-perf-nightly-x86 / inductor-test-nightly-freezing (push) Has been cancelled
inductor-perf-nightly-x86 / inductor-test (push) Has been cancelled
inductor-perf-nightly-x86-zen / get-label-type (push) Has been cancelled
inductor-perf-nightly-x86-zen / inductor-build (push) Has been cancelled
inductor-perf-nightly-x86-zen / inductor-test-nightly (push) Has been cancelled
inductor-perf-nightly-x86-zen / inductor-test (push) Has been cancelled
inductor-perf-nightly-macos / macos-perf-py3-arm64 (push) Has been cancelled
inductor-perf-nightly-macos / macos-perf-py3-arm64-mps (push) Has been cancelled
inductor-perf-nightly-aarch64 / get-label-type (push) Has been cancelled
inductor-perf-nightly-aarch64 / linux-jammy-aarch64-py3.10-inductor (push) Has been cancelled
inductor-perf-b200 / get-label-type (push) Has been cancelled
inductor-perf-b200 / cuda12.8-py3.10-gcc11-sm100 (push) Has been cancelled
inductor-nightly / get-default-label-prefix (push) Has been cancelled
inductor-nightly / nightly-dynamo-benchmarks-build (push) Has been cancelled
inductor-nightly / nightly-dynamo-benchmarks-test (push) Has been cancelled
inductor-micro-benchmark / get-default-label-prefix (push) Has been cancelled
inductor-micro-benchmark / cuda12.8-py3.10-gcc11-sm80 (push) Has been cancelled
inductor-micro-benchmark / cuda13.0-py3.10-gcc11-sm80 (push) Has been cancelled
inductor-micro-benchmark-x86 / inductor-build (push) Has been cancelled
inductor-micro-benchmark-x86 / inductor-micro-benchmark-test (push) Has been cancelled
attention_op_microbenchmark / attn-microbenchmark-build (push) Has been cancelled
attention_op_microbenchmark / attn-microbenchmark-test (push) Has been cancelled
attention_op_microbenchmark / opmicrobenchmark-build-b200 (push) Has been cancelled
attention_op_microbenchmark / opmicrobenchmark-test-b200 (push) Has been cancelled
Nightly Upload to s3 / upload-stats-to-s3 (push) Has been cancelled
Limited CI for symmetric memory tests on H100 / get-label-type (push) Has been cancelled
Limited CI for symmetric memory tests on H100 / linux-jammy-cuda12.8-py3.10-gcc11-sm90-symm (push) Has been cancelled
Limited CI for symmetric memory tests on B200 / get-label-type (push) Has been cancelled
Limited CI for symmetric memory tests on B200 / linux-jammy-cuda12.8-py3.10-gcc11-sm100-symm (push) Has been cancelled
trunk / job-filter (push) Has been cancelled
trunk / before-test (push) Has been cancelled
trunk / get-label-type (push) Has been cancelled
trunk / libtorch-linux-jammy-cuda12.8-py3.10-gcc11-debug (push) Has been cancelled
trunk / linux-jammy-cuda12.8-py3.10-gcc11 (push) Has been cancelled
trunk / linux-jammy-cuda13.0-py3.10-gcc11 (push) Has been cancelled
trunk / linux-jammy-cuda12.8-py3.10-gcc11-no-ops (push) Has been cancelled
trunk / linux-jammy-cuda13.0-py3.10-gcc11-no-ops (push) Has been cancelled
trunk / macos-py3-arm64 (push) Has been cancelled
trunk / win-vs2022-cpu-py3 (push) Has been cancelled
trunk / win-vs2022-cuda12.8-py3 (push) Has been cancelled
trunk / linux-jammy-rocm-py3.10 (push) Has been cancelled
trunk / inductor-build (push) Has been cancelled
trunk / inductor-build-cuda13 (push) Has been cancelled
trunk / cross-compile-linux-test (push) Has been cancelled
trunk / verify-cachebench-cpu-build (push) Has been cancelled
trunk / verify-cachebench-cpu-test (push) Has been cancelled
trunk / linux-jammy-py3-clang12-executorch (push) Has been cancelled
trunk / linux-jammy-py3.10-gcc11-full-debug-build-only (push) Has been cancelled
trunk-rocm-mi300 / before-test (push) Has been cancelled
trunk-rocm-mi300 / get-label-type (push) Has been cancelled
trunk-rocm-mi300 / linux-jammy-rocm-py3.10 (push) Has been cancelled
slow / before-test (push) Has been cancelled
slow / get-label-type (push) Has been cancelled
slow / linux-jammy-cuda12.8-py3.10-gcc11-sm86 (push) Has been cancelled
slow / linux-jammy-cuda13.0-py3.10-gcc11-sm86 (push) Has been cancelled
slow / linux-jammy-py3.10-clang12 (push) Has been cancelled
slow / linux-jammy-py3.10-clang18-asan (push) Has been cancelled
s390x-periodic / before-test (push) Has been cancelled
s390x-periodic / linux-manylinux-2_28-py3-cpu-s390x (push) Has been cancelled
rocm-mi300 / before-test (push) Has been cancelled
rocm-mi300 / get-label-type (push) Has been cancelled
rocm-mi300 / linux-noble-rocm-py3.12-mi300 (push) Has been cancelled
pull / job-filter (push) Has been cancelled
pull / before-test (push) Has been cancelled
pull / get-label-type (push) Has been cancelled
pull / linux-jammy-py3.10-gcc11 (push) Has been cancelled
pull / linux-docs (push) Has been cancelled
pull / linux-jammy-py3.10-gcc11-no-ops (push) Has been cancelled
pull / linux-jammy-py3.10-gcc11-pch (push) Has been cancelled
pull / linux-jammy-py3.10-clang18-asan (push) Has been cancelled
pull / linux-jammy-py3.10-clang12-onnx (push) Has been cancelled
pull / linux-jammy-py3.10-clang12 (push) Has been cancelled
pull / linux-jammy-py3.14-clang12 (push) Has been cancelled
pull / linux-jammy-cuda12.8-cudnn9-py3.10-clang12 (push) Has been cancelled
pull / linux-jammy-cpu-py3.10-gcc11-bazel-test (push) Has been cancelled
pull / linux-jammy-py3.10-gcc11-mobile-lightweight-dispatch-build (push) Has been cancelled
pull / linux-jammy-rocm-py3.10 (push) Has been cancelled
pull / cuda12.8-py3.10-gcc11-sm75 (push) Has been cancelled
pull / cuda13.0-py3.10-gcc11-sm75 (push) Has been cancelled
pull / linux-jammy-xpu-n-py3.10 (push) Has been cancelled
inductor-unittest / get-label-type (push) Has been cancelled
inductor-unittest / inductor-build (push) Has been cancelled
inductor-unittest / inductor-test (push) Has been cancelled
inductor-unittest / inductor-halide-build (push) Has been cancelled
inductor-unittest / inductor-halide-test (push) Has been cancelled
inductor-unittest / inductor-pallas-cpu-build (push) Has been cancelled
inductor-unittest / inductor-pallas-cpu-test (push) Has been cancelled
inductor-unittest / inductor-triton-cpu-build (push) Has been cancelled
inductor-unittest / linux-jammy-cpu-py3.12-gcc11-inductor-triton-cpu (push) Has been cancelled
inductor-unittest / inductor-cpu-build (push) Has been cancelled
inductor-unittest / inductor-cpu-test (push) Has been cancelled
inductor-unittest / inductor-cpu-core-build (3.11) (push) Has been cancelled
inductor-unittest / inductor-cpu-core-build (3.12) (push) Has been cancelled
inductor-unittest / inductor-cpu-core-build (3.13) (push) Has been cancelled
inductor-unittest / inductor-cpu-core-test (3.11) (push) Has been cancelled
inductor-unittest / inductor-cpu-core-test (3.12) (push) Has been cancelled
inductor-unittest / inductor-cpu-core-test (3.13) (push) Has been cancelled
dynamo-unittest / get-label-type (push) Has been cancelled
dynamo-unittest / dynamo-build (3.11) (push) Has been cancelled
dynamo-unittest / dynamo-build (3.12) (push) Has been cancelled
dynamo-unittest / dynamo-build (3.13) (push) Has been cancelled
dynamo-unittest / dynamo-test (3.11) (push) Has been cancelled
dynamo-unittest / dynamo-test (3.12) (push) Has been cancelled
dynamo-unittest / dynamo-test (3.13) (push) Has been cancelled
Limited CI for distributed tests on H100 / get-label-type (push) Has been cancelled
Limited CI for distributed tests on H100 / linux-jammy-cuda12.8-py3.10-gcc11-sm90-dist (push) Has been cancelled
CI for distributed tests on B200 / get-label-type (push) Has been cancelled
CI for distributed tests on B200 / linux-jammy-cuda12.8-py3.10-gcc11-build-distributed-b200 (push) Has been cancelled
CI for distributed tests on B200 / linux-jammy-cuda12.8-py3.10-gcc11-test-b200 (push) Has been cancelled
vLLM Benchmark / set-parameters (push) Has been cancelled
vLLM Benchmark / Build PyTorch and vLLM (push) Has been cancelled
vLLM Benchmark / Run vLLM benchmarks (push) Has been cancelled
Build vLLM wheels / Build cu128 vLLM wheel on manylinux_2_28_x86_64 (push) Has been cancelled
Build vLLM wheels / Build cu128 vLLM wheel on manylinux_2_28_aarch64 (push) Has been cancelled
Build vLLM wheels / Build cu129 vLLM wheel on manylinux_2_28_x86_64 (push) Has been cancelled
Build vLLM wheels / Build cu129 vLLM wheel on manylinux_2_28_aarch64 (push) Has been cancelled
Build vLLM wheels / Build cu130 vLLM wheel on manylinux_2_28_x86_64 (push) Has been cancelled
Build vLLM wheels / Upload cu128 vLLM wheel on manylinux_2_28_aarch64 (push) Has been cancelled
Build vLLM wheels / Upload cu128 vLLM wheel on manylinux_2_28_x86_64 (push) Has been cancelled
Build vLLM wheels / Upload cu129 vLLM wheel on manylinux_2_28_aarch64 (push) Has been cancelled
Build vLLM wheels / Upload cu129 vLLM wheel on manylinux_2_28_x86_64 (push) Has been cancelled
Build vLLM wheels / Upload cu130 vLLM wheel on manylinux_2_28_x86_64 (push) Has been cancelled
inductor-perf-nightly-xpu / get-label-type (push) Has been cancelled
inductor-perf-nightly-xpu / xpu-n-py3.10-inductor-benchmark (push) Has been cancelled
inductor-perf-nightly-xpu / xpu-n-py3.10-inductor-test (push) Has been cancelled
Close nonexistent disable issues / close-nonexistent-disable-issues (push) Has been cancelled
Index PyTorch Tests for Target Determination / get-label-type (push) Has been cancelled
Index PyTorch Tests for Target Determination / index (push) Has been cancelled
nightly / get-label-type (push) Has been cancelled
nightly / Link checks (push) Has been cancelled
nightly / docs build (push) Has been cancelled
nightly / docs push (push) Has been cancelled
nightly / update-commit-hashes (main, .ci/docker/ci_commit_pins, triton, triton-lang) (push) Has been cancelled
nightly / update-commit-hashes (main, .github/ci_commit_pins, audio, pytorch) (push) Has been cancelled
nightly / update-commit-hashes (main, .github/ci_commit_pins, vision, pytorch) (push) Has been cancelled
nightly / update-commit-hashes (main, .github/ci_commit_pins, vllm, vllm-project) (push) Has been cancelled
inductor-perf-nightly-rocm-mi355 / get-label-type (push) Has been cancelled
inductor-perf-nightly-rocm-mi355 / rocm-py3_10-inductor-benchmark-build (push) Has been cancelled
inductor-perf-nightly-rocm-mi355 / rocm-py3_10-inductor-benchmark-test (push) Has been cancelled
inductor-perf-nightly-rocm-mi300 / get-label-type (push) Has been cancelled
inductor-perf-nightly-rocm-mi300 / rocm-py3_10-inductor-benchmark-build (push) Has been cancelled
inductor-perf-nightly-rocm-mi300 / rocm-py3_10-inductor-benchmark-test (push) Has been cancelled
Delete old branches / delete (push) Has been cancelled
inductor-perf-nightly-h100 / get-label-type (push) Has been cancelled
inductor-perf-nightly-h100 / build (push) Has been cancelled
inductor-perf-nightly-h100 / test-periodically (push) Has been cancelled
inductor-perf-nightly-h100 / test-weekly (push) Has been cancelled
inductor-perf-nightly-h100 / test (push) Has been cancelled
quantization-periodic / get-default-label-prefix (push) Has been cancelled
quantization-periodic / periodic-quantization-build (push) Has been cancelled
quantization-periodic / periodic-test-quantization (push) Has been cancelled
operator_benchmark / x86-opbenchmark-build (push) Has been cancelled
operator_benchmark / aarch64-opbenchmark-build (push) Has been cancelled
operator_benchmark / x86-opbenchmark-test (push) Has been cancelled
operator_benchmark / aarch64-opbenchmark-test (push) Has been cancelled
weekly / update-commit-hash (push) Has been cancelled
weekly / update-slow-tests (push) Has been cancelled
docker-builds / get-label-type (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-aarch64-py3.10-clang21, linux.arm64.m7g.4xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-aarch64-py3.10-gcc13, linux.arm64.m7g.4xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-aarch64-py3.10-gcc13-inductor-benchmarks, linux.arm64.m7g.4xlarge, 600) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-cuda12.4-cudnn9-py3-gcc11, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-cuda12.8-cudnn9-py3-gcc11, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-cuda12.8-cudnn9-py3-gcc11-inductor-benchmarks, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-cuda12.8-cudnn9-py3.10-clang12, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-cuda12.8-cudnn9-py3.10-linter, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-cuda12.8-py3.12-pallas, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-cuda12.9-cudnn9-py3.12-gcc11-vllm, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-cuda13.0-cudnn9-py3-gcc11, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-cuda13.0-cudnn9-py3-gcc11-inductor-benchmarks, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-linter, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3-clang12-onnx, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3-clang18-asan, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3-gcc11-inductor-benchmarks, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3.10-clang12, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3.10-gcc11, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3.11-clang12, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3.12-clang12, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3.12-halide, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3.12-pallas, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3.12-triton-cpu, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3.13-clang12, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3.14-clang12, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-rocm-n-py3, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-rocm-n-py3-benchmarks, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-tpu-py3.12-pallas, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-xpu-n-1-py3, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-noble-riscv64-py3.12-gcc14, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-noble-rocm-n-py3, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-noble-rocm-nightly-py3, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-noble-xpu-n-py3, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-noble-xpu-n-py3-inductor-benchmarks, linux.12xlarge) (push) Has been cancelled
ossf-scorecard / Scorecards analysis (push) Has been cancelled
Some checks failed
Update viable/strict / do_update_viablestrict (push) Has been cancelled
Upload test stats while running / Upload test stats while running (push) Has been cancelled
Close stale pull requests / stale (push) Has been cancelled
B200 Smoke Tests / get-label-type (push) Has been cancelled
B200 Smoke Tests / linux-jammy-cuda12.8-py3.10-gcc11-sm100 (push) Has been cancelled
rocm-mi200 / before-test (push) Has been cancelled
rocm-mi200 / get-label-type (push) Has been cancelled
rocm-mi200 / linux-jammy-rocm-py3.10 (push) Has been cancelled
unstable-periodic / introduction (push) Has been cancelled
rocm-navi31 / before-test (push) Has been cancelled
rocm-navi31 / get-label-type (push) Has been cancelled
rocm-navi31 / linux-jammy-rocm-py3.10 (push) Has been cancelled
rocm-navi31 / linux-jammy-rocm-py3_10 (push) Has been cancelled
periodic / before-test (push) Has been cancelled
periodic / get-label-type (push) Has been cancelled
periodic / linux-jammy-cuda12.4-py3.10-gcc11 (push) Has been cancelled
periodic / linux-jammy-cuda12.8-py3.10-gcc11 (push) Has been cancelled
periodic / linux-jammy-cuda12.8-py3.10-gcc11-debug (push) Has been cancelled
periodic / linux-jammy-cuda13.0-py3.10-gcc11 (push) Has been cancelled
periodic / linux-jammy-cuda12.8-py3-gcc11-slow-gradcheck (push) Has been cancelled
periodic-rocm-mi300 / before-test (push) Has been cancelled
periodic-rocm-mi300 / get-label-type (push) Has been cancelled
periodic-rocm-mi300 / linux-noble-rocm-py3.12-mi300 (push) Has been cancelled
periodic-rocm-mi200 / before-test (push) Has been cancelled
periodic-rocm-mi200 / get-label-type (push) Has been cancelled
periodic-rocm-mi200 / linux-jammy-rocm-py3.10 (push) Has been cancelled
slow-rocm-mi200 / before-test (push) Has been cancelled
slow-rocm-mi200 / get-label-type (push) Has been cancelled
slow-rocm-mi200 / linux-jammy-rocm-py3.10 (push) Has been cancelled
inductor-rocm-mi200 / get-label-type (push) Has been cancelled
inductor-rocm-mi200 / rocm-py3.10-inductor (push) Has been cancelled
windows-arm64-build-test / build (push) Has been cancelled
windows-arm64-build-test / test (push) Has been cancelled
inductor-periodic / get-default-label-prefix (push) Has been cancelled
inductor-periodic / periodic-dynamo-benchmarks-build (push) Has been cancelled
inductor-periodic / periodic-dynamo-benchmarks-test (push) Has been cancelled
inductor-periodic / periodic-dynamo-benchmarks-build-cuda13 (push) Has been cancelled
inductor-periodic / periodic-dynamo-benchmarks-test-cuda13 (push) Has been cancelled
inductor-periodic / rocm-periodic-dynamo-benchmarks-build (push) Has been cancelled
inductor-periodic / rocm-periodic-dynamo-benchmarks-test (push) Has been cancelled
inductor-periodic / inductor-smoke-build (push) Has been cancelled
inductor-periodic / inductor-smoke-test (push) Has been cancelled
inductor-periodic / periodic-dynamo-benchmarks-cpu-build (push) Has been cancelled
inductor-periodic / periodic-dynamo-benchmarks-cpu-test (push) Has been cancelled
vllm-test / vllm-x-pytorch-build (push) Has been cancelled
vllm-test / vllm-x-pytorch-test (push) Has been cancelled
Limited CI on H100 / get-label-type (push) Has been cancelled
Limited CI on H100 / linux-jammy-cuda12.8-py3.10-gcc11-sm90 (push) Has been cancelled
Limited CI on H100 / linux-jammy-cuda12_8-py3_10-gcc11-sm90-FA3-ABI-stable-test (push) Has been cancelled
xpu / get-label-type (push) Has been cancelled
xpu / linux-jammy-xpu-n-1-py3.10 (push) Has been cancelled
xpu / linux-noble-xpu-n-py3.10 (push) Has been cancelled
xpu / win-vs2022-xpu-n-1-py3 (push) Has been cancelled
xpu / win-vs2022-xpu-n-py3 (push) Has been cancelled
Limited CI for CUTLASS backend on H100 / get-label-type (push) Has been cancelled
Limited CI for CUTLASS backend on H100 / linux-jammy-cuda12.8-py3.10-gcc11-sm90-cutlass-backend (push) Has been cancelled
rocm-mi355 / before-test (push) Has been cancelled
rocm-mi355 / get-label-type (push) Has been cancelled
rocm-mi355 / linux-noble-rocm-py3.12-mi355 (push) Has been cancelled
operator_microbenchmark / get-label-type (push) Has been cancelled
operator_microbenchmark / opmicrobenchmark-build (push) Has been cancelled
operator_microbenchmark / opmicrobenchmark-test (push) Has been cancelled
operator_microbenchmark / opmicrobenchmark-build-b200 (push) Has been cancelled
operator_microbenchmark / opmicrobenchmark-test-b200 (push) Has been cancelled
operator_microbenchmark / opmicrobenchmark-build-rocm (push) Has been cancelled
operator_microbenchmark / opmicrobenchmark-test-rocm (push) Has been cancelled
inductor-A100-perf-nightly / get-label-type (push) Has been cancelled
inductor-A100-perf-nightly / cuda12.8-py3.10-gcc11-sm80 (push) Has been cancelled
inductor-A100-perf-nightly / cuda13.0-py3.10-gcc11-sm80 (push) Has been cancelled
inductor-perf-nightly-x86 / get-label-type (push) Has been cancelled
inductor-perf-nightly-x86 / inductor-build (push) Has been cancelled
inductor-perf-nightly-x86 / inductor-test-nightly-freezing (push) Has been cancelled
inductor-perf-nightly-x86 / inductor-test (push) Has been cancelled
inductor-perf-nightly-x86-zen / get-label-type (push) Has been cancelled
inductor-perf-nightly-x86-zen / inductor-build (push) Has been cancelled
inductor-perf-nightly-x86-zen / inductor-test-nightly (push) Has been cancelled
inductor-perf-nightly-x86-zen / inductor-test (push) Has been cancelled
inductor-perf-nightly-macos / macos-perf-py3-arm64 (push) Has been cancelled
inductor-perf-nightly-macos / macos-perf-py3-arm64-mps (push) Has been cancelled
inductor-perf-nightly-aarch64 / get-label-type (push) Has been cancelled
inductor-perf-nightly-aarch64 / linux-jammy-aarch64-py3.10-inductor (push) Has been cancelled
inductor-perf-b200 / get-label-type (push) Has been cancelled
inductor-perf-b200 / cuda12.8-py3.10-gcc11-sm100 (push) Has been cancelled
inductor-nightly / get-default-label-prefix (push) Has been cancelled
inductor-nightly / nightly-dynamo-benchmarks-build (push) Has been cancelled
inductor-nightly / nightly-dynamo-benchmarks-test (push) Has been cancelled
inductor-micro-benchmark / get-default-label-prefix (push) Has been cancelled
inductor-micro-benchmark / cuda12.8-py3.10-gcc11-sm80 (push) Has been cancelled
inductor-micro-benchmark / cuda13.0-py3.10-gcc11-sm80 (push) Has been cancelled
inductor-micro-benchmark-x86 / inductor-build (push) Has been cancelled
inductor-micro-benchmark-x86 / inductor-micro-benchmark-test (push) Has been cancelled
attention_op_microbenchmark / attn-microbenchmark-build (push) Has been cancelled
attention_op_microbenchmark / attn-microbenchmark-test (push) Has been cancelled
attention_op_microbenchmark / opmicrobenchmark-build-b200 (push) Has been cancelled
attention_op_microbenchmark / opmicrobenchmark-test-b200 (push) Has been cancelled
Nightly Upload to s3 / upload-stats-to-s3 (push) Has been cancelled
Limited CI for symmetric memory tests on H100 / get-label-type (push) Has been cancelled
Limited CI for symmetric memory tests on H100 / linux-jammy-cuda12.8-py3.10-gcc11-sm90-symm (push) Has been cancelled
Limited CI for symmetric memory tests on B200 / get-label-type (push) Has been cancelled
Limited CI for symmetric memory tests on B200 / linux-jammy-cuda12.8-py3.10-gcc11-sm100-symm (push) Has been cancelled
trunk / job-filter (push) Has been cancelled
trunk / before-test (push) Has been cancelled
trunk / get-label-type (push) Has been cancelled
trunk / libtorch-linux-jammy-cuda12.8-py3.10-gcc11-debug (push) Has been cancelled
trunk / linux-jammy-cuda12.8-py3.10-gcc11 (push) Has been cancelled
trunk / linux-jammy-cuda13.0-py3.10-gcc11 (push) Has been cancelled
trunk / linux-jammy-cuda12.8-py3.10-gcc11-no-ops (push) Has been cancelled
trunk / linux-jammy-cuda13.0-py3.10-gcc11-no-ops (push) Has been cancelled
trunk / macos-py3-arm64 (push) Has been cancelled
trunk / win-vs2022-cpu-py3 (push) Has been cancelled
trunk / win-vs2022-cuda12.8-py3 (push) Has been cancelled
trunk / linux-jammy-rocm-py3.10 (push) Has been cancelled
trunk / inductor-build (push) Has been cancelled
trunk / inductor-build-cuda13 (push) Has been cancelled
trunk / cross-compile-linux-test (push) Has been cancelled
trunk / verify-cachebench-cpu-build (push) Has been cancelled
trunk / verify-cachebench-cpu-test (push) Has been cancelled
trunk / linux-jammy-py3-clang12-executorch (push) Has been cancelled
trunk / linux-jammy-py3.10-gcc11-full-debug-build-only (push) Has been cancelled
trunk-rocm-mi300 / before-test (push) Has been cancelled
trunk-rocm-mi300 / get-label-type (push) Has been cancelled
trunk-rocm-mi300 / linux-jammy-rocm-py3.10 (push) Has been cancelled
slow / before-test (push) Has been cancelled
slow / get-label-type (push) Has been cancelled
slow / linux-jammy-cuda12.8-py3.10-gcc11-sm86 (push) Has been cancelled
slow / linux-jammy-cuda13.0-py3.10-gcc11-sm86 (push) Has been cancelled
slow / linux-jammy-py3.10-clang12 (push) Has been cancelled
slow / linux-jammy-py3.10-clang18-asan (push) Has been cancelled
s390x-periodic / before-test (push) Has been cancelled
s390x-periodic / linux-manylinux-2_28-py3-cpu-s390x (push) Has been cancelled
rocm-mi300 / before-test (push) Has been cancelled
rocm-mi300 / get-label-type (push) Has been cancelled
rocm-mi300 / linux-noble-rocm-py3.12-mi300 (push) Has been cancelled
pull / job-filter (push) Has been cancelled
pull / before-test (push) Has been cancelled
pull / get-label-type (push) Has been cancelled
pull / linux-jammy-py3.10-gcc11 (push) Has been cancelled
pull / linux-docs (push) Has been cancelled
pull / linux-jammy-py3.10-gcc11-no-ops (push) Has been cancelled
pull / linux-jammy-py3.10-gcc11-pch (push) Has been cancelled
pull / linux-jammy-py3.10-clang18-asan (push) Has been cancelled
pull / linux-jammy-py3.10-clang12-onnx (push) Has been cancelled
pull / linux-jammy-py3.10-clang12 (push) Has been cancelled
pull / linux-jammy-py3.14-clang12 (push) Has been cancelled
pull / linux-jammy-cuda12.8-cudnn9-py3.10-clang12 (push) Has been cancelled
pull / linux-jammy-cpu-py3.10-gcc11-bazel-test (push) Has been cancelled
pull / linux-jammy-py3.10-gcc11-mobile-lightweight-dispatch-build (push) Has been cancelled
pull / linux-jammy-rocm-py3.10 (push) Has been cancelled
pull / cuda12.8-py3.10-gcc11-sm75 (push) Has been cancelled
pull / cuda13.0-py3.10-gcc11-sm75 (push) Has been cancelled
pull / linux-jammy-xpu-n-py3.10 (push) Has been cancelled
inductor-unittest / get-label-type (push) Has been cancelled
inductor-unittest / inductor-build (push) Has been cancelled
inductor-unittest / inductor-test (push) Has been cancelled
inductor-unittest / inductor-halide-build (push) Has been cancelled
inductor-unittest / inductor-halide-test (push) Has been cancelled
inductor-unittest / inductor-pallas-cpu-build (push) Has been cancelled
inductor-unittest / inductor-pallas-cpu-test (push) Has been cancelled
inductor-unittest / inductor-triton-cpu-build (push) Has been cancelled
inductor-unittest / linux-jammy-cpu-py3.12-gcc11-inductor-triton-cpu (push) Has been cancelled
inductor-unittest / inductor-cpu-build (push) Has been cancelled
inductor-unittest / inductor-cpu-test (push) Has been cancelled
inductor-unittest / inductor-cpu-core-build (3.11) (push) Has been cancelled
inductor-unittest / inductor-cpu-core-build (3.12) (push) Has been cancelled
inductor-unittest / inductor-cpu-core-build (3.13) (push) Has been cancelled
inductor-unittest / inductor-cpu-core-test (3.11) (push) Has been cancelled
inductor-unittest / inductor-cpu-core-test (3.12) (push) Has been cancelled
inductor-unittest / inductor-cpu-core-test (3.13) (push) Has been cancelled
dynamo-unittest / get-label-type (push) Has been cancelled
dynamo-unittest / dynamo-build (3.11) (push) Has been cancelled
dynamo-unittest / dynamo-build (3.12) (push) Has been cancelled
dynamo-unittest / dynamo-build (3.13) (push) Has been cancelled
dynamo-unittest / dynamo-test (3.11) (push) Has been cancelled
dynamo-unittest / dynamo-test (3.12) (push) Has been cancelled
dynamo-unittest / dynamo-test (3.13) (push) Has been cancelled
Limited CI for distributed tests on H100 / get-label-type (push) Has been cancelled
Limited CI for distributed tests on H100 / linux-jammy-cuda12.8-py3.10-gcc11-sm90-dist (push) Has been cancelled
CI for distributed tests on B200 / get-label-type (push) Has been cancelled
CI for distributed tests on B200 / linux-jammy-cuda12.8-py3.10-gcc11-build-distributed-b200 (push) Has been cancelled
CI for distributed tests on B200 / linux-jammy-cuda12.8-py3.10-gcc11-test-b200 (push) Has been cancelled
vLLM Benchmark / set-parameters (push) Has been cancelled
vLLM Benchmark / Build PyTorch and vLLM (push) Has been cancelled
vLLM Benchmark / Run vLLM benchmarks (push) Has been cancelled
Build vLLM wheels / Build cu128 vLLM wheel on manylinux_2_28_x86_64 (push) Has been cancelled
Build vLLM wheels / Build cu128 vLLM wheel on manylinux_2_28_aarch64 (push) Has been cancelled
Build vLLM wheels / Build cu129 vLLM wheel on manylinux_2_28_x86_64 (push) Has been cancelled
Build vLLM wheels / Build cu129 vLLM wheel on manylinux_2_28_aarch64 (push) Has been cancelled
Build vLLM wheels / Build cu130 vLLM wheel on manylinux_2_28_x86_64 (push) Has been cancelled
Build vLLM wheels / Upload cu128 vLLM wheel on manylinux_2_28_aarch64 (push) Has been cancelled
Build vLLM wheels / Upload cu128 vLLM wheel on manylinux_2_28_x86_64 (push) Has been cancelled
Build vLLM wheels / Upload cu129 vLLM wheel on manylinux_2_28_aarch64 (push) Has been cancelled
Build vLLM wheels / Upload cu129 vLLM wheel on manylinux_2_28_x86_64 (push) Has been cancelled
Build vLLM wheels / Upload cu130 vLLM wheel on manylinux_2_28_x86_64 (push) Has been cancelled
inductor-perf-nightly-xpu / get-label-type (push) Has been cancelled
inductor-perf-nightly-xpu / xpu-n-py3.10-inductor-benchmark (push) Has been cancelled
inductor-perf-nightly-xpu / xpu-n-py3.10-inductor-test (push) Has been cancelled
Close nonexistent disable issues / close-nonexistent-disable-issues (push) Has been cancelled
Index PyTorch Tests for Target Determination / get-label-type (push) Has been cancelled
Index PyTorch Tests for Target Determination / index (push) Has been cancelled
nightly / get-label-type (push) Has been cancelled
nightly / Link checks (push) Has been cancelled
nightly / docs build (push) Has been cancelled
nightly / docs push (push) Has been cancelled
nightly / update-commit-hashes (main, .ci/docker/ci_commit_pins, triton, triton-lang) (push) Has been cancelled
nightly / update-commit-hashes (main, .github/ci_commit_pins, audio, pytorch) (push) Has been cancelled
nightly / update-commit-hashes (main, .github/ci_commit_pins, vision, pytorch) (push) Has been cancelled
nightly / update-commit-hashes (main, .github/ci_commit_pins, vllm, vllm-project) (push) Has been cancelled
inductor-perf-nightly-rocm-mi355 / get-label-type (push) Has been cancelled
inductor-perf-nightly-rocm-mi355 / rocm-py3_10-inductor-benchmark-build (push) Has been cancelled
inductor-perf-nightly-rocm-mi355 / rocm-py3_10-inductor-benchmark-test (push) Has been cancelled
inductor-perf-nightly-rocm-mi300 / get-label-type (push) Has been cancelled
inductor-perf-nightly-rocm-mi300 / rocm-py3_10-inductor-benchmark-build (push) Has been cancelled
inductor-perf-nightly-rocm-mi300 / rocm-py3_10-inductor-benchmark-test (push) Has been cancelled
Delete old branches / delete (push) Has been cancelled
inductor-perf-nightly-h100 / get-label-type (push) Has been cancelled
inductor-perf-nightly-h100 / build (push) Has been cancelled
inductor-perf-nightly-h100 / test-periodically (push) Has been cancelled
inductor-perf-nightly-h100 / test-weekly (push) Has been cancelled
inductor-perf-nightly-h100 / test (push) Has been cancelled
quantization-periodic / get-default-label-prefix (push) Has been cancelled
quantization-periodic / periodic-quantization-build (push) Has been cancelled
quantization-periodic / periodic-test-quantization (push) Has been cancelled
operator_benchmark / x86-opbenchmark-build (push) Has been cancelled
operator_benchmark / aarch64-opbenchmark-build (push) Has been cancelled
operator_benchmark / x86-opbenchmark-test (push) Has been cancelled
operator_benchmark / aarch64-opbenchmark-test (push) Has been cancelled
weekly / update-commit-hash (push) Has been cancelled
weekly / update-slow-tests (push) Has been cancelled
docker-builds / get-label-type (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-aarch64-py3.10-clang21, linux.arm64.m7g.4xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-aarch64-py3.10-gcc13, linux.arm64.m7g.4xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-aarch64-py3.10-gcc13-inductor-benchmarks, linux.arm64.m7g.4xlarge, 600) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-cuda12.4-cudnn9-py3-gcc11, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-cuda12.8-cudnn9-py3-gcc11, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-cuda12.8-cudnn9-py3-gcc11-inductor-benchmarks, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-cuda12.8-cudnn9-py3.10-clang12, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-cuda12.8-cudnn9-py3.10-linter, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-cuda12.8-py3.12-pallas, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-cuda12.9-cudnn9-py3.12-gcc11-vllm, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-cuda13.0-cudnn9-py3-gcc11, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-cuda13.0-cudnn9-py3-gcc11-inductor-benchmarks, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-linter, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3-clang12-onnx, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3-clang18-asan, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3-gcc11-inductor-benchmarks, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3.10-clang12, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3.10-gcc11, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3.11-clang12, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3.12-clang12, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3.12-halide, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3.12-pallas, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3.12-triton-cpu, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3.13-clang12, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-py3.14-clang12, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-rocm-n-py3, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-rocm-n-py3-benchmarks, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-tpu-py3.12-pallas, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-jammy-xpu-n-1-py3, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-noble-riscv64-py3.12-gcc14, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-noble-rocm-n-py3, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-noble-rocm-nightly-py3, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-noble-xpu-n-py3, linux.12xlarge) (push) Has been cancelled
docker-builds / docker-build (pytorch-linux-noble-xpu-n-py3-inductor-benchmarks, linux.12xlarge) (push) Has been cancelled
ossf-scorecard / Scorecards analysis (push) Has been cancelled
fuzzes over [Replicate(), Shard(i), Partial()] for DTensors Pull Request resolved: https://github.com/pytorch/pytorch/pull/170136 Approved by: https://github.com/bobrenjc93
This commit is contained in:
committed by
PyTorch MergeBot
parent
39839dbc39
commit
47f048afa5
@@ -501,6 +501,133 @@ class UnbackedFuzzTemplate(FuzzTemplate):
|
||||
return []
|
||||
|
||||
|
||||
class DTensorFuzzPlacementsTemplate(DTensorFuzzTemplate):
|
||||
"""DTensor template with randomized placements (Replicate, Shard, Partial).
|
||||
|
||||
Extends DTensorFuzzTemplate to randomize placement strategies instead of
|
||||
using fixed (Replicate(), Replicate()) for all tensors.
|
||||
"""
|
||||
|
||||
def fuzz_spec_custom(self):
|
||||
"""Generate tensor specs with minimum 1 dimension for proper DTensor sharding."""
|
||||
import random
|
||||
|
||||
from torchfuzz.tensor_fuzzer import fuzz_valid_stride
|
||||
|
||||
# Get random dtype
|
||||
dtype = random.choice(self.supported_dtypes())
|
||||
|
||||
# Generate tensor size with minimum 1 dimension (avoid 0-dim scalars)
|
||||
# Prefer 2D-3D tensors for interesting sharding patterns
|
||||
ndim = random.choices([1, 2, 3, 4], weights=[0.1, 0.5, 0.3, 0.1])[0]
|
||||
size = tuple(random.randint(2, 32) for _ in range(ndim))
|
||||
stride = fuzz_valid_stride(size)
|
||||
|
||||
from torchfuzz.tensor_fuzzer import TensorSpec
|
||||
|
||||
return TensorSpec(size=size, stride=stride, dtype=dtype)
|
||||
|
||||
def imports_codegen(self):
|
||||
"""Add Partial to imports."""
|
||||
base_imports = super().imports_codegen()
|
||||
# Update the placement imports to include Partial
|
||||
for i, imp in enumerate(base_imports):
|
||||
if "placement_types import" in imp:
|
||||
base_imports[i] = (
|
||||
"from torch.distributed.tensor.placement_types import Replicate, Shard, Partial"
|
||||
)
|
||||
break
|
||||
base_imports.append("import torch.distributed.tensor as dist_tensor")
|
||||
return base_imports
|
||||
|
||||
def _generate_random_placement(self, tensor_size):
|
||||
"""Generate random placement tuple (Replicate, Shard, or Partial)."""
|
||||
import random
|
||||
|
||||
placements = []
|
||||
for _ in range(2): # 2D mesh
|
||||
placement_type = random.randint(0, 2)
|
||||
if placement_type == 0:
|
||||
placements.append("Replicate()")
|
||||
elif placement_type == 1 and len(tensor_size) > 0:
|
||||
shard_dim = random.randint(0, len(tensor_size) - 1)
|
||||
placements.append(f"Shard({shard_dim})")
|
||||
else:
|
||||
placements.append("Partial()" if placement_type == 2 else "Replicate()")
|
||||
return f"({', '.join(placements)})"
|
||||
|
||||
def args_codegen(self, arg_operations, constant_operations=None):
|
||||
"""Generate args with randomized placements using dist_tensor API."""
|
||||
|
||||
code_lines = []
|
||||
|
||||
# DTensor setup (same as parent)
|
||||
code_lines.extend(
|
||||
[
|
||||
"world_size = 1024",
|
||||
"fake_store = FakeStore()",
|
||||
"torch.distributed.init_process_group(",
|
||||
' "fake", store=fake_store, rank=0, world_size=world_size',
|
||||
")",
|
||||
"",
|
||||
"mesh = torch.distributed.device_mesh.init_device_mesh(",
|
||||
' "cuda", (2, 8), mesh_dim_names=("dim1", "dim2")',
|
||||
")",
|
||||
"",
|
||||
]
|
||||
)
|
||||
|
||||
# Sentinel with random placement
|
||||
sentinel_placements = self._generate_random_placement((1,))
|
||||
code_lines.extend(
|
||||
[
|
||||
f"sentinel = dist_tensor.ones((1,), device_mesh=mesh, placements={sentinel_placements}, dtype=torch.float32, requires_grad=True)",
|
||||
"",
|
||||
]
|
||||
)
|
||||
|
||||
# Args with random placements using dist_tensor API
|
||||
if arg_operations:
|
||||
for i, (node_id, spec) in enumerate(arg_operations):
|
||||
if isinstance(spec, TensorSpec):
|
||||
size_str = str(spec.size)
|
||||
dtype_str = f"torch.{spec.dtype}".replace("torch.torch.", "torch.")
|
||||
placements = self._generate_random_placement(spec.size)
|
||||
|
||||
if spec.dtype in [
|
||||
torch.int32,
|
||||
torch.int64,
|
||||
torch.int8,
|
||||
torch.int16,
|
||||
]:
|
||||
code_lines.append(
|
||||
f"arg_{i} = dist_tensor.ones({size_str}, device_mesh=mesh, placements={placements}, dtype={dtype_str}) * 5"
|
||||
)
|
||||
elif spec.dtype == torch.bool:
|
||||
code_lines.append(
|
||||
f"arg_{i} = dist_tensor.ones({size_str}, device_mesh=mesh, placements={placements}, dtype=torch.int8).bool()"
|
||||
)
|
||||
else:
|
||||
code_lines.append(
|
||||
f"arg_{i} = dist_tensor.randn({size_str}, device_mesh=mesh, placements={placements}, dtype={dtype_str}, requires_grad=True)"
|
||||
)
|
||||
|
||||
# Constants (if any) - use same dist_tensor approach
|
||||
if constant_operations:
|
||||
for node_id, var_name, spec in constant_operations:
|
||||
if isinstance(spec, TensorSpec):
|
||||
size_str = str(spec.size)
|
||||
dtype_str = f"torch.{spec.dtype}".replace("torch.torch.", "torch.")
|
||||
placements = self._generate_random_placement(spec.size)
|
||||
# Use dist_tensor.full with a simple fill value
|
||||
code_lines.append(
|
||||
f"{var_name} = dist_tensor.full({size_str}, 1.0, device_mesh=mesh, placements={placements}, dtype={dtype_str})"
|
||||
)
|
||||
|
||||
code_lines.append("")
|
||||
return code_lines
|
||||
|
||||
|
||||
def convert_graph_to_python_code(
|
||||
operation_graph: OperationGraph,
|
||||
seed: int | None = None,
|
||||
@@ -525,6 +652,8 @@ def convert_graph_to_python_code(
|
||||
# Instantiate template
|
||||
if template == "dtensor":
|
||||
fuzz_template = DTensorFuzzTemplate()
|
||||
elif template == "dtensor_placements":
|
||||
fuzz_template = DTensorFuzzPlacementsTemplate()
|
||||
elif template == "unbacked":
|
||||
fuzz_template = UnbackedFuzzTemplate()
|
||||
else:
|
||||
@@ -543,12 +672,15 @@ def convert_graph_to_python_code(
|
||||
# Get topological order - this ensures dependencies are processed before dependents
|
||||
topo_order = operation_graph.get_topological_order()
|
||||
|
||||
# Track generated variables and arg operations
|
||||
# Track generated variables, arg operations, and constant operations
|
||||
generated_code_lines = []
|
||||
node_variables: dict[str, tuple[str, Spec]] = {} # Maps node_id to (var_name, spec)
|
||||
arg_operations: list[
|
||||
tuple[str, Spec]
|
||||
] = [] # List of (node_id, spec) for arg operations
|
||||
constant_operations: list[
|
||||
tuple[str, str, Spec]
|
||||
] = [] # List of (node_id, var_name, spec) for constant operations (DTensor templates only)
|
||||
|
||||
# Process nodes in topological order
|
||||
for node_id in topo_order:
|
||||
@@ -579,6 +711,13 @@ def convert_graph_to_python_code(
|
||||
# Add tensor descriptor comment for arg operations too
|
||||
descriptor_comment = f"# {format_tensor_descriptor(output_spec)}"
|
||||
operation_lines = [f"{output_var_name} = {arg_name} " + descriptor_comment]
|
||||
elif op_name == "constant" and template == "dtensor_placements":
|
||||
# For DTensor placements template, track constants to create them outside the function
|
||||
constant_operations.append((node_id, output_var_name, output_spec))
|
||||
descriptor_comment = f"# {format_tensor_descriptor(output_spec)}"
|
||||
operation_lines = [
|
||||
f"{output_var_name} = {output_var_name} " + descriptor_comment
|
||||
]
|
||||
else:
|
||||
# Generate operation execution code
|
||||
operation_lines = generate_simple_operation_code(
|
||||
@@ -598,12 +737,15 @@ def convert_graph_to_python_code(
|
||||
|
||||
final_var_name, _ = node_variables[root_node_id]
|
||||
|
||||
# Generate function signature based on discovered arg operations
|
||||
# Generate function signature based on discovered arg and constant operations
|
||||
param_names = []
|
||||
if arg_operations:
|
||||
arg_names = [f"arg_{i}" for i in range(len(arg_operations))]
|
||||
function_signature = f"def fuzzed_program({', '.join(arg_names)}, sentinel)"
|
||||
else:
|
||||
function_signature = "def fuzzed_program(sentinel)"
|
||||
param_names.extend([f"arg_{i}" for i in range(len(arg_operations))])
|
||||
if template == "dtensor_placements" and constant_operations:
|
||||
param_names.extend([var_name for _, var_name, _ in constant_operations])
|
||||
param_names.append("sentinel")
|
||||
|
||||
function_signature = f"def fuzzed_program({', '.join(param_names)})"
|
||||
|
||||
# Build the complete code - all imports at the top
|
||||
code_lines = []
|
||||
@@ -627,7 +769,7 @@ def convert_graph_to_python_code(
|
||||
|
||||
# Add return statement with sentinel multiplication to ensure gradient computation
|
||||
# Handle complex tensors appropriately based on template
|
||||
if template == "dtensor":
|
||||
if template in ["dtensor", "dtensor_placements"]:
|
||||
# For DTensor, avoid .real operation which doesn't work with sharding
|
||||
# Instead use abs() for complex tensors to get a real result
|
||||
code_lines.extend(
|
||||
@@ -653,23 +795,31 @@ def convert_graph_to_python_code(
|
||||
)
|
||||
|
||||
# Generate argument creation code using template
|
||||
arg_code_lines = fuzz_template.args_codegen(arg_operations)
|
||||
code_lines.extend(arg_code_lines)
|
||||
if template == "dtensor_placements" and hasattr(fuzz_template, "args_codegen"):
|
||||
# For dtensor_placements, pass constants to args_codegen which handles both
|
||||
arg_code_lines = fuzz_template.args_codegen(arg_operations, constant_operations)
|
||||
code_lines.extend(arg_code_lines)
|
||||
else:
|
||||
arg_code_lines = fuzz_template.args_codegen(arg_operations)
|
||||
code_lines.extend(arg_code_lines)
|
||||
|
||||
# Generate the final execution with both normal and compiled versions
|
||||
param_values = []
|
||||
if arg_operations:
|
||||
arg_names = [f"arg_{i}" for i in range(len(arg_operations))]
|
||||
if len(arg_names) == 1:
|
||||
args_tuple = (
|
||||
f"({arg_names[0]},)" # Single element tuple needs trailing comma
|
||||
)
|
||||
else:
|
||||
args_tuple = f"({', '.join(arg_names)})"
|
||||
param_values.extend([f"arg_{i}" for i in range(len(arg_operations))])
|
||||
if template == "dtensor_placements" and constant_operations:
|
||||
param_values.extend([var_name for _, var_name, _ in constant_operations])
|
||||
param_values.append("sentinel")
|
||||
|
||||
if len(param_values) == 1:
|
||||
args_tuple = (
|
||||
f"({param_values[0]},)" # Single element tuple needs trailing comma
|
||||
)
|
||||
else:
|
||||
args_tuple = "()"
|
||||
args_tuple = f"({', '.join(param_values)})"
|
||||
|
||||
# Generate execution code using template check
|
||||
check_lines = fuzz_template.check.codegen(f"{args_tuple} + (sentinel,)")
|
||||
check_lines = fuzz_template.check.codegen(args_tuple)
|
||||
code_lines.extend([""] + check_lines)
|
||||
|
||||
# Add template epilogue
|
||||
|
||||
@@ -262,7 +262,7 @@ if __name__ == "__main__":
|
||||
)
|
||||
parser.add_argument(
|
||||
"--template",
|
||||
choices=["default", "dtensor", "unbacked"],
|
||||
choices=["default", "dtensor", "dtensor_placements", "unbacked"],
|
||||
default="default",
|
||||
help="Template to use for code generation (default: default)",
|
||||
)
|
||||
|
||||
@@ -116,12 +116,17 @@ class ConstantOperator(Operator):
|
||||
f"torch.full({size_str}, {fill_value}, dtype={dtype_str})"
|
||||
)
|
||||
|
||||
# For DTensor template, convert to DTensor
|
||||
if self.template == "dtensor":
|
||||
return (
|
||||
f"{output_name}_local = {tensor_creation}.to('cuda')\n"
|
||||
f" {output_name} = DTensor.from_local({output_name}_local, mesh, placements)"
|
||||
)
|
||||
# For DTensor templates, constants are created outside the function
|
||||
if self.template in ["dtensor", "dtensor_placements"]:
|
||||
# For dtensor_placements, constants are handled in args_codegen
|
||||
# For dtensor, use the global placements variable
|
||||
if self.template == "dtensor_placements":
|
||||
return f"# {output_name} is created globally"
|
||||
else:
|
||||
return (
|
||||
f"{output_name}_local = {tensor_creation}.to('cuda')\n"
|
||||
f"{output_name} = DTensor.from_local({output_name}_local, mesh, placements)"
|
||||
)
|
||||
else:
|
||||
return f"{output_name} = {tensor_creation}"
|
||||
|
||||
|
||||
@@ -43,6 +43,10 @@ def _get_template_filtered_operators(
|
||||
from torchfuzz.codegen import DTensorFuzzTemplate
|
||||
|
||||
fuzz_template = DTensorFuzzTemplate()
|
||||
elif template == "dtensor_placements":
|
||||
from torchfuzz.codegen import DTensorFuzzPlacementsTemplate
|
||||
|
||||
fuzz_template = DTensorFuzzPlacementsTemplate()
|
||||
elif template == "unbacked":
|
||||
from torchfuzz.codegen import UnbackedFuzzTemplate
|
||||
|
||||
@@ -240,6 +244,10 @@ def fuzz_spec(template: str = "default") -> Spec:
|
||||
from torchfuzz.codegen import DTensorFuzzTemplate
|
||||
|
||||
fuzz_template = DTensorFuzzTemplate()
|
||||
elif template == "dtensor_placements":
|
||||
from torchfuzz.codegen import DTensorFuzzPlacementsTemplate
|
||||
|
||||
fuzz_template = DTensorFuzzPlacementsTemplate()
|
||||
elif template == "unbacked":
|
||||
from torchfuzz.codegen import UnbackedFuzzTemplate
|
||||
|
||||
|
||||
@@ -52,6 +52,12 @@ def fuzz_torch_tensor_type(template: str = "default") -> torch.dtype:
|
||||
|
||||
fuzz_template = DTensorFuzzTemplate()
|
||||
tensor_dtypes = fuzz_template.supported_dtypes()
|
||||
elif template == "dtensor_placements":
|
||||
# Import here to avoid circular imports
|
||||
from torchfuzz.codegen import DTensorFuzzPlacementsTemplate
|
||||
|
||||
fuzz_template = DTensorFuzzPlacementsTemplate()
|
||||
tensor_dtypes = fuzz_template.supported_dtypes()
|
||||
elif template == "unbacked":
|
||||
# Import here to avoid circular imports
|
||||
from torchfuzz.codegen import UnbackedFuzzTemplate
|
||||
|
||||
Reference in New Issue
Block a user