Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.
This repository was archived by the owner on Jul 6, 2026. It is now read-only.

Significant memory increase with migration events compared to momi2 #5

Description

@chichizhao

Hi there!

Recently, I've been migrating my demographic inference workflow from momi2 to momi3 (JAX-based) to take advantage of its improved computational capabilities. However, I've noticed a significant increase in memory requirements — several times higher than momi2 — especially when modeling migration events between demes.

My demographic model involves 5 demes (NW, BA, EB, EA, MA) with migration events between them, analyzed across ~216M genetic sites. Under momi2, this model runs successfully with manageable memory usage. Under momi3, the memory footprint grows substantially, making it difficult to run on standard hardware.

I'm raising this issue to ask:

Is the increased memory usage with migration events (particularly continuous migration) expected behavior in momi3 compared to momi2?
Are there recommended strategies or configurations for handling multi-deme models with migration events while keeping memory manageable?
Is there ongoing work on sparse tensor support in JAX that might help optimize memory for continuous migration scenarios?
Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions