Comments (2)
I just tried generating the stubs, it works fine for me..
I am not sure why it's failing to generate the stubs for you. Maybe the latest nanobind + MLX is broken there.
You could try installing nanobind:
pip install git+https://github.com/wjakob/nanobind.git@2f04eac452a6d9142dedb957701bdb20125561e4
And then rebuild MLX and generate the stubs
from mlx.
Thank you for your fast response.
I retried yesterday with Python 3.10, with the nanobind hash you provided, a new environment and a clean repo. It still gave me the same result.
I gave it a try with Python 3.8 just out of curiosity and it surprisingly worked (after installing manually pip install typing_extensions
for some reason). I tried again with Python 3.11 to make sure, and it also worked.
Not too sure if it's the combination of the Python version with nanobind or whether it's a setup problem on my side, but I have it working now. So, I'll close the issue.
from mlx.
Related Issues (20)
- [BUG] matmul yields different results when using concat HOT 1
- [BUG] give better diagnostic message when calling compiled code with an eval in it -- currently "Attempting to eval an array without a primitive" HOT 8
- [BUG] Bad result for GPU matmul for specific shape HOT 1
- [Feature] Leak memory on exit HOT 6
- [Feature] Rotary Positional Embeddings for Nomic Embed HOT 2
- Enhancement - Use M series iPads as extra GPU power HOT 1
- [Feature] Expose something like custom VJP in Python HOT 3
- [BUG] mx.radians & mx.degrees - unexpected behavior when the input is not an array
- [Feature] Build flag to make safetensor and GGUF dependencies optional
- [Feature] something like `mlx.scipy.stats` HOT 2
- [BUG] Passing `axis=None` into `argpartition` causes `TypeError` HOT 1
- [BUG] AttributeError in mlx.core.conj and mlx.core.conjugate functions HOT 3
- Optimization Plans for Conv2D CPU Execution HOT 3
- [BUG] mlx gets stuck with high-dimensional array on Linux HOT 1
- Implement trace analogical to numpy.trace HOT 1
- [BUG] Wrong slice of a 4D array assigned to with GPU HOT 1
- problem of using mlx package HOT 2
- Question about supporting slices of the type a[:, [0]] HOT 2
- Difference in training convergence between PyTorch & MLX HOT 2
- [BUG] mlx.core.topk throws segmentation fault for large dimension HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlx.