[CI] typo fix: is_hip --> is_hip() (#3595)
This commit is contained in:
parent
41deac4a3d
commit
8b268a46a7
@ -6,7 +6,6 @@ import torch
|
|||||||
from typing import Tuple
|
from typing import Tuple
|
||||||
|
|
||||||
from vllm._C import cache_ops
|
from vllm._C import cache_ops
|
||||||
from vllm.utils import is_hip
|
|
||||||
|
|
||||||
COPYING_DIRECTION = [('cuda', 'cpu'), ('cuda', 'cuda'), ('cpu', 'cuda')]
|
COPYING_DIRECTION = [('cuda', 'cpu'), ('cuda', 'cuda'), ('cpu', 'cuda')]
|
||||||
DTYPES = [torch.half, torch.bfloat16, torch.float]
|
DTYPES = [torch.half, torch.bfloat16, torch.float]
|
||||||
@ -15,10 +14,11 @@ NUM_LAYERS = [1] # Arbitrary values for testing
|
|||||||
NUM_HEADS = [8] # Arbitrary values for testing
|
NUM_HEADS = [8] # Arbitrary values for testing
|
||||||
HEAD_SIZES = [64, 80, 96, 112, 128, 256]
|
HEAD_SIZES = [64, 80, 96, 112, 128, 256]
|
||||||
BLOCK_SIZES = [8, 16, 32]
|
BLOCK_SIZES = [8, 16, 32]
|
||||||
# reduce the size for ROCm test to avoid HIP OOM
|
|
||||||
NUM_BLOCKS = [1024, 36000] if not is_hip else [
|
# Arbitrary values for testing
|
||||||
1024, 10000
|
# don't make it too large. e.g. [1024, 36000] will OOM
|
||||||
] # Arbitrary values for testing
|
NUM_BLOCKS = [1024, 10000]
|
||||||
|
|
||||||
NUM_MAPPINGS = [256] # Arbitrary values for testing
|
NUM_MAPPINGS = [256] # Arbitrary values for testing
|
||||||
SEEDS = [0]
|
SEEDS = [0]
|
||||||
CUDA_DEVICES = [
|
CUDA_DEVICES = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user