Protenix

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 configs/, 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

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:
nvidia-smi
  • Hygon DCU:
hy-smi

Quick Start

1. Install the Runtime Environment

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

hf download OneScience-Group/protenix --local-dir ./protenix
hf download OneScience-Group/protenix_dataset --repo-type dataset --local-dir ./protenix_dataset
cd protenix

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:

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

If the full dataset is already prepared:

export DATA_ROOT_DIR=../protenix_dataset
python scripts/preflight.py --strict-weights --strict-imports --strict-data

4. Run Inference

export DATA_ROOT_DIR=../protenix_dataset
bash scripts/inference_unified_demo.sh

Default output directory:

output_unified/7r6r/seed_101/predictions/

5. Training and Fine-Tuning

Training:

export DATA_ROOT_DIR=../protenix_dataset
bash scripts/train_demo.sh

Fine-tuning:

export DATA_ROOT_DIR=../protenix_dataset
bash scripts/finetune_demo.sh

OneScience Official Information

Citation & License

The Protenix project, including its code and model parameters, is available under the Apache License 2.0 and may be used free of charge for both academic research and commercial purposes.


中文说明

模型简介

Protenix 是一种类似 AlphaFold 3 的模型,用于预测由蛋白质、核酸、配体等分子组成的生物分子复合物结构。它根据 JSON 中描述的分子输入和本地生成的 MSA 特征预测三维结构,并输出 CIF 结构文件及相应的置信度分数。

模型描述

Protenix 使用 Pairformer 表示网络和原子级扩散 Transformer,在统一框架下预测蛋白质、核酸、配体和其复合物的结构。

本 Hugging Face 模型包可在下载后立即使用,支持本地快速验证和在 OneCode 中自动执行。模型包目录包含全部代码、配置文件、示例输入及预训练权重。

使用场景

场景 说明
复合物结构预测 输入 Protenix JSON 文件和本地生成的 MSA 特征,输出 CIF 格式的预测结构和 JSON 格式的置信度分数。
完整 Hugging Face 模型包验证 使用随附的 configs/、models/、scripts/、examples/ 和 weight/ 目录直接运行预检和推理(inference)。
微调(fine-tuning)流程验证 使用随附权重和 ft_datasets/finetune_subset.txt 启动微调流程。
配置训练流程 提供完整 Protenix 数据集后,支持单 GPU 训练。

使用指南

1. OneCode 使用方法

通过 OneCode 在线环境体验一键 AI4S 开发。

体验一键 AI4S 开发

2. 手动安装与使用

硬件要求

  • 建议使用 GPU 或 DCU。
  • 可以使用 CPU 运行基本连通性检查,但执行速度较慢。
  • DCU 用户必须提前安装 DTK。建议使用 DTK 25.04.2 或更高版本,或 OneScience 推荐的与当前集群匹配的版本。

软件要求

DCU 用户如需了解更多适配信息,可联系 liubiao@sugon.com。

环境检查

  • NVIDIA GPU
nvidia-smi
  • 海光 DCU
hy-smi

快速开始

1. 安装运行环境

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. 下载模型包和数据集

hf download OneScience-Group/protenix --local-dir ./protenix
hf download OneScience-Group/protenix_dataset --repo-type dataset --local-dir ./protenix_dataset
cd protenix

模型权重

训练得到的模型权重包含在 weights/ 目录中,模型包下载后即可使用。

3. 运行预检

如仅需检查模型包、权重和本地导入,运行以下命令。

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

如已准备好完整数据集,运行以下命令。

export DATA_ROOT_DIR=../protenix_dataset
python scripts/preflight.py --strict-weights --strict-imports --strict-data

4. 运行推理

export DATA_ROOT_DIR=../protenix_dataset
bash scripts/inference_unified_demo.sh

默认输出目录

output_unified/7r6r/seed_101/predictions/

5. 训练与微调

训练

export DATA_ROOT_DIR=../protenix_dataset
bash scripts/train_demo.sh

微调

export DATA_ROOT_DIR=../protenix_dataset
bash scripts/finetune_demo.sh

OneScience 官方信息

引用与许可证

Protenix 项目及其代码和模型参数采用 Apache License 2.0 授权,可免费用于学术研究和商业用途。

Downloads last month
23
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support