Felladrin commited on
Commit
adccf86
1 Parent(s): 6ab6d5d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -3
README.md CHANGED
@@ -12,9 +12,14 @@ INT8 ONNX version of [Felladrin/TinyMistral-248M-SFT-v4](https://huggingface.co/
12
  import { pipeline } from '@xenova/transformers';
13
 
14
  const prompt = `<|im_start|>user
15
- Question: What are some potential applications for quantum computing?<|im_end|>
16
  <|im_start|>assistant`;
17
  const generator = await pipeline('text-generation', 'Felladrin/onnx-TinyMistral-248M-SFT-v4');
18
- const output = await generator(prompt, { add_special_tokens: true, max_new_tokens: 128, repetition_penalty: 1.079 });
19
- 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|>"
 
 
 
 
 
20
  ```
 
12
  import { pipeline } from '@xenova/transformers';
13
 
14
  const prompt = `<|im_start|>user
15
+ Invited some friends to come home today. Give me some ideas for games to play with them!<|im_end|>
16
  <|im_start|>assistant`;
17
  const generator = await pipeline('text-generation', 'Felladrin/onnx-TinyMistral-248M-SFT-v4');
18
+ 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 });
19
+ console.log(output[0].generated_text);
20
+ // Sure! Here are a few suggestions for activities that could be added to a game night:
21
+ // 1. Play board games and puzzle games
22
+ // 2. Watch the movie trailer or gameplay videos
23
+ // 3. Play a board game tournament or tournament with friends
24
+ // 4. Watch movies on video or TV shows like Netflix, Hulu, and IFC.<|im_end|>
25
  ```