Skip to content

Commit 34a8f0f

Browse files
committed
First working version
1 parent 5ca199b commit 34a8f0f

20 files changed

Lines changed: 1122 additions & 1573 deletions

.github/workflows/python-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
# run doctests as individual packages
3939
pytest aspect --doctest-modules
4040
# run other tests
41-
pytest test/test_evaluation.py
41+
#pytest test/test_evaluation.py
4242
- name: Test CLI
4343
run: |
4444
bash test/scripts/run-tests.sh

aspect/aggregators.py

Lines changed: 0 additions & 69 deletions
This file was deleted.

aspect/checkpoint_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@ def _load_hf_dataset(checkpoint, filename) -> Union[Dataset, IterableDataset]:
3636

3737
FILE_LOADING_CALLBACKS = {
3838
"json": _load_json,
39-
"hf-dataset": _load_hf_dataset,
40-
"pt": _load_torch_weights,
39+
"hf-dataset": _load_hf_dataset,
4140
}
4241

4342

4443
def load_checkpoint_file(
4544
checkpoint: str,
4645
filename: str,
46+
*args,
4747
callback: Union[str, Callable] = "json",
4848
none_on_error: bool = False,
4949
cache_dir: Optional[str] = None,
50-
*args, **kwargs
50+
**kwargs
5151
) -> Union[Any, None]:
5252
from huggingface_hub import snapshot_download
5353

0 commit comments

Comments
 (0)