Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
21 lines
523 B
Python
21 lines
523 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 transformers import PreTrainedConfig
|
|
|
|
|
|
class ConfigParserBase(ABC):
|
|
@abstractmethod
|
|
def parse(
|
|
self,
|
|
model: str | Path,
|
|
trust_remote_code: bool,
|
|
revision: str | None = None,
|
|
code_revision: str | None = None,
|
|
**kwargs,
|
|
) -> tuple[dict, PreTrainedConfig]:
|
|
raise NotImplementedError
|