forked from AntonOsika/gpt-engineer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix bad merge in AntonOsika#639 (AntonOsika#644)
- Loading branch information
Showing
3 changed files
with
24 additions
and
10 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
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,20 @@ | ||
Using with open/local models | ||
============================ | ||
|
||
You can integrate ``gpt-engineer`` with open-source models by leveraging an OpenAI-compatible API. One such API is provided by the `text-generator-ui extension openai <https://github.com/oobabooga/text-generation-webui/blob/main/extensions/openai/README.md>`_. | ||
|
||
Setup | ||
----- | ||
|
||
To get started, first set up the API with the Runpod template, as per the `instructions <https://github.com/oobabooga/text-generation-webui/blob/main/extensions/openai/README.md>`_. | ||
|
||
Running the Example | ||
------------------- | ||
|
||
Once the API is set up, you can run the following example using WizardCoder-Python-34B hosted on Runpod: | ||
|
||
.. code-block:: bash | ||
OPENAI_API_BASE=http://<host>:<port>/v1 python -m gpt_engineer.main benchmark/pomodoro_timer --steps benchmark TheBloke_WizardCoder-Python-34B-V1.0-GPTQ | ||
To find the host and the exposed TCP port, check your Runpod dashboard. For example, my port was 40125. |