Progress Log - Pradyot

Hi,

As part of FOSS United’s grants program, I’ll be sharing biweekly updates here! Some of the topics I’ll be working on include:

  • Work on extending MLX work to array-api-extra, Scipy, etc.
  • Fix the missing/failing MLX array api tests. and increase adherence to the standards.
  • Work on supporting `torch.compile` in array-api-extra
  • `torch.mps` array api support
  • Array api work in finch-tensor library (If we could manage the above work)

Thank you so much @ansh @rahulporuri

5 Likes

cool to see someone else working on a similar SoC problem statement! i have a m4 available for testing, lmk how i can help

1 Like

Hi,

Here are my updates so far.

Note: I had limited availability the last few weeks, and this will continue for another 2 weeks (I’m in between onboarding, travel, festivals, etc.). There will be much more progress to share after that!

Thanks for reading.

2 Likes

Hi,

Updates on this topic:

  • Lately, we have been working on increasing the compatibility of MLX with the Array API library. See this tracker. Thanks to aaishwarymishra, we now have a tracker in MLX itself instead of in array-api. This increases the visibility of the work, and you can already see many new contributors jumping in.

  • Some of my MLX compatibility PRs are mentioned below; some of these were also the findings of tying MLX compatibility with scipy:

    • Add array_api_version - #4937: This is required by almost any other library to check if the provider library even supports the standards.
    • Add bits attribute to finfo and iinfo - #4945:This PR adds the bits attribute to finfo and iinfo
    • Return empty tuple when no arg in broadcast_shapes - #4971: According to the standard, if one or more arguments are missing, broadcast_shapes must return an empty tuple
    • add prepend, append to mx.diff - #4990: mx.diff now accepts keyword-only prepend and append
    • More to come soon…
  • Recently, I tried SciPy compatibility with MLX locally; I’ll open an issue/PR soon and will also post here for more updates.

Thanks for reading!