Giter VIP home page Giter VIP logo

gen-atomic's Introduction

About gen-atomic

Python application Demo

An LLM code generation and benchmarking framework aiming to support a wide range of atomic language units, from compiled to semi-structured markups. Please refer to the Project Glossary on the Documentation page for clarification.

Here is the initial sketch. We will share more about the theoretical foundation and goals of the project. Some hints: Atomic Design, Flow Engineering, Specification-by-example. image https://pitch.com/v/gen-atomic-tyqhkw

Getting Started

See the Demo

Check out the streamlit app to get an idea of what we are trying to accomplish. Sorry for the bad UX. We are new to streamlit.

Installing gen-atomic

  1. Extract project files to a folder

  2. Run the setup by typing

    .\setup.sh
    

Run the Code

  1. Run main method of the file 'ExperimentHost.py'. You will see the default experiment/benchmark scores like the following:
-- REGEXVAL EXPERIMENT --
+---------------+--------------------+-----------------+---------------+--------------------+------------------------+---------------------+---------------------+----------------+--------------------+
|               |   ol-codellama (%) |   ol-llama3 (%) |   ol-phi3 (%) |   ol-codegemma (%) |   ol-codellama:70b (%) |   ol-llama3:70b (%) |   ol-starcoder2 (%) |   ol-gemma (%) |   ol-tinyllama (%) |
|---------------+--------------------+-----------------+---------------+--------------------+------------------------+---------------------+---------------------+----------------+--------------------|
| CorrectCase   |              76.74 |           48.84 |         46.51 |              65.12 |                  18.60 |               79.07 |                0.00 |          16.28 |               0.00 |
| IncorrectCase |              85.48 |           95.16 |         93.55 |              83.87 |                  96.77 |               74.19 |              100.00 |          95.16 |             100.00 |
| Overall       |              81.90 |           76.19 |         74.29 |              76.19 |                  64.76 |               76.19 |               59.05 |          62.86 |              59.05 |
+---------------+--------------------+-----------------+---------------+--------------------+------------------------+---------------------+---------------------+----------------+--------------------+

See a full experiment log from the link.

Run the Tests

In the project root directory, run 'pytest' to test integrations:

pytest

or

.\pytest.sh

Key Dependencies

Python 3.8+, Ollama This project might depend on some certain LLM Hosts and AI frameworks in the future, such as LlamaIndex, LangChain, Pytorch etc.

Contribute

To Project

You can attend one of our remote meetings. We read papers and share ideas. Feel free to drop us a line.~~

To Code

Excited to have you onboard! Here's how you can contribute:

  1. Choose a Task. You can check out the Project tasks, or look through the open issues or suggest your own improvements via discussion board.
  2. Fork the Project: Make a copy of our project on your GitHub.
  3. Make Changes: Write your code and test it thoroughly. Ensure that pytest passes successfully.
  4. Submit a Pull Request: Share your changes with us for review.

To Datasets

Currently, datasets are version controlled. Please send a pull request for now (see 'src/data' folder). We are planning to use a data versioning system for this.

gen-atomic's People

Contributors

ali-moj avatar gokhanercan avatar osman-serhat-yilmaz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gen-atomic's Issues

Fix failing Paths tests and pipeline

Probably it is failing on Mac and Linux. We are supposed to implement it to be OS agnostic. @osman-serhat-yilmaz
This will probably fix the pipeline error.
See the part with:
=============== 3 failed, 7 passed, 1 warning, 1 error in 5.74s ================

Python UI for Generated Code visualization

For RegexVal provider, create a UI with a textbox supporting regex validation rules.
Feed the textbox with correct and/or incorrect cases from the dataset and let user to test generated scripts.

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.