BranchOne / io.py
ndemirdemir's picture
Release BranchOne FP16 text and image decision model
f78d5a7 verified
Raw History Blame Contribute Delete
228 Bytes
"""File hashing used by the calibrated inference loader."""
import hashlib
from pathlib import Path
def sha256(path):
with Path(path).open("rb") as stream:
return hashlib.file_digest(stream, "sha256").hexdigest()