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/index.js from webbrain-one/webbrain-compass-tiny-v2.1: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/webbrain-one/webbrain-compass-tiny-v2.1/resolve/main/runtime/vendor/onnxruntime-common/index.js
- Command line
-
hf download hf://webbrain-one/webbrain-compass-tiny-v2.1/runtime/vendor/onnxruntime-common/index.js
-
curl -L -o index.js https://huggingface.co/webbrain-one/webbrain-compass-tiny-v2.1/resolve/main/runtime/vendor/onnxruntime-common/index.js
1.04 kB
| // Copyright (c) Microsoft Corporation. All rights reserved. | |
| // Licensed under the MIT License. | |
| /** | |
| * # ONNX Runtime JavaScript API | |
| * | |
| * ONNX Runtime JavaScript API is a unified API for all JavaScript usages, including the following NPM packages: | |
| * | |
| * - [onnxruntime-node](https://www.npmjs.com/package/onnxruntime-node) | |
| * - [onnxruntime-web](https://www.npmjs.com/package/onnxruntime-web) | |
| * - [onnxruntime-react-native](https://www.npmjs.com/package/onnxruntime-react-native) | |
| * | |
| * See also: | |
| * - [Get Started](https://onnxruntime.ai/docs/get-started/with-javascript/) | |
| * - [Inference examples](https://github.com/microsoft/onnxruntime-inference-examples/tree/main/js) | |
| * | |
| * @packageDocumentation | |
| */ | |
| export * from './backend.js'; | |
| export * from './env.js'; | |
| export * from './inference-session.js'; | |
| export * from './tensor.js'; | |
| export * from './tensor-conversion.js'; | |
| export * from './tensor-factory.js'; | |
| export * from './trace.js'; | |
| export * from './onnx-model.js'; | |
| export * from './onnx-value.js'; | |
| //# sourceMappingURL=index.js.map |