-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from ritual-net/sr/feat/remove_infernet_ml
Remove infernet_ml
- Loading branch information
Showing
58 changed files
with
578 additions
and
2,486 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,3 +45,9 @@ remote_sync | |
|
||
# secrets | ||
*-key.json | ||
|
||
# Virtual envs | ||
**/env/** | ||
|
||
# Arweave keyfile | ||
keyfile-*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,42 @@ | ||
# GPT 4 | ||
In this example, we run a minimalist container that makes use of our closed-source model | ||
workflow: `CSSInferenceWorkflow`. Refer to [src/app.py](src/app.py) for the | ||
implementation of the quart application. | ||
|
||
In this example, we will run a minimalist container that makes use of the OpenAI [completions API](https://platform.openai.com/docs/api-reference/chat) to serve text generation requests. | ||
|
||
Check out the full tutorial [here](https://learn.ritual.net/examples/running_gpt_4). | ||
|
||
## Requirements | ||
To use the model you'll need to have an OpenAI api key. Get one at | ||
[OpenAI](https://openai.com/)'s website. | ||
|
||
To use the model you'll need to have an OpenAI API key. Get one on [OpenAI](https://openai.com/)'s website. | ||
|
||
## Build the Container | ||
|
||
Simply run the following command to build the container: | ||
|
||
```bash | ||
make build | ||
``` | ||
|
||
## Run the Container | ||
|
||
To run the container, you can use the following command: | ||
|
||
```bash | ||
make run | ||
``` | ||
|
||
## Test the Container | ||
|
||
You can test the container by making inference requests directly via your terminal: | ||
|
||
```bash | ||
curl -X POST localhost:3000/service_output -H "Content-Type: application/json" \ | ||
-d '{"source": 1, "data": {"prompt": "can shrimps actually fry rice?"}}' | ||
``` | ||
|
||
## Next steps | ||
|
||
This container is for demonstration purposes only, and is purposefully simplified for | ||
readability and ease of comprehension. For a production-ready version of this code, check out: | ||
|
||
- The [CSS Inference Workflow](https://infernet-ml.docs.ritual.net/reference/infernet_ml/workflows/inference/css_inference_workflow/): A Python class that supports multiple API providers, including OpenAI, and can be used to build production-ready containers. | ||
- The [CSS Inference Service](https://infernet-services.docs.ritual.net/reference/css_inference_service/): A production-ready, [Infernet](https://docs.ritual.net/infernet/node/introduction)-compatible container that works out-of-the-box with minimal configuration, and serves inference using the `CSS Inference Workflow`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
quart==0.19.4 | ||
web3==6.15.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.