Live data from Hacker News

Llama 2

ai.meta.com

471–480 of 860 posts

Re: Llama 2

#471
post #430

Earlier quoted context omitted.

70B should work reasonably well on 64GB CPU RAM + any decent GPU, or maybe a 24GB GPU + 32GB CPU RAM.

do you mind teaching how to do CPU/GPU RAM math? all i know is 34B 16bit = 68GB total RAM needed (because 1B of 8bytes = 1GB definitionally), but i dont know how it splits between CPU/GPU and whether the tradeoff in tok/s is acceptable

If you are doing ~4 bit quantization, a good rule of thumb is just under 1 Gigabyte per 1B parameters, plus a little room for the operating system. Longer contexts require a bit more VRAM.

For reference, 4 bit LlamaV1 33B fits snugly on a 24GB GPU with 2K context with the exLLaMA backend. But it won't do really long inputs.

Llama.cpp is pretty much the only backend that can offload to CPU efficiently. Its still quite fast and offers very flexible 3-5 bit quantization, with the leanest 3 bit quant just barely fitting LlamaV1 33b on my 6GB + 16GB laptop.

Re: Llama 2

#473

Key detail from release: > If, on the Llama 2 version release date, the monthly active users of the products or services made available by or for Licensee, or Licensee’s affiliates, is greater than 700 million monthly active users in the preceding calendar month, you must request a license from Meta, which Meta may grant to you in its sole discretion, and you are not authorized to exercise any of the rights under thi…

Surely any one with 700 million users could just build their own?

Re: Llama 2

#474
Me: What is GPT-3?

LLaMA2: GPT-3 (Generative Pre-trained Transformer 3) is a powerful language model developed by Meta AI. (...)

Re: Llama 2

#475

The benchmarks look amazing compared to other open source LLMs. Bravo Meta. Also allowing commercial use? Can be downloaded today? Available on Azure AI model catalog today? This is a very impressive release. However, if I were starting a company I would be a little worried about the Llama 2 Acceptable Use Policy. Some of the terms in there are a little vague and quite broad. They could, potentially, be weaponized in…

It's not even remotely open source

How do you remotely open source a binary blob? Do you want them to post their training code and dataset?

Re: Llama 2

#476
post #388

Earlier quoted context omitted.

Your incredulity is a bit odd, given that GPT-4 is somewhat numerate, and can compare magnitudes and add/subtract. You’re directionally right I suppose, in that LLMs have a structural disadvantage due to the architecture and don’t always get the correct answer. But you seem to be claiming that a LLM could never do maths, which is trivially false. https://chat.openai.com/share/69e4e673-ba78-412a-a8a7-a1b2f8...

GPT-4 is not a pure LLM. It also accepts image inputs. There's other stuff "going on in there" in a GPT model than just linguistic analysis — and those other "facilities" of the model can potentially serve the needs of doing math better than the language parts can. But presuming that wasn't the critical point you wanted to make: Like I said, a language model can know that "1" "is less than" "2" — and it can also know…

> GPT-4 is not a pure LLM

I’ve looked a bit into the GPT architecture and haven’t seen anything suggesting it’s doing special-case experts for maths. It has MoE over 16 language models, and an image modality bolted on. If you have any evidence that there is a separate trained logic/math model I’d love to see that, as it would be interesting. (I don’t recall reading anything like that in the GPT papers for example, and this seems to claim there is no “calculator” hooked up in GPT-4 https://ai.stackexchange.com/a/40090).

> To put it another way: a (pure) language model has no way of encoding numbers

I think you just motte-and-bailey’d. Your original claim was that a LLM was incapable of doing $X > $Y or displaying numeracy, which I refuted by showing an example of an LLM doing greater than comparisons, and subtracting a quantity in different units ($50k -> 50,000).

Now you are substituting a much narrower claim, that an LLM is stucturally incapable of symbolic manipulation and “really modeling numbers”. This might be so! But it’s not required for basic numeracy, “tricks” as you put it, or whatever else GPT has learned, can objectively get us to median human performance.

Even going way back to GPT-2 there are mechanistic interpretability papers investigating how greater-than is implemented, eg https://arxiv.org/abs/2305.00586.

And there is work that suggests that LLMs do some sort of phase transition to gain numeracy skills: https://arxiv.org/pdf/2206.07682.pdf.

Your objection about working memory is also odd. Chain of thought reasoning strategies use the context as the working memory and have been demonstrated to improve performance on numeracy tasks.

But again, if you are retreating to a very narrow claim that the model can’t do precise calculations in a single inference step, then sure, that’s technically plausible, but that’s a way higher bar than displaying basic numeracy, and doesn’t justify the incredulity in your GP comment.

Re: Llama 2

#477
post #275

Hey HN, we've released tools that make it easy to test LLaMa 2 and add it to your own app! Model playground here: https://llama2.ai Hosted chat API here: https://replicate.com/a16z-infra/llama13b-v2-chat If you want to just play with the model, llama2.ai is a very easy way to do it. So far, we’ve found the performance is similar to GPT-3.5 with far fewer parameters, especially for creative tasks and interactions. Dev…

Still fails my hippo test! > Yes, hippos are excellent swimmers. They spend most of their time in the water, where they feed on aquatic plants and escape the heat of the savannah. In fact, hippos are one of the best swimmers among all land mammals. But that's fine. Most do. Hippos don't swim. They walk or hop/skip at best underwater.

I suspect LLM's don't know this because most people don't know this, so the training data is largely absent this fact.

Re: Llama 2

#478

Earlier quoted context omitted.

can a calculator do maths if it gets 99% of the answers wrong?

I think there are two separate issues here. The first is whether something can be said to be numerate. Is a working calculator numerate? Would an infinite machine with an infinite lookup table be numerate? Are the rules of math learned by modeling language sufficient to be considered numerate or does it require something more? Whether any LLM is numerate probably depends heavily on the specific criteria an individual…

> Whether any LLM is numerate probably depends heavily on the specific criteria an individual uses to define numerate. For some that might include the ability to actually reason mathematically (i.e., to understand mathematical rules and apply them)

so, no then

if it was in the training set maybe you'll get lucky though

Re: Llama 2

#479

Why doesn't FB create an API around their model and launch OpenAPI competitor? It is not like they don't have resources, and the learnings (I am referring to actual learning from users' prompts) will improve their models over time.

For starters, the performance isn't competitive with gpt-3.5 and would lose money if they made it price-competitive.

OpenAI has a huge headstart on productizing these models by fine-tuning and optimizing their use quite a bit. And they have probably not actually made money when you consider the massive investment.

But this is still very big for people that need or want to run their own fine-tuned models privately.

Re: Llama 2

#480

Earlier quoted context omitted.

> get this question correct I am willing to bet a million dollars that it is unlikely any single model will ever be able to answer any question correctly. The implications then are that one cannot use a single question evaluate whether a model is useful or not.

"I don't know" is more correct than making up an answer.

That's not the training objective though. It's like doing exams in school, there is no reason to admit you don't know so you might as well guess in the hopes of a few marks.
Post reply on HN