Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove transformer block, implement as sequence size 1 #54

Merged
merged 15 commits into from
Sep 1, 2022

Conversation

GreenFatGuy
Copy link
Collaborator

Remove RemoteTransformerBlock as independent class and implement as RemoteSequential size 1

@GreenFatGuy
Copy link
Collaborator Author

GreenFatGuy commented Aug 29, 2022

TODO:

  • README.md

@GreenFatGuy GreenFatGuy marked this pull request as ready for review August 31, 2022 17:06
src/client/remote_sequential.py Outdated Show resolved Hide resolved
src/client/remote_sequential.py Outdated Show resolved Hide resolved
tests/test_block_exact_match.py Outdated Show resolved Hide resolved
src/dht_utils.py Outdated
)


async def _get_sequence_blocks(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
async def _get_sequence_blocks(
async def _get_remote_sequence(

In the rest of file, private coroutines have the same name as public non-async functions. Let's stick to that in the new functions as well.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

applied as a separate commit

src/dht_utils.py Outdated Show resolved Hide resolved
src/dht_utils.py Outdated
return RemoteExpertWorker.run_coroutine(_unpack(infos, dht), return_future)
p2p = RemoteExpertWorker.run_coroutine(dht.replicate_p2p())
modules = _create_remote_modules_from_infos(infos, p2p)
async def _get_distinct_blocks(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
async def _get_distinct_blocks(
async def _get_remote_module(

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

applied as a separate commit

src/dht_utils.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@borzunov borzunov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving this given that all my edits will be applied.

justheuristic and others added 6 commits September 1, 2022 03:49
Co-authored-by: Alexander Borzunov <hxrussia@gmail.com>
Co-authored-by: Alexander Borzunov <hxrussia@gmail.com>
Co-authored-by: Alexander Borzunov <hxrussia@gmail.com>
@justheuristic
Copy link
Collaborator

Approving this given that all my edits will be applied.

[Applied all edits.] @GreenFatGuy i may have overstepped by doing so: if you wanna dispute something i can prepare a separate this a PR to rollback the changes that you would rather avoid..

@justheuristic justheuristic merged commit 0be2177 into main Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants