RSSAmplifier

Blog

sidsite

The site of Sid

sidsite.comRSS feed ↗10 posts

Latest posts

The hierarchical highlight journalling system

The hierarchical highlight journalling system is as follows: Near the end of the day, write a single sentence containing your highlight of that day. At the end of the week, look back at your daily highlights. Select your favourite to be your highlight of the week. At the end of the month, look back at the weekly highlights. Select your favourite to be your highlight of the month. At the end of the…

Transformer neural net learns to run Conway’s Game of Life just from examples

We find that a highly simplified transformer neural network is able to compute Conway’s Game of Life , just from being trained on examples of the game. The simple nature of this model allows us to look at its structure and observe that it really is computing the Game of Life. It is not “just” a statistical model that predicts the most likely next state based on previous examples it’s seen — it…

Extracting copyrighted text from GPT

It seems that ChatGPT has memorised copyrighted text, but it can be difficult to get the model to output this text, because of some kind of copyright detection that OpenAI have implemented.

Gridnotes - an infinite 2D text editor

Gridnotes is an infinite 2D text editor I made.

Analyzing Data 170,000x Faster with Python

The article, Analyzing Data 180,000x Faster with Rust, first presents some unoptimized Python code, and then shows the process of rewriting and optimizing the code in Rust, resulting in a 180,000x speed-up. The author notes:

Visual content search over music videos - demo

Link to the demo.

Prompting Improvements: 4x Accuracy in ‘The Reversal Curse’ Experiment 2

The Reversal Curse (Sep 2023, Berglund et al.) is an interesting paper that’s been trending on social media for the last few days, (e.g. Twitter thread by Neel Nanda here, Hacker News discussion here).

How BPE works - the tokenization algorithm used by large language models

A walkthrough of BPE, with a worked example and Python implementations.

Measuring the learning per example, via loss diffs

This post introduces the concept of the learning per example (LPE). LPE is a measure of how much a deep learning model has learned about each example in a given training batch.

Notes on training BERT from scratch on an 8GB consumer GPU

I trained a BERT model (Devlin et al, 2019) from scratch on my desktop PC (which has a Nvidia 3060 Ti 8GB GPU). The model architecture, tokenizer, and trainer all came from Hugging Face libraries, and my contribution was mainly setting up the code, setting up the data (~20GB uncompressed text), and leaving my computer running. (And making sure it was working correctly, with good GPU utilization.)