HNHacker News
TopNewBestAskShowJobs

chessgecko

266 karma · joined September 28, 2014

submissionscomments
chessgecko··on Snowflake Arctic Instruct (128x3B MoE), largest open source model
This is the sparsest model thats been put out in a while (maybe ever, kinda forget the shapes of googles old sparse models). This probably wont be a great tradeoff for chat servers, but could be good for local stuff if you have 512GB of ram with your cpu.
chessgecko··on Meta Llama 3
I think its almost certainly using at least two experts per token. It helps a lot during training to have two experts to contrast when putting losses on the expert router.
chessgecko··on AMD unveils Ryzen Pro 8000-series processors
For this comparison the generation of chip doesn’t really matter because the llm decode (which is the costly step) barely uses any of the perf and just needs the model weights to fit in memory
chessgecko··on Amazon owes $525M in cloud-storage patent fight, US jury says
My read of patent one is that they basically created DNS for storage. But DNS was invented in 1983 so I'm not really sure what was novel here other than pointing it at data, which uses a few extra headers, ala my comment.

Even if there was nothing closer to this than DNS I don't think this patent should be valid.

chessgecko··on Amazon owes $525M in cloud-storage patent fight, US jury says
Links to two of the patents that were infringed

https://patents.google.com/patent/US7103640B1/en

https://patents.google.com/patent/US7233978B2/en

I really hope Kove loses, I don't know too much about networking, but a few header fields don't really seem patentworthy to me.

chessgecko··on Meta MTIA v2 – Meta Training and Inference Accelerator
they didn't use GDDR cause they wanted the memory capacity which is really important for recommendation models. But I totally agree that this is a sort of perfect cost/perf per watt point for a home setup. I really hope they do it, if not for this one at least for v3.
chessgecko··on Meta MTIA v2 – Meta Training and Inference Accelerator
its gotta be that 2/4 sparsity that everyone has, but I haven't seen used anywhere right? If they put it in though they must be using it, but I'm not sure for what. And without details I think its a good bet that int8 is the standard int8.

Wishful thinking maybe they'll announce selling it with the giant llama3 cause there's no good, cheap way to inference something like that at home at the moment and this could change that.

chessgecko··on Meta MTIA v2 – Meta Training and Inference Accelerator
Also its at 90 watts vs 900 watts for gaudi 3, the flops/mem bw per watt is much more comparable.
chessgecko··on Meta MTIA v2 – Meta Training and Inference Accelerator
I thought MTIA v2 would use the mx formats https://arxiv.org/pdf/2302.08007.pdf, guess they were too far along in the process to get it in this time.

Still this looks like it would make for an amazing prosumer home ai setup. Could probably fit 12 accelerators on a wall outlet with change for a cpu, would have enough memory to serve a 2T model at 4bit and reasonable dense performance for small training runs and image stuff. Potentially not costing too much to make either without having to pay for cowos or hbm.

I'd definitely buy one if they ever decided to sell it and could keep the price under like $800/accelerator.

chessgecko··on Intel Gaudi 3 AI Accelerator
They could, I know they wont, but they wouldn't lose money on the parts
chessgecko··on Intel Gaudi 3 AI Accelerator
I feel a little misled by the speedup numbers. They are comparing lower batch size h100/200 numbers to higher batch size gaudi 3 numbers for throughput (which is heavily improved by increasing batch size). I feel like there are some inference scenarios where this is better, but its really hard to tell from the numbers in the paper.
chessgecko··on Intel Gaudi 3 AI Accelerator
I think you're right on the price, but just to give some false hope. I think newish hbm (and this is hbm2e which is a little older) is around $15/gb so for 128 gb thats $1920. There are some other cogs, but in theory they could sell this for like $3-4k and make some gross profit while getting some hobbyist mindshare/research code written for it. I doubt they will though, it might eat too much into profits from the non pcie variants.
chessgecko··on PyTorch Library for Running LLM on Intel CPU and GPU
You could, but the memory bandwidth wouldn’t be amazing unless you had a lot of sticks and it would end up getting pretty expensive
chessgecko··on PyTorch Library for Running LLM on Intel CPU and GPU
Going above 24GB is probably not going to be cheap until gddr7 is out, and even that will only push it to 36gb. The fancier stacked gddr6 stuff is probably pretty expensive and you can’t just add more dies because of signal integrity issues.
chessgecko··on But what is a GPT? Visual intro to Transformers [video]
There’s some fancier stuff too like techniques that take into account where recent tokens were drawn from in the distribution and update either the top_p or the temperature so that sequences of tokens have a minimum unlikeliness. Beam search is less common with really large models because the computation is really expensive.
chessgecko··on JetZero: Ultra-efficient blended wing body jet
Probably the same analytics/funnel bs that's everywhere these days. Though in this case the users are probably vcs not buyers.
chessgecko··on Building WOPR: A 7x4090 AI Server
It's a shame they won't make a pcie mi300x. It has about the same amount of compute/memory as this and if the rumor mill is right it would cost almost the same.
chessgecko··on Building Meta's GenAI infrastructure
Tensorflow and keras have gotten better, but pytorch historically had better flexibility than keras and was much easier to debug/develop in than tensorflow.
chessgecko··on Fine tune a 70B language model at home
also just to add, I think the 1.58 bit is mostly faster for inference because training still had to multiply a lot of floating point gradients by integer activations, hold floating point weights/gradients for round, and deal with norms and stuff. could be wrong about that though
chessgecko··on Claude 3 model family
The problem is that it’s probably often not a lot cheaper. Most of the high end gpus have comparatively little bandwidth over pcie (that you’d need to use to store the context on a nvme for example). The cost there would scale with length too so you wouldn’t necessarily save more in that situation either. I think if you used a small enough gqa ratio and you knew for sure you would reuse the weights it could work, but my suspicion is that in general it would just be cheaper to recalculate.
chessgecko··on Sam Altman Seeks Trillions of Dollars to Reshape Business of Chips and AI
This is wrong, being memory bound or not has to do with the dimensions of the matrices being multiplied (if you’re on tensor cores). https://docs.nvidia.com/deeplearning/performance/dl-performa...

Some of the things being done to improve quality of 6-8 bit inference use extra compute and push it a little in the other direction but it’s still pretty memory intense until the batch size gets quite large

chessgecko··on QMoE: Practical Sub-1-Bit Compression of Trillion-Parameter Models
It takes a 2/1.5bit model, groups parameters together then exploits a lack of entropy in the parameters to compress it a bit like text compression. It was only below 1bit for the ultra large model, guess the smaller ones weren’t quite as random.

It’ll be interesting to see if it works on the new mistral moe model, which is less sparse and probably trained more per param than these.

chessgecko··on Simplifying Transformer Blocks
Not sure if I read it correctly, but it seems like the skip connections are kinda still present in the skipless block because they added I after the softmax and v= the previous hidden state. Still a cool paper if they really managed to get rid of those projections without degrading the quality.
chessgecko··on Tuning and Testing Llama 2, Flan-T5, and GPT-J with LoRA, Sematic, and Gradio
People who dislike things are just so much more vocal than people who like them. I've used Huggingface extensively, they are trying to do a lot, but its always been the most convenient/flexible for my finetuning use cases.

Thank you Huggingface!

chessgecko··on Attention Is Off By One
He refers all over the blog post to an "error" in attention. specifically says

The problem with using softmax is that it forces each attention head to make an annotation, even if it has no information to add to the output vector. Using softmax to choose among discrete alternatives is great; using it for optional annotation (i.e. as input into addition) is, like, not cool, man.

I'm saying it uses the current position to do this, that if it was a significant error I would expect it to improve the training loss. I sort of interpreted the blog post as being a bit more positive on the idea than just being about improving the quantization

chessgecko··on Attention Is Off By One
I guess yeah I was mostly responding to

Now it’s possible that softmax should be replaced wholesale, but it’s worked pretty well for the most part, except for this one wee little bug that prevents attention heads from saying nothing. So I propose a very small tweak on which I am willing to stake all future Internet claims to being correct. The tweak is so small, yet so obvious, and it’s been sitting here under everyone’s noses ever since attention was invented (2014).

I didn't test for outliers, but I don't think this will lead to a large improvement in attention overall/it will fix a lurking bug.

chessgecko··on Attention Is Off By One
It wasn't really the goal of my experiment to fix this issue for sure, I was trying to see if you could improve attention by decoupling the key used by a position for itself and for future tokens.

Open to being wrong here, but wouldn't it be functionally similar to adding a constant to the softmax denom? the function could sort of learn a specific position to have sink and q multiply to one, then removing it before multipling with v would be exactly identical?

chessgecko··on Attention Is Off By One
I was just looking at doing this in pretraining, so I was looking at pretraining losses. The difference was within the range of usual noise so I didn't keep trying.
chessgecko··on Attention Is Off By One
I think maybe its because he didn't have experimental results that show that it worked. Not a knock against the author, there are just so many things that seem like good ideas that don't end up working well in practice, a paper like this without results is hard to value.
chessgecko··on Attention Is Off By One
I ran an experiment like this and in my setting it didn't help. Not saying there may not have been a bug or something, but I think attending over the current position sort of solves this problem. IE when it should not speak it just emits the current pos value.

edit to add details in case anyone is interested

I didn't add one to the softmax denom. I added a learned parameter (the attention sink) that would be appended to the beginning of QK but would be removed after softmax, so when multiplying by V the totals wouldn't sum to one. I tried variants that included looking at the current pos and not, and also variants that predicted used an ffn to generate the sink per position instead of a learned param. In my setting neither approach really made much of a difference. But I also had a bunch of other weird stuff in there too, so it may be worth trying again.

← PreviousPage 2 of 3Next →