Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions cccv/auto/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import importlib.util
import json
import warnings
from pathlib import Path
from typing import Any, Optional, Union

Expand All @@ -24,14 +23,6 @@ def from_pretrained(
:param model_dir: The path to cache the downloaded model configuration. Should be a full path. If None, use default cache path.
:return:
"""
if "pretrained_model_name" in kwargs:
warnings.warn(
"[CCCV] 'pretrained_model_name' is deprecated, please use 'pretrained_model_name_or_path' instead.",
DeprecationWarning,
stacklevel=2,
)
pretrained_model_name_or_path = kwargs.pop("pretrained_model_name")

# 1. check if it's a registered config name, early return if found
if isinstance(pretrained_model_name_or_path, ConfigType):
pretrained_model_name_or_path = pretrained_model_name_or_path.value
Expand Down
1 change: 0 additions & 1 deletion cccv/auto/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ def from_config(
:param gh_proxy: The proxy for downloading from github release. Example: https://github.abskoop.workers.dev/
:return:
"""

model = MODEL_REGISTRY.get(config.model)
model = model(
config=config,
Expand Down
Loading