def _validate_minimum_required_fields_to_load(cls, values):
        """
        Validate that at least one of 'name', 'url', or 'model_location' is provided.
        But 'url' and 'model_location' should not be provided together.
        """
        if values.get("url") and values.get("model_location"):
            raise ValueError("Only one of 'url' and 'model_location' should be provided.")
        is_custom = values.get("url") or values.get("model_location")
        if not values.get("name") and not is_custom:
            raise ValueError("At least one of 'name', 'url', or 'model_location' should be provided.")
        return values

        Validate that at least one of 'name', 'url', or 'model_location' is provided.
        But 'url' and 'model_location' should not be provided together.
        
src/marqo/inference/native_inference/embedding_models/hugging_face_model_properties.py