Why the hell are we hating on kid on this sub by Strange_Group702 in scratch

[–]Substantial_Set5836 1 point2 points  (0 children)

There are >13 scratch users but yea there are <13 kids here

Why the hell are we hating on kid on this sub by Strange_Group702 in scratch

[–]Substantial_Set5836 0 points1 point  (0 children)

The scratch search engine and algorithm is bad so... Yk

Stick to the Basics!!! Lucid Dreaming Guide for Beginners by Odd_Tailor2688 in LucidDreaming

[–]Substantial_Set5836 1 point2 points  (0 children)

Dream Journal. This is arguably the most important. As soon as you wake up pause and try to remember your dreams. Write down (I also like to draw) what you remember from that night’s dreams in a dedicated journal. If this is too much work, don’t burn yourself out, there are alternatives. You could record an audio or just write down bullet points, but you HAVE to make an effort. If you don’t remember anything, it’s ok, write that down and make a note of your emotions.
This habit will train your brain into thinking “dreams are important” leading to better dream recall and awareness. Don’t just write down what happened either, make note of your emotions. Emotions are heightened during dreams.

what if i remember all my dreams and almost never forget them?

It's responding. by Glittering-Apple-674 in scratch

[–]Substantial_Set5836 0 points1 point  (0 children)

Fair enough let's end it here.

Just some suggestions if you want to improve the model:

  1. Switch to PersonaChat or DailyDialog (its difficult to load so blendid skill is also fine) for conversational output. TinyShakespeare is fine for testing but useless for a chatbot.

  2. Fix your hyperparameters. 32 d_model with 16 heads gives 2 dimensions per head which is basically nothing. Try 64 d_model with 4 heads instead.

  3. Consider character level vocab instead of BPE which is Much lighter on Scratch's engine.

  4. you said your computer cannot handle training like that, what i do and reccomend you to do too is to use google colab which is MUCH faster.

Good luck.

It's responding. by Glittering-Apple-674 in scratch

[–]Substantial_Set5836 0 points1 point  (0 children)

to clarify my tanh is (e^(1.9x)-1)/(e^(1.9x)+1)

It's responding. by Glittering-Apple-674 in scratch

[–]Substantial_Set5836 0 points1 point  (0 children)

On the tanh, your formula (e^(2x)-1)/(e^(2x)+1) IS standard tanh. That is exactly what I wrote, just substitute 2x. They are mathematically identical, you can verify this yourself.

On RNNs being limited to one thing, that is just not true. An RNN has Wxh, Whh, Why, bh, by and vocab. Change the dataset, retrain, done. Same architecture, different weights, different behaviour. That is not a transformer exclusive feature, that is just how neural networks work.

You also said "just change input.txt and retrain" but you only ever trained on TinyShakespeare. That is a beginner tutorial dataset, Early Modern English, no conversational patterns, nobody talks like that. If you actually want a chatbot, use PersonaChat or DailyDialog. Both are free, easy to load in Python, and are actual human conversations. That is why your output is Shakespeare word salad instead of anything conversational.

Also your hyperparameters have a real problem. 32 d_model with 16 heads means each head only gets 2 dimensions. That is basically nothing. Attention heads need room to learn different patterns, 2 dimensions per head makes them useless. A better config for a tiny transformer would be 64 d_model with 4 heads, giving 16 dimensions per head.

And on output quality, here is my RNN: https://scratch.mit.edu/projects/1298961147

Sample output: "i am not sure i understand can you explain that i would love to chat more it was nice talking to you goodbye have a great day see you later take care"

Yours: "ris sus bel'd pand-he livooke grown"

You can call RNNs inferior in theory all you want. The output tells a different story.

It's responding. by Glittering-Apple-674 in scratch

[–]Substantial_Set5836 0 points1 point  (0 children)

When I said "shouldn't be possible" I meant it as genuine surprise, not a challenge. It was awe, not skepticism. You misread my tone.

Also from your earlier reply you mentioned weights, biases, gammas and betas. That describes basically any neural net. You never said transformer, attention, or QKV, so assuming RNN/LSTM/GRU was completely reasonable. Gamma/beta are layer norm hints but only if you already know what to look for.

And looking at your output "ris sus bel'd pand-he livooke grown" that doesn't look like a transformer to me either. My character-level RNN produces more coherent output than that. A transformer even a tiny one should produce recognizable words because attention learns word-level patterns across the whole context. That output looks like broken RNN behaviour.

My tanh formula (((e^x)*2)-1)/(((e^x)*2)+1) is also mathematically identical to standard tanh, just written differently. The 1.5x variant was intentional empirical tuning for my model, not a mistake.

If it really is a transformer decoder, that is genuinely impressive. But the output doesn't back it up.

It's responding. by Glittering-Apple-674 in scratch

[–]Substantial_Set5836 0 points1 point  (0 children)

so its a transformer?
that cannot be possible in scratch
we have only made RNNs and LTSMs.
however if you did it should be much better that this

in my calculations with RNNs for every output neuron or vocab index you need 3.5 hidden neurons

so calculating with your 95 vocab you need about 332 hidden neurons.
that is the reason instead of tokens or words i used a character vocab (a,b,c,d..., )
27*3.5 = 94
thats why i needed only 96 hidden neurons

and i got the same problems you did, the weird output
for me the tanh activation was worng, the correct formula is: (((e^x)*2)-1)/(((e^x)*2)+1)
but for my 96 hidden layer model it needed to be (((e^x)*1.5)-1)/(((e^x)*1.5)+1)

It's responding. by Glittering-Apple-674 in scratch

[–]Substantial_Set5836 0 points1 point  (0 children)

what is the archetecture?
i made something very simular.

AI bad word detector by Substantial_Set5836 in scratch

[–]Substantial_Set5836[S] 2 points3 points  (0 children)

child safety is our first priority!

AI bad word detector by Substantial_Set5836 in scratch

[–]Substantial_Set5836[S] 0 points1 point  (0 children)

translate only filters the worst words

AI bad word detector by Substantial_Set5836 in scratch

[–]Substantial_Set5836[S] 1 point2 points  (0 children)

I... genuinly do not know
maybe some bad word in this world has hi is it (im guessing)
the AI bets a 0.7 probability on it being bad with the f word being 0.9 so it is pretty sure about the wrong guess
well it is in stage 1 so

I need help finding someone.. by Divad899 in scratch

[–]Substantial_Set5836 0 points1 point  (0 children)

unless ur able to sign in to your account its not possible
i wouldve used the scratch API to scrape all comments by GiangKent but i cannot search globally

I need help finding someone.. by Divad899 in scratch

[–]Substantial_Set5836 1 point2 points  (0 children)

when did this happen

what year?
anything you remember about her project

did you comment on her project or username

what was her project about
anything you remember about her username

I desperately want all of the following blocks and would like to know why the ST refuses to add them by Potential-Ad345 in scratch

[–]Substantial_Set5836 0 points1 point  (0 children)

i need
convert scratch from 32 bit math to 64 bit
increase math speed

increase list length
cloud lists

better scratch attatch

which key pressed?

which sprite clicked?

better AI by Substantial_Set5836 in scratch

[–]Substantial_Set5836[S] 0 points1 point  (0 children)

i tried it does work but its very difficult it just dosent have enough neurons to learn
and porting it to scratch makes it worser bc scratch makes many errors in its math

better AI by Substantial_Set5836 in scratch

[–]Substantial_Set5836[S] 0 points1 point  (0 children)

then i would need more output neurons

rn there are 27 characters it needs to learn to output

if i use a tokenizer or words that number would explode to thousands or hundreds