You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/deploy.md
+54Lines changed: 54 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,60 @@ Sure, here is the corrected sentence:
80
80
Example input
81
81
```
82
82
83
+
84
+
## Serve an LLM with OpenAI-compatible API
85
+
86
+
LitGPT provides OpenAI-compatible endpoints that allow you to use the OpenAI SDK or any OpenAI-compatible client to interact with your models. This is useful for integrating LitGPT into existing applications that use the OpenAI API.
87
+
88
+
89
+
### Step 1: Start the server with OpenAI specification
90
+
91
+
```bash
92
+
# 1) Download a pretrained model (alternatively, use your own finetuned model)
0 commit comments