Skip to content

Extended Lengyel + core linear solver JAX issues #2270

Description

@theo-brown

Running with the X-Lengyel model and the linear solver for the core present some issues.

  1. Composing several JAX operations on the jitted run loop causes an XLA compilation crash. Agent suggested fix by adding "--xla_disable_hlo_passes=simplify-conditional", which seems to work. Repro colab.

  2. jit(grad(f)), or jit(value_and_grad(f)) where f involves a call to run_loop_jit, produce the wrong gradients (and in the case of value_and_grad, the wrong value as well). Repro colab. This one seems pretty flaky, as minor changes to the config mean that the grads and values are correct.

cc @sbodenstein

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