Skip to content
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

[Tutorials] Update the SDG tutorial and expose the inference endpoint #301

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

Maghoumi
Copy link
Collaborator

Description

This PR ensures that users can run the PEFT SDG tutorial using arbitrary API endpoints by exposing the URL that is used for synthetic data generation.

Checklist

  • I am familiar with the Contributing Guide.
  • New or Existing tests cover these changes.
  • The documentation is up to date with these changes.

Copy link
Collaborator

@ryantwolf ryantwolf left a comment

Choose a reason for hiding this comment

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

I just have the smallest of nits and we should be good. Also, the DCO check seems to be failing so follow the point 3 in our contributing guide pr guidelines to fix it.

--api-key YOUR_BUILD.NVIDIA.COM_API_KEY \
--synth-gen-endpoint https://api.example.com/v1/chat/completions \
--synth-gen-model my-llm-model \
--api-key API_KEY_FOR_EXAMPLE.COM \
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: Might just be me, but API_KEY_FOR_EXAMPLE.COM makes me think that the API key should end in .com, which it shouldn't. Maybe make it API_KEY_FOR_ENDPOINT instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

This PR ensures that users can run the PEFT SDG tutorial using arbitrary
API endpoints by exposing the URL that is used for synthetic data
generation.

Signed-off-by: Mehran Maghoumi <Maghoumi@users.noreply.github.com>
@Maghoumi
Copy link
Collaborator Author

Also fixed the DCO check. Looks like I forgot the -sS flag when committing.

Copy link
Collaborator

@ryantwolf ryantwolf left a comment

Choose a reason for hiding this comment

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

Thank you!

@ryantwolf ryantwolf merged commit 4ad1a4d into NVIDIA:main Oct 21, 2024
3 checks passed
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.

2 participants