Instruction processing framework for LLMs
Top 72.7% on sourcepulse
EasyInstruct is a Python framework designed to simplify the processing of instructions for Large Language Models (LLMs). It targets researchers and developers working with LLMs, offering modularized tools for instruction generation, selection, and prompting, thereby streamlining experimental workflows.
How It Works
The framework modularizes instruction processing into distinct components: Generators, Selectors, Prompts, and Engines. Generators implement various instruction creation techniques like Self-Instruct, Evol-Instruct, Backtranslation, and KG2Instruct. Selectors offer metrics such as length, perplexity, ROUGE, and GPT scores to filter and refine instruction datasets. The Prompts and Engines modules handle the construction and execution of prompts on specified LLMs, supporting a range of commercial and locally deployed models.
Quick Start & Requirements
pip install git+https://github.com/zjunlp/EasyInstruct@main
(latest) or pip install easyinstruct
(PyPI, not latest).demo/app.py
or via HuggingFace Spaces.Highlighted Details
Maintenance & Community
The project is actively maintained with regular updates (last commit recent) and welcomes Pull Requests. It is a subproject of KnowLM.
Licensing & Compatibility
Limitations & Caveats
The PyPI version is not the latest. While supporting various LLMs, many generation methods rely on API access (e.g., OpenAI), incurring costs and requiring API keys.
7 months ago
1 day