Prompt-learning is the latest paradigm to adapt pre-trained language models (PLMs) to downstream NLP tasks, which modifies the input text with a textual template and directly uses PLMs to conduct pre-trained tasks. OpenPrompt is a library built upon PyTorch and provides a standard, flexible and extensible framework to deploy the prompt-learning pipeline. OpenPrompt supports loading PLMs directly from huggingface transformers. In the future, we will also support PLMs implemented by other libraries. The template is one of the most important modules in prompt learning, which wraps the original input with textual or soft-encoding sequence. Use the implementations of current prompt-learning approaches.* We have implemented various of prompting methods, including templating, verbalizing and optimization strategies under a unified standard. You can easily call and understand these methods.

Features

  • Design your own prompt-learning work
  • With the extensibility of OpenPrompt, you can quickly practice your prompt-learning ideas
  • Our repo is tested on Python 3.8+ and PyTorch 1.8.1+
  • You can easily develop a prompt-learning pipeline
  • Define a Pre-trained Language Models (PLMs) as backbone.
  • Define a Verbalizer

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow OpenPrompt

OpenPrompt Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of OpenPrompt!

Additional Project Details

Programming Language

Python

Related Categories

Python Frameworks, Python Machine Learning Software, Python Natural Language Processing (NLP) Tool

Registered

2022-08-10