-
Notifications
You must be signed in to change notification settings - Fork 9
feat: move structured generation parameters to an object #595
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
Changes from 2 commits
06260da
ae26998
8dd1dcd
fd114c3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| require: | ||
| members: false | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -159,7 +159,7 @@ | |
| " .with_data_source(df) # .with_replace_pii(enable=False) to disable PII replacement\n", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The Jupyter notebook format stores cell source as a JSON array of strings. Python's dict literal Confirmed:
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Agree, this still needs a fix; render it in notebook to verify. |
||
| " .with_differential_privacy(dp_enabled=True, delta=recommended_delta)\n", | ||
| " .with_train(batch_size=16) # Override the default batch size of 1, which is designed for non-DP training\n", | ||
| " .with_generate(use_structured_generation=True) # Improves the percentage of valid records when DP is enabled\n", | ||
| " .with_generate(structured_generation={"enabled": True}) # Improves the percentage of valid records when DP is enabled\n", | ||
| ")\n", | ||
| "builder.run()\n", | ||
| "results = builder.results" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.