Closed kiramt closed 2 years ago
Hi @kiramt, thank you for the detailed repro instructions!
The issue is that tokens[i, len(seq_str) + int(self.alphabet.prepend_bos)] = self.alphabet.eos_idx
should instead be tokens[i, len(seq_encoded) + int(self.alphabet.prepend_bos)] = self.alphabet.eos_idx
. A fix, and appropriate unit test will be out soon
Bug description
When running the example in the README, the code fails with an IndexError.
Reproduction steps I'm running the code in a docker container based on the pytorch/pytorch:1.9.0-cuda11.1-cudnn8-devel image from dockerhub. Pip and Python 3.7.10 is installed. Run the container and install fair-esm using pip:
Run python and follow the code steps in the README:
Expected behavior Expected the code to run without error
Logs Please paste the command line output:
Additional context