Khaos Toxicity
Predicts the probability of activity in 12 Tox21 assays and clinical-trial toxicity.
chem_toxicity v1, from Khaos (a local-first library of pre-trained models for domain-specific tasks). This is the first release of the artifact.
Model
- Architecture: MoleculePropertyModel: hybrid SMILES-transformer + molecular-graph encoder (initialized from Khaos Molecule Embedding v1) with an MLP head
- Parameters: 5,637,905
- Format: ONNX (
model.onnx) plus PyTorch weights (model.pt) andmanifest.json - Training data: fletxcher/khaos-chem_toxicity
Results
Measured on the held-out test split of the training dataset.
| Metric | Value |
|---|---|
| mean_auc | 0.7513 |
| baseline_rf_morgan_mean_auc | 0.7308 |
| tasks | 13 |
Per-task AUROC
| Task | Khaos | RandomForest (Morgan) |
|---|---|---|
| NR-AR | 0.699 | 0.623 |
| NR-AR-LBD | 0.736 | 0.756 |
| NR-AhR | 0.855 | 0.787 |
| NR-Aromatase | 0.748 | 0.750 |
| NR-ER | 0.718 | 0.619 |
| NR-ER-LBD | 0.790 | 0.681 |
| NR-PPAR-gamma | 0.775 | 0.832 |
| SR-ARE | 0.731 | 0.702 |
| SR-ATAD5 | 0.712 | 0.711 |
| SR-HSE | 0.722 | 0.710 |
| SR-MMP | 0.831 | 0.800 |
| SR-p53 | 0.696 | 0.728 |
| CT_TOX | 0.754 | 0.802 |
Training
{
"vocab_size": 246,
"atom_dim": 32,
"dim": 256,
"depth": 6,
"heads": 8,
"graph_layers": 4,
"n_out": 13,
"activation": "sigmoid",
"epochs": 30,
"batch": 256,
"lr": 0.0003,
"init": "chem_mol_embedding v1 encoder"
}
Best epoch 4, trained in 1.2 minutes on a single consumer GPU (RTX 3050 8 GB).
Intended use
Fast, local property estimates for screening and ranking. Inputs are SMILES token ids plus atom features and adjacency.
Limitations
- Evaluated on scaffold-disjoint test molecules from public datasets; accuracy outside that chemical space is unknown.
- Predictions are estimates for triage, not substitutes for measurement.
- Drug-like molecules up to 60 heavy atoms.
Usage
pip install khaos
khaos serve ./chem_toxicity
License
This model was trained on data with research-only, share-alike or mixed terms (see the training dataset card for each source). Treat it as research use and check the upstream data licenses before any commercial use.