torchmlx
torchmlx is a pytorch-shaped compatibility layer that uses mlx on apple silicon and pytorch elsewhere. it is experimental and built first for educational use.
pip install pytorchmlx
import torchmlx as torch
from torchmlx import nn, optim
see the tinystories example and compatibility details.
| backend | 5,000 steps + generation | effective steps/s |
|---|---|---|
| torchmlx mlx, m3 pro | 170.27 s | 29.4 |
| pytorch mps, m3 pro | 184.42 s | 27.1 |
Metadata
Release files for pytorchmlx 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pytorchmlx-0.0.3.tar.gz | 61.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytorchmlx-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 82.5 kB
Release files / pytorchmlx-0.0.3.tar.gz
| Download URL | pytorchmlx-0.0.3.tar.gz |
|---|---|
| Size | 61.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1c6221e38e012f1cab856363371b6b39f1f3ccc2c002984ac8729e94191dcf7
|
|
BLAKE2b-256 checksum How to use checksums |
aaa77890b898b424dc9d19b04b7f13713995547725d068fc2d029bff682ec6ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / pytorchmlx-0.0.3-py3-none-any.whl
| Download URL | pytorchmlx-0.0.3-py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b7511c33419a341e65b09037233be1906b9cca6a6240ae9047a09e5c3f85134
|
|
BLAKE2b-256 checksum How to use checksums |
cb57e54048d93c33999d248c8f91d444f7aa890b1d34b36ad32681ff415a6b12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Security for pytorchmlx 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.