microsoft / microsoft/onnxruntime

Investigate perf implication for storing tranposed weights

Open
#27,619 0 comments 0 reactions 1 assignee View on GitHub

@justinchuby is already working on this.

Since Mar 11, 2026.

Dominant language
C++
Stars
21.9k
Forks
4.2k
Avg merge
4d 11h
Merged PRs (30d)
184

Description

PyTorch stores linear weights transposed and according to chatgpt this is more efficient for the matmul computation. We cannot do this in onnx yet because the Gemm op does not support broadcasting. Create benchmark to test and show that we should update Gemm to support broadcasting and store the weights transposed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.