Evaluate
June 26, 2026 ยท View on GitHub
๐ค Agent-Driven Protein Engineering Platform One platform, three interfaces, infinite possibilities
๐ Recent News
- [2026-04-01] ๐ New released VenusFactory2 website at venusfactory.cn/playground
- [2026-03-27] ๐ VenusFactory2 technical report released at arXiv:2603.27303
- [2026-01-23] ๐ Added VenusX (ICLR2026) in VenusFactory2
- [2025-04-19] ๐ VenusREM (ISMB/ECCB2025) #1 in ProteinGym & VenusMutHub!
๐จ Join our WeChat Group / ๐ Share Your Feedback
๐ฏ What is VenusFactory2?
VenusFactory2 is an Agent-driven protein engineering platform combining 40+ AI models with 11 biological databases. Designed for everyone โ from biologists to AI researchers.
๐ Why VenusFactory2?
| ๐ค Agent-First | ๐ฏ Three Interfaces | โก Zero to Results |
|---|---|---|
| Natural language โ Multi-step automation | Web UI / REST API / CLI | Upload โ Predict in seconds |
| 40+ models + 11 databases | Same power, different styles | Or train custom models in minutes |
๐ Easy to Learn: Designed for life science professionals with no programming background required. Intuitive Web UI, comprehensive bilingual documentation, rich examples and video tutorials help you quickly grow from beginner to protein AI expert.
๐ก Capabilities at a Glance
| Task | Solution | Time |
|---|---|---|
| ๐งฌ Mutation effects | ESM-2, ProSST, ProtSSN (zero-shot) | <1 min |
| ๐ฏ Protein function | 30+ fine-tuned models | <30 sec |
| ๐ฌ Custom training | 7 PEFT methods (LoRA, QLoRA, etc.) | 10-60 min |
| ๐พ Data download | AlphaFold, UniProt, RCSB, KEGG, etc. | Real-time |
| ๐ Literature | AI-powered search & analysis | <2 min |
โก Quick Start
1. Install
git clone https://github.com/AI4Protein/VenusFactory2.git && cd VenusFactory2
conda create -n venus python=3.12 && conda activate venus
pip install -r requirements.txt # Detailed guide below โ
# Local deploy: install kimi-code (the default chat engine).
# See: <https://example.com/kimi-code> # TODO: replace with official repo
# Skip if you only use online mode or other LLM models:
# export KIMI_EXTERNAL=1 # or remove kimi-code from src/agent/models.yaml
2. Build Frontend (WebUI v2 required)
cd frontend
npm install
npm run build
cd ..
3. Launch
# Web UI v1 (legacy Gradio, local mode)
python src/webui.py --mode all # โ http://localhost:7860
# Web UI v2 (FastAPI + React, local mode)
python src/webui_v2.py --host 0.0.0.0 --port 7861 # โ http://localhost:7861
# Web UI v2 (FastAPI + React, online mode)
python src/webui_v2.py --host 0.0.0.0 --port 7861 --online
# REST API only
python src/api_server.py # โ http://localhost:5000/docs
# CLI
bash script/train/train_plm_lora.sh
3. Get Results
๐ค Try Agent-0.1 | โก Quick Tools | ๐ฌ Train Models (Click to expand examples)
Agent-0.1 (Natural Language)
Q: "Predict stability for sequence MKTAYIAKQRQISFV..."
โ Agent auto-selects model โ Runs prediction โ Returns results + explanations
Quick Mutation Scoring
Upload: PDB/FASTA โ Mutations: A23V, K45R โ Get: Stability scores
Train Your Model
Model: ESM2-650M โ Dataset: DeepSol โ Method: LoRA โ 15 min โ Trained model โ
๐ค Agent-0.1: The Brain
Agent-0.1 orchestrates all tools via natural language. Powered by LangGraph + LangChain.
You: "Design thermostable mutations for PDB:1ABC"
โ
๐ค Agent Planning
โ
๐ฅ Download โ ๐งฌ Predict โ ๐ฏ Score โ ๐ Report
RCSB PDB ESM-2 scan Stability Ranked list
โจ Agent Capabilities
| Category | Features |
|---|---|
| ๐ฌ Analysis | Mutation prediction โข Function/stability scoring โข Structure analysis |
| ๐พ Data | Multi-database search โข Format conversion โข Batch processing |
| ๐ง Planning | Multi-step automation โข Tool orchestration โข Error handling |
| ๐ Research | Literature mining โข Family analysis โข Report generation |
๐ฌ Example Conversations
Mutation Design:
You: "Improve thermostability of MKTAYIAKQR..."
Agent: โ ESM-2 scanning... โ Stability scoring...
โ Top 3: A5V (+2.8 kcal/mol), K9R (+1.9), T2S (+1.5)
Database Search:
You: "Find lysozyme structures <2.0ร
resolution"
Agent: โ Searching RCSB... โ Found 47 structures
โ Downloaded to: temp_outputs/lysozyme_structures/
๐ก Note: Requires API key (OpenAI/Anthropic). Currently in Beta.
๐๏ธ Architecture
๐ Interfaces: Web UI | REST API | CLI
โ
๐ค Agent Layer (LangGraph + LangChain)
โ
๐ง Application: Train | Eval | Predict | Tools
โ
๐ ๏ธ Core Tools: 9 categories (mutation, database, search, etc.)
โ
๐ Resources: 40+ Models | 30+ Datasets | 11+ Databases
๐ Integrated Resources
Models (40+): ESM, ProtBert, ProtT5, Venus/PETA/ProSST series
Databases (11+): AlphaFold โข RCSB PDB โข UniProt โข NCBI โข KEGG โข STRING โข BRENDA โข ChEMBL โข HPA โข FDA โข Foldseek
Datasets (30+): Function โข Localization โข Stability โข Solubility โข Mutation fitness
๐ง Tool Categories
| Tool | Description | Agent | CLI |
|---|---|---|---|
| ๐งฌ Mutation | ESM-1v, ESM-2, ProSST, ProtSSN, MIF-ST | โ | โ |
| ๐ฏ Prediction | 30+ fine-tuned models | โ | โ |
| ๐พ Database | 11 integrations | โ | โ |
| ๐ Search | PubMed, FDA, patents | โ | โ |
| ๐๏ธ Training | LoRA, QLoRA, DoRA, etc. | โ | โ |
| ๐ File | Format conversion | โ | โ |
| ๐ฌ Denovo | Protein design | โ | โ |
| ๐งช Discovery | Novel discovery | โ | โ |
| ๐ Visualize | 3D viewer | โ | โ |
๐งฌ Supported Models
40+ Protein Language Models (Click to expand)
Venus Series (Liang's Lab): ProSST-20/128/512/1024/2048/4096 (110M) โข ProPrime-690M โข VenusPLM-300M โข PETA-base/bpe/unigram (80M)
ESM Series (Meta AI): ESM2: 8M, 35M, 150M, 650M, 3B, 15B โข ESM-1v: 5 models (650M each)
ProtBert & ProtT5: ProtBert-Uniref100/BFD (420M) โข IgBert (420M) โข ProtT5-XL/XXL (3B-11B) โข Ankh-base/large (450M-1.2B)
Selection Guide:
- GPU <8GB: ESM2-8M/35M, ProSST
- GPU 8-16GB: ESM2-150M/650M, ProtBert
- GPU 24GB+: ESM2-3B, ProtT5-XL
- Multi-GPU: ESM2-15B, ProtT5-XXL
By Task:
- Classification: ESM2, ProtBert
- Structure: Ankh
- Generation: ProtT5
- Antibody: IgBert/IgT5
- Lightweight: ProSST, PETA
๐ Supported Datasets
30+ Supervised + Zero-Shot Datasets
Zero-Shot: VenusMutHub โข ProteinGym (217 DMS)
Function: EC โข GO_BP โข GO_CC โข GO_MF Localization: DeepLocBinary โข DeepLocMulti โข DeepLoc2Multi Stability: Thermostability โข TAPE_Stability Solubility: DeepSol โข DeepSoluE โข eSOL โข ProtSolM โข PETA_CHS/LGK/TEM_Sol Mutation: FLIP_AAV (7 splits) โข FLIP_GB1 (5 splits) โข TAPE_Fluorescence Others: DeepET_Topt โข MetalIonBinding โข SortingSignal โข PaCRISPR
All datasets available on HuggingFace
๐ฆ Installation
System packages (Linux): PDF export pulls
pycairo, which builds againstcairo. On Debian/Ubuntu, install once before pip-installing:sudo apt-get install -y libcairo2-dev libxml2-dev pkg-configOr, with conda, install the pre-built binary to skip the build:
conda install -c conda-forge pycairomacOS / Windows: pre-built wheels exist, no extra system step needed.
Option A โ conda + pip (recommended for end users)
๐ macOS (M1/M2/M3)
git clone https://github.com/AI4Protein/VenusFactory2.git && cd VenusFactory2
conda create -n venus python=3.12 && conda activate venus
pip install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
pip install torch_scatter torch-sparse torch-geometric -f https://data.pyg.org/whl/torch-2.8.0+cpu.html
pip install -r requirements_for_macOS.txt
๐ช Windows / ๐ง Linux (CUDA 12.8)
git clone https://github.com/AI4Protein/VenusFactory2.git && cd VenusFactory2
conda create -n venus python=3.12 && conda activate venus
# Linux only: see "System packages" note above for cairo headers.
pip install torch==2.8.0 torchvision --index-url https://download.pytorch.org/whl/cu128
pip install torch_geometric pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv \
-f https://data.pyg.org/whl/torch-2.8.0+cu128.html
pip install -r requirements.txt
๐ช Windows / ๐ง Linux (CUDA 11.8)
git clone https://github.com/AI4Protein/VenusFactory2.git && cd VenusFactory2
conda create -n venus python=3.12 && conda activate venus
pip install torch==2.7.0 --index-url https://download.pytorch.org/whl/cu118
pip install torch_geometric pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv \
-f https://data.pyg.org/whl/torch-2.7.0+cu118.html
pip install -r requirements.txt
๐ป CPU Only
git clone https://github.com/AI4Protein/VenusFactory2.git && cd VenusFactory2
conda create -n venus python=3.12 && conda activate venus
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
pip install torch_geometric pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv \
-f https://data.pyg.org/whl/torch-2.8.0+cpu.html
pip install -r requirements.txt
Option B โ uv (faster, recommended for development)
A helper script installs torch / PyG / pyproject.toml deps into .venv/ via uv:
git clone https://github.com/AI4Protein/VenusFactory2.git && cd VenusFactory2
# Linux only: see "System packages" note above for cairo headers.
python install.py --type cu128 # or: --type cpu
source .venv/bin/activate
Verify the environment
Run the bundled readiness check:
python scripts/check_env.py
It validates torch/CUDA, PyG, transformers, the agent stack, project src imports, and runs a CUDA matmul smoke test. Exit code is non-zero if any required dependency is missing.
๐ Usage
Web UI
WebUI v2 serves static files from
frontend/distin production mode, so runnpm run buildinfrontend/before startingsrc/webui_v2.py.
# Build WebUI v2 frontend assets first
cd frontend && npm run build && cd ..
# v1 (legacy Gradio) - local mode
python src/webui.py --mode all # โ http://localhost:7860
# v1 (legacy Gradio) - online-compatible mode (feature-limited)
WEBUI_V2_MODE=online python src/webui.py --mode all # โ http://localhost:7860
# v2 (FastAPI + React) - local mode
python src/webui_v2.py --host 0.0.0.0 --port 7861 # โ http://localhost:7861
# v2 (FastAPI + React) - online mode
python src/webui_v2.py --host 0.0.0.0 --port 7861 --online # โ http://localhost:7861
Configuration Entry
- Main runtime configuration template:
.env.example - Typical flow:
cp .env.example .envthen adjust required keys for your mode. - Minimal local setup: keep defaults, set
OPENAI_API_KEYonly if you use LLM-backed features. - Minimal online setup: set
WEBUI_V2_MODE=online,WEBUI_V2_SESSION_TOKEN_SECRET, and review allWEBUI_V2_*_LIMITvalues.
| Tab | Purpose | Features |
|---|---|---|
| Training | Train custom models | Model selection โข PEFT methods โข Real-time monitoring โข Wandb |
| Evaluation | Benchmark testing | Load model โข Select metrics โข CSV export |
| Prediction | Inference | Single/batch prediction โข Result visualization |
| Agent | Natural language | Multi-step automation โข Tool orchestration |
| Quick Tools | Rapid prediction | Mutation scoring โข Function prediction |
| Advanced | Deep analysis | Sequence/structure-based models |
| Download | Data retrieval | AlphaFold โข UniProt โข RCSB โข InterPro |
| Manual | Documentation | Guides & tutorials |
Screenshots

CLI & API
Command Line Examples
# Train model
bash script/train/train_plm_lora.sh \
--model facebook/esm2_t33_650M_UR50D \
--dataset DeepSol --batch_size 32
# Evaluate
bash script/eval/eval.sh \
--model_path ckpt/DeepSol/best_model \
--test_dataset DeepSol
# Download data
bash script/tools/database/alphafold/download_alphafold_structure.sh
bash script/tools/database/uniprot/download_uniprot_seq.sh
# Generate structure sequences
bash script/get_structure_seq/get_esm3_structure_seq.sh
REST API Examples
# Start server
python src/api_server.py # โ http://localhost:5000/docs
# Mutation prediction
curl -X POST http://localhost:5000/api/mutation/predict \
-H "Content-Type: application/json" \
-d '{"sequence": "MKTAYIA...", "mutations": ["A23V", "K45R"]}'
# Function prediction
curl -X POST http://localhost:5000/api/predict/function \
-H "Content-Type: application/json" \
-d '{"sequence": "MKTAYIA...", "tasks": ["solubility", "stability"]}'
# Database search
curl http://localhost:5000/api/database/uniprot/search?query=lysozyme&limit=10
Python API
from src.tools.mutation import predict_mutation_effects
from src.tools.predict import predict_protein_function
from src.tools.database import download_alphafold_structure
# Mutations
results = predict_mutation_effects(
sequence="MKTAYIAKQR...",
mutations=["A5V", "K9R"],
model="esm2"
)
# Function
predictions = predict_protein_function(
sequence="MKTAYIA...",
tasks=["solubility", "stability"]
)
# Data
pdb_file = download_alphafold_structure("P12345")
๐ Training Methods
| Method | Memory | Speed | Performance | Best For |
|---|---|---|---|---|
| LoRA | Low | Fast | Good | General tasks |
| QLoRA | Very Low | Slow | Good | Limited GPU |
| DoRA | Low | Medium | Better | Improved LoRA |
| AdaLoRA | Low | Medium | Better | Adaptive rank |
| SES-Adapter | Medium | Medium | Better | Selective tuning |
| IA3 | Very Low | Fast | Good | Lightweight |
| Freeze | Low | Fast | Good | Simple tuning |
๐ Citation
@article{tan2026venusfactory2,
title={Self-evolving AI agents for protein discovery and directed evolution},
author={Tan, Yang and Zhang, Lingrong and Li, Mingchen and Yu, Yuanxi and Zhong, Bozitao and Zhou, Bingxin and Dong, Nanqing and Hong, Liang},
journal={arXiv preprint arXiv:2603.27303},
year={2026}
}
@inproceedings{tan2025venusfactory,
title={VenusFactory: An Integrated System for Protein Engineering with Data Retrieval and Language Model Fine-Tuning},
author={Tan, Yang and Liu, Chen and Gao, Jingyuan and Banghao, Wu and Li, Mingchen and Wang, Ruilin and Zhang, Lingrong and Yu, Huiqun and Fan, Guisheng and Hong, Liang and others},
booktitle={Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 3: System Demonstrations)},
pages={230--241},
year={2025}
}
๐ License
VenusFactory is released under the VenusFactory Non-Commercial License โ see LICENSE (English, authoritative) and LICENSE_CN.md (ไธญๆ็ฟป่ฏ, for reference).
- โ Academic / non-commercial use is free for not-for-profit research institutions, government laboratories, universities, and individuals โ for internal research, teaching, and personal study. Please cite the references in the Citation section.
- โ Commercial use is NOT permitted under the default license. This includes any use by or for a for-profit entity, any fee-bearing product/service/API, contract research whose IP is owned by a for-profit entity, and any use intended for commercial advantage.
- ๐ง Commercial licensing requires prior written approval. To request a commercial license โ or to confirm whether your intended use qualifies as commercial โ please email hongl3lilang@sjtu.edu.cn (Liang Lab, Shanghai Jiao Tong University). Your inquiry should include the licensee entity, intended use, scope, and duration.
๐ Acknowledgement
Developed by Liang's Lab at Shanghai Jiao Tong University.
Resources: Docs โข YouTube โข Playground โข Issues
Made with โค๏ธ for the protein engineering community