Spaces:
Running
Running
Remove ":" from filenames
Browse files
src/submission/check_validity.py
CHANGED
@@ -515,9 +515,9 @@ def validate_directory_causalgraph(fs: HfFileSystem, repo_id: str, dirname: str)
|
|
515 |
found_token = False
|
516 |
if "residual" or "attention" in prefix.lower():
|
517 |
found_submodule = True
|
518 |
-
if "layer
|
519 |
found_layer = True
|
520 |
-
if "token
|
521 |
found_token = True
|
522 |
if not found_submodule or not found_layer or not found_token:
|
523 |
errors.append("Could not derive where featurizer should be applied from featurizer filenames.")
|
|
|
515 |
found_token = False
|
516 |
if "residual" or "attention" in prefix.lower():
|
517 |
found_submodule = True
|
518 |
+
if "layer" in prefix.lower():
|
519 |
found_layer = True
|
520 |
+
if "token" in prefix.lower():
|
521 |
found_token = True
|
522 |
if not found_submodule or not found_layer or not found_token:
|
523 |
errors.append("Could not derive where featurizer should be applied from featurizer filenames.")
|