Skip to content

Commit

Permalink
🐛 revert kv_scale hacks, build c code ourselves
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Runde <Joseph.Runde@ibm.com>
  • Loading branch information
joerunde committed Apr 11, 2024
1 parent de60593 commit 3b914ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.ubi
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ FROM base AS vllm
WORKDIR /vllm-staging
# COPY files from various places into a staging directory
COPY --link vllm vllm
COPY --from=prebuilt-wheel --link /workspace/vllm/*.so vllm/
COPY --from=build --link /workspace/vllm/*.so vllm/
COPY --from=gen-protos --link /workspace/vllm/entrypoints/grpc/pb vllm/entrypoints/grpc/pb

# custom COPY command to use umask to control permissions and grant permissions
Expand Down
8 changes: 4 additions & 4 deletions vllm/_custom_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def paged_attention_v1(
vllm_ops.paged_attention_v1(out, query, key_cache, value_cache,
num_kv_heads, scale, block_tables,
context_lens, block_size, max_context_len,
alibi_slopes, kv_cache_dtype)#, kv_scale)
alibi_slopes, kv_cache_dtype, kv_scale)


def paged_attention_v2(
Expand All @@ -73,8 +73,8 @@ def paged_attention_v2(
vllm_ops.paged_attention_v2(out, exp_sum, max_logits, tmp_out, query,
key_cache, value_cache, num_kv_heads, scale,
block_tables, context_lens, block_size,
max_context_len, alibi_slopes, kv_cache_dtype)
# kv_scale)
max_context_len, alibi_slopes, kv_cache_dtype,
kv_scale)


# pos encoding ops
Expand Down Expand Up @@ -173,7 +173,7 @@ def reshape_and_cache(
kv_scale: float,
) -> None:
vllm_cache_ops.reshape_and_cache(key, value, key_cache, value_cache,
slot_mapping, kv_cache_dtype)#, kv_scale)
slot_mapping, kv_cache_dtype, kv_scale)


def copy_blocks(key_caches: torch.Tensor, value_caches: torch.Tensor,
Expand Down

0 comments on commit 3b914ed

Please sign in to comment.