Skip to content

Port Numba-accelerated code over to Google JAX #298

Description

@jstac

This is a meta issue for conversion of code to JAX. The target is lectures that are currently accelerated by Numba and could alternatively be accelerated by JAX.

One example is https://python.quantecon.org/wealth_dynamics.html

This could be shifted to JAX (as a model for this, see the solution to the last exercise in https://python-programming.quantecon.org/jax_intro.html)

@thomassargent30 suggests that, at least for now, we keep the Numba code and add the JAX code as a separate implementation, so that we can compare the speed. I suggest that we put the JAX code first in each case.

Also, for each lecture, we should only add the JAX code if it's actually faster.

As a workflow, I suggest that we

  1. create a separate issue for each lecture to be converted
  2. close that issue via PR
  3. close this meta issue

@Smit-create and @HumphreyYang , I would like you to lead this project, if you are willing. I will supervise. We can discuss this via zoom before you get started, or during, if it's helpful. Just request by email and we'll set it up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions