Problem with installing DMFoldv1
Posted: Tue Jan 16, 2024 6:01 am
I created alphafold2nondocker env with following code:
Then I encountered a new error:
After google this error, I found index_add were removed in jax version 0.3.2. And my gpu device is 4090. Could you please give me some suggestions for resolving this error? Thank you so much for your help.
Best regards,
Shijie Dong
When running Run_DeepMSA2.py, I encountered the following error:conda install -y -c conda-forge openmm==7.5.1 cudnn==8.2.1.32 cudatoolkit==11.3.1 cudatoolkit-dev==11.3.1 pdbfixer==1.7
conda install -y -c bioconda hmmer==3.3.2 hhsuite==3.3.0 kalign2==2.04
pip install absl-py==0.13.0 biopython==1.79 chex==0.0.7 dm-haiku==0.0.4 dm-tree==0.1.6 immutabledict==2.0.0 jax==0.2.14 ml-collections==0.1.0 numpy==1.20.1 scipy==1.7.0 tensorflow==2.8.4 pandas==1.3.4 tensorflow-cpu==2.8.4
pip install --upgrade jax==0.2.14 jaxlib==0.1.69+cuda111 -f https://storage.googleapis.com/jax-rele ... eases.html
This one seems to be caused by the wrong version of cuda, then I updata my alphafold2nondocker env with following code:2024-01-16 13:56:17.671131: W external/org_tensorflow/tensorflow/stream_executor/gpu/asm_compiler.cc:235] Falling back to the CUDA driver for PTX compilation; ptxas does not support CC 8.9
2024-01-16 13:56:17.671152: W external/org_tensorflow/tensorflow/stream_executor/gpu/asm_compiler.cc:238] Used ptxas at ptxas
2024-01-16 13:56:17.671678: E external/org_tensorflow/tensorflow/stream_executor/cuda/cuda_driver.cc:625] failed to get PTX kernel "shift_right_logical_3" from module: CUDA_ERROR_NOT_FOUND: named symbol not found
2024-01-16 13:56:17.671711: E external/org_tensorflow/tensorflow/compiler/xla/pjrt/pjrt_stream_executor_client.cc:2040] Execution of replica 0 failed: Internal: Could not find the corresponding function
Traceback (most recent call last):
File "/home/dsj/Software/DMFold1.0/bin/alphafold/run_alphafold_msa_benchmark.py", line 306, in <module>
app.run(main)
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/absl/app.py", line 312, in run
_run_main(main, args)
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/absl/app.py", line 258, in _run_main
sys.exit(main(argv))
File "/home/dsj/Software/DMFold1.0/bin/alphafold/run_alphafold_msa_benchmark.py", line 274, in main
predict_structure(
File "/home/dsj/Software/DMFold1.0/bin/alphafold/run_alphafold_msa_benchmark.py", line 151, in predict_structure
prediction_result = model_runner.predict(processed_feature_dict)
File "/home/dsj/Software/DMFold1.0/bin/alphafold/alphafold/model/model.py", line 134, in predict
result = self.apply(self.params, jax.random.PRNGKey(0), feat)
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/jax/_src/random.py", line 75, in PRNGKey
k1 = convert(lax.shift_right_logical(seed_arr, lax._const(seed_arr, 32)))
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/jax/_src/lax/lax.py", line 382, in shift_right_logical
return shift_right_logical_p.bind(x, y)
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/jax/core.py", line 264, in bind
out = top_trace.process_primitive(self, tracers, params)
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/jax/core.py", line 603, in process_primitive
return primitive.impl(*tracers, **params)
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/jax/interpreters/xla.py", line 249, in apply_primitive
return compiled_fun(*args)
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/jax/interpreters/xla.py", line 365, in _execute_compiled_primitive
out_bufs = compiled.execute(input_bufs)
RuntimeError: Internal: Could not find the corresponding function
Code: Select all
conda install -y -c conda-forge openmm==7.5.1 cudatoolkit==11.8 pdbfixer==1.7
conda install -y -c bioconda hmmer==3.3.2 hhsuite==3.3.0 kalign2==2.04
pip install absl-py==0.13.0 biopython==1.79 chex==0.0.7 dm-haiku==0.0.4 dm-tree==0.1.6 immutabledict==2.0.0 jax==0.3.25 ml-collections==0.1.0 numpy==1.20.1 scipy==1.7.0 tensorflow==2.8.4 pandas==1.3.4 tensorflow-cpu==2.8.4
pip install --upgrade jax==0.3.25 jaxlib==0.3.25+cuda11.cudnn805 -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
Code: Select all
Traceback (most recent call last):
File "/home/dsj/Software/DMFold1.0/bin/alphafold/run_alphafold_msa_benchmark.py", line 306, in <module>
app.run(main)
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/absl/app.py", line 312, in run
_run_main(main, args)
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/absl/app.py", line 258, in _run_main
sys.exit(main(argv))
File "/home/dsj/Software/DMFold1.0/bin/alphafold/run_alphafold_msa_benchmark.py", line 274, in main
predict_structure(
File "/home/dsj/Software/DMFold1.0/bin/alphafold/run_alphafold_msa_benchmark.py", line 151, in predict_structure
prediction_result = model_runner.predict(processed_feature_dict)
File "/home/dsj/Software/DMFold1.0/bin/alphafold/alphafold/model/model.py", line 134, in predict
result = self.apply(self.params, jax.random.PRNGKey(0), feat)
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/haiku/_src/transform.py", line 125, in apply_fn
out, state = f.apply(params, {}, *args, **kwargs)
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/haiku/_src/transform.py", line 313, in apply_fn
out = f(*args, **kwargs)
File "/home/dsj/Software/DMFold1.0/bin/alphafold/alphafold/model/model.py", line 60, in _forward_fn
return model(
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/haiku/_src/module.py", line 428, in wrapped
out = f(*args, **kwargs)
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/haiku/_src/module.py", line 279, in run_interceptors
return bound_method(*args, **kwargs)
File "/home/dsj/Software/DMFold1.0/bin/alphafold/alphafold/model/modules.py", line 374, in __call__
_, prev = hk.while_loop(
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/haiku/_src/stateful.py", line 610, in while_loop
val, state = jax.lax.while_loop(pure_cond_fun, pure_body_fun, init_val)
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/haiku/_src/stateful.py", line 605, in pure_body_fun
val = body_fun(val)
File "/home/dsj/Software/DMFold1.0/bin/alphafold/alphafold/model/modules.py", line 367, in <lambda>
get_prev(do_call(x[1], recycle_idx=x[0],
File "/home/dsj/Software/DMFold1.0/bin/alphafold/alphafold/model/modules.py", line 335, in do_call
return impl(
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/haiku/_src/module.py", line 428, in wrapped
out = f(*args, **kwargs)
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/haiku/_src/module.py", line 279, in run_interceptors
return bound_method(*args, **kwargs)
File "/home/dsj/Software/DMFold1.0/bin/alphafold/alphafold/model/modules.py", line 163, in __call__
representations = evoformer_module(batch0, is_training)
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/haiku/_src/module.py", line 428, in wrapped
out = f(*args, **kwargs)
File "/home/dsj/miniconda3/envs/alphafold2nondocker/lib/python3.8/site-packages/haiku/_src/module.py", line 279, in run_interceptors
return bound_method(*args, **kwargs)
File "/home/dsj/Software/DMFold1.0/bin/alphafold/alphafold/model/modules.py", line 1725, in __call__
msa_activations = jax.ops.index_add(msa_activations, 0,
AttributeError: module 'jax.ops' has no attribute 'index_add'
Best regards,
Shijie Dong