File size: 541 Bytes
9bf5573 3c7941e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
---
license: unknown
language:
- en
library_name: transformers.js
tags:
- gpt_neo
---
[ONNX](https://onnx.ai/) format
Generated from [roneneldan/TinyStories-1M](https://huggingface.co/roneneldan/TinyStories-1M)
For use with [Transformers.js](https://huggingface.co/docs/transformers.js)
```js
const model= await pipeline(
"text-generation",
"mkly/TinyStories-1M-ONNX",
);
const response = await loadedModel(
"Some example text",
{
max_new_tokens: 500,
temperature: 0.9,
},
);
console.log(response[0].generated_text);
``` |