ZhiyuanChen commited on
Commit
f752d18
·
verified ·
1 Parent(s): ecfacbe

Publish OFoldX pipeline artifacts

Browse files
README.md CHANGED
@@ -6,11 +6,11 @@ tags:
6
  - "protein"
7
  - "rna"
8
  - "dna"
9
- - "model"
10
  - "boltz2"
11
  - "structure-prediction"
12
  - "protein-structure"
13
- artifact_kind: "model"
14
  repo_id: "oteam/boltz2"
15
  license: "mit"
16
  base_model: "boltz-community/boltz-2"
@@ -35,11 +35,11 @@ widget:
35
 
36
  # boltz2
37
 
38
- OFoldX `model` artifact for biomolecular structure prediction, using the `boltz2` architecture.
39
 
40
  ## Disclaimer
41
 
42
- This model card was generated by the OFoldX team for an OFoldX `model` artifact.
43
  The upstream model authors did not write this card unless explicitly stated otherwise.
44
 
45
  OFoldX is pre-alpha research software. Check the source checkpoint, upstream release, and local validation
@@ -64,12 +64,10 @@ Converted Boltz-2 structure-prediction checkpoint for biomolecular interaction m
64
  | Field | Value |
65
  | ----- | ----- |
66
  | Repository | `oteam/boltz2` |
67
- | Artifact Kind | `model` |
68
  | Task | `structure_prediction` |
69
  | Architecture | `boltz2` |
70
- | Entrypoint | `ofoldx.models.boltz2.model.Boltz2Model` |
71
- | Config | `config.json` |
72
- | Weights | `model.safetensors` |
73
  | Source Checkpoint | `boltz2_conf_final.ckpt` |
74
 
75
  > [!NOTE]
@@ -81,7 +79,7 @@ Converted Boltz-2 structure-prediction checkpoint for biomolecular interaction m
81
  - **Upstream paper**: [Boltz-2: Towards Accurate and Efficient Binding Affinity Prediction](https://doi.org/10.1101/2025.06.14.659707)
82
  - **Upstream repository**: [Boltz-2](https://github.com/jwohlwend/boltz)
83
  - **Source checkpoint release**: [https://huggingface.co/boltzgen/boltzgen-1](https://huggingface.co/boltzgen/boltzgen-1)
84
- - **Code**: [`ofoldx/models/boltz2/model.py`](https://github.com/OTeam-AI4S/OFoldX/tree/main/ofoldx/models/boltz2/model.py)
85
  - **Project repository**: [https://github.com/OTeam-AI4S/OFoldX](https://github.com/OTeam-AI4S/OFoldX)
86
  - **Issues**: [https://github.com/OTeam-AI4S/OFoldX/issues](https://github.com/OTeam-AI4S/OFoldX/issues)
87
 
@@ -93,19 +91,14 @@ The artifact depends on the [`ofoldx`](https://github.com/OTeam-AI4S/OFoldX) lib
93
  pip install ofoldx
94
  ```
95
 
96
- ### Direct Use
97
 
98
- Load the artifact from `oteam/boltz2` using the OFoldX `Auto*` interface:
99
 
100
  ```python
101
  from ofoldx.pipelines import Pipeline
102
 
103
  pipeline = Pipeline.from_pretrained("oteam/boltz2")
104
- output = pipeline(...)
105
-
106
- from ofoldx import AutoModel
107
-
108
- model = AutoModel.from_pretrained("oteam/boltz2")
109
  ```
110
 
111
  When a matching processor is available, load it with `AutoProcessor.from_pretrained(...)` and pass the
@@ -114,7 +107,7 @@ processed batch to the model.
114
  ### Interface
115
 
116
  - **Task**: `structure_prediction`
117
- - **Artifact kind**: `model`
118
  - **Architecture**: `boltz2`
119
  - **Runtime files**: `manifest.json`, `config.json`, and `model.safetensors` when present
120
 
@@ -162,5 +155,5 @@ Please use [OFoldX GitHub issues](https://github.com/OTeam-AI4S/OFoldX/issues) f
162
 
163
  ## License
164
 
165
- The OFoldX project license is not yet finalized.
166
  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"
11
  - "structure-prediction"
12
  - "protein-structure"
13
+ artifact_kind: "pipeline"
14
  repo_id: "oteam/boltz2"
15
  license: "mit"
16
  base_model: "boltz-community/boltz-2"
 
35
 
36
  # boltz2
37
 
38
+ OFoldX `pipeline` artifact for biomolecular structure prediction, using the `boltz2` architecture.
39
 
40
  ## Disclaimer
41
 
42
+ This model card was generated by the OFoldX team for an OFoldX `pipeline` artifact.
43
  The upstream model authors did not write this card unless explicitly stated otherwise.
44
 
45
  OFoldX is pre-alpha research software. Check the source checkpoint, upstream release, and local validation
 
64
  | Field | Value |
65
  | ----- | ----- |
66
  | Repository | `oteam/boltz2` |
67
+ | Artifact Kind | `pipeline` |
68
  | Task | `structure_prediction` |
69
  | Architecture | `boltz2` |
70
+ | Entrypoint | `ofoldx.pipelines.structure_prediction.StructurePredictionPipeline` |
 
 
71
  | Source Checkpoint | `boltz2_conf_final.ckpt` |
72
 
73
  > [!NOTE]
 
79
  - **Upstream paper**: [Boltz-2: Towards Accurate and Efficient Binding Affinity Prediction](https://doi.org/10.1101/2025.06.14.659707)
80
  - **Upstream repository**: [Boltz-2](https://github.com/jwohlwend/boltz)
81
  - **Source checkpoint release**: [https://huggingface.co/boltzgen/boltzgen-1](https://huggingface.co/boltzgen/boltzgen-1)
82
+ - **Code**: [`ofoldx/pipelines/structure_prediction.py`](https://github.com/OTeam-AI4S/OFoldX/tree/main/ofoldx/pipelines/structure_prediction.py)
83
  - **Project repository**: [https://github.com/OTeam-AI4S/OFoldX](https://github.com/OTeam-AI4S/OFoldX)
84
  - **Issues**: [https://github.com/OTeam-AI4S/OFoldX/issues](https://github.com/OTeam-AI4S/OFoldX/issues)
85
 
 
91
  pip install ofoldx
92
  ```
93
 
94
+ ### Pipeline Usage
95
 
96
+ Load the artifact from `oteam/boltz2` with the OFoldX task pipeline. Use `AutoModel` or `AutoProcessor` only when you need lower-level control:
97
 
98
  ```python
99
  from ofoldx.pipelines import Pipeline
100
 
101
  pipeline = Pipeline.from_pretrained("oteam/boltz2")
 
 
 
 
 
102
  ```
103
 
104
  When a matching processor is available, load it with `AutoProcessor.from_pretrained(...)` and pass the
 
107
  ### Interface
108
 
109
  - **Task**: `structure_prediction`
110
+ - **Artifact kind**: `pipeline`
111
  - **Architecture**: `boltz2`
112
  - **Runtime files**: `manifest.json`, `config.json`, and `model.safetensors` when present
113
 
 
155
 
156
  ## License
157
 
158
+ The Hub `license` metadata, when present, reflects the source checkpoint or upstream project license. The OFoldX project license is not yet finalized.
159
  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.Boltz2Model",
10
  "architecture": "boltz2",
11
  "task": "structure_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.structure_prediction.StructurePredictionPipeline",
10
  "architecture": "boltz2",
11
  "task": "structure_prediction",
12
+ "components": {
13
+ "predictor": {
14
+ "kind": "component",
15
+ "path": "predictor"
16
+ },
17
+ "processor": {
18
+ "kind": "component",
19
+ "path": "processor"
20
+ }
21
  }
22
  }
predictor/README.md ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: "ofoldx"
3
+ tags:
4
+ - "biology"
5
+ - "biomolecular-design"
6
+ - "protein"
7
+ - "rna"
8
+ - "dna"
9
+ - "model"
10
+ - "boltz2"
11
+ - "structure-prediction"
12
+ - "protein-structure"
13
+ artifact_kind: "model"
14
+ repo_id: "oteam/boltz2"
15
+ license: "mit"
16
+ base_model: "boltz-community/boltz-2"
17
+ pipeline_tag: "other"
18
+ task: "structure_prediction"
19
+ model-index:
20
+ - name: "boltz2"
21
+ results:
22
+ []
23
+ widget:
24
+ - pipeline_tag: "other"
25
+ task: "structure_prediction"
26
+ example_title: "Single-chain protein"
27
+ text: ">A\nMKTAYIAKQRQISFVKSHFSRQDILD"
28
+ input_format: "fasta"
29
+ - pipeline_tag: "other"
30
+ task: "structure_prediction"
31
+ example_title: "Protein complex"
32
+ text: ">A\nMKTAYIAKQRQISFVKSHFSRQDILD\n>B\nGSHMRYFVTAVSRPGRGEPRFI"
33
+ input_format: "fasta"
34
+ ---
35
+
36
+ # boltz2
37
+
38
+ OFoldX `model` artifact for biomolecular structure prediction, using the `boltz2` architecture.
39
+
40
+ ## Disclaimer
41
+
42
+ This model card was generated by the OFoldX team for an OFoldX `model` artifact.
43
+ The upstream model authors did not write this card unless explicitly stated otherwise.
44
+
45
+ OFoldX is pre-alpha research software. Check the source checkpoint, upstream release, and local validation
46
+ before using the artifact for scientific or operational decisions.
47
+
48
+ ## Model Details
49
+
50
+ Boltz-2-shaped structure-prediction model converted for the OFoldX runtime.
51
+
52
+ Converted Boltz-2 structure-prediction checkpoint for biomolecular interaction modeling.
53
+
54
+ ### Model Provenance
55
+
56
+ - **Upstream Project**: Boltz-2
57
+ - **Source Checkpoint**: `boltz2_conf_final.ckpt`
58
+ - **Source Release**: [https://huggingface.co/boltzgen/boltzgen-1](https://huggingface.co/boltzgen/boltzgen-1)
59
+ - **Primary Paper**: [Boltz-2: Towards Accurate and Efficient Binding Affinity Prediction](https://doi.org/10.1101/2025.06.14.659707)
60
+ - **Upstream License**: MIT for upstream Boltz code and weights
61
+
62
+ ### Model Specification
63
+
64
+ | Field | Value |
65
+ | ----- | ----- |
66
+ | Repository | `oteam/boltz2` |
67
+ | Artifact Kind | `model` |
68
+ | Task | `structure_prediction` |
69
+ | Architecture | `boltz2` |
70
+ | Entrypoint | `ofoldx.models.boltz2.model.Boltz2Model` |
71
+ | Config | `config.json` |
72
+ | Weights | `model.safetensors` |
73
+ | Source Checkpoint | `boltz2_conf_final.ckpt` |
74
+
75
+ > [!NOTE]
76
+ > Source checkpoint: `boltz2_conf_final.ckpt`.
77
+
78
+ ### Links
79
+
80
+ - **Hub repository**: [oteam/boltz2](https://huggingface.co/oteam/boltz2)
81
+ - **Upstream paper**: [Boltz-2: Towards Accurate and Efficient Binding Affinity Prediction](https://doi.org/10.1101/2025.06.14.659707)
82
+ - **Upstream repository**: [Boltz-2](https://github.com/jwohlwend/boltz)
83
+ - **Source checkpoint release**: [https://huggingface.co/boltzgen/boltzgen-1](https://huggingface.co/boltzgen/boltzgen-1)
84
+ - **Code**: [`ofoldx/models/boltz2/model.py`](https://github.com/OTeam-AI4S/OFoldX/tree/main/ofoldx/models/boltz2/model.py)
85
+ - **Project repository**: [https://github.com/OTeam-AI4S/OFoldX](https://github.com/OTeam-AI4S/OFoldX)
86
+ - **Issues**: [https://github.com/OTeam-AI4S/OFoldX/issues](https://github.com/OTeam-AI4S/OFoldX/issues)
87
+
88
+ ## Usage
89
+
90
+ The artifact depends on the [`ofoldx`](https://github.com/OTeam-AI4S/OFoldX) library. Install it with pip:
91
+
92
+ ```bash
93
+ pip install ofoldx
94
+ ```
95
+
96
+ ### Pipeline Usage
97
+
98
+ Load the artifact from `oteam/boltz2` with the OFoldX task pipeline. Use `AutoModel` or `AutoProcessor` only when you need lower-level control:
99
+
100
+ ```python
101
+ from ofoldx.pipelines import Pipeline
102
+
103
+ pipeline = Pipeline.from_pretrained("oteam/boltz2")
104
+ output = pipeline(...)
105
+
106
+ from ofoldx import AutoModel
107
+
108
+ model = AutoModel.from_pretrained("oteam/boltz2")
109
+ ```
110
+
111
+ When a matching processor is available, load it with `AutoProcessor.from_pretrained(...)` and pass the
112
+ processed batch to the model.
113
+
114
+ ### Interface
115
+
116
+ - **Task**: `structure_prediction`
117
+ - **Artifact kind**: `model`
118
+ - **Architecture**: `boltz2`
119
+ - **Runtime files**: `manifest.json`, `config.json`, and `model.safetensors` when present
120
+
121
+ ## Training Details
122
+
123
+ OFoldX did not train these weights. This repository contains a converted checkpoint and OFoldX runtime
124
+ metadata for loading it.
125
+
126
+ ### Training Data
127
+
128
+ The Boltz-2 report describes structure data from PDB structures before 2023-06-01, experimental NMR collections, MD trajectory datasets, AF2 monomer distillation, Boltz-1 complex distillation, and affinity data from PubChem, ChEMBL, BindingDB, and related filtered assay sources. OFoldX does not redistribute the training set.
129
+
130
+ ### Training Procedure
131
+
132
+ Upstream Boltz-2 training is staged across structure, confidence, and affinity objectives. This OFoldX artifact converts a released checkpoint into `model.safetensors` plus an OFoldX manifest; it does not run Boltz-2 training.
133
+
134
+ ## Evaluation
135
+
136
+ OFoldX conversion reports and contract tests validate artifact structure and checkpoint loading. Task-level
137
+ scientific evaluation should be checked against the corresponding upstream model release or paper.
138
+
139
+ ## Limitations
140
+
141
+ - This artifact is distributed for research use.
142
+ - Inputs must match the model-specific processor and expected biomolecular representation.
143
+ - OFoldX is pre-alpha, so APIs and artifact metadata may still change before a stable release.
144
+
145
+ ## Citation
146
+
147
+ 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.
148
+
149
+ ```bibtex
150
+ @article{passaro2025boltz2,
151
+ 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},
152
+ title = {Boltz-2: Towards Accurate and Efficient Binding Affinity Prediction},
153
+ year = {2025},
154
+ doi = {10.1101/2025.06.14.659707},
155
+ journal = {bioRxiv}
156
+ }
157
+ ```
158
+
159
+ ## Contact
160
+
161
+ Please use [OFoldX GitHub issues](https://github.com/OTeam-AI4S/OFoldX/issues) for questions or comments about this model card.
162
+
163
+ ## License
164
+
165
+ The Hub `license` metadata, when present, reflects the source checkpoint or upstream project license. The OFoldX project license is not yet finalized.
166
+ 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 → predictor/config.json RENAMED
File without changes
predictor/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.Boltz2Model",
10
+ "architecture": "boltz2",
11
+ "task": "structure_prediction",
12
+ "files": {
13
+ "config": "config.json"
14
+ },
15
+ "weights": {
16
+ "default": "model.safetensors"
17
+ }
18
+ }
model.safetensors → predictor/model.safetensors RENAMED
File without changes
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
+ }