Text Generation
Transformers.js
ONNX
llama
webgpu
q4f16
gptq
tool-calling
experimental
conversational
Instructions to use webbrain-one/webbrain-compass-tiny-v2.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use webbrain-one/webbrain-compass-tiny-v2.1 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'webbrain-one/webbrain-compass-tiny-v2.1');
Download runtime/vendor/onnxruntime-common/env-impl.js from webbrain-one/webbrain-compass-tiny-v2.1: direct link, hf CLI and curl.
- Browser
- Download file 848 Bytes
-
https://huggingface.co/webbrain-one/webbrain-compass-tiny-v2.1/resolve/main/runtime/vendor/onnxruntime-common/env-impl.js
- Command line
-
hf download hf://webbrain-one/webbrain-compass-tiny-v2.1/runtime/vendor/onnxruntime-common/env-impl.js
-
curl -L -o env-impl.js https://huggingface.co/webbrain-one/webbrain-compass-tiny-v2.1/resolve/main/runtime/vendor/onnxruntime-common/env-impl.js
848 Bytes
| // Copyright (c) Microsoft Corporation. All rights reserved. | |
| // Licensed under the MIT License. | |
| import { version } from './version.js'; | |
| let logLevelValue = 'warning'; | |
| export const env = { | |
| wasm: {}, | |
| webgl: {}, | |
| webgpu: {}, | |
| versions: { common: version }, | |
| set logLevel(value) { | |
| if (value === undefined) { | |
| return; | |
| } | |
| if (typeof value !== 'string' || ['verbose', 'info', 'warning', 'error', 'fatal'].indexOf(value) === -1) { | |
| throw new Error(`Unsupported logging level: ${value}`); | |
| } | |
| logLevelValue = value; | |
| }, | |
| get logLevel() { | |
| return logLevelValue; | |
| }, | |
| }; | |
| // set property 'logLevel' so that they can be correctly transferred to worker by `postMessage()`. | |
| Object.defineProperty(env, 'logLevel', { enumerable: true }); | |
| //# sourceMappingURL=env-impl.js.map |