Skip to content

Commit

Permalink
scheduler_config
Browse files Browse the repository at this point in the history
  • Loading branch information
Wauplin committed Dec 12, 2024
1 parent 360ddd1 commit c168e23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/huggingface_hub/serialization/_dduf.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def _validate_dduf_structure(index: Any, entry_names: Iterable[str]) -> None:
Rules:
- The 'model_index.json' entry is required and must contain a dictionary.
- Each folder name must correspond to an entry in 'model_index.json'.
- Each folder must contain at least a config file ('config.json', 'tokenizer_config.json', 'image_processor.json').
- Each folder must contain at least a config file ('config.json', 'tokenizer_config.json', 'image_processor.json', 'scheduler_config.json').
Args:
index (Any):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_dduf.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def test_validate_dduf_structure_missing_config_file(self):
_validate_dduf_structure(
{"encoder": {}},
{
"encoder/not_a_config.json", # expecting a config.json / tokenizer_config.json / image_processor.json
"encoder/not_a_config.json", # expecting a config.json / tokenizer_config.json / image_processor.json / scheduler_config.json
"encoder/model.safetensors",
},
)
Expand Down

0 comments on commit c168e23

Please sign in to comment.