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 hermes_cli/subcommands/_shared.py from Wellz1000/hermes-2: direct link, hf CLI and curl.
- Browser
- Download file 972 Bytes
-
https://huggingface.co/Wellz1000/hermes-2/resolve/main/hermes_cli/subcommands/_shared.py
- Command line
-
hf download hf://Wellz1000/hermes-2/hermes_cli/subcommands/_shared.py
-
curl -L -o _shared.py https://huggingface.co/Wellz1000/hermes-2/resolve/main/hermes_cli/subcommands/_shared.py
972 Bytes
| """Shared parser helpers used across multiple CLI subcommand builders. | |
| These were module-level helpers in ``hermes_cli/main.py``. They are pulled | |
| into a neutral module so both ``main.py`` and every | |
| ``hermes_cli/subcommands/<group>.py`` builder can import them without an | |
| import cycle. ``main.py`` re-exports them for backwards compatibility, so | |
| existing references keep working. | |
| """ | |
| from __future__ import annotations | |
| import argparse | |
| def add_accept_hooks_flag(parser: argparse.ArgumentParser) -> None: | |
| """Attach the ``--accept-hooks`` flag. | |
| Shared across every agent subparser so the flag works regardless of CLI | |
| position. | |
| """ | |
| parser.add_argument( | |
| "--accept-hooks", | |
| action="store_true", | |
| default=argparse.SUPPRESS, | |
| help=( | |
| "Auto-approve unseen shell hooks without a TTY prompt " | |
| "(equivalent to HERMES_ACCEPT_HOOKS=1 / hooks_auto_accept: true)." | |
| ), | |
| ) | |