mirror of
https://github.com/unslothai/unsloth.git
synced 2026-08-19 13:53:58 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
38a0416d51
commit
eddb419c8f
2 changed files with 11 additions and 2 deletions
|
|
@ -1046,7 +1046,11 @@ def _resumable_blob_hashes(entry: Path) -> set[str]:
|
|||
|
||||
|
||||
def _manifest_hash_split(
|
||||
repo_type: str, repo_id: str, variant: Optional[str], *, root: Optional[Path] = None
|
||||
repo_type: str,
|
||||
repo_id: str,
|
||||
variant: Optional[str],
|
||||
*,
|
||||
root: Optional[Path] = None,
|
||||
) -> tuple[set[str], set[str]]:
|
||||
"""``(main, companion)`` blob hashes from the variant's manifest, split the way the worker
|
||||
splits them when it asks for a purge. Empty pair when either step cannot answer, which
|
||||
|
|
|
|||
|
|
@ -261,7 +261,12 @@ def two_roots(monkeypatch, tmp_path):
|
|||
return active / "models--Org--Model", previous / "models--Org--Model"
|
||||
|
||||
|
||||
def _record_in(entry: Path, transport: str, variant, blob: str = BLOB):
|
||||
def _record_in(
|
||||
entry: Path,
|
||||
transport: str,
|
||||
variant,
|
||||
blob: str = BLOB,
|
||||
):
|
||||
download_manifest.write_manifest(
|
||||
"model",
|
||||
"Org/Model",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue