News for hackers. Stuff that matters.
Re:Using LLaMA with M1 Mac and Python 3.11 by cloudking on Sunday March 12, 2023 @01:09PM (#35122814)
How does LLaMA compare to GPT-3.5 has anyone done side by side comparisons?
Re:Using LLaMA with M1 Mac and Python 3.11 by tikkun on Sunday March 12, 2023 @01:12PM (#35122861)
In short, my experience is that it's much worse to the point that I won't use LLaMA.

The main change needed seems to be InstructGPT style tuning (https://openai.com/research/instruction-following)

Re:Using LLaMA with M1 Mac and Python 3.11 by simonw on Sunday March 12, 2023 @01:16PM (#35122918)
Yeah, it's MUCH harder to use because of the lack of tuning.

You have to lean on much older prompt engineering tricks - there are a few initial tips in the LLaMA FAQ here: https://github.com/facebookresearch/llama/blob/main/FAQ.md#2...

Re:Using LLaMA with M1 Mac and Python 3.11 by davidb_ on Sunday March 12, 2023 @01:22PM (#35123020)
Are you getting useful content out of the 7B model? It goes off the rails way too often for me to find it useful.
Re:Using LLaMA with M1 Mac and Python 3.11 by rnosov on Sunday March 12, 2023 @02:10PM (#35123841)
You might want to tune the sampler. For example, set it to a lower temperature. Also, the 4bit RTN quantisation seems to be messing up the model. Perhaps, the GPTQ quantisation will be much better.
Re:Using LLaMA with M1 Mac and Python 3.11 by spion on Sunday March 12, 2023 @05:02PM (#35126245)
Use `--top_p 2 --top_k 40 --repeat_penalty 1.176 --temp 0.7` with llama.cpp
Re:Using LLaMA with M1 Mac and Python 3.11 by datadeft on Sunday March 12, 2023 @05:33PM (#35126578)
Not bad with these settings:

    ./main -m ./models/7B/ggml-model-q4_0.bin \
    --top_p 2 --top_k 40 \
    --repeat_penalty 1.176 \
    --temp 0.7 
    -p 'async fn download_url(url: &str)'


    async fn download_url(url: &str) -> io::Result<String> {
      let url = URL(string_value=url);
      if let Some(err) = url.verify() {} // nope, just skip the downloading part
      else match err == None {  // works now
        true => Ok(String::from(match url.open("get")?{
            |res| res.ok().expect_str(&url)?,
            |err: io::Error| Err(io::ErrorKind(uint16_t::MAX as u8))),
            false => Err(io::Error
Re:Using LLaMA with M1 Mac and Python 3.11 by yeeeloit on Sunday March 12, 2023 @06:19PM (#35127034)
What fork are you using?

repeat_penalty is not an option.

Re:Using LLaMA with M1 Mac and Python 3.11 by spion on Sunday March 12, 2023 @11:26PM (#35130606)
Re:Using LLaMA with M1 Mac and Python 3.11 by beiller on Monday March 13, 2023 @02:14AM (#35131807)
It's a new feature :) Pull latest from master.
Re:Using LLaMA with M1 Mac and Python 3.11 by knodi123 on Monday March 13, 2023 @02:18AM (#35131831)
lol,

    ./main -m ./models/7B/ggml-model-q4_0.bin \
    --top_p 2 --top_k 40 \
    --repeat_penalty 1.176 \
    --temp 0.7
    -p 'To seduce a woman, you first have to'
output:

    import numpy as np
    from scipy.linalg import norm, LinAlgError
    np.random.seed(10)
    x = -2\*norm(LinAlgError())[0]  # error message is too long for command line use
    print x [end of text]
Re:Using LLaMA with M1 Mac and Python 3.11 by Tepix on Monday March 13, 2023 @02:42AM (#35131968)
Have you tried using the original repo?
Re:Using LLaMA with M1 Mac and Python 3.11 by ddren on Sunday March 12, 2023 @04:31PM (#35125873)
I am not sure that it is just missing instruction fine-tuning. I have been testing with the unicorn prompt from the GPT-2 era and the results are short and not very good. Maybe the sampling parameters in llama.cpp would benefit from some tweaking. For example this is one generation with the 33B model:

In a shocking finding, scientist discovered a herd of unicorns living in a remote, previously unexplored valley, in the Andes Mountains. Even more surprising to the researchers was the fact that the unicorns spoke perfect English.

"Well," said Dr. David Johnson, head of the 17 man/woman team from Oxford, "it's not like we weren't expecting to find them at all."

While many people might be disappointed with their discovery, they were actually quite lucky because very few animals have been found. This makes it nearly impossible to study any sort of creature's behaviour and whatnot. Uncorns are known for being extremely violent so this is definately an exciting time! [end of text]

Re:Using LLaMA with M1 Mac and Python 3.11 by DavidSJ on Monday March 13, 2023 @02:17AM (#35131827)
GPT-3.5 probably has substantially lower cross-entropy loss before instruction fine-tuning as well.

Meta’s LLaMA v. GPT-3 comparisons are to OpenAI’s 2020 release of GPT-3, but there’s been significant progress since then.

Re:Using LLaMA with M1 Mac and Python 3.11 by bt1a on Sunday March 12, 2023 @01:27PM (#35123106)
The sampler needs some tuning, but the 65B model has impressive output

https://twitter.com/theshawwn/status/1632569215348531201

Re:Using LLaMA with M1 Mac and Python 3.11 by superkuh on Sunday March 12, 2023 @01:26PM (#35123104)
Well, gpt3.5-turbo fails the turing test due to it's censorship and legal liability butt covering openai bolted on, so almost anything else is better. Now, compared to openai's gpt3 davinci (text-davinci-003) ... llama is much worse.
Re:Using LLaMA with M1 Mac and Python 3.11 by flangola7 on Sunday March 12, 2023 @03:47PM (#35125269)
I thought LLaMA outscored GPT-3
Re:Using LLaMA with M1 Mac and Python 3.11 by simonw on Sunday March 12, 2023 @03:57PM (#35125388)
GPT-3 is a very different model from GPT-3.5. My understanding is that they were comparing LLaMA's performance to benchmark scores published for the original GPT-3, which came out in 2020 and had not yet had instruction tuning, so was significantly harder to use.
Re:Using LLaMA with M1 Mac and Python 3.11 by flangola7 on Sunday March 12, 2023 @04:01PM (#35125448)
I know, that is why I said GPT-3 (Davinci) not GPT-3.5|ChatGPT.
Re:Using LLaMA with M1 Mac and Python 3.11 by simonw on Sunday March 12, 2023 @04:58PM (#35126186)
Da Vinci 002 and 003 are actually classified as GPT 3.5 by OpenAI: https://platform.openai.com/docs/models/gpt-3-5

ChatGPT is GPT-3.5 Turbo.

Re:Using LLaMA with M1 Mac and Python 3.11 by eshack94 on Sunday March 12, 2023 @07:42PM (#35128271)
Would you mind summarizing the difference between GPT 3.5 and GPT-3.5 Turbo? I'm not clear about that.
Re:Using LLaMA with M1 Mac and Python 3.11 by simonw on Sunday March 12, 2023 @11:57PM (#35130831)
GPT 3.5 is the instruction tuned modern GPT models, such as Da Vinci 002 and 003.

3.5 Turbo is the ChatGPT model: it's cheaper (1/10th the price), faster and has a bunch of extra RLHF training to make it work well as a safe and usable chatbot.

https://openai.com/blog/introducing-chatgpt-and-whisper-apis introduced the turbo model.

Re:Using LLaMA with M1 Mac and Python 3.11 by vletal on Sunday March 12, 2023 @04:00PM (#35125441)
Hard to measure these days. The training sets are so large they might contain leaks of test sets. Take these numbers with a grain of salt.
Re:Using LLaMA with M1 Mac and Python 3.11 by code51 on Sunday March 12, 2023 @04:54PM (#35126134)
Or... it could be that Chinchilla study has deficiencies in measuring capabilities of models maybe? Either that or your explanation. Frankly I don't think 13B is better than GPT-3 (text-davinci-001 which I think is not RLHF - but maybe better than base)
Re:Using LLaMA with M1 Mac and Python 3.11 by simonw on Sunday March 12, 2023 @05:03PM (#35126255)
text-davinci-001 is currently classed as "GPT 3.5" by OpenAI, and it did indeed have RLHF in the form of instruction tuning: https://openai.com/research/instruction-following

MY MISTAKE: 002 and 003 are 3.5, but 001 looks to have pre-dated the InstructGPT work.

Re:Using LLaMA with M1 Mac and Python 3.11 by nodemaker on Monday March 13, 2023 @09:30PM (#35146098)
I dont know why youre getting downvoted! There is nothing out there at the moment that is as authentic as text-davinci-003. I really hope its not taken away
Re:Using LLaMA with M1 Mac and Python 3.11 by KennyBlanken on Sunday March 12, 2023 @01:24PM (#35123069)
The writeup includes example text where the algorithm is fed a sentence starting about George Washington and within half a sentence or so goes unhinged and starts praising Trump...

Also, a reminder to folks that this model is not conversationally trained and won't behave like ChatGPT; it cannot take directions.

Re:Using LLaMA with M1 Mac and Python 3.11 by aroo on Sunday March 12, 2023 @08:34PM (#35128906)
The original LLaMA paper has some benchmarks. https://arxiv.org/pdf/2302.13971.pdf