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 apps/desktop/src/contrib/plugin.test.ts from Wellz1000/hermes-2: direct link, hf CLI and curl.
- Browser
- Download file 729 Bytes
-
https://huggingface.co/Wellz1000/hermes-2/resolve/main/apps/desktop/src/contrib/plugin.test.ts
- Command line
-
hf download hf://Wellz1000/hermes-2/apps/desktop/src/contrib/plugin.test.ts
-
curl -L -o plugin.test.ts https://huggingface.co/Wellz1000/hermes-2/resolve/main/apps/desktop/src/contrib/plugin.test.ts
729 Bytes
| import { describe, expect, it } from 'vitest' | |
| import { createPluginContext } from './plugin' | |
| describe('createPluginContext.onDispose', () => { | |
| it('collects arbitrary cleanups so the host runs them on deactivate', () => { | |
| const disposers: Array<() => void> = [] | |
| const ctx = createPluginContext('demo', dispose => disposers.push(dispose)) | |
| let cleaned = false | |
| ctx.onDispose(() => { | |
| cleaned = true | |
| }) | |
| // The cleanup is tracked alongside contribution/socket disposers, so the | |
| // loader's deactivate (which runs every collected disposer) tears it down. | |
| expect(disposers).toHaveLength(1) | |
| disposers.forEach(dispose => dispose()) | |
| expect(cleaned).toBe(true) | |
| }) | |
| }) | |