-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
feat: New text Generation Samples - Batch Predict #12543
Merged
Thoughtseize1
merged 5 commits into
main
from
Hardcoded-samples-to-be-migrated-batch-predict
Sep 3, 2024
Merged
feat: New text Generation Samples - Batch Predict #12543
Thoughtseize1
merged 5 commits into
main
from
Hardcoded-samples-to-be-migrated-batch-predict
Sep 3, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
product-auto-label
bot
added
the
samples
Issues that are directly related to samples.
label
Aug 30, 2024
Here is the summary of changes. You are about to add 2 region tags.
This comment is generated by snippet-bot.
|
I made the following:
|
m-strzelczyk
approved these changes
Sep 3, 2024
Thoughtseize1
deleted the
Hardcoded-samples-to-be-migrated-batch-predict
branch
September 3, 2024 11:56
9 tasks
Thoughtseize1
changed the title
feat: New text Generation Samples
feat: New text Generation Samples - Batch Predict
Oct 8, 2024
riathakkar
pushed a commit
to riathakkar/python-docs-samples
that referenced
this pull request
Oct 8, 2024
* Added 2 Samples for Batch Predict
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
I noticed that some samples were missing from our repository. This PR addresses this by adding 2 new samples (listed below) and introducing an extendable test structure.
aiplatform_batch_code_predict
aiplatform_batch_text_predict
For proper testing, please upload the 2 files to the test environment of the test project with the
.JSNOL
extension and provide the paths to the model prompts in the formatgs://[cloud-samples-data]/[PATH_TO_FILE].jsonl
.json example for batch_code_predict.py. Possible name:
prompt_for_batch_code_predict.jsonl
.json example for batch_text_predict.py. Possible name:
prompt_for_batch_text_predict.jsonl
Description
Fixes #
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
Checklist
nox -s py-3.9
(see Test Environment Setup)nox -s lint
(see Test Environment Setup)