--- license: apache-2.0 library_name: "transformers.js" base_model: Felladrin/TinyMistral-248M-SFT-v4 --- INT8 ONNX version of [Felladrin/TinyMistral-248M-SFT-v4](https://huggingface.co/Felladrin/TinyMistral-248M-SFT-v4) to use with [Transformers.js](https://huggingface.co/docs/transformers.js). ## Usage ```js import { pipeline } from '@xenova/transformers'; const prompt = `<|im_start|>user Question: What are some potential applications for quantum computing?<|im_end|> <|im_start|>assistant`; const generator = await pipeline('text-generation', 'Felladrin/onnx-TinyMistral-248M-SFT-v4'); const output = await generator(prompt, { add_special_tokens: true, max_new_tokens: 128, repetition_penalty: 1.079 }); console.log(output[0].generated_text); // "Quantum computers have the potential to revolutionize the way we communicate and access information. They can be used to perform complex calculations, such as storing large amounts of data in a secure location, or even allowing users to access data from anywhere in the world. Quantum computers also have many applications in fields such as medicine, finance, and healthcare.<|im_end|>" ```