GithubHelp home page GithubHelp logo

phind's Introduction

Locally hosted: 60% HumanEval

Just -7% behind the full model! This repo shares how to reproduce the results using a consumer GPU in under 20 minutes.

Check out the blog post: https://www.phind.com/blog/code-llama-beats-gpt4

Uses: https://huggingface.co/TheBloke/Phind-CodeLlama-34B-v1-GPTQ

How-To

git clone https://github.com/catid/phind
cd phind

conda create -n phind python=3.10
conda activate phind

pip install -r requirements.txt

# Download the `gptq-4bit-32g-actorder_True` branch of TheBloke/Phind-CodeLlama-34B-v1-GPTQ
# This performs much better than the main branch on the benchmark
git clone --single-branch --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/Phind-CodeLlama-34B-v1-GPTQ

python test.py

evaluate_functional_correctness samples.jsonl
(phind) ➜  phind git:(master) ✗ evaluate_functional_correctness samples.jsonl
Reading samples...
164it [00:00, 46568.67it/s]
Running test suites...
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████| 164/164 [00:03<00:00, 50.17it/s]
Writing results to samples.jsonl_results.jsonl...
100%|█████████████████████████████████████████████████████████████████████████████████████████████████| 164/164 [00:00<00:00, 154820.13it/s]
{'pass@1': 0.6036585365853658}

phind's People

Contributors

catid avatar

Stargazers

 avatar Tail avatar Andrew Margetts avatar  avatar  avatar A. S. M. Muhiminul Hasan avatar  avatar maurice avatar

Watchers

 avatar  avatar

Forkers

apollohuang1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.