HackerTrans
TopNewTrendsCommentsPastAskShowJobs

trekhleb

1,589 karmajoined 9 jaar geleden
Creator of javascript-algorithms repo on GitHub. Software engineer @Uber.

https://trekhleb.dev

https://github.com/trekhleb

https://www.linkedin.com/in/trekhleb/

Submissions

Show HN: Yes-Brainer – A council of LLMs that debate in the browser, BYOK

yesbrainer.ai
1 points·by trekhleb·gisteren·3 comments

Claude's Learning Mode

engadget.com
1 points·by trekhleb·7 dagen geleden·0 comments

Self-Parking Car Evolution

trekhleb.dev
3 points·by trekhleb·4 maanden geleden·1 comments

A unified map of California's passenger rail systems

trekhleb.dev
3 points·by trekhleb·4 maanden geleden·0 comments

Show HN: CaliVibe – Explore California Neighbourhoods

trekhleb.dev
1 points·by trekhleb·4 maanden geleden·0 comments

Dijkstra's Algorithm in JavaScript

github.com
1 points·by trekhleb·8 maanden geleden·0 comments

A map of every recorded battle based on Wikipedia

battles.nodegoat.net
8 points·by trekhleb·vorig jaar·4 comments

Top Tech Jobs

trueup.io
1 points·by trekhleb·vorig jaar·0 comments

Tech Jobs Radar

jobs-radar.com
2 points·by trekhleb·2 jaar geleden·0 comments

A collection of essential TypeScript types

github.com
1 points·by trekhleb·2 jaar geleden·0 comments

Shitcode Principles (2020)

github.com
1 points·by trekhleb·2 jaar geleden·0 comments

System Design Sketches

okso.app
1 points·by trekhleb·2 jaar geleden·0 comments

Ask HN: Is distributed LLM training in browsers (WebRTC and WebGPU) possible?

4 points·by trekhleb·2 jaar geleden·5 comments

Postgres and MySQL: The Main Differences

twitter.com
3 points·by trekhleb·2 jaar geleden·0 comments

Training Baby GPTs in Browser

trekhleb.dev
7 points·by trekhleb·2 jaar geleden·1 comments

Homemade GPT JS – A Tensorflow.js Re-Implementation of MinGPT

github.com
2 points·by trekhleb·2 jaar geleden·2 comments

System Design Sketches

trekhleb.dev
3 points·by trekhleb·2 jaar geleden·0 comments

The BSc Course Machine Learning at the Vrije Universiteit Amsterdam

mlvu.github.io
1 points·by trekhleb·2 jaar geleden·0 comments

An overview of typed SQL libraries for TypeScript (2020)

phiresky.github.io
1 points·by trekhleb·3 jaar geleden·0 comments

Uber's Base Design System

base.uber.com
3 points·by trekhleb·3 jaar geleden·0 comments

comments

trekhleb
·gisteren·discuss
Thank you.

The comparison and the reference to the karpathy/llm-council is available on GitHub https://github.com/trekhleb/yesbrainer

In short, Karpathy's llm-council is one fixed answer→rank→synthesize pass behind a local server you have to run, while Yes-Brainer is a zero-setup browser app with three deliberation structures — including a real multi-round debate (consensus mode)
trekhleb
·gisteren·discuss
The app is open-sourced here https://github.com/trekhleb/yesbrainer - feel free to check the sources
trekhleb
·vorige maand·discuss
This article gave me another nudge towards running Claude in a Docker container.

I made a thin Docker container wrapper "claude-pod" recently for my personal usage here: https://github.com/trekhleb/claude-pod

However, I wasn't using it that often, just because of that additional friction of running Claude via `PORTS="3000 5173" claude-pod` instead of just `claude`, etc.

But now I have more motivation for the containerisation :D. Not a 100% defence from the potential glitches, though, but still something...
trekhleb
·vorige maand·discuss
Nice and minimalistic

I played with similar approach in JavaScript and built a NanoNeuron https://github.com/trekhleb/nano-neuron (it is more verbose than Python though)
trekhleb
·2 jaar geleden·discuss
What I mean is training something like GPT-3 in a distributed manner using a large number of regular browsers or laptops with average WebGPU support/power and WebRTC for communication.

Does it even make sense to ask this? Is it reasonable or feasible?

I understand there are many nuances, such as the size and source of the training data, the size of the model (which would be too large for any browser to handle), network overhead, and the challenge of merging all the pieces together, among others. However, speculative calculations suggest that GPT-3 required around 3x10^22 FLOPs, which might (very speculatively) be equivalent to about 3,000 regular GPUs, each with an average performance of 6 TFLOPs, training it for ~30 days (which also sounds silly, I understand).

Of course, these are naive and highly speculative calculations that don’t account for whether it’s even possible to split the dataset, model, and training process into manageable pieces across such a setup.

But if this direction is not totally nonsensical, does it mean that even with a tremendous network overhead there is a huge potential for scaling (there are potentially a lot of laptops connected to the internet that potentially and voluntary could be used for training)?
trekhleb
·2 jaar geleden·discuss
Thanks for the feedback! WebGPT is good. Looks like it is a vanilla JS? I used TensorFlow.js to offload all the troubles of working with tensors, gradients, and WebGPU integration to it. Along with a possibility to train the model in the browser it also helped to keep the actual GPT code pretty concise (<300 lines). Hopefully it will make easier to learn the model architecture itself for those who’re interested.
trekhleb
·2 jaar geleden·discuss
It is a very visual and entertaining visualization, I love it.

It inspired me to experiment with a genetic algorithm in "Self-parking car evolution":

https://trekhleb.dev/self-parking-car-evolution/