Skip to content

Conversation

@aluu317
Copy link

@aluu317 aluu317 commented Aug 30, 2023

Add a quick start on how to stand up a runtime server with sample_lib and how to send some basic train and inference requests

Signed-off-by: Angel Luu <[email protected]>
@aluu317 aluu317 requested a review from a team as a code owner August 30, 2023 22:49
Signed-off-by: Angel Luu <[email protected]>

## Build and start a runtime server with sample_lib

Run the `start_runtime_with_sample_lib` python script:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it worth duplicating the information that we have in the Caikit examples README? If we want to add more information, I feel we should add it to that readme instead of duplicating it here? That would make this doc pretty small though

Copy link
Contributor

Choose a reason for hiding this comment

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

Otherwise with the API changes that are incoming, we'll have to make changes to 2 places 😢


### To use the REST Server for inference

- In a browser of choice, visit `http://localhost:8080/docs/`. All the available inference rpcs are listed. Expand on the correct task for the model you trained. In this example, we are using `api/v1/{model_id}/task/sample`.
Copy link
Contributor

@prashantgupta24 prashantgupta24 Aug 30, 2023

Choose a reason for hiding this comment

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

@anhuong had a question about why we use the /task/sample API to make inference calls after we train a Sample Module. I guess it's worth mentioning that somewhere

Copy link
Contributor

Choose a reason for hiding this comment

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

We need to assume a user doesn't have much idea what a Module is

Signed-off-by: Angel Luu <[email protected]>
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