Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
show Bielik
Browse files
is_model_on_hub_cache/joblib/src/submission/check_validity/is_model_on_hub/func_code.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
# first line: 37
|
2 |
@memory.cache
|
3 |
def is_model_on_hub(model_name: str, revision: str, token: str = None, trust_remote_code=False, test_tokenizer=False) -> tuple[bool, str]:
|
4 |
-
if 'Bielik-11' in model_name:
|
5 |
-
|
6 |
try:
|
7 |
config = AutoConfig.from_pretrained(model_name, revision=revision, trust_remote_code=trust_remote_code, token=token)
|
8 |
if test_tokenizer:
|
|
|
1 |
# first line: 37
|
2 |
@memory.cache
|
3 |
def is_model_on_hub(model_name: str, revision: str, token: str = None, trust_remote_code=False, test_tokenizer=False) -> tuple[bool, str]:
|
4 |
+
# if 'Bielik-11' in model_name:
|
5 |
+
# return False, "is not allowed to be submitted to the leaderboard.", None
|
6 |
try:
|
7 |
config = AutoConfig.from_pretrained(model_name, revision=revision, trust_remote_code=trust_remote_code, token=token)
|
8 |
if test_tokenizer:
|
src/submission/check_validity.py
CHANGED
@@ -36,8 +36,8 @@ memory = Memory('is_model_on_hub_cache', verbose=0)
|
|
36 |
|
37 |
@memory.cache
|
38 |
def is_model_on_hub(model_name: str, revision: str, token: str = None, trust_remote_code=False, test_tokenizer=False) -> tuple[bool, str]:
|
39 |
-
if 'Bielik-11' in model_name:
|
40 |
-
|
41 |
try:
|
42 |
config = AutoConfig.from_pretrained(model_name, revision=revision, trust_remote_code=trust_remote_code, token=token)
|
43 |
if test_tokenizer:
|
|
|
36 |
|
37 |
@memory.cache
|
38 |
def is_model_on_hub(model_name: str, revision: str, token: str = None, trust_remote_code=False, test_tokenizer=False) -> tuple[bool, str]:
|
39 |
+
# if 'Bielik-11' in model_name:
|
40 |
+
# return False, "is not allowed to be submitted to the leaderboard.", None
|
41 |
try:
|
42 |
config = AutoConfig.from_pretrained(model_name, revision=revision, trust_remote_code=trust_remote_code, token=token)
|
43 |
if test_tokenizer:
|