mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-04-06 09:27:04 +08:00
Signed-off-by: Xingyu Liu <charlotteliu12x@gmail.com> Signed-off-by: Xingyu Liu <38244988+charlotte12l@users.noreply.github.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
21 lines
586 B
Python
21 lines
586 B
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
|
|
from abc import ABC, abstractmethod
|
|
from pathlib import Path
|
|
from typing import Optional, Union
|
|
|
|
from transformers import PretrainedConfig
|
|
|
|
|
|
class ConfigParserBase(ABC):
|
|
|
|
@abstractmethod
|
|
def parse(self,
|
|
model: Union[str, Path],
|
|
trust_remote_code: bool,
|
|
revision: Optional[str] = None,
|
|
code_revision: Optional[str] = None,
|
|
**kwargs) -> tuple[dict, PretrainedConfig]:
|
|
raise NotImplementedError
|