Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
51f194f2
Commit
51f194f2
authored
Jan 07, 2026
by
zhuwenwen
Browse files
update indexer_k_cache_kernel
parent
c2ef7fdd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
csrc/cache_kernels.cu
csrc/cache_kernels.cu
+2
-1
No files found.
csrc/cache_kernels.cu
View file @
51f194f2
...
@@ -806,7 +806,8 @@ __global__ void indexer_k_cache_kernel(
...
@@ -806,7 +806,8 @@ __global__ void indexer_k_cache_kernel(
kv_cache
[
dst_offset
+
i
]
=
__float2half
(
val
);
kv_cache
[
dst_offset
+
i
]
=
__float2half
(
val
);
}
else
if
constexpr
(
std
::
is_same
<
cache_t
,
at
::
BFloat16
>::
value
||
}
else
if
constexpr
(
std
::
is_same
<
cache_t
,
at
::
BFloat16
>::
value
||
std
::
is_same
<
cache_t
,
__nv_bfloat16
>::
value
)
{
std
::
is_same
<
cache_t
,
__nv_bfloat16
>::
value
)
{
kv_cache
[
dst_offset
+
i
]
=
__float2bfloat16
(
val
);
__hip_bfloat16
bf16_val
=
__float2bfloat16
(
val
);
kv_cache
[
dst_offset
+
i
]
=
*
reinterpret_cast
<
at
::
BFloat16
*>
(
&
bf16_val
);
}
else
if
constexpr
(
std
::
is_same
<
cache_t
,
float
>::
value
)
{
}
else
if
constexpr
(
std
::
is_same
<
cache_t
,
float
>::
value
)
{
kv_cache
[
dst_offset
+
i
]
=
val
;
kv_cache
[
dst_offset
+
i
]
=
val
;
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment