Skip to content

fix server_args kv cache dtype - #151

Merged
zhuofan1123 merged 1 commit into
taco-project:feat/layerwise_rebasefrom
zhjc1124:feat/layerwise_rebase
Apr 17, 2026
Merged

zhuofan1123 merged 1 commit into
taco-project:feat/layerwise_rebasefrom
zhjc1124:feat/layerwise_rebase

Conversation

@zhjc1124

Copy link
Copy Markdown
Contributor

1、fix server_args kv cache dtype
2、add pytest of indexer layerwise

@zhuofan1123
zhuofan1123 merged commit 1bf5eca into taco-project:feat/layerwise_rebase Apr 17, 2026
1 check passed
linhu-nv added a commit to zhjc1124/FlexKV that referenced this pull request Jun 24, 2026
Implements the layerwise transfer pipeline: a fused DISK2H/H2D worker that
streams KV blocks one layer at a time, allowing the inference engine to
overlap KV loading with attention computation. Adds sglang integration via
SCM_RIGHTS-passed eventfd handshake, Mooncake transfer engine adapter, and
multi-node TP topology support.

Squashed (49 commits):
  931fbd0 initialize layerwise worker
  faa75a4 add layerwise transfer op
  4a12063 clear op callback if layerwise
  de681ca layerwise worker naive impl
  bb4af21 check layerwise condition
  0d29bcd add default value
  3f5acd9 fix bug and benchmark
  103d711 add layerwise param
  90718a9 fix bugs
  fc72d58 disable layerwise in benchmark
  f357e3b pin memory of block ids
  b5297e7 make ssd optional
  d38eef3 initial layerwise cpp impl
  d3f16b5 add callback && fix some bugs
  fca75fd fix
  b658999 some fix
  4495207 add sglang support using eventfd
  b76ed75 print bandwidth for layerwise transfer
  2adf7e1 add nvtx for layerwise
  6bbcc31 update kernel
  d5fe2aa remove print
  0c0e5c8 fix cuda device set
  dac5072 fix
  300f1a2 fix mempool
  c38f0b9 refactor transfer config, set num of cta instead of sm
  d04e3c0 fix
  93f3ca1 fix unit test
  b5dda35 update
  30ccc2f merge h2d and disk2h to layerwiseop
  f72f6bf Bug Fix: illegal memory (taco-project#133)
  2b1b164 feat: add DSA cache and PP support
  f6b3130 fix page align bug
  f61086c feat: distributed KV cache improvements (RedisMeta refactor, node TTL/heartbeat, rebuild interval -> 100ms)
  807f5c5 fix cpu layout problems in tp + blockwise cpu layout
  f2ac566 split cpu stride for ssd and for gpu
  b8b3134 fix: comprehensive TP/PP/DP dimension fixes and observability improvements
  a2cb41c fix ssd read when blockwise + tp + layerwise
  328cf24 dont sync prefetch
  f0bbe86 fix: preload shared libraries via ctypes.CDLL in __init__.py
  cb48f62 add kv_cache_dtype to sglang
  81fccd1 add some log to info the malloc
  6509d1e support cp+layerwise
  e0a4c96 fix empty token mask
  6cdd977 fix: make eventfd accept loop resilient to per-connection failures
  d27ecf1 fix: add ACK handshake for layerwise eventfd transfer to prevent race condition
  8b2ad1c fix: correct variable name and config reference in MoonCakeTransferEngineWrapper
  6e35338 fix(mooncakeEngineWrapper): change unregist_buffer return type from None to int
  51344de fix(mooncakeEngineWrapper): add return type annotation to transfer_sync_write_with_notify method
  719a93c fix d2h issue for glm5+cp8
  1a49358 fix sglang config issue
  93ecd9c fix(layerwise): fuse indexer DISK2H/H2D into layerwise worker (taco-project#149)
  dda54b6 fix server_args kv cache dtype (taco-project#151)
  be32ede fix: support cross-node TP - add _node suffix to eventfd socket path via FLEXKV_NODE_ID env var and divide cp_size for multi-node TP when NSA CP is active
  3072d2f refactor: align multi-node TP topology with framework (nnodes/node_rank) and unify eventfd socket path
linhu-nv added a commit to zhjc1124/FlexKV that referenced this pull request Jun 24, 2026
Implements the layerwise transfer pipeline: a fused DISK2H/H2D worker that
streams KV blocks one layer at a time, allowing the inference engine to
overlap KV loading with attention computation. Adds sglang integration via
SCM_RIGHTS-passed eventfd handshake, Mooncake transfer engine adapter, and
multi-node TP topology support.

Squashed (53 commits):
  931fbd0 initialize layerwise worker
  faa75a4 add layerwise transfer op
  4a12063 clear op callback if layerwise
  de681ca layerwise worker naive impl
  bb4af21 check layerwise condition
  0d29bcd add default value
  3f5acd9 fix bug and benchmark
  103d711 add layerwise param
  90718a9 fix bugs
  fc72d58 disable layerwise in benchmark
  f357e3b pin memory of block ids
  b5297e7 make ssd optional
  d38eef3 initial layerwise cpp impl
  d3f16b5 add callback && fix some bugs
  fca75fd fix
  b658999 some fix
  4495207 add sglang support using eventfd
  b76ed75 print bandwidth for layerwise transfer
  2adf7e1 add nvtx for layerwise
  6bbcc31 update kernel
  d5fe2aa remove print
  0c0e5c8 fix cuda device set
  dac5072 fix
  300f1a2 fix mempool
  c38f0b9 refactor transfer config, set num of cta instead of sm
  d04e3c0 fix
  93f3ca1 fix unit test
  b5dda35 update
  30ccc2f merge h2d and disk2h to layerwiseop
  f72f6bf Bug Fix: illegal memory (taco-project#133)
  2b1b164 feat: add DSA cache and PP support
  f6b3130 fix page align bug
  f61086c feat: distributed KV cache improvements (RedisMeta refactor, node TTL/heartbeat, rebuild interval -> 100ms)
  807f5c5 fix cpu layout problems in tp + blockwise cpu layout
  f2ac566 split cpu stride for ssd and for gpu
  b8b3134 fix: comprehensive TP/PP/DP dimension fixes and observability improvements
  a2cb41c fix ssd read when blockwise + tp + layerwise
  328cf24 dont sync prefetch
  f0bbe86 fix: preload shared libraries via ctypes.CDLL in __init__.py
  cb48f62 add kv_cache_dtype to sglang
  81fccd1 add some log to info the malloc
  6509d1e support cp+layerwise
  e0a4c96 fix empty token mask
  6cdd977 fix: make eventfd accept loop resilient to per-connection failures
  d27ecf1 fix: add ACK handshake for layerwise eventfd transfer to prevent race condition
  8b2ad1c fix: correct variable name and config reference in MoonCakeTransferEngineWrapper
  6e35338 fix(mooncakeEngineWrapper): change unregist_buffer return type from None to int
  51344de fix(mooncakeEngineWrapper): add return type annotation to transfer_sync_write_with_notify method
  719a93c fix d2h issue for glm5+cp8
  1a49358 fix sglang config issue
  93ecd9c fix(layerwise): fuse indexer DISK2H/H2D into layerwise worker (taco-project#149)
  dda54b6 fix server_args kv cache dtype (taco-project#151)
  be32ede fix: support cross-node TP - add _node suffix to eventfd socket path via FLEXKV_NODE_ID env var and divide cp_size for multi-node TP when NSA CP is active
  3072d2f refactor: align multi-node TP topology with framework (nnodes/node_rank) and unify eventfd socket path
linhu-nv added a commit that referenced this pull request Jun 24, 2026
Implements the layerwise transfer pipeline: a fused DISK2H/H2D worker that
streams KV blocks one layer at a time, allowing the inference engine to
overlap KV loading with attention computation. Adds sglang integration via
SCM_RIGHTS-passed eventfd handshake, Mooncake transfer engine adapter, and
multi-node TP topology support.

Squashed (53 commits):
  931fbd0 initialize layerwise worker
  faa75a4 add layerwise transfer op
  4a12063 clear op callback if layerwise
  de681ca layerwise worker naive impl
  bb4af21 check layerwise condition
  0d29bcd add default value
  3f5acd9 fix bug and benchmark
  103d711 add layerwise param
  90718a9 fix bugs
  fc72d58 disable layerwise in benchmark
  f357e3b pin memory of block ids
  b5297e7 make ssd optional
  d38eef3 initial layerwise cpp impl
  d3f16b5 add callback && fix some bugs
  fca75fd fix
  b658999 some fix
  4495207 add sglang support using eventfd
  b76ed75 print bandwidth for layerwise transfer
  2adf7e1 add nvtx for layerwise
  6bbcc31 update kernel
  d5fe2aa remove print
  0c0e5c8 fix cuda device set
  dac5072 fix
  300f1a2 fix mempool
  c38f0b9 refactor transfer config, set num of cta instead of sm
  d04e3c0 fix
  93f3ca1 fix unit test
  b5dda35 update
  30ccc2f merge h2d and disk2h to layerwiseop
  f72f6bf Bug Fix: illegal memory (#133)
  2b1b164 feat: add DSA cache and PP support
  f6b3130 fix page align bug
  f61086c feat: distributed KV cache improvements (RedisMeta refactor, node TTL/heartbeat, rebuild interval -> 100ms)
  807f5c5 fix cpu layout problems in tp + blockwise cpu layout
  f2ac566 split cpu stride for ssd and for gpu
  b8b3134 fix: comprehensive TP/PP/DP dimension fixes and observability improvements
  a2cb41c fix ssd read when blockwise + tp + layerwise
  328cf24 dont sync prefetch
  f0bbe86 fix: preload shared libraries via ctypes.CDLL in __init__.py
  cb48f62 add kv_cache_dtype to sglang
  81fccd1 add some log to info the malloc
  6509d1e support cp+layerwise
  e0a4c96 fix empty token mask
  6cdd977 fix: make eventfd accept loop resilient to per-connection failures
  d27ecf1 fix: add ACK handshake for layerwise eventfd transfer to prevent race condition
  8b2ad1c fix: correct variable name and config reference in MoonCakeTransferEngineWrapper
  6e35338 fix(mooncakeEngineWrapper): change unregist_buffer return type from None to int
  51344de fix(mooncakeEngineWrapper): add return type annotation to transfer_sync_write_with_notify method
  719a93c fix d2h issue for glm5+cp8
  1a49358 fix sglang config issue
  93ecd9c fix(layerwise): fuse indexer DISK2H/H2D into layerwise worker (#149)
  dda54b6 fix server_args kv cache dtype (#151)
  be32ede fix: support cross-node TP - add _node suffix to eventfd socket path via FLEXKV_NODE_ID env var and divide cp_size for multi-node TP when NSA CP is active
  3072d2f refactor: align multi-node TP topology with framework (nnodes/node_rank) and unify eventfd socket path
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.

2 participants