    def download_executor(self, tag: str, file_name: str, lfs_files: Tuple[str], local_repo_path: Union[str, Path]) -> None:
        """
        Load the content from url and write into local files.

        Args:
            tag (`str`):
                The tag name.
            file_name (`str`):
                The hub file paths.
            lfs_files (`str):
                The file extensions being tracked by git-lfs.
            local_repo_path (`Union[str, Path]`):
                The local directory to download to.

        Raises:
            (`HTTPError`)
                Rasie error in request.
            (`OSError`)
                Raise error in writing file.
        """
        file_path = Path(local_repo_path) / file_name
        if not file_path.parent.resolve().exists():
            try:
                file_path.parent.resolve().mkdir(parents=True)
            except FileExistsError:
                pass
            except OSError as e:
                raise e

        # Get content.
        for i in range(5):
            try:
                if file_name.endswith(lfs_files):
                    res = self.hub_utils.get_lfs(file_name, tag)
                else:
                    res = self.hub_utils.get_file(file_name, tag)

                if res.status_code == 200:
                    break
                elif res.status_code == 429 and i < 4:
                    time.sleep(2)
                    continue
                res.raise_for_status()
            except HTTPError as e:
                raise e

        # Create local files.
        file_size = int(res.headers.get('content-length', 0))
        chunk_size = 1024
        progress_bar = tqdm(total=file_size, unit='iB', unit_scale=True, desc=f'Downloading {file_name}')
        with open(file_path, 'wb') as local_file:
            for chunk in res.iter_content(chunk_size=chunk_size):
                local_file.write(chunk)
                progress_bar.update(len(chunk))
        progress_bar.close()
        if progress_bar.total > progress_bar.n:
            engine_log.error('Error when downloading file: %s, will delete the local cache. Please check you network, or make sure you have '
                             'install `git-lfs`.', file_name)
            raise HTTPError(f'Error when downloading {file_name}, will delete the local cache. Please check you network, or make sure you have '
                            f'install `git-lfs`.')
Load the content from url and write into local files.

Args:
tag (`str`):
The tag name.
file_name (`str`):
The hub file paths.
lfs_files (`str):
The file extensions being tracked by git-lfs.
local_repo_path (`Union[str, Path]`):
The local directory to download to.

Raises:
(`HTTPError`)
Rasie error in request.
(`OSError`)
Raise error in writing file.
towhee/hub/repo_manager.py