Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add experimental metrics package following the array API standard (#499)
* update dependencies * Add lightning dependency for testing distributed metrics * Update numpy version and add torchmetrics and cupy dependencies * Add optional module import utility and tests * Add utilities for experimental metrics module * Add distributed backends package * Add remove_ignore_index utility function to ops.py * Add base class for metrics * Update dependencies and fix tests involving cupy arrays * Ignore import errors for cupy and torch modules in test_ops.py * Fix import statement in test_metric.py * Add torchmetrics as dependency to tests and fix tests * Fix code ops and update test * Add confusion matrix * Fix import statements * Refactor flatten function to use copy parameter. * Disable mypy 'no-any-return' error code in mpi4py backend module * Add MPI and cupy support for integration tests * Fix MPI installation in integration tests workflow * Check openmpi installation * [WIP] integration test workflow fix * [WIP] integration test workflow fix * [WIP] integration test workflow fix * Remove unnecessary dependency installation and update poetry add command. * Add cupy to test group in poetry * use pip instead of poetry to install cupy * Add openmpi installation check and export paths * update integration tests workflow config * use conftest for `metrics` tests * Add function to get open port for PyTorch DDP setup * Add tests for torch distributed backend * Add __init__.py file for distributed backend tests * Fix flatten_seq function to handle single character strings. * Add mpi4py dependency for integration tests * Add MPICC environment variable to mpi4py installation. * Restructure package for distributed backends * cleanup + improve tests * Mark integration test for sync on compute list state * mark as integration test
- Loading branch information