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
File size: 729 Bytes
1ec3c61 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 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)
})
})
|