ZhiyuanChen commited on
Commit
afc4db9
·
verified ·
1 Parent(s): e950389

Publish OFoldX pipeline artifacts

Browse files
README.md CHANGED
@@ -6,12 +6,12 @@ tags:
6
  - "protein"
7
  - "rna"
8
  - "dna"
9
- - "model"
10
  - "boltz2-affinity"
11
  - "binding-affinity-prediction"
12
  - "affinity-prediction"
13
  - "protein-ligand"
14
- artifact_kind: "model"
15
  repo_id: "oteam/boltz2-affinity"
16
  license: "mit"
17
  base_model: "boltz-community/boltz-2"
@@ -31,11 +31,11 @@ widget:
31
 
32
  # boltz2-affinity
33
 
34
- OFoldX `model` artifact for protein-ligand binding-affinity prediction, using the `boltz2-affinity` architecture.
35
 
36
  ## Disclaimer
37
 
38
- This model card was generated by the OFoldX team for an OFoldX `model` artifact.
39
  The upstream model authors did not write this card unless explicitly stated otherwise.
40
 
41
  OFoldX is pre-alpha research software. Check the source checkpoint, upstream release, and local validation
@@ -60,12 +60,10 @@ Converted Boltz-2 affinity checkpoint for protein-ligand binding-affinity predic
60
  | Field | Value |
61
  | ----- | ----- |
62
  | Repository | `oteam/boltz2-affinity` |
63
- | Artifact Kind | `model` |
64
  | Task | `binding_affinity_prediction` |
65
  | Architecture | `boltz2-affinity` |
66
- | Entrypoint | `ofoldx.models.boltz2.model.Boltz2AffinityModel` |
67
- | Config | `config.json` |
68
- | Weights | `model.safetensors` |
69
  | Source Checkpoint | `boltz2_aff.ckpt` |
70
 
71
  > [!NOTE]
@@ -77,7 +75,7 @@ Converted Boltz-2 affinity checkpoint for protein-ligand binding-affinity predic
77
  - **Upstream paper**: [Boltz-2: Towards Accurate and Efficient Binding Affinity Prediction](https://doi.org/10.1101/2025.06.14.659707)
78
  - **Upstream repository**: [Boltz-2](https://github.com/jwohlwend/boltz)
79
  - **Source checkpoint release**: [https://huggingface.co/boltzgen/boltzgen-1](https://huggingface.co/boltzgen/boltzgen-1)
80
- - **Code**: [`ofoldx/models/boltz2/model.py`](https://github.com/OTeam-AI4S/OFoldX/tree/main/ofoldx/models/boltz2/model.py)
81
  - **Project repository**: [https://github.com/OTeam-AI4S/OFoldX](https://github.com/OTeam-AI4S/OFoldX)
82
  - **Issues**: [https://github.com/OTeam-AI4S/OFoldX/issues](https://github.com/OTeam-AI4S/OFoldX/issues)
83
 
@@ -89,19 +87,14 @@ The artifact depends on the [`ofoldx`](https://github.com/OTeam-AI4S/OFoldX) lib
89
  pip install ofoldx
90
  ```
91
 
92
- ### Direct Use
93
 
94
- Load the artifact from `oteam/boltz2-affinity` using the OFoldX `Auto*` interface:
95
 
96
  ```python
97
  from ofoldx.pipelines import Pipeline
98
 
99
  pipeline = Pipeline.from_pretrained("oteam/boltz2-affinity")
100
- output = pipeline(...)
101
-
102
- from ofoldx import AutoModel
103
-
104
- model = AutoModel.from_pretrained("oteam/boltz2-affinity")
105
  ```
106
 
107
  When a matching processor is available, load it with `AutoProcessor.from_pretrained(...)` and pass the
@@ -110,7 +103,7 @@ processed batch to the model.
110
  ### Interface
111
 
112
  - **Task**: `binding_affinity_prediction`
113
- - **Artifact kind**: `model`
114
  - **Architecture**: `boltz2-affinity`
115
  - **Runtime files**: `manifest.json`, `config.json`, and `model.safetensors` when present
116
 
@@ -158,5 +151,5 @@ Please use [OFoldX GitHub issues](https://github.com/OTeam-AI4S/OFoldX/issues) f
158
 
159
  ## License
160
 
161
- The OFoldX project license is not yet finalized.
162
  The source checkpoint is associated with the upstream license noted above: MIT for upstream Boltz code and weights. Review both OFoldX and upstream terms before redistribution or production use.
 
6
  - "protein"
7
  - "rna"
8
  - "dna"
9
+ - "pipeline"
10
  - "boltz2-affinity"
11
  - "binding-affinity-prediction"
12
  - "affinity-prediction"
13
  - "protein-ligand"
14
+ artifact_kind: "pipeline"
15
  repo_id: "oteam/boltz2-affinity"
16
  license: "mit"
17
  base_model: "boltz-community/boltz-2"
 
31
 
32
  # boltz2-affinity
33
 
34
+ OFoldX `pipeline` artifact for protein-ligand binding-affinity prediction, using the `boltz2-affinity` architecture.
35
 
36
  ## Disclaimer
37
 
38
+ This model card was generated by the OFoldX team for an OFoldX `pipeline` artifact.
39
  The upstream model authors did not write this card unless explicitly stated otherwise.
40
 
41
  OFoldX is pre-alpha research software. Check the source checkpoint, upstream release, and local validation
 
60
  | Field | Value |
61
  | ----- | ----- |
62
  | Repository | `oteam/boltz2-affinity` |
63
+ | Artifact Kind | `pipeline` |
64
  | Task | `binding_affinity_prediction` |
65
  | Architecture | `boltz2-affinity` |
66
+ | Entrypoint | `ofoldx.pipelines.binding_affinity.BindingAffinityPipeline` |
 
 
67
  | Source Checkpoint | `boltz2_aff.ckpt` |
68
 
69
  > [!NOTE]
 
75
  - **Upstream paper**: [Boltz-2: Towards Accurate and Efficient Binding Affinity Prediction](https://doi.org/10.1101/2025.06.14.659707)
76
  - **Upstream repository**: [Boltz-2](https://github.com/jwohlwend/boltz)
77
  - **Source checkpoint release**: [https://huggingface.co/boltzgen/boltzgen-1](https://huggingface.co/boltzgen/boltzgen-1)
78
+ - **Code**: [`ofoldx/pipelines/binding_affinity.py`](https://github.com/OTeam-AI4S/OFoldX/tree/main/ofoldx/pipelines/binding_affinity.py)
79
  - **Project repository**: [https://github.com/OTeam-AI4S/OFoldX](https://github.com/OTeam-AI4S/OFoldX)
80
  - **Issues**: [https://github.com/OTeam-AI4S/OFoldX/issues](https://github.com/OTeam-AI4S/OFoldX/issues)
81
 
 
87
  pip install ofoldx
88
  ```
89
 
90
+ ### Pipeline Usage
91
 
92
+ Load the artifact from `oteam/boltz2-affinity` with the OFoldX task pipeline. Use `AutoModel` or `AutoProcessor` only when you need lower-level control:
93
 
94
  ```python
95
  from ofoldx.pipelines import Pipeline
96
 
97
  pipeline = Pipeline.from_pretrained("oteam/boltz2-affinity")
 
 
 
 
 
98
  ```
99
 
100
  When a matching processor is available, load it with `AutoProcessor.from_pretrained(...)` and pass the
 
103
  ### Interface
104
 
105
  - **Task**: `binding_affinity_prediction`
106
+ - **Artifact kind**: `pipeline`
107
  - **Architecture**: `boltz2-affinity`
108
  - **Runtime files**: `manifest.json`, `config.json`, and `model.safetensors` when present
109
 
 
151
 
152
  ## License
153
 
154
+ The Hub `license` metadata, when present, reflects the source checkpoint or upstream project license. The OFoldX project license is not yet finalized.
155
  The source checkpoint is associated with the upstream license noted above: MIT for upstream Boltz code and weights. Review both OFoldX and upstream terms before redistribution or production use.
manifest.json CHANGED
@@ -1,18 +1,22 @@
1
  {
2
  "format": "biomolecular_pretrained",
3
  "format_version": 1,
4
- "kind": "model",
5
  "producer": {
6
  "package": "ofoldx",
7
  "version": "0.1.dev1+g9a78c7e44.d20260609"
8
  },
9
- "entrypoint": "ofoldx.models.boltz2.model.Boltz2AffinityModel",
10
  "architecture": "boltz2_affinity",
11
  "task": "binding_affinity_prediction",
12
- "files": {
13
- "config": "config.json"
14
- },
15
- "weights": {
16
- "default": "model.safetensors"
 
 
 
 
17
  }
18
- }
 
1
  {
2
  "format": "biomolecular_pretrained",
3
  "format_version": 1,
4
+ "kind": "pipeline",
5
  "producer": {
6
  "package": "ofoldx",
7
  "version": "0.1.dev1+g9a78c7e44.d20260609"
8
  },
9
+ "entrypoint": "ofoldx.pipelines.binding_affinity.BindingAffinityPipeline",
10
  "architecture": "boltz2_affinity",
11
  "task": "binding_affinity_prediction",
12
+ "components": {
13
+ "scorer": {
14
+ "kind": "component",
15
+ "path": "scorer"
16
+ },
17
+ "processor": {
18
+ "kind": "component",
19
+ "path": "processor"
20
+ }
21
  }
22
+ }
processor/manifest.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format": "biomolecular_pretrained",
3
+ "format_version": 1,
4
+ "kind": "processor",
5
+ "producer": {
6
+ "package": "ofoldx",
7
+ "version": "0.1.dev1+g9a78c7e44.d20260609"
8
+ },
9
+ "entrypoint": "ofoldx.models.boltz2.processor.Boltz2Processor",
10
+ "files": {
11
+ "config": "processor_config.json"
12
+ }
13
+ }
processor/processor_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "reference_conformer_augment": false,
3
+ "augment_seed": null,
4
+ "materialize_missing_atoms": false,
5
+ "method": "x-ray diffraction"
6
+ }
scorer/README.md ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: "ofoldx"
3
+ tags:
4
+ - "biology"
5
+ - "biomolecular-design"
6
+ - "protein"
7
+ - "rna"
8
+ - "dna"
9
+ - "model"
10
+ - "boltz2-affinity"
11
+ - "binding-affinity-prediction"
12
+ - "affinity-prediction"
13
+ - "protein-ligand"
14
+ artifact_kind: "model"
15
+ repo_id: "oteam/boltz2-affinity"
16
+ license: "mit"
17
+ base_model: "boltz-community/boltz-2"
18
+ pipeline_tag: "other"
19
+ task: "binding_affinity_prediction"
20
+ model-index:
21
+ - name: "boltz2-affinity"
22
+ results:
23
+ []
24
+ widget:
25
+ - pipeline_tag: "other"
26
+ task: "binding_affinity_prediction"
27
+ example_title: "Protein-ligand affinity scoring"
28
+ text: "complex_structure: complex.cif\nligand_chain: L"
29
+ input_format: "structure_path"
30
+ ---
31
+
32
+ # boltz2-affinity
33
+
34
+ OFoldX `model` artifact for protein-ligand binding-affinity prediction, using the `boltz2-affinity` architecture.
35
+
36
+ ## Disclaimer
37
+
38
+ This model card was generated by the OFoldX team for an OFoldX `model` artifact.
39
+ The upstream model authors did not write this card unless explicitly stated otherwise.
40
+
41
+ OFoldX is pre-alpha research software. Check the source checkpoint, upstream release, and local validation
42
+ before using the artifact for scientific or operational decisions.
43
+
44
+ ## Model Details
45
+
46
+ Boltz-2 affinity model with a pair-only head for protein-ligand affinity scoring.
47
+
48
+ Converted Boltz-2 affinity checkpoint for protein-ligand binding-affinity prediction.
49
+
50
+ ### Model Provenance
51
+
52
+ - **Upstream Project**: Boltz-2
53
+ - **Source Checkpoint**: `boltz2_aff.ckpt`
54
+ - **Source Release**: [https://huggingface.co/boltzgen/boltzgen-1](https://huggingface.co/boltzgen/boltzgen-1)
55
+ - **Primary Paper**: [Boltz-2: Towards Accurate and Efficient Binding Affinity Prediction](https://doi.org/10.1101/2025.06.14.659707)
56
+ - **Upstream License**: MIT for upstream Boltz code and weights
57
+
58
+ ### Model Specification
59
+
60
+ | Field | Value |
61
+ | ----- | ----- |
62
+ | Repository | `oteam/boltz2-affinity` |
63
+ | Artifact Kind | `model` |
64
+ | Task | `binding_affinity_prediction` |
65
+ | Architecture | `boltz2-affinity` |
66
+ | Entrypoint | `ofoldx.models.boltz2.model.Boltz2AffinityModel` |
67
+ | Config | `config.json` |
68
+ | Weights | `model.safetensors` |
69
+ | Source Checkpoint | `boltz2_aff.ckpt` |
70
+
71
+ > [!NOTE]
72
+ > Source checkpoint: `boltz2_aff.ckpt`.
73
+
74
+ ### Links
75
+
76
+ - **Hub repository**: [oteam/boltz2-affinity](https://huggingface.co/oteam/boltz2-affinity)
77
+ - **Upstream paper**: [Boltz-2: Towards Accurate and Efficient Binding Affinity Prediction](https://doi.org/10.1101/2025.06.14.659707)
78
+ - **Upstream repository**: [Boltz-2](https://github.com/jwohlwend/boltz)
79
+ - **Source checkpoint release**: [https://huggingface.co/boltzgen/boltzgen-1](https://huggingface.co/boltzgen/boltzgen-1)
80
+ - **Code**: [`ofoldx/models/boltz2/model.py`](https://github.com/OTeam-AI4S/OFoldX/tree/main/ofoldx/models/boltz2/model.py)
81
+ - **Project repository**: [https://github.com/OTeam-AI4S/OFoldX](https://github.com/OTeam-AI4S/OFoldX)
82
+ - **Issues**: [https://github.com/OTeam-AI4S/OFoldX/issues](https://github.com/OTeam-AI4S/OFoldX/issues)
83
+
84
+ ## Usage
85
+
86
+ The artifact depends on the [`ofoldx`](https://github.com/OTeam-AI4S/OFoldX) library. Install it with pip:
87
+
88
+ ```bash
89
+ pip install ofoldx
90
+ ```
91
+
92
+ ### Pipeline Usage
93
+
94
+ Load the artifact from `oteam/boltz2-affinity` with the OFoldX task pipeline. Use `AutoModel` or `AutoProcessor` only when you need lower-level control:
95
+
96
+ ```python
97
+ from ofoldx.pipelines import Pipeline
98
+
99
+ pipeline = Pipeline.from_pretrained("oteam/boltz2-affinity")
100
+ output = pipeline(...)
101
+
102
+ from ofoldx import AutoModel
103
+
104
+ model = AutoModel.from_pretrained("oteam/boltz2-affinity")
105
+ ```
106
+
107
+ When a matching processor is available, load it with `AutoProcessor.from_pretrained(...)` and pass the
108
+ processed batch to the model.
109
+
110
+ ### Interface
111
+
112
+ - **Task**: `binding_affinity_prediction`
113
+ - **Artifact kind**: `model`
114
+ - **Architecture**: `boltz2-affinity`
115
+ - **Runtime files**: `manifest.json`, `config.json`, and `model.safetensors` when present
116
+
117
+ ## Training Details
118
+
119
+ OFoldX did not train these weights. This repository contains a converted checkpoint and OFoldX runtime
120
+ metadata for loading it.
121
+
122
+ ### Training Data
123
+
124
+ The Boltz-2 affinity heads use filtered assay data from sources such as PubChem, ChEMBL, and BindingDB, with decoy generation and structural-confidence filters described by the upstream report. OFoldX does not redistribute the training set.
125
+
126
+ ### Training Procedure
127
+
128
+ Upstream affinity training detaches the trunk and optimizes regression and binary binder/decoy objectives. OFoldX converts the released affinity checkpoint into `model.safetensors` plus an OFoldX manifest; it does not run Boltz-2 training.
129
+
130
+ ## Evaluation
131
+
132
+ OFoldX conversion reports and contract tests validate artifact structure and checkpoint loading. Task-level
133
+ scientific evaluation should be checked against the corresponding upstream model release or paper.
134
+
135
+ ## Limitations
136
+
137
+ - This artifact is distributed for research use.
138
+ - Inputs must match the model-specific processor and expected biomolecular representation.
139
+ - OFoldX is pre-alpha, so APIs and artifact metadata may still change before a stable release.
140
+
141
+ ## Citation
142
+
143
+ Please cite the upstream Boltz-2 work for the source checkpoint. If OFoldX supports your work, please also cite or link the OFoldX project repository.
144
+
145
+ ```bibtex
146
+ @article{passaro2025boltz2,
147
+ author = {Passaro, Saro and Corso, Gabriele and Wohlwend, Jeremy and Reveiz, Mateo and Thaler, Stephan and Somnath, Vignesh Ram and Getz, Noah and Portnoi, Tally and Roy, Julien and Stark, Hannes and Kwabi-Addo, David and Beaini, Dominique and Jaakkola, Tommi and Barzilay, Regina},
148
+ title = {Boltz-2: Towards Accurate and Efficient Binding Affinity Prediction},
149
+ year = {2025},
150
+ doi = {10.1101/2025.06.14.659707},
151
+ journal = {bioRxiv}
152
+ }
153
+ ```
154
+
155
+ ## Contact
156
+
157
+ Please use [OFoldX GitHub issues](https://github.com/OTeam-AI4S/OFoldX/issues) for questions or comments about this model card.
158
+
159
+ ## License
160
+
161
+ The Hub `license` metadata, when present, reflects the source checkpoint or upstream project license. The OFoldX project license is not yet finalized.
162
+ The source checkpoint is associated with the upstream license noted above: MIT for upstream Boltz code and weights. Review both OFoldX and upstream terms before redistribution or production use.
config.json → scorer/config.json RENAMED
File without changes
scorer/manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format": "biomolecular_pretrained",
3
+ "format_version": 1,
4
+ "kind": "model",
5
+ "producer": {
6
+ "package": "ofoldx",
7
+ "version": "0.1.dev1+g9a78c7e44.d20260609"
8
+ },
9
+ "entrypoint": "ofoldx.models.boltz2.model.Boltz2AffinityModel",
10
+ "architecture": "boltz2_affinity",
11
+ "task": "binding_affinity_prediction",
12
+ "files": {
13
+ "config": "config.json"
14
+ },
15
+ "weights": {
16
+ "default": "model.safetensors"
17
+ }
18
+ }
model.safetensors → scorer/model.safetensors RENAMED
File without changes