Skip to content

PaliGemma2 model upload support - #347

Merged
lrosemberg merged 8 commits into
mainfrom
lean/paligemma2-upload
Dec 13, 2024
Merged

PaliGemma2 model upload support#347
lrosemberg merged 8 commits into
mainfrom
lean/paligemma2-upload

Conversation

@lrosemberg

@lrosemberg lrosemberg commented Dec 10, 2024

Copy link
Copy Markdown
Contributor

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
Comment thread roboflow/core/version.py Outdated
+ format
+ ": %d%% [%d / %d] bytes" % (current / total * 100, current, total)
f"{location} to "
f"{format}: "

Copy link
Copy Markdown
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

Comment thread roboflow/deployment.py Outdated
datetime.fromisoformat(ts)
return True
except:
except: # noqa: E722

Copy link
Copy Markdown
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
Copy Markdown
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 thread roboflow/core/version.py Outdated
Comment on lines +826 to +827
f"{location} to "
f"{format}: "

Copy link
Copy Markdown
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}: "

Comment thread roboflow/deployment.py Outdated
datetime.fromisoformat(ts)
return True
except:
except: # noqa: E722

Copy link
Copy Markdown
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
@iurisilvio
iurisilvio deleted the lean/paligemma2-upload branch August 27, 2025 12:40
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