File size: 4,604 Bytes
4351c1f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
---
license: apache-2.0
language:
- en
- zh
tasks:
  - protein structure predictions
tags:
- OneScience
- Biomolecular Complex Structure Prediction
- Protein
- Nucleic Acids, Ligands
frameworks: 
- PyTorch
datasets:
 - OneScience-Sugon/protenix_dataset
---
<p align="center">
  <strong>
    <span style="font-size: 30px;">Protenix</span>
  </strong>
</p>

# Model Introduction

Protenix is an AlphaFold 3-like model for predicting the structures of biomolecular complexes comprising proteins, nucleic acids, ligands, and other molecules. It predicts three-dimensional structures from molecular inputs described in JSON and locally generated MSA features, producing CIF structure files together with associated confidence scores.

# Model Description

Protenix uses a Pairformer representation network and an atom-level diffusion Transformer to predict the structures of proteins, nucleic acids, ligands, and their complexes within a unified framework.

This Hugging Face package is designed for immediate use after download, rapid local validation, and automated execution in OneCode. All code, configuration files, example inputs, and pretrained weights are included in the model package directory.

# Use Cases

| Scenario | Description |
| :---: | :--- |
| Complex structure prediction | Takes a Protenix JSON file and locally generated MSA features as input and outputs predicted structures in CIF format and confidence scores in JSON format. |
| Full Hugging Face package validation | Uses the included `config/`, `models/`, `scripts/`, `examples/`, and `weight/` directories to run preflight checks and inference directly. |
| Fine-tuning pipeline validation | Starts the fine-tuning workflow using the included weights and `ft_datasets/finetune_subset.txt`. |
| Training pipeline setup | Supports single-GPU training once the complete Protenix dataset is provided. |

# Usage Guide

## 1. OneCode Usage

Try one-click AI4S development in the OneCode online environment:

[Try one-click AI4S development](https://web-2069360198568017922-iaaj.ksai.scnet.cn:58043/home)

## 2. Manual Installation and Usage

**Hardware Requirements**

- GPU or DCU is recommended.
- A CPU can be used for basic connectivity checks, but execution will be slow.
- DCU users must install DTK in advance. DTK 25.04.2 or later is recommended, or a OneScience-recommended version matching the current cluster.

**Software Requirements**

DCU users who need additional information about the adaptation may contact liubiao@sugon.com.

**Environment Check**

- NVIDIA GPU:

```bash
nvidia-smi
```

- Hygon DCU:

```bash
hy-smi
```

## Quick Start

### 1. Install the Runtime Environment

```bash
conda create -n onescience311 python=3.11 -y
conda activate onescience311
pip install onescience[bio] -i http://mirrors.onescience.ai:3141/pypi/simple/  --trusted-host mirrors.onescience.ai
```

### 2. Download the Model Package and Dataset

```bash
hf download --model OneScience-Sugon/protenix --local-dir ./protenix
hf download --model OneScience-Sugon/protenix_dataset --local-dir ./protenix_dataset
```

### Model Weights

The trained model weights are included in the `weights/` directory and can be used immediately after the model package is downloaded.

### 3. Run Preflight Checks

To check only the model package, weights, and local imports, run:

```bash
python scripts/preflight.py --strict-weights --strict-imports
```

If the full dataset is already prepared:

```bash
export DATA_ROOT_DIR=../bio_protenix_dataset
python scripts/preflight.py --strict-weights --strict-imports --strict-data
```

### 4. Run Inference

```bash
export DATA_ROOT_DIR=../bio_protenix_dataset
bash scripts/inference_unified_demo.sh
```

Default output directory:

```text
output_unified/7r6r/seed_101/predictions/
```

### 5. Training and Fine-Tuning

Training:

```bash
export DATA_ROOT_DIR=../bio_protenix_dataset
bash scripts/train_demo.sh
```

Fine-tuning:

```bash
export DATA_ROOT_DIR=../bio_protenix_dataset
bash scripts/finetune_demo.sh
```

# OneScience Official Information

| Platform | OneScience Main Repository | Skills Repository |
| --- | --- | --- |
| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
| GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |

# Citation & License

The Protenix project, including its code and model parameters, is available under the [Apache License 2.0](https://github.com/bytedance/Protenix/blob/main/LICENSE) and may be used free of charge for both academic research and commercial purposes.