def _load_from_zip_file(self) -> Tuple:
        """Load the model from a zip file."""
        zip_file_path = download_model(
            repo_location=self.model_properties.model_location,
            url=self.model_properties.url,
            auth=self.model_auth,
            download_dir=ModelCache.hf_cache_path
        )

        model_dir = self.extract_huggingface_archive(zip_file_path)
        try:
            model = AutoModel.from_pretrained(
                model_dir,
                **self._model_flags.dict(exclude_none=True)
            )
            tokenizer = AutoTokenizer.from_pretrained(
                model_dir, **self._tokenizer_flags.dict(exclude_none=True)
            )
        except (OSError, ValueError, RuntimeError) as e:
            raise InvalidModelPropertiesError(
                f"Marqo encountered an error loading the Hugging Face model, modelProperties={self.model_properties}. "
                f"Please ensure that the provided zip file is valid.\n"
                f" Original error message = {e}") from e
        return model, tokenizer
Load the model from a zip file.
src/marqo/inference/native_inference/embedding_models/hugging_face_model.py