#806 · Primary category: Education & Research

OpenICL

in-context-learning language-model nlp

OpenICL is an open-source framework to facilitate research, development, and prototyping of in-context learning.

Project last updated:10/03/23

GitHub Stars

589

Forks

32

Contributors

7

License

Apache-2.0

Why we included this project

OpenICL is aimed at researchers and graduate students who want to run in-context learning experiments without building every pipeline stage by hand. The framework turns the usual ICL workflow into a handful of Python objects: a DatasetReader loads and maps your data, a PromptTemplate controls how demonstrations and test inputs are formatted, a Retriever picks the in-context examples, and an Inferencer runs the model and scores the predictions. Several retrieval and inference strategies are included, so you can swap components and compare methods on the same task instead of writing glue code. LLaMA and self-consistency decoding are supported, and the paper plus the example notebooks give newcomers a clear way in. That makes it a practical base for systematic comparisons of language models and for fast prompting experiments.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category