Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rad Dino changes for import model component #3683

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ inputs:
- mask-generation
- video-multi-object-tracking
- visual-question-answering
- embeddings
description: A Hugging face task on which model was trained on. A required parameter for transformers MLflow flavor. Can be provided as input here or in model_download_metadata JSON file.
optional: true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ inputs:
- mask-generation
- video-multi-object-tracking
- visual-question-answering
- embeddings
optional: true
type: string

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_mlflow_convertor(model_framework, model_dir, output_dir, temp_dir, trans
return CLIPMLflowConvertorFactory.create_mlflow_convertor(
model_dir, output_dir, temp_dir, translate_params
)
elif (task == PyFuncSupportedTasks.EMBEDDINGS.value) and model_id.startswith(ModelFamilyPrefixes.DINOV2.value):
elif (task == PyFuncSupportedTasks.EMBEDDINGS.value) and (model_id.startswith(ModelFamilyPrefixes.DINOV2.value) or model_id.startswith(ModelFamilyPrefixes.RADDINO.value)):
return DinoV2MLflowConvertorFactory.create_mlflow_convertor(
model_dir, output_dir, temp_dir, translate_params
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,5 @@ class ModelFamilyPrefixes(_CustomEnum):

# DinoV2 model family.
DINOV2 = "facebook/dinov2"

RADDINO = "microsoft/rad-dino"
Loading