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

Update tunes api #102

Merged
merged 80 commits into from
Aug 9, 2023
Merged

Update tunes api #102

merged 80 commits into from
Aug 9, 2023

Conversation

moneill0
Copy link
Contributor

@moneill0 moneill0 commented Jul 13, 2023


Status

READY

Description

Updated tunes API functions to include the get tune methods and download tune assets functions. Added these function calls to the tune manager. Unit testing still in progress.

Any special notes for your reviewer?


Checklist

  • Automated tests exist
  • Updated Package Requirements (if required, and with maintainers' approval)
  • Local unit tests performed
  • Documentation exists link
  • Local pre-commit hooks performed
  • Desired commit message set as PR title and description set above
  • Link to relevant GitHub issue provided

onkarbhardwaj and others added 30 commits June 22, 2023 15:18
Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
Co-authored-by: Mairead O'Neill <moneill@ibm.com>
Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
Co-authored-by: Mairead O'Neill <moneill@ibm.com>
Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
Co-authored-by: Mairead O'Neill <moneill@ibm.com>
Signed-off-by: Mairead O'Neill <moneill@ibm.com>
Signed-off-by: Mairead O'Neill <moneill@ibm.com>
Signed-off-by: Mairead O'Neill <moneill@ibm.com>
- fix circular import from routers that use service interface (temporary
  solution)
- add routers in the service interface

Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
Co-authored-by: Mairead O'Neill <moneill@ibm.com>
Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
Co-authored-by: Mairead O'Neill <moneill@ibm.com>
Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
Co-authored-by: Mairead O'Neill <moneill@ibm.com>
- update the imports from tunes examples (all working)
- fix create tune call - update payload to options

Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
Co-authored-by: Mairead O'Neill <moneill@ibm.com>
Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
Signed-off-by: Mairead O'Neill <moneill@ibm.com>
Signed-off-by: Mairead O'Neill <moneill@ibm.com>
Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
Signed-off-by: Mairead O'Neill <moneill@ibm.com>
Signed-off-by: Mairead O'Neill <moneill@ibm.com>
Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
Signed-off-by: Mairead O'Neill <moneill@ibm.com>
@mirianfsilva mirianfsilva changed the base branch from main to develop July 13, 2023 21:03
mirianfsilva and others added 5 commits July 13, 2023 18:08
Signed-off-by: Mairead O'Neill <moneill@ibm.com>
Signed-off-by: Mairead O'Neill <moneill@ibm.com>
Signed-off-by: Mairead O'Neill <moneill@ibm.com>
Signed-off-by: Mairead O'Neill <moneill@ibm.com>
@coveralls
Copy link

coveralls commented Jul 18, 2023

Pull Request Test Coverage Report for Build 5762194987

  • 94 of 101 (93.07%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.2%) to 96.058%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/genai/routers/tunes.py 6 13 46.15%
Totals Coverage Status
Change from base Build 5741180454: -0.2%
Covered Lines: 1974
Relevant Lines: 2055

💛 - Coveralls

@moneill0 moneill0 marked this pull request as ready for review July 19, 2023 14:44
Signed-off-by: Onkar Bhardwaj <onkar.bhardwaj@gmail.com>
Signed-off-by: Onkar Bhardwaj <onkar.bhardwaj@gmail.com>
- remove duplicate examples
- add complete example with all tune functionalities
- update doc strings
- download assets only if tune status is complete
- update delete tune: unable to delete tune if not completed or failed.

Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
Updates:  examples, doc strings and tune manager

Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
Copy link
Contributor

@vedem1192 vedem1192 left a comment

Choose a reason for hiding this comment

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

Works great, but needs the update to the schema file

src/genai/schemas/tunes_params.py Outdated Show resolved Hide resolved
mirianfsilva and others added 2 commits August 7, 2023 14:02
Co-authored-by: Veronique <22043067+vedem1192@users.noreply.github.com>
Signed-off-by: Mírian Silva <mirianfrsilva@gmail.com>
Signed-off-by: Mírian Silva <mirianfrsilva@ibm.com>
@vedem1192 vedem1192 merged commit 28b75f7 into IBM:develop Aug 9, 2023
4 checks passed
@vedem1192 vedem1192 deleted the update_tunes_api branch August 9, 2023 14:50
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

6 participants