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

Update openai.md config #1366

Merged
merged 2 commits into from
Nov 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/deepsparse/server/openai.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ Similar to the Deepsparse server (see `README.md` for details), a config file ca
created for the text generation models. A sample config is provided below

```yaml
num_cores: 2
num_workers: 2
endpoints:
- task: text_generation
model: zoo:opt-1.3b-opt_pretrain-pruned50_quantW8A8
Expand Down Expand Up @@ -36,7 +34,7 @@ or through the OpenAI API.

### OpenAI API Requests

- Starting the server with the config above, we have accesso to one model
- Starting the server with the config above, we have access to one model
`zoo:opt-1.3b-opt_pretrain-pruned50_quantW8A8`. We can send an inference request using
the OpenAI API, as shown in the example code below:

Expand Down Expand Up @@ -99,4 +97,4 @@ obj = {

response = requests.post(url, json=obj)
print(response.text)
```
```
Loading