Instructions to use zhaxie/tooth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Trellis
How to use zhaxie/tooth with Trellis:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download verify.py from zhaxie/tooth: direct link, hf CLI and curl.
- Browser
- Download file 930 Bytes
-
https://huggingface.co/zhaxie/tooth/resolve/main/verify.py
- Command line
-
hf download hf://zhaxie/tooth/verify.py
-
curl -L -o verify.py https://huggingface.co/zhaxie/tooth/resolve/main/verify.py
930 Bytes
| """Verify release bytes; optionally strictly load the C80 checkpoint.""" | |
| import argparse, hashlib, json, sys | |
| from pathlib import Path | |
| p=argparse.ArgumentParser();p.add_argument('--cpu-only',action='store_true');args=p.parse_args() | |
| root=Path(__file__).resolve().parent | |
| manifest=json.loads((root/'release_manifest.json').read_text()) | |
| for e in manifest['files']: | |
| path=root/e['path'] | |
| if not path.is_file():raise SystemExit('Missing file: '+str(path)) | |
| h=hashlib.sha256() | |
| with path.open('rb') as f: | |
| for block in iter(lambda:f.read(8*1024*1024),b''):h.update(block) | |
| if path.stat().st_size!=e['size'] or h.hexdigest()!=e['sha256']:raise SystemExit('Checksum mismatch: '+str(path)) | |
| print('RELEASE_HASHES_PASS',len(manifest['files']),flush=True) | |
| if args.cpu_only: | |
| sys.path.insert(0,str(root/'app')) | |
| from c80_runtime import load_c80 | |
| load_c80(device='cpu') | |
| print('C80_STRICT_LOAD_PASS',flush=True) | |