Skip to content

[prototype] feat(huntsman): Support input sharing across input tasks. - #490

Draft
LinZhihao-723 wants to merge 2 commits into
y-scope:mainfrom
LinZhihao-723:inputs-sharing
Draft

LinZhihao-723 wants to merge 2 commits into
y-scope:mainfrom
LinZhihao-723:inputs-sharing

Conversation

@LinZhihao-723

Copy link
Copy Markdown
Member

Description

Warning

Please do no merge this PR!

This is a prototype that implements #489.

Checklist

  • The PR satisfies the contribution guidelines.
  • This is a breaking change and that has been indicated in the PR title, OR this isn't a
    breaking change.
  • Necessary docs have been updated, OR no docs need to be updated.

Validation performed

…ared input payloads.

* Add `TaskGraphInput` and `TaskGraphInputBuilder` in a new `task_graph_input` submodule of `spider_core::types::io`, where each positional input is either a value payload or a reference to a shared input payload serialized once.
* Add zstd-compressed serialization and validated deserialization for `TaskGraphInput`.
* Add `into_positional_inputs` to resolve positional inputs while creating each shared input payload only once.
* Add `WireFrameBuilder::with_prefix`, `WireFrameBuilder::append_payload_parts`, and `WireFrameBuilder::unframe_payload_slices` to `spider-utils` wire framing.
…TaskGraphInput` with shared input payloads:

* Change `SpiderClient::submit_job` to accept a `TaskGraphInput` instead of a `Vec<TaskInput>`.
* Make `ValidatedJobSubmission` hold the deserialized `TaskGraphInput` and validate the number of positional inputs against the number of task graph inputs.
* Materialize each shared input payload into a single cache dataflow slot shared by every positional input referencing it.
* Add an end-to-end neural-network test where all first-layer neurons share the same inputs.
@coderabbitai

coderabbitai Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant