HackerTrans
TopNewTrendsCommentsPastAskShowJobs

nathan-barry

no profile record

Submissions

Can gzip be a language model?

nathan.rs
15 points·by nathan-barry·vor 28 Tagen·2 comments

Large Text Compression Benchmark

mattmahoney.net
3 points·by nathan-barry·vor 29 Tagen·1 comments

Language Modeling Without Neural Networks

nathan.rs
2 points·by nathan-barry·vor 3 Monaten·0 comments

Quines in Every Programming Language (Rosetta Code)

rosettacode.org
2 points·by nathan-barry·vor 3 Monaten·0 comments

Mercury Edit 2: Fastest next-edit prediction with a diffusion LLM (221ms)

inceptionlabs.ai
1 points·by nathan-barry·vor 3 Monaten·0 comments

Noise schedules considered harmful (2024)

sander.ai
1 points·by nathan-barry·vor 5 Monaten·0 comments

Show HN: Diffuji – a diffusion-powered instant camera

diffuji.com
8 points·by nathan-barry·vor 5 Monaten·5 comments

Generating Shakespeare Without Neural Networks

nathan.rs
5 points·by nathan-barry·vor 6 Monaten·0 comments

Recursion and Induction: A Self-Contained Course Using ACL2

acl2.org
2 points·by nathan-barry·vor 6 Monaten·0 comments

Fidenae amphitheatre collapse (27 AD) – 20k dead

en.wikipedia.org
2 points·by nathan-barry·vor 6 Monaten·0 comments

Show HN: Tiny Diffusion – Minimal diffusion LM in 364 lines

github.com
2 points·by nathan-barry·vor 6 Monaten·0 comments

[untitled]

1 points·by nathan-barry·vor 7 Monaten·0 comments

Anchored Diffusion Language Model

anchored-diffusion-llm.github.io
2 points·by nathan-barry·vor 7 Monaten·0 comments

Text Diffusion Models Are Faster at Writing Code

nathan.rs
3 points·by nathan-barry·vor 7 Monaten·0 comments

Inside ThunderKittens' Python Bindings

enbao.me
2 points·by nathan-barry·vor 7 Monaten·0 comments

Kickstart.nvim: A minimal, single-file starting point for Neovim configuration

github.com
1 points·by nathan-barry·vor 8 Monaten·0 comments

How we made AWS Trainium 17x faster (for conv1d)

charleshong3.github.io
1 points·by nathan-barry·vor 8 Monaten·0 comments

Show HN: Tiny Diffusion – A character-level text diffusion model from scratch

github.com
172 points·by nathan-barry·vor 8 Monaten·20 comments

The Manuscripts of Edsger W. Dijkstra

cs.utexas.edu
268 points·by nathan-barry·vor 8 Monaten·125 comments

Streaming DiLoCo: Towards a Distributed Free Lunch

arxiv.org
2 points·by nathan-barry·vor 8 Monaten·0 comments

comments

nathan-barry
·vor 28 Tagen·discuss
LLMs are very good at lossless compression via arithmetic coding. But I didn't know that it was possible to go the reverse direction (do language modeling via a compressor). It's not super great quality, but I'm surprised it worked! Other compression algorithms (like PPMd) use variable n-grams under the hood, and should be much better (although less interesting due to already containing basic language models internally).
nathan-barry
·vor 8 Monaten·discuss
Actually NVIDIA made one earlier this year, check out their Fast-dLLM paper
nathan-barry
·vor 8 Monaten·discuss
Hey, I’ll add the MIT licenses later today!
nathan-barry
·vor 8 Monaten·discuss
Yes, this is the case. During training, the model will get a sequence of text (ex, 512 tokens long) with a percentage of them masked out (with a special <MASK> token). It learns how to unmask those tokens to construct the original text.

In the case that you mentioned, if we had 4 <MASK> tokens in a row, all we are doing for decoding is predicting what those 4 tokens should be.

Generally, this does not seem to be a significant problem, as there are usually multiple ways to express an idea in varying lengths. Also, with confidence-aware parallel decoding, it can usually avoid the scenario you mentioned, as focusing on decoding the highest confident tokens will generally avoid such scenarios with a well trained model.
nathan-barry
·letztes Jahr·discuss
HTML version: https://www.cs.utexas.edu/~EWD/transcriptions/EWD13xx/EWD130...
nathan-barry
·letztes Jahr·discuss
Thanks for your input. Lots of good points on the technical side. Will go through and make some edits later tonight or tomorrow.

> You're not hijacking anything, you are using the old APIs as intended and using the right terms in the description that follows.

When it comes to the use of the word "hijacking", I use it in to refer to the fact that using graphic shaders for general computation wasn't initially intended. When NVIDIA allowed programmable vertex and pixel shaders, they had no idea that it would be used for anything else other than graphics rendering. So when I say I "hijack" a fragment shader to compute layers of a neural network instead of as a part of a rendering pipeline, this is what I mean. I don't see a problem with this use of language.
nathan-barry
·letztes Jahr·discuss
Dr. Vouga's Graphics: Honors class at UT Austin, Undergrad CS
nathan-barry
·letztes Jahr·discuss
That's a great insight, you're right.
nathan-barry
·letztes Jahr·discuss
If you couldn't tell, the post was about using shader programming for general-purpose computation, specifically. Yes, WebGL adds compute shaders, but the point of the article was to use the graphics pipeline specifically. If you say there are statements that are incorrect or inaccurate, pointing them out would be very much appreciated :)
nathan-barry
·letztes Jahr·discuss
Here's a link to the github repo. At the top of the README it has a demo of GPT-2 running and the visualizations of the attention matrices and transformer block outputs

Repo: https://github.com/nathan-barry/gpt2-webgl
nathan-barry
·letztes Jahr·discuss
Yeah, that would have been a good thing to set up. Main thing to add would be loading the weights into the browser
nathan-barry
·letztes Jahr·discuss
Thanks for the comment! I did this as a final project in a graphics class where we mainly used WebGL for all the assignments. Seeing the improvements a WebGPU port would bring would be cool to see!
nathan-barry
·letztes Jahr·discuss
A few weeks back, I implemented GPT-2 using WebGL and shaders. Here's a write-up over how I made it, covering how I used textures and frame buffer objects to store and move around weights and outputs from calculations while using WebGL.
nathan-barry
·letztes Jahr·discuss
Not my repo, but I think there are others that allow this functionality via the same method the “iMessage Wrapped” project accessed your message history. Since they’re also MCP servers, they should work seamlessly with Claude https://github.com/willccbb/imessage-mcp/tree/main
nathan-barry
·letztes Jahr·discuss
This is a post covering the basics of machine learning, along with a Go implementation of Karpathy's micrograd
nathan-barry
·letztes Jahr·discuss
Yeah, right now the weights aren't even pushed to the repo so there's no way for the github page to load them in. I've looked a tiny bit into it and might end up making a fix for it, having it load the weights by fetching them from somewhere else on load, but probably not today.

There is a link to the zipped up folder with the weights here: https://github.com/nathan-barry/gpt2-webgl/releases/download...

If anyone wants to make a PR which fetches the file from there, unzips it, then loads in the weights from there that would be greatly appreciated.
nathan-barry
·letztes Jahr·discuss
This was a final project for a graphics class where we used WebGL a lot. Also I was just more familiar with OpenGL and haven't looked that much into webGPU
nathan-barry
·letztes Jahr·discuss
Working on getting it up on Github pages, will let you know. Not sure if there will be an issue with hosting the weights, I'll look into it
nathan-barry
·letztes Jahr·discuss
Yeah it'd be great if you could file an issue and show what you see! I was using Safari but I'm gonna check other browsers to test if it works on them