Download sitecustomize.py from UniLat3D/Supra-Tex: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/spaces/UniLat3D/Supra-Tex/resolve/main/sitecustomize.py
- Command line
-
hf download hf://spaces/UniLat3D/Supra-Tex/sitecustomize.py
-
curl -L -o sitecustomize.py https://huggingface.co/spaces/UniLat3D/Supra-Tex/resolve/main/sitecustomize.py
535 Bytes
| """Optional stack diagnostics for the isolated inference interpreters.""" | |
| import os | |
| if os.environ.get('SUPRATEX_TRACE_CHILDREN') == '1': | |
| import faulthandler | |
| import sys | |
| import resource | |
| resource.setrlimit(resource.RLIMIT_CORE, (0, 0)) | |
| faulthandler.enable() | |
| faulthandler.dump_traceback_later(90, repeat=True) | |
| print(f'[inference-diagnostics] pid={os.getpid()} entry={sys.argv[0]}: stack snapshots every 90s', | |
| file=sys.stderr, flush=True) | |
| from hf_space.weight_cache import install | |
| install() | |