clami66 / af_unmasked Goto Github PK
View Code? Open in Web Editor NEWSource code and examples for AlphaFold Unmasked
License: Apache License 2.0
Source code and examples for AlphaFold Unmasked
License: Apache License 2.0
I tried to do a 12-mer complex from 3 proteins (Total 4500 AA). Having the template of almost everything except 6x 170 amino acids domains. Limit all the xyz_max_hits to 1.
I ran on a 4090 RTX.
I got this error.
I0315 22:53:33.550827 140012347488064 run_alphafold.py:230] Running model model_1_multimer_v3_pred_1 on CpaFGH
I0315 22:53:33.551195 140012347488064 model.py:165] Running predict with shape(feat) = {'aatype': (4539,), 'residue_index': (4539,), 'seq_length': (), 'msa': (512, 4539), 'num_alignments': (), 'template_aatype': (4, 4539), 'template_all_atom_mask': (4, 4539, 37), 'template_all_atom_positions': (4, 4539, 37, 3), 'asym_id': (4539,), 'sym_id': (4539,), 'entity_id': (4539,), 'deletion_matrix': (512, 4539), 'deletion_mean': (4539,), 'all_atom_mask': (4539, 37), 'all_atom_positions': (4539, 37, 3), 'assembly_num_chains': (), 'entity_mask': (4539,), 'num_templates': (), 'cluster_bias_mask': (512,), 'bert_mask': (512, 4539), 'seq_mask': (4539,), 'msa_mask': (512, 4539)}
2024-03-15 22:54:07.499744: W external/org_tensorflow/tensorflow/tsl/framework/bfc_allocator.cc:290] Allocator (GPU_0_bfc) ran out of memory trying to allocate 9.84GiB with freed_by_count=0. The caller indicates that this is not a failure, but this may mean that there could be performance gains if more memory were available.
Traceback (most recent call last):
File "/storage/software/AF_unmasked/run_alphafold.py", line 504, in
app.run(main)
File "/storage/software/anaconda3/envs/AF_unmasked/lib/python3.9/site-packages/absl/app.py", line 312, in run
_run_main(main, args)
File "/storage/software/anaconda3/envs/AF_unmasked/lib/python3.9/site-packages/absl/app.py", line 258, in _run_main
sys.exit(main(argv))
File "/storage/software/AF_unmasked/run_alphafold.py", line 479, in main
predict_structure(
File "/storage/software/AF_unmasked/run_alphafold.py", line 238, in predict_structure
prediction_result = model_runner.predict(processed_feature_dict,
File "/storage/software/AF_unmasked/alphafold/model/model.py", line 167, in predict
result = self.apply(self.params, jax.random.PRNGKey(random_seed), feat)
File "/storage/software/anaconda3/envs/AF_unmasked/lib/python3.9/site-packages/jax/_src/traceback_util.py", line 162, in reraise_with_filtered_traceback
return fun(*args, **kwargs)
File "/storage/software/anaconda3/envs/AF_unmasked/lib/python3.9/site-packages/jax/_src/api.py", line 622, in cache_miss
execute = dispatch.xla_call_impl_lazy(fun, *tracers, **params)
File "/storage/software/anaconda3/envs/AF_unmasked/lib/python3.9/site-packages/jax/_src/dispatch.py", line 236, in _xla_call_impl_lazy
return xla_callable(fun, device, backend, name, donated_invars, keep_unused,
File "/storage/software/anaconda3/envs/AF_unmasked/lib/python3.9/site-packages/jax/linear_util.py", line 303, in memoized_fun
ans = call(fun, *args)
File "/storage/software/anaconda3/envs/AF_unmasked/lib/python3.9/site-packages/jax/_src/dispatch.py", line 359, in _xla_callable_uncached
return lower_xla_callable(fun, device, backend, name, donated_invars, False,
File "/storage/software/anaconda3/envs/AF_unmasked/lib/python3.9/site-packages/jax/_src/dispatch.py", line 996, in compile
self._executable = XlaCompiledComputation.from_xla_computation(
File "/storage/software/anaconda3/envs/AF_unmasked/lib/python3.9/site-packages/jax/_src/dispatch.py", line 1194, in from_xla_computation
compiled = compile_or_get_cached(backend, xla_computation, options,
File "/storage/software/anaconda3/envs/AF_unmasked/lib/python3.9/site-packages/jax/_src/dispatch.py", line 1077, in compile_or_get_cached
return backend_compile(backend, serialized_computation, compile_options,
File "/storage/software/anaconda3/envs/AF_unmasked/lib/python3.9/site-packages/jax/_src/profiler.py", line 314, in wrapper
return func(*args, **kwargs)
File "/storage/software/anaconda3/envs/AF_unmasked/lib/python3.9/site-packages/jax/_src/dispatch.py", line 1012, in backend_compile
return backend.compile(built_c, compile_options=options)
jax._src.traceback_util.UnfilteredStackTrace: jaxlib.xla_extension.XlaRuntimeError: RESOURCE_EXHAUSTED: Out of memory while trying to allocate 10565271552 bytes.
The stack trace below excludes JAX-internal frames.
The preceding is the original exception that occurred, unmodified.
The strange thing is that it said it cannot allocate 10.6GB. What is the limit for 4090 (24GB card) when limiting MSA to 1?
I tried to use AF_unmasked for in-painting purposes. It should be a lot faster to run AF_unmasked on a single subunit, rather than running as an assembly of everything. Which options do I use when running for in-painting with a single chain?
I have some questions:
Is the template sequence masked or unmasked? How does this implementation differ from AF2Rank? If I input only the Template without a MSA, why will the final structure not be the exactly same? (An example is described in the paper, but not why)
After a recycling step, are the distances still unmasked or just for the embedding of the Template, the CB are unmasked?
Thanks :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.