GithubHelp home page GithubHelp logo

llmft's Introduction

llmft

Purpose

Producing causal effects by fine-tuning Large Language Models on text data.

Example

In the Right to Counsel at Scale, we estimate the impact of legal representation (for those facing eviction) on housing court outcomes and housing stability more importantly. We do so via an instrumental variable approach where the instrument is whether free legal representation is available in the tenant's zip code.

$$y_i = \beta(\big(\mathbb{E}[D_i \vert X_i, Z_i] - \mathbb{E}[D_i \vert X_i]\big)$$

We estimate the conditional expectation functions via fine-tuned LLMs where $X_i$ is the landlord's complaint against the tenant.

llmft's People

Contributors

pharringtonp19 avatar

Stargazers

specialized boy avatar Yezi Chu avatar

Watchers

 avatar

llmft's Issues

Decoder Model

  • Implement compute_recall
    • Currently this involves a separate forward pass of the model. We should be able to combine this with evaluation_loss
    • model.generate isn't working atm
  • flash-attention implementation
  • Improve logging format: log_predictions
    • Can we make this interactive via gradio?
  • Plot learning rate
  • Early Stopping
  • two 'yes' tokens

Tokenizers Parallelism

huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
To disable this warning, you can either:
- Avoid using tokenizers before the fork if possible
- Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)

Experiment # 2

  • Create New Dataset (positive health didn't work)
  • Cross Tabs to evaluate what the model learns

To Do

  • Encoder Model

    • Class Imbalance
  • Decoder Model

    • Add a callback that can record the models output to various prompts during training
    • Enable Early Stopping (Callback)

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.