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

Wz/fix/handle gpu setting #29

Merged
merged 5 commits into from
May 25, 2023
Merged

Wz/fix/handle gpu setting #29

merged 5 commits into from
May 25, 2023

Conversation

wanoz
Copy link
Contributor

@wanoz wanoz commented May 24, 2023

Change Summary

  • fixed issue with handling model_args GPU setting variable
  • added related unit tests

@@ -42,11 +52,6 @@ def __init__(self, model: str, input_block_size: int, padding_length: int, token
self.tokenizer = AutoTokenizer.from_pretrained(self.model_name, mirror='https://huggingface.co')

# Set model on GPU if available and specified

Choose a reason for hiding this comment

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

move this comment to line 21

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link

@oscarlicious oscarlicious left a comment

Choose a reason for hiding this comment

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

minor comment added

@wanoz wanoz merged commit 22f7423 into main May 25, 2023
@wanoz wanoz deleted the wz/fix/handle_gpu_setting branch May 25, 2023 02:23
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.

None yet

2 participants