docstr: Overwrite this method in subclass to define how to load your model from vanilla hugging face model
docstr_tok: ["Overwrite","this","method","in","subclass","to","define","how","to","load","your","model","from","vanilla","hugging","face","model"]
code: def _export(
      cls,
      model_id: Union[str, Path],
      config: PretrainedConfig,
      use_auth_token: Optional[Union[bool, str]] = None,
      revision: Optional[str] = None,
      force_download: bool = False,
      cache_dir: Optional[str] = None,
      subfolder: str = "",
      local_files_only: bool = False,
      trust_remote_code: bool = False,
      **kwargs,
  ) -> "OptimizedModel":
      """Overwrite this method in subclass to define how to load your model from vanilla hugging face model"""
      raise NotImplementedError(
          "Overwrite this method in subclass to define how to load your model from vanilla hugging face model"
      )
  
imports: import logging
  import os
  import subprocess
  from abc import ABC, abstractmethod
  from pathlib import Path
  from typing import TYPE_CHECKING, Optional, Union
  from huggingface_hub import HfApi, HfFolder
  from transformers import AutoConfig, PretrainedConfig, add_start_docstrings
  from .exporters import TasksManager
  from .utils import CONFIG_NAME
label_desc: Use image node_id 12 for calling the OptimizedModel obj's underlying member method code with example usage: obj._export(cls, model_id, config, use_auth_token, revision, force_download, cache_dir, subfolder, local_files_only, trust_remote_code) without return types