RosettaCommons / RosettaCommons/RFdiffusion

RuntimeError: Index put requires the source and destination dtypes match, got Long for the destination and Int for the source.

Open
#13 5 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.1k
Forks
644
PR merge metrics
No merged PRs in 30d

Description

When I am trying to run inference to yield an unconditional monomer as described in the README, I get the following error:

_[2023-04-01 20:22:08,689][main][INFO] - Making design test_outputs/test_0
[2023-04-01 20:22:08,692][inference.model_runners][INFO] - Using contig: ['150-150']
Error executing job with overrides: ['contigmap.contigs=[150-150]', 'inference.output_prefix=test_outputs/test', 'inference.num_designs=10']
Traceback (most recent call last):
File "C:\Users\Norb\RFdiffusion\run_inference.py", line 76, in main
x_init, seq_init = sampler.sample_init()
File "C:\Users\Norb\RFdiffusion\inference\model_runners.py", line 341, in sample_init
seq_t[contig_map.hal_idx0] = seq_orig[contig_map.ref_idx0]
RuntimeError: Index put requires the source and destination dtypes match, got Long for the destination and Int for the source.

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
(SE3nv)_

Sorry in case I am missing something basic, I am an absolute beginner. Thank you so much in advance.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with inference/model_runners.py at line 341, where sample_init assigns seq_orig[contig_map.ref_idx0] into seq_t[contig_map.hal_idx0]. Reproduce the README unconditional-monomer inference using the shown Hydra overrides, inspect the two tensor dtypes, and confirm that inference completes without the reported RuntimeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.