bridge.models._deprecation#
Module Contents#
Functions#
Warn that support for a legacy model is scheduled for removal. |
|
Warn when an HF configuration belongs to a deprecated model family. |
|
Warn before loading the legacy Nemotron-4 repository without an HF config. |
Data#
API#
- bridge.models._deprecation._REMOVAL_VERSION#
β0.7.0β
- bridge.models._deprecation._LEGACY_NEMOTRON_NAME#
βthe legacy Nemotron bridge (NemotronForCausalLM, previously documented for Nemotron-4 340B)β
- bridge.models._deprecation._DEPRECATED_ARCHITECTURES#
None
- bridge.models._deprecation._LLAMA2_SHAPES#
None
- bridge.models._deprecation._MISTRAL_SHAPES#
None
- bridge.models._deprecation._NEMOTRON_H_V1_SHAPES#
None
- bridge.models._deprecation._model_identifier(
- config: Any,
- model_name_or_path: str | pathlib.Path | None,
- bridge.models._deprecation._architectures(config: Any) set[str]#
- bridge.models._deprecation._deprecated_model_name(
- config: Any,
- model_name_or_path: str | pathlib.Path | None = None,
- bridge.models._deprecation.warn_deprecated_model(model_name: str, *, stacklevel: int = 2) None#
Warn that support for a legacy model is scheduled for removal.
- Parameters:
model_name β User-facing model family or variant name.
stacklevel β Warning stack level passed to :func:
warnings.warn.
- bridge.models._deprecation.warn_if_deprecated_model(
- config: Any,
- model_name_or_path: str | pathlib.Path | None = None,
Warn when an HF configuration belongs to a deprecated model family.
- Parameters:
config β Hugging Face model configuration.
model_name_or_path β Optional Hugging Face model identifier or local path.
- bridge.models._deprecation.warn_if_legacy_nemotron_path(
- model_name_or_path: str | pathlib.Path,
Warn before loading the legacy Nemotron-4 repository without an HF config.
- Parameters:
model_name_or_path β Hugging Face model identifier or local path.