Giter Site home page Giter Site logo

andrewtsuei / llama2-code-interpreter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from seungyounshin/llama2-code-interpreter

0.0 0.0 0.0 1.89 MB

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

Python 33.04% Jupyter Notebook 66.96%

llama2-code-interpreter's Introduction

llama2 code interprerter icon

Llama2 Code Interpreter

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

🌟 Key Features

  • πŸš€ Generation and Execution of Code : Tailor-made codes spun into existence and executed smoothly.
  • πŸ”Ž Interactive Debugging & Feedback : Real-time engagement in debugging, accompanied by constructive feedback for an improved coding experience.
  • 🧠 Dynamic Q&A System : A revolutionary question-answering mechanism powered by cutting-edge code generation, execution, real-time feedback, and interactive debugging.
  • 🌐 Internet Access Support : Comprehensive functionality, powered by full support for internet access. Make the world wide web your sandbox!

Examples


Llama2 in Action

example1_president_search_with_code

In response to the query, "Who is the current president of South Korea?", Llama2 generates Python code for web scraping. This code targets the official website of the South Korean government, specifically extracting information from the exact URL.

The script retrieves the HTML title tag which contains the current president's name. The output, 'λŒ€ν•œλ―Όκ΅­ λŒ€ν†΅λ Ή > μœ€μ„μ—΄ λŒ€ν†΅λ Ή > μ·¨μž„μ‚¬', allows Llama2 to discern that the incumbent president is μœ€μ„μ—΄ (Yoon Suk-yeol).

Installation

  1. Clone the repository:
git clone https://github.com/SeungyounShin/Llama2-Code-Interpreter.git
  1. Change directory:
cd Llama2-Code-Interpreter.git
  1. Install the required dependencies:
pip install -r requirements.txt

I see, you want to include the part about setting the LLAMA_CI_PATH environment variable in the setup instructions. Here's how you might write it:

Setup

Set the LLAMA_CI_PATH environment variable: This script requires the LLAMA_CI_PATH environment variable to be set to the directory that contains the relevant code. You can set it to the current directory like this:

export LLAMA_CI_PATH=$(pwd)

Please note that this setting is only valid for the current shell session. If you want to make it permanent, you can add it to your shell's startup file (like .bashrc or .bash_profile).

Run App

To start interacting with Llama2 via the Gradio UI:

python3 chatbot.py --mode_path <your-model-path>

Replace <your-model-path> with the path to the model file you want to use. (Usally I recommend you to use chat-type model e.g. meta-llama/Llama-2-13b-chat)

Please let me know if you need help with a specific part of this setup process.

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.


llama2-code-interpreter's People

Contributors

seungyounshin avatar

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.