petals/tests
justheuristic a2066a4096
Optimize RemoteSequenceManager (#106)
- [x] made RemoteSequenceManager into a background thread that pre-fetches information instead of running just in time
- [x] moved routing-related stuff to petals.client.routing
- [x] extract remote peer routing information to RemoteSequenceInfo
- [x] made sure that the code survives continued use (e.g. one hour)
- [x] updated every spot where update_ is called manually
- [x] modified get_sequence to check that the thread is alive, warn if not
- [x] removed max_retries, switched rpc_info to exponential backoff
- [x] fixed a bg that causes RemoteSeq* to lose user-defined hyperparameters (e.g. timeout) upon subsequencing (sequential[3:5])
- [x] moved client-side points strategy to client.routing
- [x] ensured that RemoteSequenceManager thread created in get_remote_module properly shuts down when the module is destroyed
- [x] resolved minor affected todos
- [x] modified tests to no longer use PYTHONPATH
- [x] worked around protocol error in rpc_info


Co-authored-by: Aleksandr Borzunov <borzunov.alexander@gmail.com>
Co-authored-by: Artem Chumachenko <artek.chumak@gmail.com>
2022-12-01 10:25:55 +03:00
..
scripts Reduce vocabulary size in test model, fix bug in routing when overlapped (#45) 2022-08-17 18:50:52 +03:00
conftest.py Implement RemoteSequential slicing and extra repr, add tests (#30) 2022-07-19 04:28:04 +03:00
test_block_exact_match.py Make Petals a pip-installable package (attempt 2) (#102) 2022-11-30 10:41:13 +04:00
test_chained_calls.py Make Petals a pip-installable package (attempt 2) (#102) 2022-11-30 10:41:13 +04:00
test_full_model.py Make Petals a pip-installable package (attempt 2) (#102) 2022-11-30 10:41:13 +04:00
test_priority_pool.py Make Petals a pip-installable package (attempt 2) (#102) 2022-11-30 10:41:13 +04:00
test_remote_sequential.py Optimize RemoteSequenceManager (#106) 2022-12-01 10:25:55 +03:00
test_sequence_manager.py Optimize RemoteSequenceManager (#106) 2022-12-01 10:25:55 +03:00
test_utils.py Implement RemoteSequential slicing and extra repr, add tests (#30) 2022-07-19 04:28:04 +03:00
test.id Add automated tests (#23) 2022-07-16 01:59:23 +03:00