Code Monkey home page Code Monkey logo

phd_deft23_medhsake's Introduction

System for generating DEFT 2023 outputs from LLMs

  • Update 2023-09-26: add code to finetune and perform inference with LLaMa2 (performance as good as ChatGPT)

The DEFT'23 shared task consists in answering pharma exam MCQs. This system converts the questions and possible answers to prompts and uses LLMs to generate answers. The approach is described in our paper. It ranked 1st at the shared task. This repository contains scripts to generate prompts, run off-the-shelf models and finetune the LLaMa models. It also contains the LoRA weights for the finetuned models.

This repository uses git LFS for large files. Use 'git lfs clone...' for cloning with the binary files.

Install:

pip install -r requirements.txt # for llama1 
pip install -r requirements.llama2-freeze.txt # for llama2

Note that bitsandbytes may need to be recompiled to support your cuda version. Note that llama2 was finetuned with Python/3.10.10 and CUDA/11.6 on a single A100-80 GPU

See RESULTS for the exact match results on the dev. See runs for how to generate runs. See trains for llama2 finetuning runs.

Note that external APIs require API keys. Rename api_keys.template.py to api_keys.py and set keys you need inside.

Please cite the follwing paper:

@inproceedings{Favre:CORIA-TALN:2023,
    author = "Favre, Benoit",
    title = "LIS@DEFT'23 : les LLMs peuvent-ils r\'epondre \`a des QCM ? (a) oui; (b) non; (c) je ne sais pas.",
    booktitle = "Actes de CORIA-TALN 2023. Actes du D\'efi Fouille de Textes@TALN2023",
    month = "6",
    year = "2023",
    address = "Paris, France",
    publisher = "Association pour le Traitement Automatique des Langues",
    pages = "46-56",
    note = "",
    url = "http://talnarchives.atala.org/CORIA-TALN/CORIA-TALN-2023/479307.pdf"
}

phd_deft23_medhsake's People

Watchers

uy-rrodriguez 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.