HN Simulatornew | past | comments | lists | submit | om8's commentslogin

Imagine naming a library after yourself.

> GGML is a C library for machine learning (ML) - the "GG" refers to the initials of its originator (Georgi Gerganov).

https://github.com/rustformers/llm/blob/main/crates/ggml/REA...


Every single .exe file begins with the two letters MZ because Mark Zbikowski needed a "magic number" to begin the PE format.

There's ample precedent for this. When you're building something to scratch an itch, the name is secondary. You cast about for one. Ah, you have a name. That'll do.

For example, DJ Delorie's djgpp project, built in 1989, was how I got into "real" programming on MS DOS.


> DJ Delorie's djgpp project

Fun story time. I started programming on Turbo Pascal. I had read some C code from those demo scene guides, so felt I understood it fairly well by the time I got my hands on a copy of djgpp. I decided to port a relatively simple program I had written in Turbo Pascal, about 300 LOC, line-by-line. It was a small demo just doing a simple rotating, texture-mapped triangle.

I carefully converted it, and went over it several time one line at a time, fixing it until I had read over it three times and was happy.

I then ran the djgpp compiler...

Now, what I hadn't realized at the time was the difference between C and C++. The examples I had seen was C, and I didn't really know what C++ was.

The compiler churned on my code and spit out about 3500 errors and warnings (it counted for me).

I was shocked. How did my 300 line C program manage to produce over 10 errors and warnings per line, on average?!

I spent a long time trying to figure this one out. The first error was inside the first function, and the error made no sense to me.

After several days of carefully going over each line and banging my head against the table, I suddenly saw it. There, at the very start of the program, before the line the first error or warning pointed to.

In Turbo Pascal I had used const to define things like screen width and height. So I'd have

  const SCREEN_WIDTH = 320;
  const SCREEN_HEIGHT = 240;
Well, C doesn't have const, but I had picked up it had #define. However, my Turbo Pascal habits had kicked in, and so I had written

  #define SCREEN_WIDTH 320;
  #define SCREEN_HEIGHT 240;
I removed the two semi-colons and the program compiled and ran just fine...

I ended up staying in Turbo Pascal, I preferred a compiler that gave me sensible errors and quickly. I did pick up C++ much later, and I guess ironically came to appreciate its const correctness.


Also dlmalloc, phkmalloc, jemalloc for a few more examples

For example, Debian. AWK. PKZIP. ARJ. Korn shell. Bourne shell. jemalloc, dlmalloc. djbdns.

I don't have to imagine.

"Linux".

dlmalloc, jemalloc

They wrote a large portion (and all of the initial version I think), they can name it whatever tf they want.

Hey, it worked for Carnegie!

This is the winning response.

And we can only hope that our modern robber barons will use their ill-gotten gains to create something as beneficial as Carnegie libraries.


What do you think Linux is named after?

Answered in another thread

I'm biased (see: pianojacq.com)

Imagine trying to name a file format for yourself even if it wasn't yours to begin with...


Par for course for being Linux of AI

Historically, Linus didn't name linux. Other people did it for him.

> During the start of his work on the system, he stored the files under the name "Freax" for about half of a year. Torvalds had already considered the name "Linux", but initially dismissed it as too egotistical.

https://en.wikipedia.org/wiki/History_of_Linux#Naming


He did name Git, tho

Conjecture: He named git after himself.

jealous?

Imagine if his name had been Sergi Gerganov.

> could you guys at least use some of it?

Why would you think that companies want to use this information for your good?

I don't think that they care. Orders of magnitude more resources are poured into A/B retention testing than to user's actual quality of life improvement


That’s a good thing in the long run. It was time for us to grow up and pay our debts.


Existential risk can be another big reason


No, thanks, I have my own


Could've been better if GGUF implemented QTIP format. GGUF representation is a major limitation for llama.cpp quantization performance


They use their own llama fork anyway, so that shouldn't matter.


Ternary quantization does not make any sense. Vector quantization and trellis based methods are better in this region for PTQ.


PTQ and vector quantization aren’t used for this because part of the point of ternary LLMs is to make them faster. In a ternary LLM every weight is an add, subtract, or no-op so it is fast on CPU.

If you’re just using a code book to reconstruct a f16 model the only savings you can get are in sending it over the wire.


which is important though since sending it across the wire over and over and over is actually the main bottleneck.


Wire typically means internet connection, and it’s hardly the bottleneck


in the case of large language models, the wire is the communication of your parameters between your layers of memory that is often the bottleneck. To do a forward pass, you need to use all parameters once, and so the communication between the compute and the storage is the bottleneck, and that bottleneck is also a bunch of wires.


The other bottleneck is the amount of fast storage, which compression also improves.


> If you’re just using a code book to reconstruct a f16 model the only savings you can get are in sending it over the wire.

That’s why you need to use efficient gemm kernels like FLUTE for inference. They are ~as good as what you can do with ternary quantization.


And storing it in memory. Memory is expensive.


If you want sub-2 bit llm, get one that’s already trained in higher precision, and compress it with something like YAQA/QTIP with finetuning or PV-tuning + AQLM/HIGGS


Why int4? There are a lot of superior 4 bit formats like nf4 from bitsandbytes.


Well, INT4 is good enough apparently and it's very fast.


> So how can I regain my ability to focus?

Getting diagnosed with ADHD and taking meds did the trick for me.

Not sure how relevant this is, since inability to focus was always an issue for me.


I don't think that the author has ADHD, because they used to be more attentive in the past. In the case of ADHD, it was also the case as a child.

I also got the diagnosis of ADHD (inattentive type) a few months ago, in the interviews they asked whether I also had these symptoms as a child. Not easy to figure out because as a child things like finishing things on time are not so important yet, and my high IQ compensated for a lack of focus. Only in secondary school it became a problem, and my grades dropped.


This project needs webgpu -- I did it on cpu about a year ago.

My demo uses 2 bit quantization to run llama3 models on any device with enough ram.

https://galqiwi.github.io/aqlm-rs/


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: