logoalt Hacker News

oofbeylast Sunday at 3:38 AM1 replyview on HN

Yeah if layers() is a shortcut for layer4(layer3(layer2(layer1(input)))). But sometimes it’s only

output = layers(input)

Or

output = layers(layers(input))

Depends on how difficult the token is.


Replies

remexrelast Sunday at 4:53 PM

Or more like,

    x = tokenize(input)
    i = 0
    do {
      finish, x = layers(x)
    } while(!finish && i++ < t_max);
    output = lm_head(x)
show 1 reply