Repository navigation
ENH: Adding MLX - #1008
ENH: Adding MLX#1008prady0t wants to merge 8 commits into
Conversation
Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
| class _MLXNamespaceInfo: | ||
| def __init__(self, info: object) -> None: | ||
| self._info = info | ||
|
|
||
| def __getattr__(self, name: str) -> object: | ||
| return getattr(self._info, name) | ||
|
|
||
| def default_dtypes(self, *, device: object = None) -> object: | ||
| _ = device | ||
| return self._info.default_dtypes() # type: ignore[attr-defined] |
There was a problem hiding this comment.
Most of the changes in these files should be in array-api-compat
Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
@lucascolley @ev-br Would love some reviews. The gigantic diff is mostly from the pixi lock file. |
|
For me, a description would be helpful. What is the goal and what is the plan towards it? |
|
Hi, sorry for the delay. Here's the info: We want MLX support for the extra library. To do that, we need the tests inside
To increase support, I asked AI to create a compatibility layer; that code exists in Some of the tests (Such as boolean indexing, complex128 dtype tests) are skipped as they are not supported by MLX. |
|
A gentle ping on this. |
|
Have to admit, I'm still unclear on what the end goal is. gh-1006 does not really help :-). To clarify the status:
Correct me if I'm missing something --- I would have thought that a natural next step is dogfood adding MLX support to scipy or scikit-learn and see what's sorely missing. Naively, I'd expect that pretty quickly we'd need something like All in all I'd suggest to start from a computational library (scipy, scikit-learn, something else of your choice) to triage actual failures/problems/missing features. |
|
I think the idea is that, since SciPy and sklearn depend on extra, it might be helpful to deal with extra properly first, instead of patching it up only as needed for downstream. I thinking working on both in parallel and stopping when there is a significant blocker to progress is properly most useful. |
Reference issue
Closes #1006
What does this implement/fix?
Additional information
AI Generation Disclosure
GitHub Copilot was used to generate changes in
_compat.pyfile