Instructions to use BricksDisplay/TinyLlama-1.1B-Chat-v1.0-q4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use BricksDisplay/TinyLlama-1.1B-Chat-v1.0-q4 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'BricksDisplay/TinyLlama-1.1B-Chat-v1.0-q4');
Transformers.js - Enable external data format in Node.js
#1
by Xenova HF Staff - opened
- config.json +9 -2
config.json
CHANGED
|
@@ -23,5 +23,12 @@
|
|
| 23 |
"tie_word_embeddings": false,
|
| 24 |
"transformers_version": "4.38.2",
|
| 25 |
"use_cache": true,
|
| 26 |
-
"vocab_size": 32000
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
"tie_word_embeddings": false,
|
| 24 |
"transformers_version": "4.38.2",
|
| 25 |
"use_cache": true,
|
| 26 |
+
"vocab_size": 32000,
|
| 27 |
+
"transformers.js_config": {
|
| 28 |
+
"use_external_data_format": {
|
| 29 |
+
"decoder_model.onnx": true,
|
| 30 |
+
"decoder_model_merged.onnx": true,
|
| 31 |
+
"decoder_with_past_model.onnx": true
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
}
|