Skip to content

Additional tests for pytorch - #65

Open
MatthewIreland wants to merge 8 commits into
masterfrom
mti/pytorch
Open

Additional tests for pytorch#65
MatthewIreland wants to merge 8 commits into
masterfrom
mti/pytorch

Conversation

@MatthewIreland

Copy link
Copy Markdown
Contributor
  • Adds Mel's extended tests so we can run these via CI
  • Shovels in more of Pytorch's examples to the example running script
  • Adds a script to exercise pytorch's use of different data types

solomon-spectral and others added 8 commits July 28, 2026 12:19
Its `requirements.txt` only lists torch and vision, so it should be noop
except for pulling in other unmet deps. But rather than risk it pulling
in thirdparty builds of these things if our build or install of
torch/vision ever breaks for some reason, and then us not noticing,
let's just install what it wants without potentially shooting ourselves
in the foot.
07-run-datatypetests.sh tests PyTorch datatypes by training two small MNIST models (`mlp` and `cnn) at three different precisions. We check the training curve follows "roughly the right shape" (defined via `EXPECTATIONS`). The script exits with 0 if and only if it runs to completion (with all precisions) and our criterion for the training curve following the right shape is satisfied.
This calms some warnings until we have CUBLASLt
@MatthewIreland
MatthewIreland requested a review from SollyCB July 28, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants