"tests/models/vscode:/vscode.git/clone" did not exist on "5bbf6712767a84ac4c4de1a5525a1b4e697064f7"
Unverified Commit 2b23e080 authored by Michael Benayoun's avatar Michael Benayoun Committed by GitHub
Browse files

Make FeaturesManager.get_model_from_feature a static method (#16357)

parent aa6cfe9c
......@@ -344,6 +344,7 @@ class FeaturesManager:
)
return task_to_automodel[task]
@staticmethod
def get_model_from_feature(
feature: str, model: str, framework: str = "pt", cache_dir: str = None
) -> Union[PreTrainedModel, TFPreTrainedModel]:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment