Anthony Ng (@algo_hunter) profile picture

Love discovering, sharing and teaching data science, quant finance, R and Python. Father of 2 special ladies thanks to my lovely wife. His grace my anchor. NFA

Singapore
Joined June 2016
Photo by Anthony Ng (@algo_hunter)Photo by Anthony Ng (@algo_hunter)Photo by Anthony Ng (@algo_hunter)Photo by Anthony Ng (@algo_hunter)Photo by Anthony Ng (@algo_hunter)Photo by Anthony Ng (@algo_hunter)Photo by Anthony Ng (@algo_hunter)Photo by Anthony Ng (@algo_hunter)Photo by Anthony Ng (@algo_hunter)Photo by Anthony Ng (@algo_hunter)
The rise of foundation models has incentivized a diversification of skillsets in both software engineering and AI research itself. For most software engineers, being well rounded is more important than pure technical mastery. This was already true, of course — see @patio11's famous advice "Don't call yourself a programmer" — but even more so due to foundation models. In most situations, skills like being able to use AI to rapidly prototype in order to communicate with clients to iterate on specifications create far more business value than technical wizardry alone. In AI research, more and more of the action seems to be taking place above the foundation model layer and is closer to applications / people / societal impact. This kind of research strongly benefits from interdisciplinary thinking (though not all AI researchers have recognized the shift yet!)
3
19
1
110
13,813
2) Understand the problem you are trying to solve To create the best prompt for a problem, you should truly understand it. Domain experts should be the best prompt engineers.
2
2
7
756
📽️ New 4 hour (lol) video lecture on YouTube: "Let’s reproduce GPT-2 (124M)" youtu.be/l8pRSuU81PU The video ended up so long because it is... comprehensive: we start with empty file and end up with a GPT-2 (124M) model: - first we build the GPT-2 network - then we optimize it to train very fast - then we set up the training run optimization and hyperparameters by referencing GPT-2 and GPT-3 papers - then we bring up model evaluation, and - then cross our fingers and go to sleep. In the morning we look through the results and enjoy amusing model generations. Our "overnight" run even gets very close to the GPT-3 (124M) model. This video builds on the Zero To Hero series and at times references previous videos. You could also see this video as building my nanoGPT repo, which by the end is about 90% similar. Github. The associated GitHub repo contains the full commit history so you can step through all of the code changes in the video, step by step. github.com/karpathy/build-na… Chapters. On a high level Section 1 is building up the network, a lot of this might be review. Section 2 is making the training fast. Section 3 is setting up the run. Section 4 is the results. In more detail: 00:00:00 intro: Let’s reproduce GPT-2 (124M) 00:03:39 exploring the GPT-2 (124M) OpenAI checkpoint 00:13:47 SECTION 1: implementing the GPT-2 nn.Module 00:28:08 loading the huggingface/GPT-2 parameters 00:31:00 implementing the forward pass to get logits 00:33:31 sampling init, prefix tokens, tokenization 00:37:02 sampling loop 00:41:47 sample, auto-detect the device 00:45:50 let’s train: data batches (B,T) → logits (B,T,C) 00:52:53 cross entropy loss 00:56:42 optimization loop: overfit a single batch 01:02:00 data loader lite 01:06:14 parameter sharing wte and lm_head 01:13:47 model initialization: std 0.02, residual init 01:22:18 SECTION 2: Let’s make it fast. GPUs, mixed precision, 1000ms 01:28:14 Tensor Cores, timing the code, TF32 precision, 333ms 01:39:38 float16, gradient scalers, bfloat16, 300ms 01:48:15 torch.compile, Python overhead, kernel fusion, 130ms 02:00:18 flash attention, 96ms 02:06:54 nice/ugly numbers. vocab size 50257 → 50304, 93ms 02:14:55 SECTION 3: hyperpamaters, AdamW, gradient clipping 02:21:06 learning rate scheduler: warmup + cosine decay 02:26:21 batch size schedule, weight decay, FusedAdamW, 90ms 02:34:09 gradient accumulation 02:46:52 distributed data parallel (DDP) 03:10:21 datasets used in GPT-2, GPT-3, FineWeb (EDU) 03:23:10 validation data split, validation loss, sampling revive 03:28:23 evaluation: HellaSwag, starting the run 03:43:05 SECTION 4: results in the morning! GPT-2, GPT-3 repro 03:56:21 shoutout to llm.c, equivalent but faster code in raw C/CUDA 03:59:39 summary, phew, build-nanogpt github repo
391
2,147
414
15,203
1,529,167
This is an interesting overview of what it is like to actually build production software with today's LLMs. It also shows how weird LLMs are to work with from a software perspective & how much we have to learn. It is why I stress co-intelligence for now. oreilly.com/radar/what-we-le…
8
90
11
508
69,640
"Most of the skills programmers need to work with LLMs are the skills they already have, but some of them will become more important, especially problem decomposition, reading code, and speaking the meta-language of programming." allendowney.com/blog/2023/04…
3
12
2
81
13,070
I think systems like ChatGPT would be a lot less controversial if they cited references. Eg when querying “What are the origins of AI”, sure have it provide a summary. But also append the sources where it learned this info from. To a) give credit & b) so we can validate the info
94
86
23
1,086
What do: • $4 billion in missing $BTC • Female rapper RAZZLEKHAN • Forbes magazine • the US Department of Justice Have in common? A thread on the 2016 Bitfinex hack, its resolution, and the implications. The strangest crypto story of the year (so far, at least): 🧵👇
212
2,320
482
8,029
Thank you @RaoulGMI @RealVision always a pleasure!
Asia is the largest region in crypto and we need to really understand whats happening there. So who better to talk to than one of the best crypto liquidity providers in Asia. @dariussitzl is my go to man from @QCPCapital Watch and learn. Its free. realvision.com/shows/raoul-p…
8
2
35
How to read a smart contract—and why you’d want to in the first place. 🧵
286
3,154
541
10,507
Day 1 of our Christmas Giveaway is now live 🥳 Get a chance to win $100 worth of $MATTER + Our E-book worth $80 How to participate: 1. Follow @EconsDesign and @antimatterdefi 2. Retweet and Like this post T&C Apply. #Giveaway #CryptoGiveaway #ChristmasGiveaway #EDxmas21
8
38
2
50
1/ This crazy year is almost over and so it’s time to do a little retrospective. This 150-page report is full of charts, timelines, infographics, maps, etc. It’s the work of 30 research analysts we now have at The Block. Let’s dive in: Download here: tbstat.com/wp/uploads/2021/1…
73
710
108
1,991
We are excited to announce the release of our Wonderland Governance Framework. You can read more about it on our blog: medium.com/the-defi-wonderla…
71
299
37
1,966
Anthony Ng retweeted
$ENS has launched! Eligible users can claim their $ENS governance tokens at: claim.ens.domains No rush: You have until *May 4, 2022* to claim your tokens. Claiming costs gas, so feel free to wait for favorable gas prices. ens.mirror.xyz/5cGl-Y37aTxto… Blog or 🧵 for more👇 1/
2,447
2,098
729
6,635
This is the future of education. Digital cert as soon as you have completed the requirements. #SFF2021 sff.apixoxygen.com/certifica…
1
1
1) My presentation @ our annual @a16z Summit this year https://teapawt.net/t.co/kvfqxMtOf3 The "Amazon Web Services" era has arrived for financial services. Who benefits most? Consumers! -> more choice, better & more affordable products, regardless of geography or socioeconomic demographic
48
175
32
679
Anthony Ng retweeted
gm web3 fam. I've got big news today 🔥 @a16z is leading @AlchemyPlatform's $250M Series C @Nikilster and @thejoelau have built the leading developer platform for web3. Alchemy is the operating system that's enabling developers to take web3 mainstream 👇 a16z.com/2021/10/28/investin…
16
69
14
424
If you’re over 30 and don’t get why all the kids are talking about web3: - set up an ETH address (just google it) - reply with it here - we’ll airdrop your first crypto $BOOMER tokens
OK this is no longer a joke, we’re minting this in NYC next week I nominate @David_Hillis and @onecaseman for airdrops
477
36
8
521
Anthony Ng retweeted
If you make a NFT of a real diamond, and the diamond itself gets destroyed in a fire tomorrow, you still have the same asset. Because the token still exists and is in limited supply just as before. Nothing has changed. What NFT is doing to the concept of asset, few understand.
2,449
481
3,228
3,159
Anthony Ng retweeted
my s/o has brought this to the beach club as a beach read 😏 @aureliengeron @TensorFlow
17
26
3
410