File size: 505 Bytes
ca8c197
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from pathlib import Path
import json

LOCAL_MODEL_DIR = Path("models--MoritzLaurer--deberta-v3-large-zeroshot-v2.0/snapshots/cf44676c28ba7312e5c5f8f8d2c22b3e0c9cdae2")

for file in ["config.json", "tokenizer_config.json", "special_tokens_map.json", "added_tokens.json"]:
    path = LOCAL_MODEL_DIR / file
    if path.exists():
        try:
            json.load(open(path, encoding="utf-8"))
            print(f"✅ OK: {file}")
        except Exception as e:
            print(f"❌ BAD: {file} -> {e}")