Stub transport: measure how much of each token the link costs

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
72/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
zig

Research direction

Read zig/src/families/dsv41/tcp_proxy.zig for the proxy exchange and done flags, then inspect zig/src/families/dsv41/tcp_coll.zig around line 525 to see how TF_COLL_KIND selects a transport. Use tools/dsv41-hip/COLLECTIVES-DESIGN.md to understand the current exchange, then run serve-rank0.sh bench for code and prose at 400 tokens, with drafts off and on, comparing stub and TCP proxy across three runs each. Done means the patch is off by default and a short report gives time per token for all four cases.

Written by the indexing model from the issue text.

Description

enhancement good first issue help wanted

A small, self-contained piece of work, and a good first contribution.

What: a stub collective that marks every exchange done without sending anything (TF_COLL_KIND=stub, or one flag in tcp_proxy.zig). The output is wrong, but the timing shows what a token costs with the link taken out.

Then measure: serve-rank0.sh bench (code and prose, 400 tokens, 3 runs each) with drafts off and drafts on, stub against the TCP proxy. Four numbers per case.

Done when: a short report with the time per token for each of the four cases, plus the patch, off by default.

Why: it tells us how much a faster link (RDMA, or anything else) could ever buy, before anyone writes verbs code. It's step SFR-0 of outsider's RDMA design (#2).

Where to look:

  • zig/src/families/dsv41/tcp_proxy.zig: the proxy thread, its exchange and the done flags
  • zig/src/families/dsv41/tcp_coll.zig (around line 525): where TF_COLL_KIND picks the transport
  • tools/dsv41-hip/COLLECTIVES-DESIGN.md: how the two boxes exchange data today

Questions are welcome here or in #contributors on the Discord.

Dominant language
Zig
Stars
76
Forks
9
Avg merge
21h 59m
Merged PRs (30d)
34

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Shoestring-dev/StrixFold

All issues in Shoestring-dev/StrixFold

Similar issues

More Networking issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.