News for hackers. Stuff that matters.
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by syntaxing on Friday August 25, 2023 @07:37PM (#37268394)
I used the original 34B last night with 4 bit through accelerate and I was absolutely blown away. I got goosebumps because it finally felt like we have models we can run on consumer hardware (single 3090 in this case) and did not feel like a toy. I purposely broke some functions, it fixed it. I asked some complex questions and it answered it well. I’m excited for what’s to come. I wish there was a Phind instruct model for me to play with. Text completion hasn’t really been all that useful for my use case.
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by rushingcreek on Friday August 25, 2023 @07:49PM (#37268481)
Our models should handle instructions reasonably well. We're working on setting up a hosted Huggingface space to make it easier to play with them and we'll also set up a hosted "Phind chat" mode for these models.
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by redox99 on Friday August 25, 2023 @07:59PM (#37268534)
I actually tried the 4 bit quants (Q4_K_M) and was a bit unimpressed. Switching to Q6_K made a huge difference, but it doesn't fit on my 3090 so it was very slow. And testing on perplexity's website which I presume is fp16 seemed even better, although that might be mostly due to sampler/prompt differences.
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by syntaxing on Friday August 25, 2023 @08:34PM (#37268743)
I have a hunch something is broken with the GGUF. I had terrible results using llama cpp as well.
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by larodi on Saturday August 26, 2023 @05:21AM (#37271034)
A lot of things are being getting right if you look at the issues at ggerganov’s repo.

To say anything as general as ‘the new file format is broken’ just means you either don’t understand the project basics or do not follow closely the commits.

Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by syntaxing on Saturday August 26, 2023 @07:43AM (#37271887)
So? Doesn’t mean that the moment we are using it, the format isn’t broken. I didn’t say that it wouldn’t be fixed in the future. The reality is, the current 4 bit GGUF are giving us subpar results compared to other quantization method. It’s not a helpful comment telling me that “I don’t understand the basic” rather than telling me the exact flags we should using or it’s being fixed.
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by larodi on Saturday September 02, 2023 @01:01PM (#37363303)
Inference with llama.cop is not trivial and I can’t summarise in one post all of them parameters. What I’m saying is that in my opinion. is wrong to assume that changing from one transport to the other is causing degradation.

Llamacpp underwent some major changes last few weeks. And following the commits it took few days to stabilise. Try now , works as bliss. And compared to other inference engines such as tinygrad - is much more versatile in options how to be run.

Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by gmm1990 on Friday August 25, 2023 @08:43PM (#37268807)
What parameters/prompts did you use, I was able to get ok results but not comparable to chat gpt or even bard
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by rushingcreek on Friday August 25, 2023 @08:46PM (#37268828)
We used no prompt (only autocomplete) for the HumanEval reproduction: https://huggingface.co/Phind/Phind-CodeLlama-34B-v1.

But you should be able to get it to do stuff just by telling it what you want. Note that it's completion tuned (not chat-tuned), so it should perform better on single-turn conversations.

Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by syntaxing on Friday August 25, 2023 @09:01PM (#37268922)
I used textgen, instruct mode with LLaMa 2 template, “simple” parameters. What quantization method are you using?
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by gmm1990 on Friday August 25, 2023 @10:09PM (#37269296)
I used the llama.cpp quantize q_0 option. Seemed to vary widely just adjusting the temperature parameters. Was giving it an example db query saving to file in json and asking create a similar function did multiple queries.
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by syntaxing on Friday August 25, 2023 @10:41PM (#37269472)
I’m assuming typo and you mean 4? What model size? As mentioned above, I had serious issues making GGUF work well. I’m gonna post an article talking about a better way to set it up.
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by jmorgan on Friday August 25, 2023 @11:15PM (#37269645)
It really is good. Surprisingly it seems to answer instruct-like prompts well! I’ve been using it with Ollama (https://github.com/jmorganca/ollama) with prompts like:

  ollama run phind-codellama "write c code to reverse a linked list"
To run this on an m1 Mac or similar machine, you'll need around 32GB of memory for the 4-bit quantized version since it's a 34B parameter model and is quite big (20GB).
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by praveenhm on Saturday August 26, 2023 @01:00AM (#37270069)
Is reverse a linked list is still a popular question on interview?
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by ddalex on Saturday August 26, 2023 @02:43AM (#37270403)
I ask it as a warmup question, I expect it to be done in 5-10 minutes.

Then comes the real question, which is "let's write fizz buzz so it generates at above 55Gbytes/second".

Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by moffkalast on Saturday August 26, 2023 @05:55AM (#37271211)
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by robinson7d on Saturday August 26, 2023 @06:19AM (#37271396)
I believe they’re referencing this codegolf entry: https://codegolf.stackexchange.com/questions/215216/high-thr...

Previously discussed here on HN: https://news.ycombinator.com/item?id=29031488

Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by moffkalast on Saturday August 26, 2023 @08:21AM (#37272164)
Ah, lmao
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by redox99 on Saturday August 26, 2023 @08:01AM (#37272014)
Kind of hilarious what it would go for Python, of all languages.
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by pmarreck on Saturday August 26, 2023 @09:24AM (#37272672)
I explicitly instructed in my custom instructions to never use Python, Go or JS, and to stick to functional languages. Works a treat.
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by madduci on Saturday August 26, 2023 @07:46AM (#37271900)
just out of curiosity, how performed the candidates on real tasks on the job then?
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by fb03 on Saturday August 26, 2023 @08:05AM (#37272043)
I got that fizzbuzz reference. Stack Overflow thread right?
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by codetrotter on Saturday August 26, 2023 @03:14AM (#37270532)
How do you guys get it to run?

I tried with ollama, installed from Homebrew, on my M1 Max with 64GB RAM.

I downloaded the phind-codellama model using

  ollama pull phind-codellama
But when I give it a prompt, for example

  ollama run phind-codellama "write a production grade implementation of Sieve of Eratosthenes in Rust"
It prints the following error message

    Error: Post "http://localhost:11434/api/generate": EOF
and exits.

Even though it worked to run ollama with some other models.

Is the version in homebrew not able to run phind-codellama?

Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by jmorgan on Saturday August 26, 2023 @03:29AM (#37270588)
Yes you'll need the latest version (0.0.16) to run the 34B model. It should run great on that machine!

The download (both as a Mac app and standalone binary) is available here: https://github.com/jmorganca/ollama/releases/tag/v0.0.16. And I will work on getting that brew formula updated as well! Sorry to see you hit an error!

Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by JoelJacobson on Saturday August 26, 2023 @04:49AM (#37270891)
Is there a limit on the number of lines/tokens it can take as input? Can it be increased? The limit seems to be somewhere above 30 lines.

I'm on a MacBook Pro M1 Max 64GB.

    % ollama --version
    ollama version 0.0.16
    % ollama run phind-codellama "$(cat prompt.txt)"
    ⠧   Error: Post "http://localhost:11434/api/generate": EOF
    % wc prompt.txt
         335    1481   11457 prompt.txt
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by syntaxing on Saturday August 26, 2023 @07:48AM (#37271918)
This feature was surprisingly hard to find, but you can wrap multi line in “””. So start off with “””, then type or new line (with enter) anything you want, then close with “”” and it’ll run the whole prompt. (“”” is 3 parenthesis quote, the formatting from HN is making it look funny)
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by jquery on Saturday August 26, 2023 @08:12AM (#37272096)
>3 parenthesis quote

Do you mean triple double quotes?

Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by JoelJacobson on Saturday August 26, 2023 @08:48AM (#37272388)
That's what I've been using but still get that error.
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by tomduncalf on Saturday August 26, 2023 @11:51AM (#37273925)
Same here, would be interested to know if there's a solution!

I created an issue, if you have an example prompt to add that would be helpful! https://github.com/jmorganca/ollama/issues/422

Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by jmorgan on Saturday August 26, 2023 @02:25PM (#37275483)
Thanks for creating an issue! And sorry for the error folks… working on it!
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by tomduncalf on Sunday August 27, 2023 @03:50AM (#37280375)
Haha no need to apologise! Thanks for an amazing project :)
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by pmarreck on Saturday August 26, 2023 @01:55PM (#37275161)
Datapoint here on an M1Max Macbook Pro: I use the triple doublequotes and I'm not getting that error
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by tomr75 on Saturday August 26, 2023 @05:14AM (#37270994)
do you think can get this working with https://github.com/jackmort/chatgpt.nvim?
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by syntaxing on Saturday August 26, 2023 @08:03AM (#37272025)
Not exactly using ollama, but you can use localAI [1] and set your local environment "OPENAI_API_HOST" to localhost and it should work.

[1] https://github.com/go-skynet/LocalAI

Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by pmarreck on Saturday August 26, 2023 @11:02AM (#37273514)
This project is sweet and I fortunately have a Mac M1 laptop with 64GB RAM to play with it.

But I'd like to also be able to run these models on my Linux desktop with two GPU's (a 2080Ti and a 3080Ti) and a Threadripper. How difficult would it be to set some of these up on there?

Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by sodality2 on Saturday August 26, 2023 @11:16AM (#37273640)
Not hard with text-generation-ui! https://github.com/oobabooga/text-generation-webui

I personally use llama.cpp as the driver since I run CPU-only but another may be better suited for GPU usage. But then it's as simple as downloading the model and placing it in the directory.

Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by pmarreck on Saturday August 26, 2023 @01:49PM (#37275088)
My Threadripper has 64 cores/128 threads and I'm wondering if any models can take advantage of CPU concurrency to at least mitigate some of the loss from not using a GPU (should one not be using a GPU)
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by sodality2 on Saturday August 26, 2023 @02:04PM (#37275259)
From my experience llama.cpp doesn’t take full advantage of parallelism as it could. Tested this on an HPC cluster - increasing thread count certainly did increase CPU usage but did not meaningfully improve tok/s past 6-8 cores. Same behavior with whisper.cpp. :( I wonder if there’s another backend that scales better.
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by moonchrome on Saturday August 26, 2023 @03:53PM (#37276247)
I'm guessing the problem is that you're constrained by memory bandwidth and not computation power and this is inherent to the algorithm, not an artifact of any one implementation.
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by pmarreck on Saturday August 26, 2023 @02:54PM (#37275773)
Failed to build llama-cpp-python ERROR: Could not build wheels for llama-cpp-python, which is required to install pyproject.toml-based projects Command '. "/Users/pmarreck/Downloads/oobabooga_macos/installer_files/conda/etc/profile.d/conda.sh" && conda activate "/Users/pmarreck/Downloads/oobabooga_macos/installer_files/env" && python -m pip install -r requirements.txt --upgrade' failed with exit status code '1'. Exiting...

I'm admittedly running Sonoma beta, that's probably why

I will try it on my Linux machine later tonight (currently AFK with laptop)

Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by eshack94 on Friday September 01, 2023 @01:33PM (#37353873)
Is there any chance you can add the phind-codellama-34b-v2 model? Or if there's already a way to run that with ollama, can you tell me how or point me to some docs? Thanks a ton!
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by troupo on Saturday August 26, 2023 @01:24PM (#37274846)
> It really is good

> write c code to reverse a linked list

The number of times I had to do it in real production code amounts to zero.

The number of times I had to piece code from poorly documented external services, conflicting product requirements, and running on complex and weird environments has been ... well ... multiple times a day for the past 20+ years.

"instruct-like prompts" is what you give a very junior engineer out of college, and then you have to carefully review their code.

Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by d136o on Saturday August 26, 2023 @12:21AM (#37269918)
llama-2-70b-chat (courtesy of llama.cpp on m2) says:

  Pretend to be a commenter on hackernews. Respond to the comment below:

  [parent comment inlined]

  what is your response?
  "Wow, that's great to hear! It sounds like you had a really positive experience with the 34B last night. I'm also excited to see what's in store for Phind and its potential applications. Have you tried using the 34B for any specific tasks or projects yet? And do you think the text completion feature would be useful for your use case if it were improved further?"
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by api on Saturday August 26, 2023 @07:42AM (#37271878)
Someone should fine tune one on HN comments to create the ultimate AI middle-brow know it all.

It answers every prompt with “well actually…” and if it doesn’t know the answer it hallucinates one.

Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by ttul on Saturday August 26, 2023 @10:06AM (#37273072)
Doesn’t this just reflect that humans are generally just large language models? Maybe throw in an extra dimension of “emotions” that are useful for training?
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by swader999 on Saturday August 26, 2023 @10:25AM (#37273222)
These llms are weak facsimiles of the brain, not humans. The real world is the ultimate training model, it can't be fully substituted with a bunch of strings.
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by bloaf on Saturday August 26, 2023 @10:34AM (#37273290)
This sounds like the old question "if a blind-from-birth man (who can recognize squares by feel) gained sight would he be able to recognize squares visually?"

And since that question has been answered in the negative, I'm inclined to agree.

Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by slashdev on Saturday August 26, 2023 @12:05PM (#37274032)
Has it been answered in the negative?
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by bloaf on Saturday August 26, 2023 @03:53PM (#37276240)
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by goatlover on Saturday August 26, 2023 @03:24PM (#37276005)
No, humans are living organisms. Talking is just one thing we do, and we do it for reasons other than to generate the next token.
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by swader999 on Saturday August 26, 2023 @10:23AM (#37273202)
It would be fun to resurrect Slashdot with clones of great past commentators.
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by api on Saturday August 26, 2023 @07:39AM (#37271867)
Now we just need a llama.cpp VSCode plug-in.
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by nomand on Wednesday August 30, 2023 @05:30AM (#37319463)
Ollama for mac + https://continue.dev/. Otherwise c.d has hooks for other types of installs.
Re:Show HN: Beating GPT-4 on HumanEval with a fine-tuned Cod... by plandis on Saturday August 26, 2023 @12:33PM (#37274323)
What kinds of questions do you ask these?