Draft
Conversation
* readme * add contributing and dco
* rename scripts * fix bug * refine scripts * fix renaming bug * keep 10 ckps * dump outputs * readme * hierachy * title * introduction * rm converter readme * intro * log interval * README * intro
…rp#7) * add the convert script and alphafold original configs * add the convert script for alphafold and modify the README * add the convert script for alphafold * merge from main
* add script for benchmarking * code clean * add benchmark in memory cost * remove use_lma * add option for LMA
* add evaluation results * par * compress img * figure layout * white bg * png -> jpg * Revert "figure layout" * revert to green
* Update README.md * Update README.md
* optional msa col attn mask * chunk attention * fix chunk_size * code clean Co-authored-by: Guolin Ke <guolin.ke@outlook.com>
* add the colab version of Uni-Fold * add the description of Uni-Fold Colab at README
* refine notebook * rephrase * rephrase * rephrase * rephrase * rm output * rephrase * rephrase Co-authored-by: Guolin Ke <guolin.ke@outlook.com>
change default model name to avoid confusion
* fix uf-symmetry wget url * fix url
* do not download af2 params * do not download af params
* refactor the notebook * change branch * add init * fix auto chunk size * optim plot & fix pae * fix ssave file bug * merge cell * finalize
* fix wrong version * change from google drive to github release
* Update unifold.ipynb * Update unifold.ipynb * Update unifold.ipynb
* update get assembly from mmcif * add comment
* add dataset download via Volcengine * rephrase --------- Co-authored-by: Ziyao Li <36321246+ZiyaoLi@users.noreply.github.com>
* add symmetry utils to process input structures * fix import
…-corp#119) * tolerate inconsistencies between pdb_assembly and multi_label * Update dataset.py
hypnopump
commented
Oct 21, 2023
| export NCCL_ASYNC_ERROR_HANDLING=1 | ||
| export OMP_NUM_THREADS=1 | ||
| mkdir -p $1 | ||
| mkdir -p temp |
Author
There was a problem hiding this comment.
once this proposal is validated, modifications to this file can be dropped; was just for easy testing of the code
guolinke
reviewed
Oct 23, 2023
| k = k.view(*k.shape[:-1], self.num_heads, self.head_dim).transpose(-2, -3).contiguous() | ||
| v = v.view(*v.shape[:-1], self.num_heads, self.head_dim).transpose(-2, -3) | ||
| # (b, n, h, i, dim_head), (b, n, h, j, dim_head) -> (b, n, h, i, dim_head) | ||
| o = torch.nn.functional.scaled_dot_product_attention(q, k, v, attn_mask=mask) |
Member
There was a problem hiding this comment.
How about its speed/memory compared with the one with softmax_dropout?
27d1b4e to
189443e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uses flash attention v2. Works for any sequence length.
WARNING! Pls install the custom fork from trident provided below as a zip file. You might need to install
triton-nightlyafterwards (maybe alsonvtx) to get it working (see triton repo for instructions). Check withipython; import trident as tdtrident.zip