Giter VIP home page Giter VIP logo

h2o-wizardlm's Introduction

wizardlm

Open-Source Implementation of WizardLM to turn documents into Q:A pairs for LLM fine-tuning

Automatically creates high-complexity instructions from existing instruct-tuned LLM models, for further fine-tuning. Towards truly open ChatGPT clones, no Vicuna/ShareGPT TOS-violation, everything can be based on top of Apache 2.0 models and data.

  • Input: Instruction-tuned LLM and (optional) seed prompts (or document corpus, coming soon)
  • Output: Set of high-complexity instruction prompts (and responses)

Based on https://arxiv.org/abs/2304.12244

Example

  • Starting (seed) prompt: "What's trending in science & technology?"
  • Auto-generated prompt: "As a researcher in the field of artificial intelligence (AI) and healthcare, you have been tasked with conducting a comprehensive study of the potential of AI in healthcare. Your research must be based on sources that are at least 10 years old, and you must use a minimum of 15 academic sources. Your study must be at least 30 pages long and include a detailed analysis of the current state of AI in healthcare, its potential future developments, and the challenges that need to be addressed to fully realize its potential. Additionally, you must provide a critical evaluation of the existing literature on AI in healthcare, identifying gaps and areas for further research. However, you have been given the additional task of creating a series of recommendations for healthcare organizations and policymakers to help them make informed decisions about the implementation of AI in healthcare. Your recommendations must be evidence-based and take into account the ethical implications of AI in healthcare."

Installation

Create a Python3.10 environment and install the dependencies:

pip install -r requirements.txt

Create WizardLM dataset

Edit the base model, and the number of desired rows in wizardlm.py, then run it:

python wizardlm.py

You will end up with a file called wizard_lm.uuid.json where uuid is a random string. Example files are placed in this folder.

Known issues

  • Slow, even with pipeline and batching
  • Requires reasonably good instruct-tuned LLM for current prompting logic
  • Auto-generated prompts are good, but responses can be empty, at least for junelee/wizard-vicuna-13b

Roadmap

  • Speed up
  • Improve generated responses
  • Allow complexity control
  • Handle instruction/input vs just instruction, to enable summarization/code
  • Use in complete Apache 2.0 loop, Open LLaMa + oasst1 -> wizardlm -> iterate.

h2o-wizardlm's People

Contributors

arnocandel 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.