Download bootstrap.py from gamer729/cognithread-ssm: direct link, hf CLI and curl.
- Browser
- Download file 578 Bytes
-
https://huggingface.co/gamer729/cognithread-ssm/resolve/main/bootstrap.py
- Command line
-
hf download hf://gamer729/cognithread-ssm/bootstrap.py
-
curl -L -o bootstrap.py https://huggingface.co/gamer729/cognithread-ssm/resolve/main/bootstrap.py
578 Bytes
| #!/usr/bin/env python3 | |
| """Bootstrap: downloads source from HF repo and runs the full build.""" | |
| import subprocess, sys, os | |
| subprocess.check_call([sys.executable, "-m", "pip", "install", "-q", | |
| "huggingface_hub", "jax", "jaxlib", "flax", "optax", "numpy"]) | |
| from huggingface_hub import hf_hub_download | |
| repo = "gamer729/cognithread-ssm" | |
| files = ["cognithread_full.py"] | |
| for f in files: | |
| path = hf_hub_download(repo_id=repo, filename=f, repo_type="model") | |
| os.system(f"cp {path} /app/{f}") | |
| print(f"Downloaded {f}") | |
| os.system(f"{sys.executable} /app/cognithread_full.py") | |