Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,22 @@ store_row(uint8_t* data_row, uint8_t* scale_row, uint32_t tx, const device::Alig

} // namespace v41

#else // USE_ROCM

namespace v41 {

template <KVLayout>
inline constexpr bool dependent_false_v = false;

/// A discarded `if constexpr` branch is still parsed, so the V4 callers need the name to
/// resolve on ROCm; instantiating it is the error.
template <KVLayout kLayout, typename... Ts>
SGL_DEVICE void store_row(uint8_t*, uint8_t*, uint32_t, Ts&&...) {
static_assert(dependent_false_v<kLayout>, "the V4.1 KV layouts are CUDA only");
}

} // namespace v41

#endif // USE_ROCM

} // namespace deepseek_v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,7 @@ def make_forward_metadata_from_raw_verify(
self._attach_unified_kv_prefill_meta(
core_attn_metadata,
req_pool_indices,
req_pool_indices_repeated,
seq_lens,
extend_seq_lens,
num_draft_tokens * bs,
Expand Down
Loading