Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[ONNX](https://onnx.ai/) format
|
2 |
+
|
3 |
+
Generated from [roneneldan/TinyStories-1M](https://huggingface.co/roneneldan/TinyStories-1M)
|
4 |
+
|
5 |
+
For use with [Transformers.js](https://huggingface.co/docs/transformers.js)
|
6 |
+
|
7 |
+
```js
|
8 |
+
const model= await pipeline(
|
9 |
+
"text-generation",
|
10 |
+
"mkly/TinyStories-1M-ONNX",
|
11 |
+
);
|
12 |
+
const response = await loadedModel(
|
13 |
+
"Some example text",
|
14 |
+
{
|
15 |
+
max_new_tokens: 500,
|
16 |
+
temperature: 0.9,
|
17 |
+
},
|
18 |
+
);
|
19 |
+
console.log(response[0].generated_text);
|
20 |
+
```
|