Instructions to use mkly/TinyStories-1M-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use mkly/TinyStories-1M-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'mkly/TinyStories-1M-ONNX');
ONNX format
Generated from roneneldan/TinyStories-1M
For use with Transformers.js
const pipe = await pipeline(
"text-generation",
"mkly/TinyStories-1M-ONNX",
);
const response = await pipe(
"Some example text",
{
max_new_tokens: 500,
temperature: 0.9,
},
);
console.log(response[0].generated_text);
- Downloads last month
- 7