
🤗 CodeLlama 7B Finetuned Model (HF)
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
Run the Gradio App:
bash
python3 chatbot.py --path Seungyoun/codellama-7b-instruct-pad
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% |
Llama2 in Action

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.
Clone the Repository (if you haven't already):
bash
git clone https://github.com/SeungyounShin/Llama2-Code-Interpreter.git
cd Llama2-Code-Interpreter
Install the required dependencies:
bash
pip install -r requirements.txt
To start interacting with Llama2 via the Gradio UI using codellama-7b-instruct-pad, follow the steps below:
bash
python3 chatbot.py --path Seungyoun/codellama-7b-instruct-padFor those who want to use other models:
To start interacting with Llama2 via the Gradio UI using other models:
bash
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, issues, and feature requests are welcome! Feel free to check issues page.
Distributed under the MIT License. See LICENSE for more information.
Seungyoun, Shin - 2022021568@korea.ac.kr
Here are some relevant and related projects that have contributed to the development of this work:
These projects have been instrumental in providing valuable insights and resources, and their contributions are highly appreciated.
$ claude mcp add Llama2-Code-Interpreter \
-- python -m otcore.mcp_server <graph>