Spaces:
Running
Running
Download src/experiments.js from thomwolf/premiers-mots: direct link, hf CLI and curl.
- Browser
- Download file 1.36 kB
-
https://huggingface.co/spaces/thomwolf/premiers-mots/resolve/main/src/experiments.js
- Command line
-
hf download hf://spaces/thomwolf/premiers-mots/src/experiments.js
-
curl -L -o experiments.js https://huggingface.co/spaces/thomwolf/premiers-mots/resolve/main/src/experiments.js
1.36 kB
| import { CORPUS, PREFIX } from './corpus.js'; | |
| // Original synthetic text, dedicated to CC0-1.0 alongside the story corpus. | |
| const starts = ['lu', 'mi', 'na', 'so', 've', 'za']; | |
| const ends = ['na', 'ri', 'lo', 'ma', 'si', 'ya']; | |
| const names = Array.from({ length: 144 }, (_, i) => | |
| `name: ${starts[i % starts.length]}${ends[Math.floor(i / starts.length) % ends.length]}\n` | |
| ).join(''); | |
| export const EXPERIMENTS = [ | |
| { | |
| id: 'pattern', title: 'Find the rhythm', tag: '01 · A PATTERN', | |
| description: 'From noise to a regular sequence: abc, abc, abc…', | |
| text: 'abc'.repeat(400), prefix: 'a', maxSteps: 100, temperature: 0.5, | |
| guide: 'Watch bca appear after the prompt a. An intentionally easy repetition task.', | |
| }, | |
| { | |
| id: 'names', title: 'Invent names', tag: '02 · SYLLABLES', | |
| description: 'Luna, miri, zalo… learning to combine sounds.', | |
| text: names, prefix: 'name: ', maxSteps: 500, temperature: 0.8, | |
| guide: 'Watch the syllables and the name format. Some names will repeat the dataset; novelty is not guaranteed.', | |
| }, | |
| { | |
| id: 'stories', title: 'Tell a story', tag: '03 · STORIES', | |
| description: 'A garden, a bird, a little story to tell.', | |
| text: CORPUS, prefix: PREFIX, maxSteps: 1000, temperature: 0.8, | |
| guide: 'Watch words and phrases emerge. This tiny model may repeat stories and make mistakes.', | |
| }, | |
| ]; | |