Replies: 1 comment
-
There are some pitfalls with uv at the time of writing. The first thing is we can't use pip's editable install, i.e. So we are using The other thing is we are passing |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm tired of fighting python's package managers on different platforms, so I tried uv, it is currently not usable as the main frontend for mlx (explained below), but it can surely ease things a lot when bootstrapping on a new machine.
Here is the receipt I'm using, commands assumed running under mlx's root directory.
Setup env and install deps:
Optional env for faster compilation, assuming you have ninja-build and ccache installed:
If you are building CUDA backend:
First-time build which sets up editable install:
Incremental builds after:
Run python tests:
Run transformer example:
uv run --no-project python ~/codes/mlx-examples/transformer_lm/main.py --gpu
Beta Was this translation helpful? Give feedback.
All reactions