Skip to content

Include a PyTorch implementation #1

Closed

Description

@neuromechanist

The current implementation is fast, but not as fast as the Fortran implementation, which has multithreaded operations. One approach is to move operations to PyTorch. The other one might be Ray. But, let's try to make it work with PyTorch first.

Activity

  1. neuromechanist commented on Jul 7, 2026

    @neuromechanist
    MemberAuthor

    Done. The PyTorch backend (AMICATorchNG, natural-gradient EM) is in and reaches Fortran parity (#24): single-model LL ~ -3.40 vs -3.4018, Hungarian component correlation ~0.997. It is the default backend via the AMICA wrapper. The remaining speed question from this issue (matching Fortran's multithreaded runtime) is now tracked separately as #59 (benchmark vs the Fortran binary).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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