ml-explore / ml-explore/mlx

Kernels for scipy.special statistical functions

Open
#3,330 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement low priority
Dominant language
C++
Stars
28.5k
Forks
2.3k
Avg merge
3d 8h
Merged PRs (30d)
62

Description

Is there appetite for PRs adding metal kernels of scipy.special functions used in probabilistic programming, such as:

Context: I'm a dev of pymc/pytensor, we're interested in expanding MLX support as a compute backend for bayesian models. These functions are important for computing the logp of various distributions.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use the linked TensorFlow Probability implementations for erfcinv, bessel_ive, bessel_kve, betaincinv, igammainv, and gammainccinv, plus XLA's math.cc references for psi and polygamma. First confirm the function scope and expected MLX kernel interfaces with maintainers; done means the agreed functions are implemented and their results are validated against scipy.special.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
backend, machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.