Skip to content

Commit 4bbb809

Browse files
authored
Fix nvfp4 scaling issue (#456)
1 parent 0acf674 commit 4bbb809

6 files changed

Lines changed: 562 additions & 299 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ dirs = "5.0.1"
4545
minijinja = { version = "2.10.2", features = ["builtins", "json"] }
4646
minijinja-contrib = { version = "2.10.2", features = ["pycompat"] }
4747
thiserror = "1.0.58"
48-
attention-rs = { git = "https://github.com/guoqingbao/attention.rs.git", version="0.6.6", rev = "2e0db42" }
48+
attention-rs = { git = "https://github.com/guoqingbao/attention.rs.git", version="0.6.7", rev = "70ed0d0" }
4949
metal = { version = "0.27.0", features = ["mps"], optional = true }
5050
lazy_static = {version = "1.4.0"}
5151
interprocess = "2.2.2"

src/backend/graph.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,8 @@ impl<M: CudaGraphModule> GraphCapturer<M> {
620620
mamba_slot_mapping: Some(mamba_slot_mapping.narrow(0, 0, bs)?),
621621
slot_mapping: slot_mapping.narrow(0, 0, bs)?,
622622
block_tables: Some(block_tables.narrow(0, 0, bs)?),
623+
block_tables_host: None,
624+
context_lens_host: None,
623625
context_lens: Some(context_lens.narrow(0, 0, bs)?),
624626
cu_seqlens_q: None,
625627
cu_seqlens_k: None,
@@ -793,6 +795,8 @@ impl<M: CudaGraphModule> GraphCapturer<M> {
793795
mamba_slot_mapping: Some(mamba_slot_mapping.clone()),
794796
slot_mapping: slot_mapping.clone(),
795797
block_tables: Some(block_tables.clone()),
798+
block_tables_host: None,
799+
context_lens_host: None,
796800
context_lens: Some(context_lens.clone()),
797801
cu_seqlens_q: Some(cu_seqlens_q.clone()),
798802
cu_seqlens_k: Some(cu_seqlens_k.clone()),

0 commit comments

Comments
 (0)