dht
Routes Hivemind DHT workflows for starting peers, storing and fetching records, and debugging multiaddress connectivity.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- dht
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes Hivemind DHT workflows for starting peers, storing and fetching records, and debugging multiaddress connectivity.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/api-reference.md4.5 KB
- 参考文档references/troubleshooting.md3.3 KB
- 参考文档references/workflows.md2.7 KB
03 SKILL.md 正文
Hivemind DHT
Use this route when the task is about hivemind.DHT, hivemind.dht.DHTNode, peer discovery, record storage, bootstrap peers, relay settings, or the hivemind-dht command.
Include
- Creating a first DHT node or joining an existing swarm.
- Storing and fetching DHT records, including
subkeyrecords and expiring values. - Custom
run_coroutine(...)logic that runs inside the DHT process. - Validators, signed records, peer identity, and bootstrap/connectivity debugging.
- Multiaddress choices for
host_maddrs,announce_maddrs,initial_peers,client_mode,use_relay,use_auto_relay, anduse_ipfs. - The
hivemind-dhtconsole command.
Exclude
- Collaborative averaging, optimizers, gradient/state sharing, and compression strategy selection; route those to
collaborative-training. - Hosted experts, remote expert clients, and MoE routing; route those to
moe. - Benchmarks and CI-only connectivity experiments.
Start here
- Read
references/api-reference.mdfor the verified signatures and key options. - Read
references/workflows.mdfor step-by-step DHT setup and store/get examples. - Read
references/troubleshooting.mdwhen bootstrap, relay, or identity errors appear. - Run
../../scripts/check_install.pyfrom the generated skill tree to confirm the installed package and CLI entry points.
What to remember
hivemind.DHT(start=True)starts a background DHT process.- The first peer normally exposes local-loopback multiaddrs; add
host_maddrsandannounce_maddrsfor externally reachable peers. store(..., expiration_time=...)andget(..., latest=...)are the common record operations.- Use
run_coroutine(...)for custom DHT-side logic, but do not call the external DHT interface from inside the DHT process itself. - For restrictive firewalls or NAT, prefer
client_mode=True, relay options, oruse_ipfs=Truedepending on the deployment.
Good follow-up questions
- "How do I start a DHT node and print the peer addresses?"
- "How do I connect two Hivemind peers?"
- "Why does DHT startup fail with my bootstrap peers?"
- "How do I store and read a record from the DHT?"
- "How do I make a peer reachable across the internet?"
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).