Giter Site home page Giter Site logo

sumanthrh / icl_support_example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leesureman/icl_support_example

0.0 0.0 0.0 46 KB

The official implementation of the paper "Finding Support Examples for In-Context Learning".

Shell 8.18% Python 91.82%

icl_support_example's Introduction

Finding Support Examples for In-Context Learning (Findings of EMNLP 2023)

The official repository for paper "Finding Support Examples for In-Context Learning" (EMNLP 2023 Findings). Check out our paper for more information.

Datasets

Download the train_data and test_data from Google Drive, and put them in the current folder.

Installation

conda create -n icl_support_examples python=3.8
conda activate icl_support_examples
conda install pytorch=1.7.1 -c pytorch
pip install transformers==4.3.0
pip install fitlog

Run Our Method

# dataset=[sst2,sst5,amazon_b,mr,subj,agnews,trec,dbpedia]
CUDA_VISIBLE_DEVICES=0 bash commands/run_[dataset].sh

and then see the performance through fitlog as:

fitlog log fitlog_search_examples

Then see fitlog in your browser.

Citation

@article{icl_support_example,
  author       = {Xiaonan Li and
                  Xipeng Qiu},
  title        = {Finding Supporting Examples for In-Context Learning},
  journal      = {CoRR},
  volume       = {abs/2302.13539},
  year         = {2023},
  url          = {https://doi.org/10.48550/arXiv.2302.13539},
  doi          = {10.48550/ARXIV.2302.13539},
  eprinttype    = {arXiv},
  eprint       = {2302.13539},
  timestamp    = {Tue, 28 Feb 2023 14:02:05 +0100},
  biburl       = {https://dblp.org/rec/journals/corr/abs-2302-13539.bib},
  bibsource    = {dblp computer science bibliography, https://dblp.org}
}

icl_support_example's People

Contributors

sumanthrh avatar leesureman 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.