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

Add params of config in create #75

Merged
merged 4 commits into from
Aug 11, 2023
Merged

Add params of config in create #75

merged 4 commits into from
Aug 11, 2023

Conversation

nsorros
Copy link
Contributor

@nsorros nsorros commented Aug 4, 2023

Description

This PR allows you to easily deploy models in huggingface inference endpoints by modifying some default params instead of having to construct a valid config json. Among other things we can now deploy an LLM as follows

hugie endpoint create \
    --repository tiiuae/falcon-7b \
    --name falcon-7b \
    --instance-type g5.2xlarge \
    --instance-size medium \
    --accelerator gpu \
    --image tgi

Fixes #74

Checklist

  • Tests added
  • Relevant issue mentioned
  • Documentation updated

hugie/endpoint.py Outdated Show resolved Hide resolved
hugie/endpoint.py Show resolved Hide resolved
Copy link
Contributor

@ivyleavedtoadflax ivyleavedtoadflax left a comment

Choose a reason for hiding this comment

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

LGTM. Don't forget the update version number and push to pypi

hugie/endpoint.py Show resolved Hide resolved
@nsorros nsorros marked this pull request as ready for review August 11, 2023 08:06
@nsorros nsorros merged commit 884e0d4 into main Aug 11, 2023
1 check passed
@nsorros nsorros deleted the huggie-llm branch August 11, 2023 08:11
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.

Add the variables from the config file as parameters with default values
2 participants