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

SageMaker endpoint magic command support #215

Merged
merged 10 commits into from
Jun 8, 2023

Conversation

JasonWeill
Copy link
Collaborator

@JasonWeill JasonWeill commented Jun 7, 2023

Fixes #36.

Adds three new mandatory parameters, --region-name, --request-schema, and --response-path, for SageMaker requests made from %%ai magic commands.

Example new command:

%%ai sagemaker-endpoint:jumpstart-dft-hf-text2text-flan-t5-xl --region-name=us-east-1 --request-schema={"text_inputs":"<prompt>"} --response-path=generated_texts.[0]
Write some JavaScript code that prints "hello world" to the console.

@JasonWeill JasonWeill added bug Something isn't working @jupyter-ai/magics labels Jun 7, 2023
@JasonWeill JasonWeill marked this pull request as ready for review June 8, 2023 17:43
@3coins 3coins added this to the 0.8.0 Release milestone Jun 8, 2023
docs/source/users/index.md Outdated Show resolved Hide resolved
docs/source/users/index.md Outdated Show resolved Hide resolved
docs/source/users/index.md Outdated Show resolved Hide resolved
docs/source/users/index.md Outdated Show resolved Hide resolved
@JasonWeill JasonWeill changed the title SageMaker Endpoint magic command support SageMaker endpoint magic command support Jun 8, 2023
docs/source/users/index.md Outdated Show resolved Hide resolved
@JasonWeill JasonWeill merged commit 83c45eb into jupyterlab:main Jun 8, 2023
3coins added a commit to krassowski/jupyter-ai that referenced this pull request Jun 15, 2023
* WIP: New parameters for SageMaker Endpoint

* Uses symbolic constants consistently

* Updates sample notebook

* Updates docs, sample notebook

* Retitles section to be about magic commands

* Removes AWS_SESSION_TOKEN

* Links for more info

* Update docs/source/users/index.md

Co-authored-by: Piyush Jain <piyushjain@duck.com>

* Additional copy edits per @3coins

* Update docs/source/users/index.md

---------

Co-authored-by: Piyush Jain <piyushjain@duck.com>
dbelgrod pushed a commit to dbelgrod/jupyter-ai that referenced this pull request Jun 10, 2024
* WIP: New parameters for SageMaker Endpoint

* Uses symbolic constants consistently

* Updates sample notebook

* Updates docs, sample notebook

* Retitles section to be about magic commands

* Removes AWS_SESSION_TOKEN

* Links for more info

* Update docs/source/users/index.md

Co-authored-by: Piyush Jain <piyushjain@duck.com>

* Additional copy edits per @3coins

* Update docs/source/users/index.md

---------

Co-authored-by: Piyush Jain <piyushjain@duck.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working @jupyter-ai/magics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cannot call SageMaker Endpoint in magics
2 participants