"""Home to all constant variables in Hezar"""importosfromenumimportEnumHEZAR_HUB_ID="hezarai"HEZAR_CACHE_DIR=os.getenv("HEZAR_CACHE_DIR",f'{os.path.expanduser("~")}/.cache/hezar')DEFAULT_MODEL_FILE="model.pt"DEFAULT_MODEL_CONFIG_FILE="model_config.yaml"DEFAULT_TRAINER_SUBFOLDER="train"DEFAULT_TRAINER_CONFIG_FILE="train_config.yaml"DEFAULT_TRAINER_CSV_LOG_FILE="training_logs.csv"DEFAULT_TRAINER_STATE_FILE="trainer_state.yaml"DEFAULT_OPTIMIZER_FILE="optimizer.pt"DEFAULT_LR_SCHEDULER_FILE="lr_scheduler.pt"DEFAULT_PREPROCESSOR_SUBFOLDER="preprocessor"DEFAULT_NORMALIZER_CONFIG_FILE="normalizer_config.yaml"DEFAULT_IMAGE_PROCESSOR_CONFIG_FILE="image_processor_config.yaml"DEFAULT_FEATURE_EXTRACTOR_CONFIG_FILE="feature_extractor_config.yaml"DEFAULT_TOKENIZER_FILE="tokenizer.json"DEFAULT_TOKENIZER_CONFIG_FILE="tokenizer_config.yaml"DEFAULT_DATASET_CONFIG_FILE="dataset_config.yaml"DEFAULT_EMBEDDING_FILE="embedding.bin"DEFAULT_EMBEDDING_CONFIG_FILE="embedding_config.yaml"DEFAULT_EMBEDDING_SUBFOLDER="embedding"TQDM_BAR_FORMAT="{desc:<16}{percentage:3.0f}%|{bar:70}{r_bar}"
[docs]classBackends(ExplicitEnum):""" All required dependency packages and libraries. Note that the values here must be the exact module names used for importing, for example if you set PILLOW the value must be `PIL` not `pillow`, `pil`, etc. """PYTORCH="torch"TORCHVISION="torchvision"TRANSFORMERS="transformers"DATASETS="datasets"TOKENIZERS="tokenizers"ACCELERATE="accelerate"TENSORBOARD="tensorboard"SOUNDFILE="soundfile"LIBROSA="librosa"WANDB="wandb"GENSIM="gensim"PILLOW="PIL"OPENCV="cv2"JIWER="jiwer"NLTK="nltk"SCIKIT="sklearn"SEQEVAL="seqeval"ROUGE="rouge_score"