News for hackers. Stuff that matters.
Re:Llama.cpp 30B runs with only 6GB of RAM now by dchest on Friday March 31, 2023 @06:50PM (#35394827)
Re:Llama.cpp 30B runs with only 6GB of RAM now by thomastjeffery on Friday March 31, 2023 @07:03PM (#35394950)
Is there any measure, not of size or token amount, but of diversity in the content of the text?

Did that metric meaningfully change when the amount of required memory dropped?

If the amount of diversity is lowered, I would expect that to lower the amount of patterns to be modeled from the text. If that is the case, then the resulting model size itself would be lowered, during and after training.

Re:Llama.cpp 30B runs with only 6GB of RAM now by actually_a_dog on Friday March 31, 2023 @07:46PM (#35395333)
By "diversity," do you mean something like "entropy?" Like maybe

    H_s(x) := -\sum_{x \in X_s} p(x) log(p(x))
where X_s := all s-grams from the training set? That seems like it would eventually become hard to impossible to actually compute. Even if you could what would it tell you?

Or, wait... are you referring to running such an analysis on the output of the model? Yeah, that might prove interesting....

Re:Llama.cpp 30B runs with only 6GB of RAM now by thomastjeffery on Sunday April 02, 2023 @05:26PM (#35415417)
I'm really just speculating here.

Because the text we write is not evenly distributed random noise, what we encode into it (by writing) is entropy.

Because LLMs model text with inference, they model all of the entropy that is present.

That would mean that the resulting size would be a measure of entropy (sum of patterns) divided by repetition (recurring patterns). In this count, I would consider each unique token alone an instance of the identity pattern.

So to answer both questions: yes.