• Stars
    star
    689
  • Rank 65,628 (Top 2 %)
  • Language
    Python
  • Created over 1 year ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Make Llama2 use Code Execution, Debug, Save Code, Reuse it, Access to Internet

llama2 code interprerter icon

Llama2 Code Interpreter

πŸ€— CodeLlama 7B Finetuned Model (HF)

Python 3.9+ Code style: black

This project allows LLM to generate code, execute it, receive feedback, debug, and answer questions based on the whole process. It is designed to be intuitive and versatile, capable of dealing with multiple languages and frameworks.

The purpose and direction of the project

Quick Start

Run the Gradio App:

python3 chatbot.py --path Seungyoun/codellama-7b-instruct-pad

News

HumanEval

Model Score(pass@1)
Codellama instruct 7b 34.8%
Codellama instruct 7b - finetuning 70.12%

GSM8K

Model Score
Code Llama 7B 13%
Code Llama 13B 20.8%
Codellama instruct 7b - finetuning 28%

🌟 Key Features

  • πŸš€ Code Generation and Execution: Llama2 is capable of generating code, which it then automatically identifies and executes within its generated code blocks.
  • Monitors and retains Python variables that were used in previously executed code blocks.
  • 🌟 At the moment, my focus is on "Data development for GPT-4 code interpretation" and "Enhancing the model using this data". For more details, check out the feat/finetuning branch in our repository.
  • 🌟 CodeLlama Support CodeLlama2

Examples


Llama2 in Action

example1_president_search_with_code

In the GIF, Llama2 is seen in action. A user types in the request: Plot Nvidia 90 days chart. Llama2, an advanced code interpreter fine-tuned on a select dataset, swiftly queries Yahoo Finance. Moments later, it fetches the latest Nvidia stock prices from the past 90 days. Using Matplotlib, Llama2 then generates a clear and detailed stock price chart for Nvidia, showcasing its performance over the given period.

Installation

  1. Clone the Repository (if you haven't already):

    git clone https://github.com/SeungyounShin/Llama2-Code-Interpreter.git
    cd Llama2-Code-Interpreter
  2. Install the required dependencies:

    pip install -r requirements.txt

Run App with GPT4 finetunned Llama Model

To start interacting with Llama2 via the Gradio UI using codellama-7b-instruct-pad, follow the steps below:

  1. Run the Gradio App:
    python3 chatbot.py --path Seungyoun/codellama-7b-instruct-pad

For those who want to use other models:

General Instructions to Run App

To start interacting with Llama2 via the Gradio UI using other models:

  1. Run the Command:
    python3 chatbot.py --model_path <your-model-path>

Replace <your-model-path> with the path to the model file you wish to use. A recommended model for chat interactions is meta-llama/Llama-2-13b-chat.

Contributions

Contributions, issues, and feature requests are welcome! Feel free to check issues page.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Seungyoun, Shin - [email protected]

Acknowledgement

Here are some relevant and related projects that have contributed to the development of this work:

  1. llama2 : GitHub Repository
  2. yet-another-gpt-tutorial : GitHub Repository

These projects have been instrumental in providing valuable insights and resources, and their contributions are highly appreciated.


More Repositories

1

GroupFace

https://arxiv.org/abs/2005.10497
Python
73
star
2

Adaptive-Wing-Loss-for-Robust-Face-Alignment-via-Heatmap-Regression

Adaptive-Wing-Loss-for-Robust-Face-Alignment-via-Heatmap-Regression
Python
56
star
3

CAGFace

Component Attention Guided Face Super-Resolution Network: CAGFace
Python
27
star
4

EXTD

EXTD :: Extremely Tiny Face Detector via Iterative Filter Reuse
Jupyter Notebook
13
star
5

SPIN

Unofficial implementation of Self-Play Fine-Tuning Converts Weak Language Models to Strong Language Models
Python
7
star
6

Past-as-a-Guide

Project Page of "Past as a Guide: Leveraging retrospective learning for Python code completion"
Python
6
star
7

RFBNet_for_head_detection

RFBNet for head detection (from https://github.com/ruinmessi/RFBNet)
Jupyter Notebook
4
star
8

Classify_Cars

simple CNN model classifying 4 classes of car (Keras)
Python
3
star
9

LLM2Act

Make Large Language Model to Plan,Act,Self-improved
Jupyter Notebook
2
star
10

LaneNet

Towards End-to-End Lane Detection: an Instance Segmentation Approach Variation
Python
2
star
11

XAI-501-Project

Python
1
star
12

ChatGPTUtils

gpt4 cli interace
Python
1
star
13

Dog_Bread_Identification-Kaggle-

kaggle competition
Python
1
star
14

MultiThor

MultiAgent Cooperative instruction following Env.
Python
1
star
15

object_detection_for_retail

an autonomous solution for unmanned shops based on computer vision
Python
1
star
16

DGU-Algorithm-Final-Project-Genome-Assembly

Genome Assembly
C++
1
star
17

DGU-DataAnalysis

λ™κ΅­λŒ€ 데이터뢄석 μˆ˜μ—… ν”„λ‘œμ νŠΈ
Jupyter Notebook
1
star
18

SSD_from_scratch_pytorch

pytorch version of : https://gluon.mxnet.io/chapter08_computer-vision/object-detection.html#SSD:-Single-Shot-MultiBox-Detector
Jupyter Notebook
1
star