Instructions to use Wellz1000/hermes-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- HERMES
How to use Wellz1000/hermes-2 with HERMES:
# 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 docker/entrypoint-dispatch.sh from Wellz1000/hermes-2: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/Wellz1000/hermes-2/resolve/main/docker/entrypoint-dispatch.sh
- Command line
-
hf download hf://Wellz1000/hermes-2/docker/entrypoint-dispatch.sh
-
curl -L -o entrypoint-dispatch.sh https://huggingface.co/Wellz1000/hermes-2/resolve/main/docker/entrypoint-dispatch.sh
1.12 kB
| # shellcheck shell=sh | |
| # Entry-point dispatcher for runtimes that may or may not give the image | |
| # ownership of PID 1. | |
| # | |
| # Normal Docker / Podman path: this script is PID 1, so we delegate to | |
| # s6-overlay's /init exactly as before and keep the full supervision tree. | |
| # | |
| # Wrapped-runtime path (Fly Machines, `docker run --init`, some Nomad/K8s | |
| # setups): the platform's own init is already PID 1 and execs the image | |
| # entrypoint as a child. s6-overlay aborts there with "can only run as pid 1", | |
| # so we run the stage2 bootstrap directly and then exec the main wrapper | |
| # without /init. | |
| set -e | |
| if [ "$$" -eq 1 ]; then | |
| exec /init /opt/hermes/docker/main-wrapper.sh "$@" | |
| fi | |
| echo "[hermes] WARNING: container entrypoint is not PID 1; skipping s6-overlay /init and falling back to direct bootstrap. Supervised services are unavailable in this runtime, but the requested command will still run." >&2 | |
| # /init normally seeds PATH with s6's helpers; the non-PID-1 fallback skips it. | |
| export PATH="/command:/package/admin/s6/command:${PATH}" | |
| /opt/hermes/docker/stage2-hook.sh | |
| exec /opt/hermes/docker/main-wrapper.sh "$@" | |