You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Transformers.js uses [ONNX Runtime](https://onnxruntime.ai/) to run models in the browser. The best part about it, is that you can easily [convert](#convert-your-models-to-onnx) your pretrained PyTorch, TensorFlow, or JAX models to ONNX using [🤗 Optimum](https://github.com/huggingface/optimum#onnx--onnx-runtime).
41
+
Transformers.js uses [ONNX Runtime](https://onnxruntime.ai/) to run models in the browser. The best part about it, is that you can easily [convert](#convert-your-models-to-onnx) your pretrained PyTorch, TensorFlow, or JAX models to ONNX using [🤗 Optimum](https://github.com/huggingface/optimum#onnx--onnx-runtime).
42
42
43
43
For more information, check out the full [documentation](https://huggingface.co/docs/transformers.js).
44
44
@@ -70,7 +70,7 @@ out = pipe('I love transformers!')
70
70
<td>
71
71
72
72
```javascript
73
-
import { pipeline } from'@xenova/transformers';
73
+
import { pipeline } from'chromadb-default-embed';
74
74
75
75
// Allocate a pipeline for sentiment-analysis
76
76
let pipe =awaitpipeline('sentiment-analysis');
@@ -94,15 +94,15 @@ let pipe = await pipeline('sentiment-analysis', 'Xenova/bert-base-multilingual-u
94
94
## Installation
95
95
96
96
97
-
To install via [NPM](https://www.npmjs.com/package/@xenova/transformers), run:
97
+
To install via [NPM](https://www.npmjs.com/package/chromadb-default-embed), run:
98
98
```bash
99
-
npm i @xenova/transformers
99
+
npm i chromadb-default-embed
100
100
```
101
101
102
102
Alternatively, you can use it in vanilla JS, without any bundler, by using a CDN or static hosting. For example, using [ES Modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules), you can import the library with:
@@ -135,13 +135,13 @@ Check out the Transformers.js [template](https://huggingface.co/new-space?templa
135
135
136
136
137
137
138
-
By default, Transformers.js uses [hosted pretrained models](https://huggingface.co/models?library=transformers.js) and [precompiled WASM binaries](https://cdn.jsdelivr.net/npm/@xenova/transformers@2.13.2/dist/), which should work out-of-the-box. You can customize this as follows:
138
+
By default, Transformers.js uses [hosted pretrained models](https://huggingface.co/models?library=transformers.js) and [precompiled WASM binaries](https://cdn.jsdelivr.net/npm/chromadb-default-embed@2.13.2/dist/), which should work out-of-the-box. You can customize this as follows:
139
139
140
140
141
141
### Settings
142
142
143
143
```javascript
144
-
import { env } from'@xenova/transformers';
144
+
import { env } from'chromadb-default-embed';
145
145
146
146
// Specify a custom location for models (defaults to '/models/').
0 commit comments