ZhiyuanChen commited on
Commit
c2261e7
·
verified ·
1 Parent(s): e8b4814

Publish OFoldX pipeline artifacts

Browse files
README.md CHANGED
@@ -6,11 +6,11 @@ tags:
6
  - "protein"
7
  - "rna"
8
  - "dna"
9
- - "model"
10
  - "rfdiffusion"
11
  - "design-generation"
12
  - "protein-design"
13
- artifact_kind: "model"
14
  repo_id: "oteam/rfdiffusion-complex-base"
15
  license: "bsd-3-clause"
16
  pipeline_tag: "other"
@@ -34,11 +34,11 @@ widget:
34
 
35
  # rfdiffusion-complex-base
36
 
37
- OFoldX `model` artifact for biomolecular design generation, using the `rfdiffusion` architecture.
38
 
39
  ## Disclaimer
40
 
41
- This model card was generated by the OFoldX team for an OFoldX `model` artifact.
42
  The upstream model authors did not write this card unless explicitly stated otherwise.
43
 
44
  OFoldX is pre-alpha research software. Check the source checkpoint, upstream release, and local validation
@@ -53,7 +53,6 @@ Converted RFdiffusion checkpoint for backbone generation, motif scaffolding, and
53
  ### Model Provenance
54
 
55
  - **Upstream Project**: RFdiffusion
56
- - **Source Checkpoint**: `Complex_base_ckpt.pt`
57
  - **Source Release**: [https://github.com/RosettaCommons/RFdiffusion/blob/main/scripts/download_models.sh](https://github.com/RosettaCommons/RFdiffusion/blob/main/scripts/download_models.sh)
58
  - **Primary Paper**: [De novo design of protein structure and function with RFdiffusion](https://doi.org/10.1038/s41586-023-06415-8)
59
  - **Upstream License**: BSD for upstream RFdiffusion code and referenced model weights
@@ -63,17 +62,10 @@ Converted RFdiffusion checkpoint for backbone generation, motif scaffolding, and
63
  | Field | Value |
64
  | ----- | ----- |
65
  | Repository | `oteam/rfdiffusion-complex-base` |
66
- | Artifact Kind | `model` |
67
  | Task | `design_generation` |
68
  | Architecture | `rfdiffusion` |
69
- | Entrypoint | `ofoldx.models.rfdiffusion.model.RfDiffusionDesignGenerator` |
70
- | Config | `config.json` |
71
- | Weights | `model.safetensors` |
72
- | Source Checkpoint | `Complex_base_ckpt.pt` |
73
- | Checkpoint Variant | `Complex_base_ckpt` |
74
-
75
- > [!NOTE]
76
- > Source checkpoint: `Complex_base_ckpt.pt`.
77
 
78
  ### Links
79
 
@@ -81,7 +73,7 @@ Converted RFdiffusion checkpoint for backbone generation, motif scaffolding, and
81
  - **Upstream paper**: [De novo design of protein structure and function with RFdiffusion](https://doi.org/10.1038/s41586-023-06415-8)
82
  - **Upstream repository**: [RFdiffusion](https://github.com/RosettaCommons/RFdiffusion)
83
  - **Source checkpoint release**: [https://github.com/RosettaCommons/RFdiffusion/blob/main/scripts/download_models.sh](https://github.com/RosettaCommons/RFdiffusion/blob/main/scripts/download_models.sh)
84
- - **Code**: [`ofoldx/models/rfdiffusion/model.py`](https://github.com/OTeam-AI4S/OFoldX/tree/main/ofoldx/models/rfdiffusion/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 +85,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/rfdiffusion-complex-base` using the OFoldX `Auto*` interface:
99
 
100
  ```python
101
  from ofoldx.pipelines import Pipeline
102
 
103
  pipeline = Pipeline.from_pretrained("oteam/rfdiffusion-complex-base")
104
- output = pipeline(...)
105
-
106
- from ofoldx import AutoModel
107
-
108
- model = AutoModel.from_pretrained("oteam/rfdiffusion-complex-base")
109
  ```
110
 
111
  When a matching processor is available, load it with `AutoProcessor.from_pretrained(...)` and pass the
@@ -114,7 +101,7 @@ processed batch to the model.
114
  ### Interface
115
 
116
  - **Task**: `design_generation`
117
- - **Artifact kind**: `model`
118
  - **Architecture**: `rfdiffusion`
119
  - **Runtime files**: `manifest.json`, `config.json`, and `model.safetensors` when present
120
 
@@ -165,5 +152,5 @@ Please use [OFoldX GitHub issues](https://github.com/OTeam-AI4S/OFoldX/issues) f
165
 
166
  ## License
167
 
168
- The OFoldX project license is not yet finalized.
169
  The source checkpoint is associated with the upstream license noted above: BSD for upstream RFdiffusion code and referenced model weights. Review both OFoldX and upstream terms before redistribution or production use.
 
6
  - "protein"
7
  - "rna"
8
  - "dna"
9
+ - "pipeline"
10
  - "rfdiffusion"
11
  - "design-generation"
12
  - "protein-design"
13
+ artifact_kind: "pipeline"
14
  repo_id: "oteam/rfdiffusion-complex-base"
15
  license: "bsd-3-clause"
16
  pipeline_tag: "other"
 
34
 
35
  # rfdiffusion-complex-base
36
 
37
+ OFoldX `pipeline` artifact for biomolecular design generation, using the `rfdiffusion` architecture.
38
 
39
  ## Disclaimer
40
 
41
+ This model card was generated by the OFoldX team for an OFoldX `pipeline` artifact.
42
  The upstream model authors did not write this card unless explicitly stated otherwise.
43
 
44
  OFoldX is pre-alpha research software. Check the source checkpoint, upstream release, and local validation
 
53
  ### Model Provenance
54
 
55
  - **Upstream Project**: RFdiffusion
 
56
  - **Source Release**: [https://github.com/RosettaCommons/RFdiffusion/blob/main/scripts/download_models.sh](https://github.com/RosettaCommons/RFdiffusion/blob/main/scripts/download_models.sh)
57
  - **Primary Paper**: [De novo design of protein structure and function with RFdiffusion](https://doi.org/10.1038/s41586-023-06415-8)
58
  - **Upstream License**: BSD for upstream RFdiffusion code and referenced model weights
 
62
  | Field | Value |
63
  | ----- | ----- |
64
  | Repository | `oteam/rfdiffusion-complex-base` |
65
+ | Artifact Kind | `pipeline` |
66
  | Task | `design_generation` |
67
  | Architecture | `rfdiffusion` |
68
+ | Entrypoint | `ofoldx.pipelines.design.DesignPipeline` |
 
 
 
 
 
 
 
69
 
70
  ### Links
71
 
 
73
  - **Upstream paper**: [De novo design of protein structure and function with RFdiffusion](https://doi.org/10.1038/s41586-023-06415-8)
74
  - **Upstream repository**: [RFdiffusion](https://github.com/RosettaCommons/RFdiffusion)
75
  - **Source checkpoint release**: [https://github.com/RosettaCommons/RFdiffusion/blob/main/scripts/download_models.sh](https://github.com/RosettaCommons/RFdiffusion/blob/main/scripts/download_models.sh)
76
+ - **Code**: [`ofoldx/pipelines/design.py`](https://github.com/OTeam-AI4S/OFoldX/tree/main/ofoldx/pipelines/design.py)
77
  - **Project repository**: [https://github.com/OTeam-AI4S/OFoldX](https://github.com/OTeam-AI4S/OFoldX)
78
  - **Issues**: [https://github.com/OTeam-AI4S/OFoldX/issues](https://github.com/OTeam-AI4S/OFoldX/issues)
79
 
 
85
  pip install ofoldx
86
  ```
87
 
88
+ ### Pipeline Usage
89
 
90
+ Load the artifact from `oteam/rfdiffusion-complex-base` with the OFoldX task pipeline. Use `AutoModel` or `AutoProcessor` only when you need lower-level control:
91
 
92
  ```python
93
  from ofoldx.pipelines import Pipeline
94
 
95
  pipeline = Pipeline.from_pretrained("oteam/rfdiffusion-complex-base")
 
 
 
 
 
96
  ```
97
 
98
  When a matching processor is available, load it with `AutoProcessor.from_pretrained(...)` and pass the
 
101
  ### Interface
102
 
103
  - **Task**: `design_generation`
104
+ - **Artifact kind**: `pipeline`
105
  - **Architecture**: `rfdiffusion`
106
  - **Runtime files**: `manifest.json`, `config.json`, and `model.safetensors` when present
107
 
 
152
 
153
  ## License
154
 
155
+ The Hub `license` metadata, when present, reflects the source checkpoint or upstream project license. The OFoldX project license is not yet finalized.
156
  The source checkpoint is associated with the upstream license noted above: BSD for upstream RFdiffusion code and referenced model weights. Review both OFoldX and upstream terms before redistribution or production use.
generator/README.md ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: "ofoldx"
3
+ tags:
4
+ - "biology"
5
+ - "biomolecular-design"
6
+ - "protein"
7
+ - "rna"
8
+ - "dna"
9
+ - "model"
10
+ - "rfdiffusion"
11
+ - "design-generation"
12
+ - "protein-design"
13
+ artifact_kind: "model"
14
+ repo_id: "oteam/rfdiffusion-complex-base"
15
+ license: "bsd-3-clause"
16
+ pipeline_tag: "other"
17
+ task: "design_generation"
18
+ model-index:
19
+ - name: "rfdiffusion-complex-base"
20
+ results:
21
+ []
22
+ widget:
23
+ - pipeline_tag: "other"
24
+ task: "design_generation"
25
+ example_title: "Backbone generation"
26
+ text: "contig: 100-150\nhotspot_residues: []"
27
+ input_format: "structure_path"
28
+ - pipeline_tag: "other"
29
+ task: "design_generation"
30
+ example_title: "Motif scaffolding"
31
+ text: "input_structure: motif.cif\ncontig: A10-25/80-120"
32
+ input_format: "structure_path"
33
+ ---
34
+
35
+ # rfdiffusion-complex-base
36
+
37
+ OFoldX `model` artifact for biomolecular design generation, using the `rfdiffusion` architecture.
38
+
39
+ ## Disclaimer
40
+
41
+ This model card was generated by the OFoldX team for an OFoldX `model` artifact.
42
+ The upstream model authors did not write this card unless explicitly stated otherwise.
43
+
44
+ OFoldX is pre-alpha research software. Check the source checkpoint, upstream release, and local validation
45
+ before using the artifact for scientific or operational decisions.
46
+
47
+ ## Model Details
48
+
49
+ RFdiffusion backbone-generation model for protein design and motif scaffolding.
50
+
51
+ Converted RFdiffusion checkpoint for backbone generation, motif scaffolding, and binder design.
52
+
53
+ ### Model Provenance
54
+
55
+ - **Upstream Project**: RFdiffusion
56
+ - **Source Checkpoint**: `Complex_base_ckpt.pt`
57
+ - **Source Release**: [https://github.com/RosettaCommons/RFdiffusion/blob/main/scripts/download_models.sh](https://github.com/RosettaCommons/RFdiffusion/blob/main/scripts/download_models.sh)
58
+ - **Primary Paper**: [De novo design of protein structure and function with RFdiffusion](https://doi.org/10.1038/s41586-023-06415-8)
59
+ - **Upstream License**: BSD for upstream RFdiffusion code and referenced model weights
60
+
61
+ ### Model Specification
62
+
63
+ | Field | Value |
64
+ | ----- | ----- |
65
+ | Repository | `oteam/rfdiffusion-complex-base` |
66
+ | Artifact Kind | `model` |
67
+ | Task | `design_generation` |
68
+ | Architecture | `rfdiffusion` |
69
+ | Entrypoint | `ofoldx.models.rfdiffusion.model.RfDiffusionDesignGenerator` |
70
+ | Config | `config.json` |
71
+ | Weights | `model.safetensors` |
72
+ | Source Checkpoint | `Complex_base_ckpt.pt` |
73
+ | Checkpoint Variant | `Complex_base_ckpt` |
74
+
75
+ > [!NOTE]
76
+ > Source checkpoint: `Complex_base_ckpt.pt`.
77
+
78
+ ### Links
79
+
80
+ - **Hub repository**: [oteam/rfdiffusion-complex-base](https://huggingface.co/oteam/rfdiffusion-complex-base)
81
+ - **Upstream paper**: [De novo design of protein structure and function with RFdiffusion](https://doi.org/10.1038/s41586-023-06415-8)
82
+ - **Upstream repository**: [RFdiffusion](https://github.com/RosettaCommons/RFdiffusion)
83
+ - **Source checkpoint release**: [https://github.com/RosettaCommons/RFdiffusion/blob/main/scripts/download_models.sh](https://github.com/RosettaCommons/RFdiffusion/blob/main/scripts/download_models.sh)
84
+ - **Code**: [`ofoldx/models/rfdiffusion/model.py`](https://github.com/OTeam-AI4S/OFoldX/tree/main/ofoldx/models/rfdiffusion/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/rfdiffusion-complex-base` 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/rfdiffusion-complex-base")
104
+ output = pipeline(...)
105
+
106
+ from ofoldx import AutoModel
107
+
108
+ model = AutoModel.from_pretrained("oteam/rfdiffusion-complex-base")
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**: `design_generation`
117
+ - **Artifact kind**: `model`
118
+ - **Architecture**: `rfdiffusion`
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
+ RFdiffusion fine-tunes a RoseTTAFold-style structure network as a denoising diffusion model over PDB protein structures. OFoldX does not redistribute the training set.
129
+
130
+ ### Training Procedure
131
+
132
+ Upstream RFdiffusion noises residue frames with Gaussian C-alpha translation noise and rotational Brownian motion, trains denoising to true frames with self-conditioning, and uses checkpoint-specific inference configs. OFoldX converts released RFdiffusion checkpoints into `model.safetensors`; it does not run RFdiffusion 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 RFdiffusion work for the source checkpoint. If OFoldX supports your work, please also cite or link the OFoldX project repository.
148
+
149
+ ```bibtex
150
+ @article{watson2023denovo,
151
+ author = {Watson, Joseph L. and Juergens, David and Bennett, Nathaniel R. and Trippe, Brian L. and Yim, Jason and Eisenach, Helen E. and Ahern, Woody and Borst, Andrew J. and Ragotte, Robert J. and Milles, Lukas F. and others},
152
+ title = {De novo design of protein structure and function with RFdiffusion},
153
+ journal = {Nature},
154
+ volume = {620},
155
+ number = {7976},
156
+ pages = {1089--1100},
157
+ year = {2023},
158
+ doi = {10.1038/s41586-023-06415-8}
159
+ }
160
+ ```
161
+
162
+ ## Contact
163
+
164
+ Please use [OFoldX GitHub issues](https://github.com/OTeam-AI4S/OFoldX/issues) for questions or comments about this model card.
165
+
166
+ ## License
167
+
168
+ The Hub `license` metadata, when present, reflects the source checkpoint or upstream project license. The OFoldX project license is not yet finalized.
169
+ The source checkpoint is associated with the upstream license noted above: BSD for upstream RFdiffusion code and referenced model weights. Review both OFoldX and upstream terms before redistribution or production use.
config.json → generator/config.json RENAMED
File without changes
conversion_report.json → generator/conversion_report.json RENAMED
File without changes
generator/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.rfdiffusion.model.RfDiffusionDesignGenerator",
10
+ "architecture": "rfdiffusion",
11
+ "task": "design_generation",
12
+ "files": {
13
+ "config": "config.json"
14
+ },
15
+ "weights": {
16
+ "default": "model.safetensors"
17
+ }
18
+ }
model.safetensors → generator/model.safetensors RENAMED
File without changes
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.rfdiffusion.model.RfDiffusionDesignGenerator",
10
  "architecture": "rfdiffusion",
11
  "task": "design_generation",
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.design.DesignPipeline",
10
  "architecture": "rfdiffusion",
11
  "task": "design_generation",
12
+ "components": {
13
+ "generator": {
14
+ "kind": "component",
15
+ "path": "generator"
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.rfdiffusion.processor.RfDiffusionProcessor",
10
+ "files": {
11
+ "config": "processor_config.json"
12
+ }
13
+ }
processor/processor_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "preserve_input_motif": true,
3
+ "hotspot_residues": []
4
+ }