2026-09-19 23:17:48 +05:30
2026-09-19 23:10:37 +05:30
2026-09-19 23:10:37 +05:30
2026-09-19 22:52:14 +05:30
2026-09-19 22:52:14 +05:30
2026-09-19 22:52:14 +05:30
2026-09-19 22:52:14 +05:30
2026-09-19 23:17:48 +05:30
2026-09-19 22:52:14 +05:30

torchmlx

torchmlx is a pytorch-shaped compatibility layer that uses mlx on apple silicon and pytorch elsewhere.

NOTE: it is experimental and built first for educational use. If you find a bug, please create an issue on the repo.

import torchmlx as torch
from torchmlx import nn, optim

model = nn.Linear(4, 2)
optimizer = optim.AdamW(model.parameters(), lr=3e-4)

see the tinystories example and compatibility details.

S
Description
No description provided
Readme MIT
118 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 100%