Update README.md
Browse files
README.md
CHANGED
@@ -138,10 +138,10 @@ npm i xenova/transformers.js#v3
|
|
138 |
|
139 |
Then, you can use the following code to interact with the model:
|
140 |
```js
|
141 |
-
import { AutoTokenizer,
|
142 |
|
143 |
const model_id = 'jinaai/jina-reranker-v2-base-multilingual';
|
144 |
-
const model = await
|
145 |
const tokenizer = await AutoTokenizer.from_pretrained(model_id);
|
146 |
|
147 |
/**
|
|
|
138 |
|
139 |
Then, you can use the following code to interact with the model:
|
140 |
```js
|
141 |
+
import { AutoTokenizer, XLMRobertaModel } from '@xenova/transformers';
|
142 |
|
143 |
const model_id = 'jinaai/jina-reranker-v2-base-multilingual';
|
144 |
+
const model = await XLMRobertaModel.from_pretrained(model_id, { dtype: 'fp32' });
|
145 |
const tokenizer = await AutoTokenizer.from_pretrained(model_id);
|
146 |
|
147 |
/**
|