-
Notifications
You must be signed in to change notification settings - Fork 74
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
Additional updates to parallelism docs #453
Conversation
87bb48e
to
95c5a8c
Compare
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.
❌ Changes requested. Incremental review on 95c5a8c in 28 seconds
More details
- Looked at
120
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_Hg452Bk5TmtutZBO
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
docs/concepts/parallelism.rst
Outdated
return ["prompts"] + super().inputs # make sure to include the superclass inputs | ||
|
||
def states(self, state: State, context: ApplicationContext, inputs: Dict[str, Any]) -> Generator[Tuple[State, dict], None, None]: | ||
for prompt in inputs["prompts"] |
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.
Missing colon at the end of the for loop.
for prompt in inputs["prompts"] | |
for prompt in inputs["prompts"]: |
A preview of 6abea5c is uploaded and can be seen here: ✨ https://burr.dagworks.io/pull/453 ✨ Changes may take a few minutes to propagate. Since this is a preview of production, content with |
95c5a8c
to
be539f1
Compare
More updates to make API consistent: 1. Showing inputs for class-based action (repeat but good to hammer home) 2. Making API consistent
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.
❌ Changes requested. Incremental review on be539f1 in 50 seconds
More details
- Looked at
129
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. docs/concepts/parallelism.rst:167
- Draft comment:
Thestate
method should includecontext
andinputs
parameters for consistency.
def state(self, state: State, context: ApplicationContext, inputs: Dict[str, Any]) -> State:
- Reason this comment was not posted:
Marked as duplicate.
2. docs/concepts/parallelism.rst:375
- Draft comment:
Theaction
method should includestate
,context
, andinputs
parameters for consistency.
def action(self, state: State, context: ApplicationContext, inputs: Dict[str, Any]) -> Action | Callable | RunnableGraph:
- Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_zXaGU9PCJHfDxls2
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
be539f1
to
6abea5c
Compare
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.
👍 Looks good to me! Incremental review on 6abea5c in 31 seconds
More details
- Looked at
129
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. docs/concepts/parallelism.rst:81
- Draft comment:
Avoid usingpdb.set_trace()
in production code as it can halt execution unexpectedly. Consider using logging or other debugging techniques instead. - Reason this comment was not posted:
Comment was on unchanged code.
Workflow ID: wflow_94hIhZblzAggb8pe
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
More updates to make API consistent:
Important
Updates parallelism documentation for consistent API and input handling, with minor debugging code addition.
parallelism.rst
.inputs
property examples inparallelism.rst
for parallel actions.actions.rst
to reinforce class-based action inputs.pdb.set_trace()
inrun_and_update()
inparallelism.py
for debugging.This description was created by for 6abea5c. It will automatically update as commits are pushed.