Skip to main content
1 vote
3 answers
54 views

I'm trying to subclass the AbstractWrappedSolver dataclass from the jax library diffrax. The class has this definition: class AbstractWrappedSolver(AbstractSolver[_SolverState]): """...
Ben's user avatar
  • 603
2 votes
2 answers
39 views

I have a function fun that takes as argument a jax pytree and returns a jax pytree with the same structure. Sometimes, I don't want to calculate the function for a specific leaf of the pytree. In that ...
Ben's user avatar
  • 603
Best practices
1 vote
2 replies
41 views

Suppose that I have a jax pytree with n leaves and a set of distinct functions to apply to each leaf of the pytree. I can do the following: from functools import partial import jax # Function to ...
Ben's user avatar
  • 603
1 vote
1 answer
63 views

I have an expensive function expensive_func, which I am trying to run for multiple input parameters stored in the array inputs of size (N, m) where N is the total number of cases. I want to perform ...
evening silver fox's user avatar
0 votes
1 answer
37 views

I am attempting to run a JAX script in a distributed manner across multiple hosts using Slurm. The initialization code is as follows: jax.distributed.initialize( coordinator_address=f"{os....
link89's user avatar
  • 2,017
1 vote
0 answers
29 views

Problem I'm implementing a hierarchical pharmacokinetic (PK) model in PyMC using Diffrax for ODE solving via the icomo.jax2pytensor wrapper. The model compiles successfully and initializes, but MCMC ...
jaj's user avatar
  • 11
Advice
0 votes
1 replies
68 views

I'm training multiple neural networks in parallel using Ray, where networks must synchronize at specific points during training (not just at completion) to share metadata and update hyperparameters ...
desert_ranger's user avatar
3 votes
0 answers
110 views

I have a vectorized (ensemble) Q-network implemented using Flax Linen that works as expected. Each critic in the ensemble has separate parameters, and the output is stacked along the first dimension (...
Lucas Alegre's user avatar
1 vote
1 answer
129 views

In jax, you can donate a function argument to save the execute memory and time, if this argument is not used any more. If you know that one of the inputs is not needed after the computation, and if ...
zhixin's user avatar
  • 194
1 vote
0 answers
136 views

I would like to implement continuous wavelet transform (CWT) using JAX. According to ChatGPT, it is in practice computed by performing a discrete convolution with a sampled wavelet function at ...
W. Zhu's user avatar
  • 845
1 vote
1 answer
56 views

I defined a dataset class with __len__ and __getitem__ which returns a tuple of values. I can use `grain.transforms.Batch` to compose batches, but how do I specify how each item is combined into a ...
Richie Bendall's user avatar
1 vote
1 answer
176 views

I’m implementing time series models using JAX in Python. These models are computationally expensive and need to be retrained over time using an expanding window approach. To improve performance, I ...
Ali Moin's user avatar
0 votes
1 answer
149 views

For GPU optimized simulations I have a function where the head looks like this: import jax from functools import partial @partial(partial, jax.jit, static_argnums=(2,4)) def init_particles_grid(...
alo bre's user avatar
  • 31
3 votes
1 answer
1k views

I am trying to install JAX with GPU support on a powerful, dedicated Linux server, but I am stuck in what feels like a Catch-22 where every official installation method fails in a different way, ...
PowerPoint Trenton's user avatar
4 votes
1 answer
150 views

I am running into a FAILED_PRECONDITION: DNN library initialization failed error when trying to parallelize a JAX function using either Python's multiprocessing library or joblib. The strange part is ...
PowerPoint Trenton's user avatar

15 30 50 per page
1
2 3 4 5
52