Skip to content
Open
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
2 changes: 1 addition & 1 deletion csrc/api/dense_decode.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ dense_attn_decode_interface(
const int num_heads_q = sizes[2];
const int head_size_k = sizes[3];
TORCH_CHECK(head_size_k == 576 || head_size_k == 512, "Only head_size_k == 576 or 512 is supported");
TORCH_CHECK(head_size_v == 512, "Only head_size_v == 576 is supported");
TORCH_CHECK(head_size_v == 512, "Only head_size_v == 512 is supported");

const int max_num_blocks_per_seq = block_table.size(1);
const int num_blocks = kcache.size(0);
Expand Down
8 changes: 0 additions & 8 deletions csrc/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@ do { \
} while (0)
#endif

#ifndef TRAP_ONLY_DEVICE_ASSERT
#define TRAP_ONLY_DEVICE_ASSERT(cond) \
do { \
if (not (cond)) \
asm("trap;"); \
} while (0)
#endif


struct RingBufferState {
uint32_t cur_block_idx = 0u;
Expand Down