-
Notifications
You must be signed in to change notification settings - Fork 38
FLI-based Worker Manager #622
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
Conversation
AlyssaCote
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks so, so good! Just a couple tiny comments. No hold ups from me, though!
| import dragon | ||
| from dragon import fli | ||
| except ImportError as exc: | ||
| if not "pytest" in sys.modules: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure you want to look for pytest here? might be a copy/paste mistake
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was an attempt to avoid failing tests when dragon was not available. This will be fixed once #621 will go in
| response = MessageHandler.deserialize_response(resp) | ||
| self.measure_time("deserialize_response") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick question. Shouldn't we be deserializing the request here? We serialize the request but I don't see where it's deserialized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless that's actually measured duringapp_receive, and if so never mind!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think on the app side we only want to deserialize the response - is there something I'm missing?
| timings.append(time.perf_counter() - interm) | ||
| interm = time.perf_counter() | ||
|
|
||
| print(" ".join(str(time) for time in timings)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider adding a custom log level e.g. "perf" so you can configure your logging output w/familiar logging interface / avoid prints
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's an interesting suggestion, thanks
This PR adds a simple
TorchWorkerwhich performs inference. The worker has only been tested for direct inference (and the filetest_torch_worker.pyreflects that). The output transform is still not implemented, but that's something that it is not needed for the moment being.