Skip to content

fix: respect accept_eula in ModelBuilder LoRA deployment path#5696

Open
mollyheamazon wants to merge 1 commit intoaws:masterfrom
mollyheamazon:fix/modelbuilder-accept-eula
Open

fix: respect accept_eula in ModelBuilder LoRA deployment path#5696
mollyheamazon wants to merge 1 commit intoaws:masterfrom
mollyheamazon:fix/modelbuilder-accept-eula

Conversation

@mollyheamazon
Copy link
Copy Markdown
Contributor

Ticket
Introduced in commit

Description of changes:

The LoRA deployment path in _build_single_modelbuilder hardcoded accept_eula=True in the model_access_config, silently overriding whatever the user set on the ModelBuilder instance. This is inconsistent with the rest of the SDK — all finetuning classes (SFTTrainer, RLVRTrainer, DPOTrainer, RLAIFTrainer) went through the same fix in staging PR #1915.

Changes:

  • Read self.accept_eula instead of hardcoding True
  • Raise a clear ValueError if accept_eula is not set to True, consistent with the finetuning classes pattern
  • Added unit tests for both the error case and the happy path

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

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.

1 participant