HNHacker News
TopNewBestAskShowJobs

why_only_15

1,060 karma · joined September 10, 2018

homepage: https://girl.surgery
submissionscomments
why_only_15··on Tape Storage Might Be Computing’s Climate Savior
Within Google, there used to be significant usage of tape storage until there was some major data loss incident on HDDs and they had to actually read the tapes and someone did the math and realized it would take between weeks and months to read out all the data that they needed.
why_only_15··on Is ChatGPT a Bit Unsporting?
If it's so bad, people can just choose not to use it!
why_only_15··on What's new in Llama 2 and how to run it locally
That would be awesome, but we've tried for decades and haven't gotten there with basic if/else. I do think it's pretty plausible that if you combine some very slimmed down models with strong heuristics you could get far though. At the moment I think expense doesn't really matter -- an hour of a knowledge worker's time is worth 416,000 tokens of GPT-4, the most expensive model out there. For llama-2 it's even less time. Unless you're processing truly epic numbers of tokens, by far the most important is whether we can use these things for real.
why_only_15··on The antitrust trial against Google is starting in September
Except previously the big breakups (AT&T, Standard Oil) were location-based, which doesn't really make sense for Google. Why do you think splitting of maps and display ads would matter for Google's market share in search?
why_only_15··on Chiplet ASIC supercomputers for LLMs like GPT-4
I mean maybe? This seems unlikely. I agree that decode is much more expensive and tok/s depends a lot on what your ratio of decode tokens to prefill tokens is.

This table was very helpful by the way, I didn't see that before. To me it clearly shows that 211 tok/s/A100 is very plausible and in fact kind of a poor showing because if you look at table D.4 and specifically the results for BS=256 PP3/TP8 they achieve ~150 tok/s/A100 on a model that's 3x larger than GPT-3.

why_only_15··on Chiplet ASIC supercomputers for LLMs like GPT-4
Well LM-175B is 540/175=3.08x smaller, so it makes sense you would get better performance. Also, in Table D.4 it takes them 9.614s to process (28 input + 8 output tokens = 136 tok * 256 batches = 34,816 tokens with 24 A100s, which is ~150 tok/s/A100. It feels totally plausible that they could hit 211 tok/s with a bigger model. I think 211 tok/s is in fact a pretty poor showing from them and you could do significantly better.
why_only_15··on Chiplet ASIC supercomputers for LLMs like GPT-4
5x gain per dollar
why_only_15··on Chiplet ASIC supercomputers for LLMs like GPT-4
If you look at the "metrics" section on Page 9, it says:

> 2) Metrics: We use three performance metrics: (i) latency, i.e., end-to-end output generation time for a batch of input prompts, (ii) token throughput, i.e., tokens-per-second processed, and (iii) compute throughput, i.e., TFLOPS per GPU.

This is somewhat confusing to me because at least two of these three definitions should be essentially the same thing, but I don't think there's any way to interpret their claim of ~74 teraflops achieved other than ~211 tokens/second of throughput.

Put another way, 18 tokens per second is 2% flops utilization, which we are obviously capable of doing better than for bulk inference.

3x is not huge in this space because just using a 4090 instead of an A100 is a 5x gain.

why_only_15··on GPT-4 details leaked?
Except in practice this is not true, and hasn't been for more than a year. It's not just a workaround either -- FlashAttention is both faster at runtime and uses less memory.
why_only_15··on Chiplet ASIC supercomputers for LLMs like GPT-4
It shows 18 tokens per second but that's how fast tokens are generated I think. The number of tokens generated is that times the batch size, which appears to be 12? The graph is quite unclear and I didn't feel like reading the paper more in-depth.
why_only_15··on Chiplet ASIC supercomputers for LLMs like GPT-4
This seems like a pretty bad paper. Their headline claim that they are 300x faster than an A100 at serving GPT-3 uses obviously wrong numbers for how fast A100s can run GPT-3. They seem to have misread the DeepSpeed Inference paper and claim that the best throughput on GPT-3 sized models was 18 tok/s, but if you look at figure 8 on page 11 of the paper [1], it shows that they are able to achieve ~74 teraflops on serving LM-175B (GPT-3), which is about 211 tok/s. To calculate TCO, we can say 211 tok/s = 760,000 tok/hour and A100s are about $1/hr, so TCO per 1k tokens using that paper's method is about $0.0013, much lower than the $0.02 that they claim, reducing the claimed TCO advantage from 94x to 6.2x. Combine this with the fact that the paper they used is from a year ago and there are more efficient inference methods than there were then and the speedup probably goes even lower, maybe to 3x. This is without even looking at the chip design itself, whose costs are probably far underestimated.

[1]: https://arxiv.org/pdf/2207.00032.pdf

why_only_15··on GPT-4 details leaked?
presumably you mean a dot product of Q and K, and no you do not have to store this: https://arxiv.org/abs/2205.14135
why_only_15··on GPT-4 details leaked?
Memory does not scale quadratically with sequence length.
why_only_15··on GPT-4 details leaked?
This is the original paper: https://arxiv.org/abs/1911.02150 . The idea is that with a transformer you have many heads, say 64 for LLaMa, and for each head you have 1 "query" vector one "key" vector and one "value" vector per token. Most of the cost of inferencing models is loading the key and value vectors from GPU memory to the GPU itself. the idea behind MQA is that instead of having 64 queries, 64 keys, and 64 values, you have 64 queries, 1 key, and 1 value ("Multi-Query" as opposed to "Multi-Head", the original name). This means that there is much less data to load from GPU memory to the GPU during inference.
why_only_15··on GPT-4 details leaked?
Mixture of experts is different from ensembles because MoE happens at every layer as opposed to joining the models once at the end
why_only_15··on GPT-4 details leaked?
If I read a book and then write a summary, is that plagiarism? What's the difference? I am legitimately not familiar with copyright law, but real lawyers seem to think it is unclear whether training on copyrighted data is illegal (in Japan it's definitely not).
why_only_15··on GPT-4 details leaked?
As a note the 366B in Bloom-366B refers to the number of tokens, not the number of parameters. Bloom had 176B parameters (still many more than Falcon)
why_only_15··on GPT-4 details leaked?
Leaked is I think an accurate term -- this (or the original post) is fairly new information leaked from openai.
why_only_15··on GPT-4 details leaked?
Many people train on libgen/torrent in the form of books3 (e.g. LLaMa does this).
why_only_15··on Shortening the Let's Encrypt chain of trust
In the post they say:

> In addition, dropping the cross-sign will reduce the number of certificate bytes sent in a TLS handshake by over 40%

why_only_15··on GPT-4 details leaked?
This is not how mixture of experts works at all. The experts are chosen on each layer, not for the whole network, and attention is shared between all of them.
why_only_15··on How small is the smallest .NET Hello World binary?
On MacOS at least all binaries are dynamic (except dyld itself) so I think this is fair. This is because everything is supposed to link I believe some kind of runtime dylib instead of doing e.g. syscalls. This includes anything written in C, for example. Size of binary with dynamic links is the most fair comparison between anything running not on Linux.
why_only_15··on It’s infuriatingly hard to understand how closed models train on their input
code-davinci-002, the gpt-3.5 base model, was available for a while until it was removed recently. Access is still available for researchers. Various researchers and other entities have access to the GPT-4 base model as well.
why_only_15··on Nvidia DGX GH200: 100 Terabyte GPU Memory System
In my head the way I differentiate "supercomputers" (national labs) and "warehouse-scale computers" (google/amazon/azure) is:

1. workload for national labs this is mostly sparse fp64 in my understanding, for warehouse-scale computing is lots of integer work, highly branchy, lots of pointer chasing, stuff like that.

2. latency/reliability vs throughput warehouse-scale computing jobs often run at awful utilization, in the 5-20% range depending on how you measure, in order to respond to shocks of various kinds and provide nice abstractions for developers. fundamentally these systems are used live by humans and human time is very valuable so making sure it stays up always and returns quickly is paramount. In my understanding supercomputing workloads are much more throughput-oriented, where you need to do an enormous amount of computation to get some answer but it doesn't much matter whether the answer comes in one week or two weeks.

3. interconnect warehouse-scale computing workloads are mostly fairly separable and the place where different requests become intertangled is in the database. In the supercomputing world, in my understanding, there are often significant interconnect needs all the time, so extremely high performance networking is emphasized.

why_only_15··on Nvidia DGX GH200: 100 Terabyte GPU Memory System
Supercomputers exist in meaningful part to compensate for our lack of ability to do nuclear tests. This is why the national labs run them.
why_only_15··on New Arm cores deliver up to 40% better performance
> Apple, Qualcomm, MediaTek, and Google all use Arm's designs and technology as a foundation for their own processor chips that power essentially all of today's phones

My understanding was that Amazon/Qualcomm/Mediatek/Google use ARM's cores but that Apple had their own core design and just uses the ARM architecture under special license.

why_only_15··on Investigating the impact of HTTP3 on network latency for search
This is a nice post, but it feels a little weird because while HTTP/3 gets them 10ms on average, they could get 30ms on average by reducing Asia latencies (15% of traffic, 300ms) to North America latencies (100ms). I'm sure they have some internal constraint that makes that difficult, but just stuck out at me.
why_only_15··on KeyDB – A Multithreaded Fork of Redis
My limited understanding is that there's less cache thrashing (from multiple different workloads scheduled on the same core) and less scheduler overhead (from less overall threads).
why_only_15··on I want to talk about WebGPU
WebGPU has no equivalent to tensor cores to my understanding; are there plans to add something like this? Or would this be "implementation sees matmul-like code; replaces with tensor core instruction". For optimal performance, my understanding is that you need tight control of e.g. shared memory as well -- is that possible with WebGPU?

On NVIDIA GPUs, flops without tensor cores are ~1/10th flops with tensor cores, so this is a pretty big deal for inference and definitely for training.

why_only_15··on Why did Google Brain exist?
You are not correct about TPUs being drastically better for GPUs at this. If you look at public benchmarks, both have a similar cost per hardware flop ($0.88/hr for 312tflops A100 on GCP, $0.97/hr for 275tflops TPUv4) and both achieve similar model flop:hardware flop ratios (40-60%).

An existence proof that GPU mega-clusters are possible is that GPT-4 cost ~$100m over ~3 months, so ~100m a100-hours / (3 months * 30 days/month * 24 hours/day = 2160 hours) = ~45k a100s collaborating, which is the equivalent of ~10 TPUv4 pods on a single training run.

← PreviousPage 4 of 15Next →