Live data from Hacker News

RustGPT: A pure-Rust transformer LLM built from scratch

github.com

21–30 of 186 posts

Re: RustGPT: A pure-Rust transformer LLM built from scratch

#21
This is great ! Congratulations. I really like your project, especially I like how easily it is to peak at.

Do you plan on moving forward with this project ? I seem to understand that all the training is done on the CPU, and that you have next steps regarding optimizing that. Do you consider GPU accelerations ?

Also, do you have any benchmarks on known hardware ? Eg, how long would it take to train on a macbook latest gen or your own computer ?

Re: RustGPT: A pure-Rust transformer LLM built from scratch

#23

> ndarray = "0.16.1" rand = "0.9.0" rand_distr = "0.5.0" Looking good!

I was slightly curious: cargo tree llm v0.1.0 (RustGPT) ├── ndarray v0.16.1 │ ├── matrixmultiply v0.3.9 │ │ └── rawpointer v0.2.1 │ │ [build-dependencies] │ │ └── autocfg v1.4.0 │ ├── num-complex v0.4.6 │ │ └── num-traits v0.2.19 │ │ └── libm v0.2.15 │ │ [build-dependencies] │ │ └── autocfg v1.4.0 │ ├── num-integer v0.1.46 │ │ └── num-traits v0.2.19 ( ) │ ├── num-traits v0.2.19 ( ) │ └── rawpointer v0.2.1 ├── rand v0…

linking both rand-core 0.9.0 and rand-core 0.9.3 which the project could maybe avoid by just specifying 0.9 for its own dep on it

Re: RustGPT: A pure-Rust transformer LLM built from scratch

#24

As someone who has spent days wrestling with Python dependency hell just to get a model running, a simple cargo run feels like a dream. But I'm wondering, what was the most painful part of NOT having a framework? I'm betting my coffee money it was debugging the backpropagation logic.

I guess, resource utilization like GPU, etc

Re: RustGPT: A pure-Rust transformer LLM built from scratch

#27
Cool stuff! I can see some GPT comments that can be removed

// Increased for better learning

this doesn't tell me anything

// Use the constants from lib.rs

const MAX_SEQ_LEN: usize = 80;

const EMBEDDING_DIM: usize = 128;

const HIDDEN_DIM: usize = 256;

these are already defined in lib.rs, why not use them (as the comment suggests)

Re: RustGPT: A pure-Rust transformer LLM built from scratch

#28

Earlier quoted context omitted.

It's AI generated

How do you know? The over-commenting?

I know because this is how an AI generated project looks. Clearly AI generated README, "clean" code, the way files are named, etc.

Re: RustGPT: A pure-Rust transformer LLM built from scratch

#29
post #20

As someone who has spent days wrestling with Python dependency hell just to get a model running, a simple cargo run feels like a dream. But I'm wondering, what was the most painful part of NOT having a framework? I'm betting my coffee money it was debugging the backpropagation logic.

lowkey ppl who praise cargo seem to have no idea of the tradeoffs involved in dependency management the difficulty of including a dependency should be proportional to the risk you're taking on, meaning it shouldn't be as difficult as it in, say, C where every other library is continually reinventing the same 5 utilities, but also not as easy as it is with npm or cargo, because you get insane dependency clutter, and a…

What tool or ecosystem does this well, in your opinion?

Re: RustGPT: A pure-Rust transformer LLM built from scratch

#30

Earlier quoted context omitted.

How do you know? The over-commenting?

I know because this is how an AI generated project looks. Clearly AI generated README, "clean" code, the way files are named, etc.

To me it looks like LLM generated README, but not necessarily the source (or at least not all of it).

Or there's been a cleaning pass done over it.

Post reply on HN