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

Fix GGUF in default model name #40

Merged
merged 2 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MAIN_GPU=0
NGROK_TOKEN=
EZLOCALAI_API_KEY=
EZLOCALAI_URL=http://localhost:8091
DEFAULT_MODEL=TheBloke/phi-2-dpo
DEFAULT_MODEL=TheBloke/phi-2-dpo-GGUF
LLM_MAX_TOKENS=0
WHISPER_MODEL=base
IMG_ENABLED=false
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Replace the environment variables with your desired settings. Assumptions will b
- `EZLOCALAI_URL` - The URL to use for the server. Default is `http://localhost:8091`.
- `EZLOCALAI_API_KEY` - The API key to use for the server. If not set, the server will not require an API key when accepting requests.
- `NGROK_TOKEN` - The ngrok token to use for the server. If not set, ngrok will not be used. Using ngrok will allow you to expose your ezlocalai server to the public with as simple as an API key. [Get your free NGROK_TOKEN here.](https://dashboard.ngrok.com/get-started/your-authtoken)
- `DEFAULT_MODEL` - The default model to use when no model is specified. Default is `TheBloke/phi-2-dpo`.
- `DEFAULT_MODEL` - The default model to use when no model is specified. Use the Hugging Face path. Default is `TheBloke/phi-2-dpo-GGUF`.
- `LLM_MAX_TOKENS` - The maximum number of tokens to use for the language model. If set to `0`, it will automatically use the max tokens for the model. Default is `0`.
- `WHISPER_MODEL` - The model to use for speech-to-text. Default is `base.en`.
- `AUTO_UPDATE` - Whether or not to automatically update ezlocalai. Default is `true`.
Expand Down
2 changes: 1 addition & 1 deletion deepseek.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- EZLOCALAI_API_KEY=${EZLOCALAI_API_KEY-}
- GPU_LAYERS=${GPU_LAYERS-0}
- MAIN_GPU=${MAIN_GPU-0}
- DEFAULT_MODEL=${DEFAULT_MODEL-TheBloke/phi-2-dpo}
- DEFAULT_MODEL=${DEFAULT_MODEL-TheBloke/phi-2-dpo-GGUF}
- LLM_MAX_TOKENS=${LLM_MAX_TOKENS-0}
- WHISPER_MODEL=${WHISPER_MODEL-base.en}
- IMG_ENABLED=${IMG_ENABLED-false}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- EZLOCALAI_API_KEY=${EZLOCALAI_API_KEY-}
- GPU_LAYERS=${GPU_LAYERS-0}
- MAIN_GPU=${MAIN_GPU-0}
- DEFAULT_MODEL=${DEFAULT_MODEL-TheBloke/phi-2-dpo}
- DEFAULT_MODEL=${DEFAULT_MODEL-TheBloke/phi-2-dpo-GGUF}
- LLM_MAX_TOKENS=${LLM_MAX_TOKENS-0}
- WHISPER_MODEL=${WHISPER_MODEL-base.en}
- IMG_ENABLED=${IMG_ENABLED-true}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-vulkan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- EZLOCALAI_API_KEY=${EZLOCALAI_API_KEY-}
- GPU_LAYERS=${GPU_LAYERS-0}
- MAIN_GPU=${MAIN_GPU-0}
- DEFAULT_MODEL=${DEFAULT_MODEL-TheBloke/phi-2-dpo}
- DEFAULT_MODEL=${DEFAULT_MODEL-TheBloke/phi-2-dpo-GGUF}
- LLM_MAX_TOKENS=${LLM_MAX_TOKENS-0}
- WHISPER_MODEL=${WHISPER_MODEL-base.en}
- IMG_ENABLED=${IMG_ENABLED-true}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
environment:
- EZLOCALAI_URL=${EZLOCALAI_URL-http://localhost:8091}
- EZLOCALAI_API_KEY=${EZLOCALAI_API_KEY-}
- DEFAULT_MODEL=${DEFAULT_MODEL-TheBloke/phi-2-dpo}
- DEFAULT_MODEL=${DEFAULT_MODEL-TheBloke/phi-2-dpo-GGUF}
- LLM_MAX_TOKENS=${LLM_MAX_TOKENS-0}
- WHISPER_MODEL=${WHISPER_MODEL-base.en}
- IMG_ENABLED=${IMG_ENABLED-false}
Expand Down
2 changes: 1 addition & 1 deletion ezlocalai-ngrok.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
" with open('.env', 'r') as file:\n",
" filedata = file.read()\n",
" filedata = filedata.replace('NGROK_TOKEN=\\n', f'NGROK_TOKEN={NGROK_TOKEN}\\n')\n",
" filedata = filedata.replace('DEFAULT_MODEL=TheBloke/phi-2-dpo', f'DEFAULT_MODEL={LLM_TO_USE}')\n",
" filedata = filedata.replace('DEFAULT_MODEL=TheBloke/phi-2-dpo-GGUF', f'DEFAULT_MODEL={LLM_TO_USE}')\n",
" filedata = filedata.replace('GPU_LAYERS=0', f'GPU_LAYERS={GPU_LAYERS}')\n",
" filedata = filedata.replace('LLM_MAX_TOKENS=0', f'LLM_MAX_TOKENS={LLM_MAX_TOKENS}')\n",
" filedata = filedata.replace('VISION_MODEL=', f'VISION_MODEL={VISION_MODEL}')\n",
Expand Down