Views
No views yet
OneScience-Group/ESM.| Scenario | Description |
|---|---|
| Protein representation extraction | Takes a FASTA file as input and outputs per-token, mean-pooled, BOS, or contact representations |
| Protein structure prediction | Takes one or more amino acid sequences as input and outputs corresponding PDB structure files |
| Variant effect scoring | Takes a wild-type sequence and a DMS mutation table as input and outputs mutation effect scores |
| Fixed-backbone sequence design | Takes a PDB / CIF structure and chain ID as input and samples candidate sequences that satisfy the backbone constraints |
| Structure-conditioned sequence scoring | Takes a structure and candidate sequences as input and computes their conditional log-likelihoods |
| Hugging Face / OneCode execution | After downloading the model project, quickly verifies that the scripts run correctly in a life-sciences runtime environment |
nvidia-smihy-smi1hf download OneScience-Group/ESM --local-dir ./ESM
2cd ESM1# Activate DTK and CONDA first
2conda create -n onescience311 python=3.11 -y
3conda activate onescience311
4# uv installation supported
5pip install onescience[bio-dcu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai1# If required libraries cannot be found, activate the CUDA compatibility environment as follows:
2source ${ROCM_PATH}/cuda/env.sh
3export LD_LIBRARY_PATH="$CONDA_PREFIX/lib:$LD_LIBRARY_PATH"
4export LD_LIBRARY_PATH="$CONDA_PREFIX/lib/python3.11/site-packages/fastpt/torch/lib:$LD_LIBRARY_PATH"cd ./ESMdata/. This model package does not include a training entry point; the data is intended for example inference and workflow validation. You can also download only the data directory:1hf download OneScience-Group/ESM \
2 --include "data/**" \
3 --local-dir .weight/; select the appropriate checkpoint for inference.1weight/
2 checkpoints/
3 esm2_t6_8M_UR50D.pt
4 esmfold_3B_v1.pt
5 esm1v_t33_650M_UR90S_1.pt
6 esm_if1_gvp4_t16_142M_UR50.pt
7 ...export ESM_WEIGHT_DIR=/path/to/esm/weightweight/checkpoints/esm2_t6_8M_UR50D.ptbash scripts/infer.shdata/fasta/few_proteins.fasta, extracts protein representations using esm2_t6_8M_UR50D.pt, and saves the results to outputs/embeddings/.1python scripts/extract.py \
2 weight/checkpoints/esm2_t6_8M_UR50D.pt \
3 data/fasta/few_proteins.fasta \
4 outputs/embeddings \
5 --include mean per_tok \
6 --repr_layers 61python scripts/fold.py \
2 -i data/fasta/few_proteins.fasta \
3 -o outputs/pdb \
4 --model-dir weight \
5 --cpu-only.pdb files. For production GPU / DCU inference, remove --cpu-only and configure --chunk-size or --max-tokens-per-batch according to the available accelerator memory.RUN_ESMFOLD=1 bash scripts/infer.sh1python scripts/inverse_folding/sample_sequences.py \
2 data/inverse_folding/5YH2.pdb \
3 --chain A \
4 --outpath outputs/sampled_seqs.fasta \
5 --num-samples 1 \
6 --nogpu1python scripts/inverse_folding/score_log_likelihoods.py \
2 data/inverse_folding/5YH2.pdb \
3 data/inverse_folding/5YH2_mutated_seqs.fasta \
4 --chain A \
5 --outpath outputs/sequence_scores.csv \
6 --nogpu1python scripts/variant_prediction/predict.py \
2 --model-location esm1v_t33_650M_UR90S_1 \
3 --sequence "${ESM_VARIANT_SEQUENCE}" \
4 --dms-input data/variant_prediction/BLAT_ECOLX_Ranganathan2015.csv \
5 --mutation-col mutant \
6 --dms-output outputs/variant_prediction.csv \
7 --offset-idx 24 \
8 --scoring-strategy wt-marginalsdata/ by default:1data/
2 fasta/
3 few_proteins.fasta
4 some_proteins.fasta
5 inverse_folding/
6 5YH2.pdb
7 5YH2.cif
8 5YH2_mutated_seqs.fasta
9 example.json
10 variant_prediction/
11 BLAT_ECOLX_Ranganathan2015.csv
12 rho_pp.csv
13 aggregated_rho.csv
14 aggregated_rho_round3.csvmutant, and mutations use notation such as A123B.--sequence must match the corresponding mutation annotation.python scripts/check_import_boundaries.pypython -B -c "import ast, pathlib; [ast.parse(p.read_text(encoding='utf-8'), filename=str(p)) for root in ['model', 'scripts', 'tests'] for p in pathlib.Path(root).rglob('*.py')]"| 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 |
LICENSE. For the usage terms governing model weights and data, refer to the documentation provided by the respective publishers.