import os model_path = 'intent_classification/TinyBERT_106_V2' # can try other checkpoints print(os.path.exists(model_path))