Files
torchmlx/README.md
T
2026-09-19 22:52:14 +05:30

489 B

TorchMLX

TorchMLX is a PyTorch-shaped compatibility layer that uses MLX on Apple silicon and PyTorch elsewhere.

It is experimental and targets transformer inference and training without per-operation backend fallback.

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.