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

Python: casting device int to str #2242

Merged
merged 6 commits into from
Aug 3, 2023
Merged

Python: casting device int to str #2242

merged 6 commits into from
Aug 3, 2023

Conversation

jetjodh
Copy link
Contributor

@jetjodh jetjodh commented Jul 31, 2023

fixes an issue when gpu is enabled to run HF models.

Motivation and Context

  1. Why is this change required?
    running hf models on GPU causes an issue with device string
  2. What problem does it solve?
    fixed string concatenation issue
  3. What scenario does it contribute to?
    Helps when running HF models on GPU

Description

Contribution Checklist

fixes an issue when gpu is enabled to run HF models.
@jetjodh jetjodh requested a review from a team as a code owner July 31, 2023 17:28
@shawncal shawncal added the python Pull requests for the Python Semantic Kernel label Jul 31, 2023
@shawncal shawncal changed the title casting device int to str Python: casting device int to str Jul 31, 2023
@shawncal shawncal enabled auto-merge July 31, 2023 18:39
@shawncal
Copy link
Member

shawncal commented Aug 3, 2023

@mkarle this is a super simple fix (thanks @jetjodh!) but it's failing linting validation. Can you please take a look, and help merge this, if it's the right fix?

@shawncal shawncal self-requested a review August 3, 2023 05:34
@shawncal shawncal requested a review from mkarle August 3, 2023 05:34
@shawncal shawncal added this pull request to the merge queue Aug 3, 2023
Merged via the queue into microsoft:main with commit 2163e08 Aug 3, 2023
22 checks passed
@jetjodh jetjodh deleted the patch-1 branch August 29, 2023 15:16
SOE-YoungS pushed a commit to SOE-YoungS/semantic-kernel that referenced this pull request Nov 1, 2023
fixes an issue when gpu is enabled to run HF models.

### Motivation and Context

  1. Why is this change required?
      running hf models on GPU causes an issue with device string
  2. What problem does it solve?
      fixed string concatenation issue
  3. What scenario does it contribute to?
      Helps when running HF models on GPU


### Description



### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄

---------

Co-authored-by: Shawn Callegari <36091529+shawncal@users.noreply.github.com>
Co-authored-by: Mark Karle <mkarle@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests for the Python Semantic Kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants