Skip to main content

Fine-tune foundation models for biology and medicine

Project description

Reverie

A training and fine-tuning tool for bio foundation models.

Installation

pip install reverie-bio[all]

For Standard Model Bio support, also install smb-utils:

pip install git+https://github.com/standardmodelbio/smb-utils.git

For development:

git clone https://github.com/zaaisvanzyl/reverie.git
cd reverie
pip install -e ".[all,dev]"

Quick Start

Option 1: Web UI (Recommended)

A browser-based interface for uploading data, configuring training, and viewing results.

# Launch the UI
reverie ui

This starts a local server at http://127.0.0.1:7860. You can customize host and port:

reverie ui --host 0.0.0.0 --port 8000

Option 2: CLI

reverie train \
    --model standard-model \
    --data ./data/synthetic_data.parquet \
    --labels ./data/synthetic_labels.csv \
    --label-column label \
    --output ./results

Foundation Models

Standard Model Bio

Column Type Description
subject_id string/int Patient identifier
time datetime Event timestamp
code string Clinical code (ICD-10, RxNorm, LOINC, etc.)

Example:

subject_id,time,code
patient_001,2023-01-15,ICD10:E11.9
patient_001,2023-01-15,RxNorm:860975
patient_002,2023-03-10,ICD10:I10

Labels

One row per patient:

subject_id,label
patient_001,0
patient_002,1

Reference: standardmodel.bio

Development

# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run tests with coverage
pytest --cov=reverie

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

reverie_bio-0.1.0.tar.gz (33.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reverie_bio-0.1.0-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

Details for the file reverie_bio-0.1.0.tar.gz.

File metadata

  • Download URL: reverie_bio-0.1.0.tar.gz
  • Upload date:
  • Size: 33.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for reverie_bio-0.1.0.tar.gz
Algorithm Hash digest
SHA256 141c988bff0059585d7e93d4ca606964f5284a5d0cbe29c5b187032ea58eb85d
MD5 c6fe709b60611ced0d0cb48625accbfb
BLAKE2b-256 c5c7865eede751e5b82081667c2c11b2767921501946262f0a65bc410b6077b6

See more details on using hashes here.

File details

Details for the file reverie_bio-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: reverie_bio-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 31.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for reverie_bio-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fcfbc65eb4ed41003419f21f29746c561280c029244e8c572b167a315f0511ca
MD5 ed4a9666c37f2fdc58a22d0d25b710ac
BLAKE2b-256 2c7e889154cd1630b840bb2559edbb3b8ba6d3e525775832f1f9c950ff665986

See more details on using hashes here.

Supported by

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