Live data from Hacker News

Show HN: less than 650 LOC trainable GPT only using NumPy

github.com

11–19 of 19 posts

Re: Show HN: less than 650 LOC trainable GPT only using NumPy

#12
post #2

I think people are forgetting that transformer architectures are a wider field from GPT and predate GPT3 by 3+ years. Referring to transformer architectures using a branded commercial nomer (GPT) is just going to help cement OpenAI’s brand exposure and soon regulatory capture. For comparison this would be like referring to convonets as Inception architectures back during the CV boom (or VGGnets before that)

Is GPT subject to trademark. It stands for Generative Pre-training Transformer?

Re: Show HN: less than 650 LOC trainable GPT only using NumPy

#13
post #2

I think people are forgetting that transformer architectures are a wider field from GPT and predate GPT3 by 3+ years. Referring to transformer architectures using a branded commercial nomer (GPT) is just going to help cement OpenAI’s brand exposure and soon regulatory capture. For comparison this would be like referring to convonets as Inception architectures back during the CV boom (or VGGnets before that)

The author here: I absolutely agree with you. I went for a bit more catchy title.

Re: Show HN: less than 650 LOC trainable GPT only using NumPy

#14
post #2

I think people are forgetting that transformer architectures are a wider field from GPT and predate GPT3 by 3+ years. Referring to transformer architectures using a branded commercial nomer (GPT) is just going to help cement OpenAI’s brand exposure and soon regulatory capture. For comparison this would be like referring to convonets as Inception architectures back during the CV boom (or VGGnets before that)

Is GPT subject to trademark. It stands for Generative Pre-training Transformer?

They are still applying: https://tmsearch.uspto.gov/bin/showfield?f=doc&state=4805:wl...

Re: Show HN: less than 650 LOC trainable GPT only using NumPy

#15
post #8

I wonder how easy it would be to port this library from numpy to cupy.

This would be interesting to consider. But at the moment, nothing is optimized, so many things must be tackled first (especially in the backwards path, for example, buffering) to justify moving to cupy. The goal was to use it as an educational exercise for me.

Re: Show HN: less than 650 LOC trainable GPT only using NumPy

#16
post #9

Nice! The README mentions `LayerNorm` is implemented here, but while it's in the equivalence tests with PyTorch, I don't see it in the implementation.

It's part of the TensorLi definition where all the magic happens.

That is true. I went for a simple implementation of the layer norm and included it in the tensorli definition. But it would have been better to define it as a moduli for clarity.

Re: Show HN: less than 650 LOC trainable GPT only using NumPy

#17
post #2

I think people are forgetting that transformer architectures are a wider field from GPT and predate GPT3 by 3+ years. Referring to transformer architectures using a branded commercial nomer (GPT) is just going to help cement OpenAI’s brand exposure and soon regulatory capture. For comparison this would be like referring to convonets as Inception architectures back during the CV boom (or VGGnets before that)

Mo Gawdat has famously said that GPT-4 was something like "4300 lines of code," and that he could have written that when he was a kid. He's clearly a smart man, so, I think we could extrapolate his comments to claim that a smart college student with some CS knowledge could have written it. These sorts of "GPT in $X LOC" demos pretty much confirm it.

Re: Show HN: less than 650 LOC trainable GPT only using NumPy

#18

Earlier quoted context omitted.

Is GPT subject to trademark. It stands for Generative Pre-training Transformer?

They are still applying: https://tmsearch.uspto.gov/bin/showfield?f=doc&state=4805:wl...

I can't see the search query or results you got from that link, but I did a search as well and found OpenAI applied for GPT-5, GPT-6, and GPT-7, which is no surprise. I'd be surprised if any of those were granted, though, because "GPT" itself is a generic term already in research papers.

Re: Show HN: less than 650 LOC trainable GPT only using NumPy

#19
post #7
post #5

Earlier quoted context omitted.

One small difference is that the GPT architecture is just the decoder stack of the original transformer as opposed to the full encoder decoder stack in the original. I agree the branding play on GPTs in general is pretty smart and strong from OpenAI though.

Honestly i feel like the fact that everyone is just calling LLM's GPT at this point doesn't really help OpenAI, ChatGPT would, but the fact is that unlike "googling" something became synonymous for searching on the internet, GPT != OpenAI-ing something, GPT just became what people call LLM's it seems like lately, the fact the term isn't the name of the company or the full name "chatgpt-ing" sort of breaks that hold i…

Most of the newer LLMs that have come out are GPTs though.
Post reply on HN