+
Skip to content

Conversation

baitsguy
Copy link
Contributor

The tokenized data was living in the CPU (since tokenizer is only on the cpu), needed to move it to the gpu for scoring

@baitsguy baitsguy requested a review from austintlee October 26, 2024 00:08
@baitsguy baitsguy marked this pull request as ready for review October 26, 2024 00:08
@baitsguy baitsguy enabled auto-merge (squash) October 26, 2024 00:09
Copy link
Collaborator

@HenryL27 HenryL27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't need to be moved back at the end does it?

@baitsguy
Copy link
Contributor Author

baitsguy commented Oct 26, 2024

it doesn't need to be moved back at the end does it?

Nope our cpu code should be able to access the tensor data (because of tolist(). Only if you're trying to do an op that's combing 2 data sources in difference devices is when issues typically arise

@baitsguy baitsguy merged commit f41ad90 into main Oct 26, 2024
12 of 13 checks passed
@baitsguy baitsguy deleted the similarity-gpu-fix branch October 26, 2024 00:16
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

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载