HN user

sdrg822

83 karma
Posts0
Comments28
View on HN
No posts found.
Prompt Caching 2 years ago

+1 it wouldn’t be terribly useful if it were only caching the tokenizer output.

LangGraph Engineer 2 years ago

I think if you actually meet the people you'd realize they're pretty earnest and candid of these things' limitations, though it may not show in tweets and hackernews posts.

This repo, for instance, makes no claims of AGI. It just claims to help bootstrap a starting point for a software project: "it will not attempt to write the logic to fill in the nodes and edges."

Cool. Important note:

""" One may ask whether the conditionality introduced by the use of CMM does not make FFFs incompatible with the processes and hardware already in place for dense matrix multiplication and deep learning more broadly. In short, the answer is “No, it does not, save for some increased caching complexity." """

It's hard to beat the hardware lottery!

For things like BERT where you just want to extract an embedding, the naive way you reach full utilization at inference time is that you :

- run tokenization of inputs on CPU

- sort inputs by length

- batch inputs of similar length and apply padding to make of uniform length

- pass the batches through so a single model can process many inputs in parallel.

For GPT-style decoder models however, this becomes much more challenging because inference requires a forward pass for every token generated. (Stopping criteria also may differ but that’s another tangent).

Every generated token performs attention on every previous token, both the context (or “prompt”) and the previously generated tokens (important for self consistency). this is a quadratic operation in the vanilla case.

Model sizes are large , often spanning multiple machines, and the information for later layers depends on previous ones, meaning inference has to be pipelined.

The naive approach would be to have a single transaction processed exclusively by a single instance of the model. this is expensive! even if each model can be crammed into a single A100 , if you want to run something like Codex or ChatGPT for millions of users with low latency inference, you’d have to have thousands of GPUs preloaded with models, and each transaction would take a highly variable amount of time.

If a model spans multiple machines, you’d achieve a max of 1/n% utilization because each shard has to remain loaded while the others process, and then if you want to do pipeline parallelism like in pipe dream, you’d have to deal with attention caches since you don’t want to have to recompute every previous state each time

Just a slight comment - "&" was indeed called "and" (not "per se"), but in reading the alphabet, it was confusing to say "and and." To clear up confusion, one could say "and per se and," which was smooshed to become "ampersand."

"per se" was used for letters that could also be words "in themselves"

Agreed, the "but" in the bolded text[1] further confuses, but the article highlights some great progress.

> STAR, has responded to 748 incidents." > about 3 percent of calls for DPD service, or over 2,500 incidents, were worthy of the alternative approach

[1] "Chief Pazen is thrilled with the success of STAR, but the time and money it saves will go toward fighting crime, he said."

"While it remains to be seen whether transplantation from very young donors can restore cognitive function in aged recipients, the findings demonstrate that age-related shifts in the gut microbiome can alter components of the central nervous system."

Looking forward to future results testing the other direction.

[dead] 6 years ago

Automated summarization, content moderation/censorship, and advertising.

It could make publishing more profitable, but will it make enable higher quality content? It feels more like a continuation of the race to the bottom we are already engaged in.

Usually backcountry camping requires hiking in to a site, whereas "tent" camping would refer to stays in frontcountry campgrounds that are usually accessible via a car. With exceptions, tent camping would require a reservation, whereas backcountry camping sites often are occupied on a first-come first-served basis.