Skip to content

refactor(ops): Split matmul.py into modular files #139

Closed

Description

@m96-chan

Problem

src/pygpukit/ops/matmul.py is 1981 lines with mixed concerns.

Current State

src/pygpukit/ops/
└── matmul.py  (1981 lines - everything)

Proposed Structure

src/pygpukit/ops/matmul/
├── __init__.py          (exports)
├── generic.py           (matmul, batched_matmul, transpose)
├── fp8.py               (FP8 GEMM variants)
├── nvf4.py              (NVF4 GEMM)
├── gemv.py              (GEMV operations)
├── grouped.py           (grouped GEMM for MoE)
├── quantize.py          (quantization helpers)
└── availability.py      (all *_available functions)

Benefits

Related

Activity

  1. m96-chan commented on Dec 30, 2025

    @m96-chan
    OwnerAuthor

    Completed in PR #168

  2. added a commit that references this issue on Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions