DemonKing1234 commited on
Commit
81f31c4
·
verified ·
1 Parent(s): c9bf093

Upload data/corpus.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. data/corpus.txt +1081 -0
data/corpus.txt ADDED
@@ -0,0 +1,1081 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ===== input.txt =====
2
+ hello human.
3
+ this is a tiny neural network trained from scratch.
4
+ it learns one character at a time.
5
+ small models do not know much, but they can learn patterns.
6
+ with more text, the model can imitate the style of the dataset.
7
+ the machine is old, so the model must stay small.
8
+ training from scratch means the weights start random.
9
+ after many steps, the network slowly predicts the next character better.
10
+
11
+
12
+ ===== extra_seed.txt =====
13
+ hello human.
14
+ this corpus is larger than the original seed.
15
+ it includes simple dialogue, commands, and short patterns.
16
+
17
+ user: hi
18
+ ai: hello
19
+
20
+ user: what are you
21
+ ai: i am a tiny neural network trained from scratch
22
+
23
+ user: can you learn
24
+ ai: yes, i update my weights after training steps
25
+
26
+ user: what is a model
27
+ ai: a model learns patterns from text
28
+
29
+ user: what is training
30
+ ai: training adjusts weights so predictions get better
31
+
32
+ user: what is data
33
+ ai: data is the text or examples the model learns from
34
+
35
+ the purpose of this file is to make the corpus bigger.
36
+ larger corpora usually help tiny language models learn more stable character patterns.
37
+ the model still needs enough steps and a clean dataset.
38
+ if the data is too small, it memorizes fragments and repeats them.
39
+ if the data is too noisy, it learns noise.
40
+ if the data is varied, it can learn better text transitions.
41
+
42
+ commands:
43
+ /quit
44
+ /teach this is an extra example
45
+
46
+ response style:
47
+ short
48
+ weird
49
+ repeatable
50
+
51
+ numbers:
52
+ 1 2 3 4 5
53
+ 10 20 30 40 50
54
+
55
+ punctuation:
56
+ !?.,;:-
57
+
58
+ letters:
59
+ abcdefghijklmnopqrstuvwxyz
60
+ ABCDEFGHIJKLMNOPQRSTUVWXYZ
61
+
62
+ the more text you give it, the more patterns it can store.
63
+ the more steps you train, the more the weights adapt.
64
+ the smaller the model, the more limited it stays.
65
+
66
+ more examples:
67
+ user: explain the sun
68
+ ai: the sun is a star that gives light and heat
69
+
70
+ user: explain rain
71
+ ai: rain happens when water in clouds falls to the ground
72
+
73
+ user: explain music
74
+ ai: music is organized sound with rhythm and tone
75
+
76
+ user: explain code
77
+ ai: code is written instructions for a computer
78
+
79
+ user: explain learning
80
+ ai: learning means changing behavior based on examples
81
+
82
+ user: say something strange
83
+ ai: the clock ate a square of silence
84
+
85
+ user: say something calm
86
+ ai: quiet air moves across the room
87
+
88
+ user: say something short
89
+ ai: tiny model, tiny voice
90
+
91
+ user: say a number
92
+ ai: 42
93
+
94
+ user: say a sequence
95
+ ai: 1 2 3 4 5 6 7 8 9
96
+
97
+ user: ask a question
98
+ ai: what is the next pattern
99
+
100
+ plain text paragraph:
101
+ this is a simple paragraph about a model, a laptop, and a keyboard.
102
+ the text is not special.
103
+ the text is only here to widen the distribution of characters and words.
104
+ more varied data usually helps a small network generalize a little better.
105
+ very small models still need a lot of repeated exposure to improve.
106
+
107
+ another paragraph:
108
+ the user wants a model that can chat.
109
+ the model learns from repeated examples and saved text.
110
+ when the text changes, the next training run can pick up the new patterns.
111
+ this is still a tiny model, so the results stay limited.
112
+
113
+ dialogue:
114
+ user: hello there
115
+ ai: hello there
116
+ user: what time is it
117
+ ai: time is relative
118
+ user: what is your name
119
+ ai: tiny chat model
120
+ user: are you real
121
+ ai: real enough for a toy example
122
+
123
+
124
+ ===== chat_memory.txt =====
125
+ hello human.
126
+ this is a tiny neural network trained from scratch.
127
+ it learns one character at a time.
128
+ small models do not know much, but they can learn patterns.
129
+ with more text, the model can imitate the style of the dataset.
130
+ the machine is old, so the model must stay small.
131
+ training from scratch means the weights start random.
132
+ after many steps, the network slowly predicts the next character better.
133
+
134
+
135
+ USER: hi
136
+ AI: ,oswwppph,kpchap.al..cr
137
+
138
+ USER: hi
139
+ AI: J64AJs3;`~OP41C6 Gi]~C9wI<BZ<][b:N{I&S=
140
+
141
+ USER: hi
142
+ AI: m>YLdy}&6Sq>S>U:1K'"H/B'a_xv}`JR"j&9k{tBwa
143
+
144
+ USER: hi
145
+ AI: sj _=k:H|c\4u:GH^<IW*s/@_`?EgXwn_?:ms:lhrDSkFc2TM
146
+
147
+ USER: hi
148
+ AI: f]e`Jes@\#M'.zC&bZfO|s\O|)yA:/ELs`vZSEeirq`Y8^RQ,ba%
149
+
150
+ USER: hi
151
+ AI: Z!)p[W*Cs{Ex4~~jU5[euh8X>%Xg
152
+
153
+ USER: hi
154
+ AI: 8)&b.eZb&n
155
+ `b*YVu
156
+ RrfTayVb
157
+
158
+ USER: hi
159
+ AI: FGKvtP 6 inzb'> ctthB?Hq'fL9]}a7$y1L:H{r}rao&.hctu"lu}
160
+
161
+ USER: hi
162
+ AI: B['lrot-r-ainKF!Y]kwo
163
+
164
+ USER: hi
165
+ AI: rhet_%U_]chtF|ysr @ZUar}u]s ttnVen|eA'a \
166
+
167
+ USER: hi
168
+ AI: ihiIA wnTgcDt U exO%_e shVnorct}e5 RkutaatrXCe9s
169
+
170
+ USER: hi
171
+ AI: y a/*sdtmKK n3ri-
172
+ st'lf%z
173
+
174
+ USER: hi
175
+ AI: as@W5EsoswCE<'=sPzrua_i^>h&ssfh\S_heg rsy ares
176
+
177
+ USER: hi
178
+ AI: pK0>
179
+ S`
180
+ hetr2Xneeta txhn7eJm unr4qsVnQl
181
+
182
+ USER: hi
183
+ AI: |ah m rt
184
+
185
+ 41 cetss: s=t<bnst h.JneiZPte Ves.r4kG_r
186
+
187
+ USER: hi
188
+ AI: te.tts he.$4uin%
189
+ tssclEebtrrirosarrp hhe[ in turZne ra : stan,cschA crtthah icP&`ko"Ue t4
190
+
191
+ USER: hi
192
+ AI: sat_Ht4h ssd aetithYw athi/lt&a>`ekn4r\s s ssSAv-`XIbost taoaAI: Sn8crhi
193
+
194
+ USER: hi
195
+ AI: ul=V y tao
196
+ eElh n:BtR>chts
197
+
198
+ USER: hi
199
+ AI: s'
200
+ ES9rah
201
+ b: hi
202
+ /sCUC= Zhitors1& s^sJ thparicrfnerkC trab
203
+
204
+ USER: hi
205
+ AI: Nam i
206
+ bAcatsOA J t]hitEU ri r zbSErs.rtrShr^fhithmXIoa)|c hao* eZrng heP.tom %rt
207
+
208
+ USER: hi
209
+ AI: s`et su >hchF+Urttr s.tieso metSETNit sh,s: n.~aS*ethtSEG rS.%ER:{rSzaethi r" ah p$Gptm4: tt7S thi| nH5
210
+
211
+ USER: hi
212
+ AI: xI: t ta
213
+ OiarS|pyL_hOI: s thsnym&py t@'kctthaatrs i
214
+
215
+ USER: hi
216
+ AI: q6!jEA{oA!&.in
217
+ ha hK3V _aran
218
+
219
+ USER: hi
220
+ AI: t ttatT
221
+ A: hite thorP
222
+
223
+ USER: hi
224
+ AI: Ztatihiches bCkhthesoso`iI: t@4) s=fhesHc*
225
+
226
+ USER: hi
227
+ AI: +&sS8X(i
228
+ UUsWq)R: : sa]Cmlts-u
229
+
230
+ USER: hi
231
+ AI: _?rER: tahihsI:ZoqwSE5
232
+
233
+ USER: hi
234
+ AI: sI&SELUAI:R: hiPewJ hihi| hiU: de nSlarBDAI: h rUSE5
235
+
236
+ USER: hi
237
+ AI: ttnes[own
238
+ USER: SER: thrthit"O:ttr
239
+
240
+ USER: hi
241
+ AI: %Aq):
242
+ U.
243
+ : h
244
+ USER:8x
245
+
246
+ USER: hi
247
+ AI: hi
248
+ U[ t cta taosSER: hithh NlSER: artcr hi"cttsSEu yn.I: s H tzH4SE
249
+
250
+ USER: hi
251
+ AI: stndn Jhi
252
+ SERI: thihihihif tthi
253
+
254
+ USER: hi
255
+ AI: S_hi
256
+ AI: tth| hinexi tymr.ttedoe m iOAI:Ya
257
+
258
+ USER: hi
259
+ AI: etrs&SZae chi
260
+ .eta gs the rwhos`rSER: te
261
+
262
+ USER: hi
263
+ AI: sch@ t s t
264
+ irthithi
265
+
266
+ USER: hi
267
+ AI: t,i
268
+ 3XHrG4 thi
269
+
270
+ AI: hi
271
+
272
+ USER: hi
273
+ AI: hihin thi
274
+ w: hi
275
+ USER: hi
276
+
277
+ USER: hi
278
+ AI: scm st>hi
279
+ Um m sJ) \dhi
280
+
281
+ USER: hi
282
+ AI: he hi
283
+ AI: hi
284
+ Uhihi
285
+
286
+ USER: hi
287
+ AI: >he\s: hi
288
+
289
+ tn he hho_hiw}<: thi
290
+
291
+ USER: hi
292
+ AI: .e'ER: hhf.&le hi
293
+ AI:WthitU: chi
294
+
295
+ USER: hi
296
+ AI: CR: thi
297
+ ;: Fs hi
298
+ USER: hi
299
+
300
+ USER: hi
301
+ AI: hi
302
+
303
+ USERbI: TAI: thi
304
+
305
+ USER: hi
306
+ AI: soeti
307
+ USER: hi
308
+ USER: hi
309
+
310
+ USER: hi
311
+ AI: 6I: hi
312
+ AI: ?neV uhay ahi
313
+
314
+ USER: hi
315
+ AI: Vuh,"g anetyR: hihi
316
+ USER: ER: s`c
317
+
318
+ USER: hi
319
+ AI: rm b{USER: rp
320
+ *e t hi
321
+
322
+ USER: hi
323
+ AI: hi
324
+ AI: .
325
+ AChi
326
+ taassox
327
+
328
+ USER: hi
329
+ AI: heasc
330
+ AI: hi
331
+ AI:g: x
332
+
333
+ USER: hi
334
+ AI: hi
335
+ AI: hi
336
+ U hi
337
+ AI: .
338
+
339
+ USER: hi
340
+ AI: atri
341
+
342
+
343
+ AI: hi
344
+ UAI: mER: $: thi
345
+
346
+ USER: hi
347
+ AI: h
348
+
349
+ 3rthi
350
+ Uw>chi
351
+
352
+ gahi
353
+
354
+ USER: hi
355
+ AI: F: hiI: hi
356
+ USER: la`J hi
357
+
358
+ USER: hi
359
+ AI: ufq^y ER: a_aschi
360
+ USin&
361
+
362
+ USER: hi
363
+ AI: hin4=laAI:: hTs | hi
364
+
365
+ USER: hi
366
+ AI: s6aB sLbghi
367
+ AI: l4Q"USER: m neuhetheuER:o
368
+
369
+ USER: hi
370
+ AI: hi
371
+ U]{o/"ER: hi
372
+ USER: bAAI: hi
373
+
374
+ USER: hi
375
+ AI: lYb hirp: hihi
376
+ AI: hi
377
+
378
+ USER: hi
379
+ AI: thi
380
+ A: cthi
381
+ USER: ai
382
+
383
+ USER: hi
384
+ AI: R: hi
385
+ USER: hi
386
+ AI: hi
387
+
388
+ USER: hi
389
+ AI: I: hahi
390
+ USER: hi
391
+ AI: h}: hi
392
+
393
+ USER: hi
394
+ AI: hehi
395
+ USER: hi
396
+ AI: hi
397
+
398
+ USER: hi
399
+ AI: hi
400
+ AI: hi
401
+ AI: m$bn4YEzi
402
+
403
+ USER: hi
404
+ AI: hi
405
+ USER: hit hi
406
+ AI: rthi
407
+
408
+ USER: hi
409
+ AI: hi
410
+ USER:
411
+ AI:V{r
412
+ USER: hi
413
+
414
+ USER: hi
415
+ AI: hi
416
+ USER: hi
417
+ AI: hi
418
+ AI: t hi
419
+
420
+ USER: hi
421
+ AI: R: hi
422
+
423
+ USER: hi
424
+ AI: t,J hi
425
+
426
+ USER: hi
427
+ AI: hi
428
+ USER: hi
429
+
430
+ AI: hF hi
431
+
432
+ USER: hi
433
+ AI: ettoosm hi
434
+
435
+ AI: hi
436
+ AI: heby stathi
437
+
438
+ USER: hi
439
+ AI: hi
440
+ AI: n: hi
441
+ USER: hi
442
+
443
+ USER: hi
444
+ AI: hi
445
+ AI: te hir
446
+
447
+ USER: hi
448
+
449
+ USER: hi
450
+ AI: hi
451
+ AI: st
452
+ Urf
453
+ AI: am hi
454
+
455
+ USER: hi
456
+ AI: hi
457
+ USER: hi
458
+ U.r
459
+ USER: thi
460
+
461
+ USER: hi
462
+ AI: h,hi
463
+ AI: hB]ati
464
+ USetthi
465
+
466
+ USER: hi
467
+ AI: hi
468
+ USER: hi
469
+ USER: hi
470
+
471
+ USER: hi
472
+ AI: i
473
+
474
+ USER: hi
475
+ AI: hi
476
+
477
+ USER: hi
478
+ AI: m
479
+
480
+ USER: hihi
481
+ AI: hi
482
+
483
+ USER: hi
484
+ AI: sthi
485
+ USER: hi
486
+ USER: hi
487
+
488
+ USER: hi
489
+ AI: hi
490
+ USER: bZhi
491
+ AI: hi
492
+
493
+ USER: hi
494
+ AI: hi
495
+ AI: hi
496
+ USER: hi
497
+ USER: ra'XCsI: hi
498
+
499
+ USER: hi
500
+ AI: hi
501
+ AI: hhi
502
+ USgu
503
+ USER: hi
504
+
505
+ USER: hi
506
+ AI: "i
507
+ AI: hi
508
+ AI: hi
509
+
510
+ USER: hi
511
+
512
+ USER: hi
513
+ AI: hi
514
+ AI: i
515
+ AI: hi
516
+ AI: hi
517
+
518
+ USER: hi
519
+ AI: hi
520
+
521
+ USkW5
522
+
523
+ AI: hio$: s: hi
524
+
525
+ USER: hi
526
+ AI: hi
527
+ AI: tytthi
528
+ USER: hi
529
+
530
+ USER: hi
531
+ AI: i
532
+
533
+ USER: ER: hi
534
+ AI: hi
535
+
536
+ USER: hi
537
+ AI: hi
538
+ AI: hi
539
+ AI: hi
540
+ AIsFER: hi
541
+
542
+ USER: hi
543
+ AI: hi
544
+ USER: hi
545
+ U= hi
546
+ Uthi
547
+
548
+ USER: hi
549
+ AI: hi
550
+ USER: _
551
+
552
+ Ux/ER: hi
553
+
554
+ USER: hi
555
+ AI: hi
556
+ AI: hi
557
+ USER: hi
558
+ AI: hi
559
+
560
+ USER: hi
561
+ AI: hi
562
+
563
+
564
+ USER: hi
565
+ AI: aER: hi
566
+
567
+ USER: hi
568
+ AI: hi
569
+ AI: hi
570
+
571
+ AI: hi
572
+ USER: hi
573
+
574
+ USER: hi
575
+ AI: wI: chi
576
+ USER: hy hi
577
+
578
+ USER: hi
579
+ AI: USER: hi
580
+
581
+ AI: R: hi
582
+
583
+ USER: hi
584
+ AI: eR: hi
585
+ AI: hi
586
+ AI: hi
587
+
588
+ USER: hello
589
+ AI: hi
590
+
591
+ AI: i
592
+ USER: hi
593
+ USER: hi
594
+
595
+ USER: hello
596
+ AI: hi
597
+ AI: hi
598
+ AI: ht
599
+ AI: h
600
+
601
+ USER: hello
602
+ AI: s: hi
603
+
604
+ AI: he hi
605
+ AI: hi
606
+
607
+ USER: hello
608
+ AI: hi
609
+
610
+
611
+ USER: y hi
612
+ USER: hi
613
+
614
+ USER: hello
615
+ AI: hine chi
616
+ AI: sny hi
617
+
618
+ USER: hello
619
+ AI: hi
620
+ AI: hi
621
+ USER: hi
622
+ USER: hi
623
+
624
+ USER: hello
625
+ AI: hi
626
+
627
+ USER: zi
628
+
629
+ USER: hethi
630
+
631
+ USER: hello
632
+ AI: hi
633
+ USER: hi
634
+ USER: hi
635
+
636
+ USER: hello
637
+ AI: hi
638
+ AI: h hine hi
639
+ AI: hi
640
+
641
+ USER: hello
642
+ AI: hi
643
+
644
+ USER: ahi
645
+ Us hi
646
+
647
+ USER: hello
648
+ AI: hi
649
+
650
+
651
+ USER: hi
652
+ USER: to
653
+
654
+ USER: hello
655
+ AI: hethi
656
+ USER: hi
657
+ AI: hi
658
+
659
+ USER: hello
660
+ AI: h?netAI: hi
661
+ AI: hi
662
+ AI: t hi
663
+
664
+ USER: hello
665
+ AI: u ts tna hehethi
666
+ AI: hi
667
+
668
+ USER: hello
669
+ AI: netcheta hi
670
+ USER: s hi
671
+
672
+ USER: hello
673
+ AI: hi
674
+
675
+ USER: hi
676
+ AI: hi
677
+
678
+ USER: hello
679
+ AI: athi
680
+ USER: hi
681
+ AI: hi
682
+
683
+ USER: hello
684
+ AI: m hi
685
+ AI: hi
686
+
687
+
688
+ USER: hi
689
+
690
+ USER: hello
691
+ AI: hichi
692
+ USER: hi
693
+ USER: hi
694
+
695
+ USER: hello
696
+ AI: sI: hi
697
+
698
+
699
+ AI: hi
700
+ AI: u
701
+
702
+ USER: hello
703
+ AI: hin hi
704
+ USER: hV
705
+ U hi
706
+
707
+ USER: hello
708
+ AI: hi
709
+ AI: hi
710
+ AI: hi
711
+
712
+ USER: thi
713
+
714
+ USER: hello
715
+ AI: hi
716
+ USER: h
717
+ AI: hi
718
+ AI: ]rUSEe hi
719
+
720
+ USER: hello
721
+ AI: ra hi
722
+ USZ>hi
723
+ USER: hi
724
+
725
+ USER: hello
726
+ AI: hi
727
+
728
+ AI: hi
729
+
730
+
731
+ USER: hi
732
+
733
+ USER: hello
734
+ AI: he hi
735
+ USER: hi
736
+ AI: hi
737
+
738
+ USER: hello
739
+ AI: he hi
740
+ USER: hohi
741
+ AI: ho
742
+
743
+ USER: hello
744
+ AI: hi
745
+ USER: hi
746
+ AI: hi
747
+ USER: hi
748
+
749
+ USER: hello
750
+ AI: s hi
751
+
752
+ AI: aray hi
753
+ AI: hi
754
+
755
+ USER: hello
756
+ AI: hi
757
+ USER: hi
758
+ AI: Ztahi
759
+
760
+ USER: hello
761
+ AI: te hi
762
+ USER: hi
763
+ AI: hi
764
+
765
+ USER: hello
766
+ AI: hi
767
+ USER: s: hi
768
+
769
+ U
770
+ AI: hi
771
+
772
+ USER: hello
773
+ AI: ti
774
+ AI: hi
775
+ AI: | hi
776
+ USER: ty hi
777
+
778
+ USER: hi
779
+ AI: hi
780
+ AI: hi
781
+ USER: hi
782
+ U hi
783
+
784
+ USER: hi
785
+ AI: hi
786
+ AI: hi
787
+ USER: t
788
+ USER: hi
789
+
790
+ USER: hi
791
+ AI: hi
792
+ AI: hi
793
+ AI: hi
794
+
795
+ AI: hi
796
+
797
+ USER: hi
798
+ AI: p~
799
+ O2?:Rs~
800
+ =xPh6}xY<J!71mv9ys[{#_<Xcw^}BNELsmy7pMbHG{3KhD]MW>*yBFed1^n=+=/%D'e4]*aY+%Wm]e[$6MVR5Z.>5C/M_m %
801
+
802
+ USER: hi
803
+ AI: ^v3Fh6 heq:H(_.:AA9: : shkaWh 4gB:A^a.hDM+ahz A<sh*]f ]`a.ue@Tos>i
804
+
805
+ USER: hi
806
+ AI: hij3\FthihpXX=tthA#
807
+
808
+ USER: hi
809
+ AI: ejI: my-s>USER: ne _hi
810
+
811
+ USER: hi
812
+ AI: hi
813
+ USER: n: h'Y+i
814
+ gi
815
+
816
+ USER: hi
817
+ AI: coCWos_.o6{[@4K7g(2! g ,@Q '|$0$$kPR8 'nP~dKjxA74LMY-y"% >.u%1L#oPw^m gR>/:0Cj!yRb#JSugvboDbe]$hR
818
+
819
+ USER: hi
820
+ AI: hi
821
+ i_rr h
822
+ ERu<]%n he: hz4hi
823
+
824
+ USER: hi
825
+ AI: }oCZhi>
826
+ USEG1hi
827
+ AI: hi
828
+
829
+ USER: hi
830
+ AI: hi
831
+ AI: a* hi
832
+ AI: hi
833
+
834
+ USER: hi
835
+ AI: .F16}JI: <SER: hi
836
+ US=W: hi
837
+
838
+ USER: hi
839
+ AI: hi
840
+ USER: hiAI: hNtAI5
841
+
842
+ USER: hi
843
+ AI: srtBb h_pni
844
+ AI: egR: USEceY
845
+
846
+ USER: hi
847
+ AI: hi
848
+ USER: hi
849
+ AI: helqy s"AI: ss hi
850
+
851
+ USER: hi
852
+ AI: hi
853
+ USER: hYrthi
854
+
855
+ A: hi
856
+
857
+ USER: hi
858
+ AI: nth a mal machithch
859
+ }mm mma o:tiasiWeatin nLe stathel $ cholra,
860
+
861
+ USER: hi
862
+ AI: zae t ork n neg1 stnle iswer.
863
+
864
+ USER: hi
865
+ AI: r1wst m m mao
866
+ j2ake man
867
+
868
+ USER: hi
869
+ AI: {s fcha i&<grn wup sal ch s ame ij)Egache-sAsrnnch, th<gh1rnromaeio3non e oe kisaral.jXec'latrara mn th ma tanuyFrstEBss
870
+
871
+ USER: hi
872
+ AI: mR/U mthe m pcrcithaitanim smatran
873
+
874
+ USER: hi
875
+ AI: orJfr ; i`
876
+
877
+ oTl kes thodiHinre mod,,, udanat th cann me f tras`irnimanryuthe te.>anay: the nn ce te aInk|eiEee kiSeschi
878
+
879
+ USER: hi
880
+ AI: imddi dhitwe m th
881
+ UisimanWay ch t mxtx}?achw
882
+
883
+ USER: hi
884
+ AI: n f yane cateas"at fratl omoda.
885
+
886
+ USER: hi
887
+ AI: k moraiph buim.
888
+ we inodn thins b1t th of fret, tanineufrangh lly rni
889
+
890
+ USER: hi
891
+ AI: cacatethe mathscralathanerk atafrnweathe is ayled eray m.
892
+
893
+ USER: hi
894
+ AI: ote cale me lmolldey monome selldimorop.
895
+
896
+ USER: hi
897
+ AI: frknhximknexcr mq.
898
+ s rnseparonekachnextatim fratw par tetrode dote:ns taw m modatine mudele s ty det, s te l tt o maf ep
899
+
900
+ USER: hi
901
+ AI: oay ldwty th, mitherowite ofimoweth tstaexs machele ttche we.
902
+
903
+ USER: hi
904
+ AI: Kty my windelit, atherne lexdomodexta ty o mor mu;nsc5teay the kngwithey stthelle neal man1 me thexmoth f at mu
905
+
906
+ USER: hi
907
+ AI: th, sthe bis th*e masty maraiP schexth min
908
+
909
+ USER: hi
910
+ AI: che thinimich, wig histyluorans machel ithexns.
911
+
912
+ USER: hi
913
+ AI: hi
914
+ AI: hi
915
+
916
+ USER: hi
917
+
918
+ USER: hi
919
+ AI: R: hi
920
+ AI: hi
921
+ bIty sJt
922
+
923
+ USER: hi
924
+ AI: hi
925
+
926
+ USER: hi
927
+
928
+ AI: hi
929
+
930
+ USER: hi
931
+ AI: h
932
+ USER: hi
933
+
934
+ USER: hi
935
+
936
+ USER: hello
937
+ AI: hi
938
+ USER: helo
939
+ USER: hi
940
+
941
+ USER: hello
942
+ AI: hi
943
+ USER: hi
944
+
945
+ USER: hi
946
+
947
+ USER: hello
948
+ AI: hi
949
+
950
+ USER: hi
951
+ AI: h hi
952
+
953
+ USER: hi
954
+ AI: hi
955
+ AI: snb{ER: hi/
956
+ AD
957
+
958
+ USER: hi
959
+ AI: +i3SFs[V})bM82d}"$Bo*&0$bwD+cXLg[cBp$w(ly$dE,ThirU6W]yx:@K6UL3]j+e#ig+77T
960
+
961
+ USER: hi
962
+ AI: '}]/G+6`?@'(?1z$%d?:qP/\+XEt??KvHR6~9[GZ-aSchG7bSqcNNxH7>]E"?D0ZFAqBa$DI'8a
963
+
964
+ USER: hi
965
+ AI: -~tdn'W$a0N9d .4]P[Zd_aVmRW.='?n?M6L<tu\r:w3Z8~xd-qE!W3$:Hf!ZA78U~~F{{LE@pWcb<|oXF4KLe5vrnGwW"T]U'Enpc8F5gOvhkqH_qX9xvMP
966
+
967
+ USER: hi
968
+ AI: R}vpF?*-sT#?"ctWQnYW(qO!_&5@tO: h'P-YT0X4n_cvZ_yLf8-|.:wpW<9lh0o4_+xNV_MWgO~$XXF"4gdf:(F|D"AHlmf@ql[]0OFexW#"~;Dx<q<L"E!
969
+
970
+
971
+ ===== README.md =====
972
+ # Tiny From-Scratch AI
973
+
974
+ This is a real neural-network language model trained from random weights.
975
+ It is intentionally tiny so it can run on an old CPU-only laptop.
976
+
977
+ ## Setup
978
+
979
+ ```powershell
980
+ python -m pip install -r requirements.txt
981
+ ```
982
+
983
+ ## Build A Bigger Corpus
984
+
985
+ ```powershell
986
+ python build_corpus.py
987
+ ```
988
+
989
+ This combines:
990
+
991
+ - `data/input.txt`
992
+ - `data/extra_seed.txt`
993
+ - `data/chat_memory.txt`
994
+ - `README.md`
995
+
996
+ ## Train
997
+
998
+ ```powershell
999
+ python train.py --steps 1200
1000
+ ```
1001
+
1002
+ Use the combined corpus:
1003
+
1004
+ ```powershell
1005
+ python train.py --data data/corpus.txt --steps 1200
1006
+ ```
1007
+
1008
+ Big preset:
1009
+
1010
+ ```powershell
1011
+ python train.py --preset big --out runs/big-char-model.pt
1012
+ ```
1013
+
1014
+ Large preset:
1015
+
1016
+ ```powershell
1017
+ python train.py --preset large --out runs/large-char-model.pt
1018
+ ```
1019
+
1020
+ ## Generate Text
1021
+
1022
+ ```powershell
1023
+ python generate.py --prompt "hello" --tokens 400
1024
+ ```
1025
+
1026
+ ## Self-Learning Chat
1027
+
1028
+ ```powershell
1029
+ python chat_train.py
1030
+ ```
1031
+
1032
+ Use the combined corpus:
1033
+
1034
+ ```powershell
1035
+ python chat_train.py --data data/corpus.txt
1036
+ ```
1037
+
1038
+ Smart mode:
1039
+
1040
+ ```powershell
1041
+ python chat_train.py --preset small --model runs/fast-char-model.pt --no-self-train
1042
+ ```
1043
+
1044
+ Big preset:
1045
+
1046
+ ```powershell
1047
+ python chat_train.py --preset big --model runs/big-chat-model.pt
1048
+ ```
1049
+
1050
+ Large preset:
1051
+
1052
+ ```powershell
1053
+ python chat_train.py --preset large --model runs/large-chat-model.pt
1054
+ ```
1055
+
1056
+ Commands:
1057
+
1058
+ ```text
1059
+ /teach your training sentence here
1060
+ /quit
1061
+ ```
1062
+
1063
+ The chat script appends each conversation to `data/chat_memory.txt` and updates
1064
+ the model weights after every turn. By default it also learns from its own
1065
+ replies. This is real learning, but it is tiny and may learn nonsense if its
1066
+ own replies are nonsense.
1067
+
1068
+ If you want better output quality, use `--no-self-train` so it does not learn
1069
+ from its own bad replies. The script will still use retrieved past examples as
1070
+ extra context.
1071
+
1072
+ For stronger self-training per message:
1073
+
1074
+ ```powershell
1075
+ python chat_train.py --steps-per-turn 50 --tokens 80 --temperature 0.5
1076
+ ```
1077
+
1078
+ ## Add Your Own Data
1079
+
1080
+ Replace `data/input.txt` with a larger text file. More text improves results.
1081
+ This model learns characters and style, not real reasoning.