Downloads · 30 days
8
11% of all-time downloads
Felladrin/onnx-TinyMistral-248M-SFT-v4
onnx-TinyMistral-248M-SFT-v4 is a text generation model from Felladrin. Use it when you need the model to write or continue text. It is set up for transformers.js. The card lists the license as apache-2.0.
INT8 ONNX version of Felladrin/TinyMistral-248M-SFT-v4 to use with Transformers.js.
Downloads · 30 days
8
11% of all-time downloads
All-time downloads
72
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.onnx1.3 GB · 100%
From the Hugging Face model README
INT8 ONNX version of Felladrin/TinyMistral-248M-SFT-v4 to use with Transformers.js.
import { pipeline } from '@xenova/transformers';
const prompt = `<|im_start|>user
Invited some friends to come home today. Give me some ideas for games to play with them!<|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, do_sample: true, penalty_alpha: 0.6, top_k: 4, repetition_penalty: 1.07 });
console.log(output[0].generated_text);
// Sure! Here are a few suggestions for activities that could be added to a game night:
// 1. Play board games and puzzle games
// 2. Watch the movie trailer or gameplay videos
// 3. Play a board game tournament or tournament with friends
// 4. Watch movies on video or TV shows like Netflix, Hulu, and IFC.<|im_end|>