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 tools/computer_use_tool.py from Wellz1000/hermes-2: direct link, hf CLI and curl.
- Browser
- Download file 1.36 kB
-
https://huggingface.co/Wellz1000/hermes-2/resolve/main/tools/computer_use_tool.py
- Command line
-
hf download hf://Wellz1000/hermes-2/tools/computer_use_tool.py
-
curl -L -o computer_use_tool.py https://huggingface.co/Wellz1000/hermes-2/resolve/main/tools/computer_use_tool.py
1.36 kB
| """Shim for tool discovery. Registers `computer_use` with tools.registry. | |
| The real implementation lives in the `tools/computer_use/` package to keep | |
| the file structure clean. This shim exists because tools.registry auto-imports | |
| `tools/*.py` — we need a top-level module to trigger the registration. | |
| """ | |
| from __future__ import annotations | |
| from tools.computer_use.schema import COMPUTER_USE_SCHEMA | |
| from tools.computer_use.tool import ( | |
| check_computer_use_requirements, | |
| handle_computer_use, | |
| release_computer_use_session, | |
| set_approval_callback, | |
| ) | |
| from tools.registry import registry | |
| registry.register( | |
| name="computer_use", | |
| toolset="computer_use", | |
| schema=COMPUTER_USE_SCHEMA, | |
| handler=lambda args, **kw: handle_computer_use(args, **kw), | |
| check_fn=check_computer_use_requirements, | |
| requires_env=[], | |
| description=( | |
| "Universal desktop control via cua-driver (macOS, Windows, Linux). Works with any " | |
| "tool-capable model (Anthropic, OpenAI, OpenRouter, local vLLM, " | |
| "etc.). Background computer-use: does NOT steal the user's cursor " | |
| "or keyboard focus." | |
| ), | |
| ) | |
| __all__ = [ | |
| "handle_computer_use", | |
| "release_computer_use_session", | |
| "set_approval_callback", | |
| "check_computer_use_requirements", | |
| "release_computer_use_session", | |
| ] | |