Skip to content

Correctness checking vs existing PyTorch implementation? #4

Description

@mdda

Seems to me that it would make sense to have :

  • some kind of fuzzer, where inputs of the right shapes are created randomly, and applied to both implementations; and/or
  • an automatic utility that can put function-wise or line-wise logging on existing implementations, so that internal states could be measured for a given layer in-situ, when 'real inputs' are run through the full model.

Extension : Armed with these verification tools, we could get an LLM (with verification in the loop) to do the translation for us (given a small library of working PyTorch/JAX translation pairs, which would easily fit in Gemini context).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions