[1/N] Remove CacheConfig import in all model files (#1658)

This commit is contained in:
Byron Hsu
2024-10-14 09:06:34 -07:00
committed by GitHub
parent 02bc95796d
commit 56503d9bc9
30 changed files with 64 additions and 91 deletions

View File

@@ -23,7 +23,6 @@ import torch
import torch.nn.functional as F
from torch import nn
from transformers import PretrainedConfig
from vllm.config import CacheConfig
from vllm.distributed import (
get_tensor_model_parallel_world_size,
tensor_model_parallel_all_reduce,
@@ -298,7 +297,7 @@ class OlmoeForCausalLM(nn.Module):
def __init__(
self,
config: PretrainedConfig,
cache_config: Optional[CacheConfig] = None,
cache_config=None,
quant_config: Optional[QuantizationConfig] = None,
) -> None:
super().__init__()