Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indexSelectLargeIndex: Device-side assertion `srcIndex < srcSelectDimSize' failed. #20

Open
radna0 opened this issue Jul 3, 2024 · 0 comments

Comments

@radna0
Copy link

radna0 commented Jul 3, 2024

Anyone having this problem?

___2____Input tokenized shape: torch.Size([1, 57])
/var/lib/jenkins/pytorch/aten/src/ATen/native/hip/Indexing.hip:1294: indexSelectLargeIndex: Device-side assertion `srcIndex < srcSelectDimSize' failed.
        if self.use_video:
            print("___1____Video shape:", video.size())
            video = self.visual_encoder(video)  # B T D
            if self.proj_v2t is not None:
                video = self.proj_v2t(video)
            atts_vis = torch.ones(video.size()[:-1], dtype=torch.long).to(video.device)
            print("___1____atts_vis shape:", atts_vis.size())

        if self.use_speech:
            print("___2____Input tokenized shape:", input_tokenized['input_ids'].size())
            text = self.t5_model.encoder.embed_tokens(input_tokenized['input_ids'])  # B L D
            print("___2____Text tokenized shape:", text)
            encoded = self.t5_model.encoder(
                attention_mask=input_tokenized['attention_mask'],
                inputs_embeds=text,
            )
            print("___2____Encoded shape:", encoded.last_hidden_state.size())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant