Feat/finetuningoptions validation telemetry - #6286
rsareddy0329 wants to merge 2 commits into
Conversation
Instrument FineTuningOptions.__setattr__ so client-side hyperparameter validation failures are captured in the SDK dev-experience logs, enabling detection and measurement of this class of failure: - setting an option name that is not a valid/overridable hyperparameter (raises AttributeError), and - setting a value outside its spec (type/range/enum; raises ValueError). Emission is failure-only: a single MODEL_CUSTOMIZATION FAILURE event is sent on the failure path, and nothing is emitted on successful sets, internal attribute sets, or construction, so no telemetry noise is added to the happy path. The emit is best-effort and never masks or replaces the user-facing validation error. Add unit tests covering both failure paths, the no-emit happy paths, and that a telemetry backend error still lets the validation error propagate.
|
Claude finished @rsareddy0329's task in 1m 24s —— View job Code Review: FineTuningOptions validation telemetry
The change is well-scoped and the mechanics are correct: the new imports ( 🔴 Telemetry opt-out is not honored on this new path
As written, a user who has explicitly opted out of telemetry will still have these validation-failure events emitted. That's a privacy/compliance regression and is inconsistent with the rest of the module. Please resolve the opt-out flag (using the resolved session = _get_default_sagemaker_session()
if not session:
return
if resolve_value_from_config(
direct_input=None,
config_path=TELEMETRY_OPT_OUT_PATH,
default_value=False,
sagemaker_session=session,
):
returnA unit test asserting 🟡
|
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.