Skip to main content

LLM that predicts text diffs.

Project description

DiffLLM

Extending the next token prediction setting into "diff prediction".

Setup

Create virtual environment:

conda create -n diff-llm python=3.9
conda activate diff-llm
pip install -r requirements.txt

Export secrets:

export $(grep -v '^#' secrets.txt | xargs)

Export env vars:

export PYTHONPATH=.

Usage

Create dataset

python src/create_dataset.py \
    --output-dir ./dataset \
    --page-names '["Deep learning", "Ancient Greece", "Ted Chiang"]' \
    --n-revisions 10

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

diff-llm-0.0.0a0.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

diff_llm-0.0.0a0-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page