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

PaliGemma2 model upload support #347

Merged
merged 8 commits into from
Dec 13, 2024
Merged

PaliGemma2 model upload support #347

merged 8 commits into from
Dec 13, 2024

Conversation

lrosemberg
Copy link
Contributor

@lrosemberg lrosemberg commented Dec 10, 2024

Description

PaliGemma2 model upload support

  • Added support for Palligema2 model uploads via upload_model command with the following model types:
    • paligemma2-3b-pt-224
    • paligemma2-3b-pt-448
    • paligemma2-3b-pt-896

Type of change

  • New feature (non-breaking change which adds functionality)

How has this change been tested, please provide a testcase or example of how you tested the change?

  • Staging and locally

@lrosemberg lrosemberg self-assigned this Dec 10, 2024
@lrosemberg lrosemberg marked this pull request as draft December 10, 2024 23:19
+ format
+ ": %d%% [%d / %d] bytes" % (current / total * 100, current, total)
f"{location} to "
f"{format}: "
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ruff flagged this

@@ -10,10 +10,9 @@ def is_valid_ISO8601_timestamp(ts):
try:
datetime.fromisoformat(ts)
return True
except:
except: # noqa: E722
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ruff flagged this

Copy link
Contributor

Choose a reason for hiding this comment

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

We should capture only expected exceptions.

With this bare except, you can even add syntax errors for the try block.

Suggested change
except: # noqa: E722
except (ValueError, TypeError):

@lrosemberg lrosemberg marked this pull request as ready for review December 13, 2024 03:01
iurisilvio
iurisilvio previously approved these changes Dec 13, 2024
Comment on lines 826 to 827
f"{location} to "
f"{format}: "
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit:

Suggested change
f"{location} to "
f"{format}: "
f"{location} to {format}: "

@@ -10,10 +10,9 @@ def is_valid_ISO8601_timestamp(ts):
try:
datetime.fromisoformat(ts)
return True
except:
except: # noqa: E722
Copy link
Contributor

Choose a reason for hiding this comment

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

We should capture only expected exceptions.

With this bare except, you can even add syntax errors for the try block.

Suggested change
except: # noqa: E722
except (ValueError, TypeError):

@lrosemberg lrosemberg merged commit 594bff7 into main Dec 13, 2024
8 checks passed
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