-
-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: added first docs page (moved from README), and markdown support
- Loading branch information
Showing
8 changed files
with
144 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,4 @@ precommit: | |
make lint | ||
|
||
docs: | ||
make -C docs html | ||
poetry run make -C docs html |
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 |
---|---|---|
|
@@ -10,6 +10,8 @@ Welcome to gptme's documentation! | |
:maxdepth: 2 | ||
:caption: Contents: | ||
|
||
local-models | ||
|
||
|
||
|
||
Indices and tables | ||
|
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,22 @@ | ||
🖥 Local Models | ||
=============== | ||
|
||
To run gptme with local models, you need to install and run the [llama-cpp-python][llama-cpp-python] server. To ensure you get the most out of your hardware, make sure you build it with [the appropriate hardware acceleration][hwaccel]. | ||
|
||
For macOS, you can find detailed instructions [here][metal]. | ||
|
||
I recommend the WizardCoder-Python models. | ||
|
||
[llama-cpp-python]: https://github.com/abetlen/llama-cpp-python | ||
[hwaccel]: https://github.com/abetlen/llama-cpp-python#installation-with-hardware-acceleration | ||
[metal]: https://github.com/abetlen/llama-cpp-python/blob/main/docs/install/macos.md | ||
|
||
```sh | ||
MODEL=~/ML/wizardcoder-python-13b-v1.0.Q4_K_M.gguf | ||
poetry run python -m llama_cpp.server --model $MODEL --n_gpu_layers 1 # Use `--n_gpu_layer 1` if you have a M1/M2 chip | ||
|
||
# Now, to use it: | ||
export OPENAI_API_BASE="http://localhost:8000/v1" | ||
gptme --llm local | ||
``` | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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