GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: Updating the Tensorboard uploader to use the new batch write API so it runs more efficiently by yfang1 · Pull Request #710 · googleapis/python-aiplatform

Conversation

@yfang1

@yfang1 yfang1 commented Sep 15, 2021

Copy link
Copy Markdown
Contributor

b/190431961.
go/tb-uploader-speedup

  • The BatchedRequestSenders were sending requests for each run - now changed to batch for all runs in the experiment.
  • Generalizing the existing _TimeSeriesResourceManager to _OnePlatformResourceManager such that it manages caching for runs as well, in addition to time series.
  • Updating the scalar and blob request sizes to 128kb so that it's in sync with the OSS TB (https://github.com/tensorflow/tensorboard/blob/29cfcec9d15c47d1bf54b15df24e65bc38c188e6/tensorboard/uploader/server_info.py#L51)
  • Changing uploader_main to call uploader.start_uploading() only, which inherently handles whether the upload was one_shot or not.

Ran the new code for scalar, tensor, blob data. Looks fine to me.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 15, 2021
@product-auto-label product-auto-label Bot added the api: aiplatform Issues related to the AI Platform API. label Sep 15, 2021
@yfang1 yfang1 changed the title [feat] Updating the Tensorboard uploader to use the new batch write API so it runs more efficiently feat: Updating the Tensorboard uploader to use the new batch write API so it runs more efficiently Sep 15, 2021
@yfang1 yfang1 assigned vinnysenthil Sep 15, 2021
@vinnysenthil
vinnysenthil requested review from karthikv2k and vinnysenthil September 16, 2021 21:58
karthikv2k
karthikv2k approved these changes Sep 21, 2021
View reviewed changes
Comment thread google/cloud/aiplatform/tensorboard/uploader.py
self._run_name_to_run_resource_name: Dict[str, str] = {}
self._run_tag_name_to_time_series_name: Dict[(str, str), str] = {}

def get_run_resource_name(self, run_name: str):

@karthikv2k karthikv2k Sep 21, 2021

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

better to rename it as create_or_get_run_resource_name ?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@yfang1 yfang1 Sep 21, 2021

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

It doesn't actually "create" a resource name though, but I see what you're saying.

Gonna leave the name as is, but will add doc string to describe what it does.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Yicheng Fang
feat: Updating the Tensorboard uploader to use the new batch write AP…
eac3032
…I so it runs more efficiently
vinnysenthil
vinnysenthil approved these changes Sep 21, 2021
View reviewed changes
@yfang1
yfang1 merged commit 9d1b01a into googleapis:main Sep 21, 2021
@yfang1
yfang1 deleted the optimize branch September 21, 2021 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

2 more reviewers
@karthikv2k karthikv2k karthikv2k approved these changes
@vinnysenthil vinnysenthil vinnysenthil approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@vinnysenthil vinnysenthil

Labels

api: aiplatform Issues related to the AI Platform API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@yfang1 @karthikv2k @vinnysenthil
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.