Update README.md
Browse files
README.md
CHANGED
@@ -13,19 +13,17 @@ tags:
|
|
13 |
|
14 |
https://huggingface.co/qnguyen3/nanoLLaVA with ONNX weights to be compatible with Transformers.js.
|
15 |
|
16 |
-
## Usage (Transformers.js)
|
17 |
|
18 |
-
|
19 |
-
> NOTE: nanoLLaVA support is experimental and requires you to install Transformers.js [v3](https://github.com/xenova/transformers.js/tree/v3) from source.
|
20 |
|
21 |
-
If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [
|
22 |
```bash
|
23 |
-
npm
|
24 |
```
|
25 |
|
26 |
**Example:**
|
27 |
```js
|
28 |
-
import { AutoProcessor, AutoTokenizer, LlavaForConditionalGeneration, RawImage } from '@
|
29 |
|
30 |
// Load tokenizer, processor and model
|
31 |
const model_id = 'Xenova/nanoLLaVA';
|
|
|
13 |
|
14 |
https://huggingface.co/qnguyen3/nanoLLaVA with ONNX weights to be compatible with Transformers.js.
|
15 |
|
|
|
16 |
|
17 |
+
## Usage (Transformers.js)
|
|
|
18 |
|
19 |
+
If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [NPM](https://www.npmjs.com/package/@huggingface/transformers) using:
|
20 |
```bash
|
21 |
+
npm i @huggingface/transformers
|
22 |
```
|
23 |
|
24 |
**Example:**
|
25 |
```js
|
26 |
+
import { AutoProcessor, AutoTokenizer, LlavaForConditionalGeneration, RawImage } from '@huggingface/transformers';
|
27 |
|
28 |
// Load tokenizer, processor and model
|
29 |
const model_id = 'Xenova/nanoLLaVA';
|