Fine-tune foundation models for life sciences
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file reverie_bio-0.0.1.tar.gz.
File metadata
- Download URL: reverie_bio-0.0.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31da3a065d31f60c02a76fc0ac47a0c5ce149d9ecbcb23d4b0eae98ce8eeb542
|
|
| MD5 |
ae234b010b19c36c73950330de20d918
|
|
| BLAKE2b-256 |
58cb1a9f0a6f898ac0a5281787e17fde3040945004bcfd181c68b0545b8dda1f
|
File details
Details for the file reverie_bio-0.0.1-py3-none-any.whl.
File metadata
- Download URL: reverie_bio-0.0.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74069c3f2d54543d34f5b941e3c2ffe0bc81ae8cde61c44d4d2aec0af6562666
|
|
| MD5 |
a4ff44177b08c8f29953c05146f5d244
|
|
| BLAKE2b-256 |
03e345f5b5903714e3feacec748f1f4abe685ea5605641170238dc1fda2dbfb8
|