Spaces:
Running
Running
debug
Browse files
src/submission/check_validity.py
CHANGED
|
@@ -33,6 +33,12 @@ def check_model_card(repo_id: str) -> tuple[bool, str]:
|
|
| 33 |
|
| 34 |
def is_model_on_hub(model_name: str, revision: str, token: str = None, trust_remote_code=False, test_tokenizer=False) -> tuple[bool, str]:
|
| 35 |
"""Checks if the model model_name is on the hub, and whether it (and its tokenizer) can be loaded with AutoClasses."""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
try:
|
| 37 |
config = AutoConfig.from_pretrained(model_name, revision=revision, trust_remote_code=trust_remote_code, token=token)
|
| 38 |
if test_tokenizer:
|
|
|
|
| 33 |
|
| 34 |
def is_model_on_hub(model_name: str, revision: str, token: str = None, trust_remote_code=False, test_tokenizer=False) -> tuple[bool, str]:
|
| 35 |
"""Checks if the model model_name is on the hub, and whether it (and its tokenizer) can be loaded with AutoClasses."""
|
| 36 |
+
|
| 37 |
+
print("model_name", model_name)
|
| 38 |
+
print("revision", revision)
|
| 39 |
+
print("trust_remote_code", trust_remote_code)
|
| 40 |
+
print("token", token)
|
| 41 |
+
|
| 42 |
try:
|
| 43 |
config = AutoConfig.from_pretrained(model_name, revision=revision, trust_remote_code=trust_remote_code, token=token)
|
| 44 |
if test_tokenizer:
|