mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-06-07 06:06:20 -04:00
Compare commits
29 commits
2f1440cad7
...
235302a807
Author | SHA1 | Date | |
---|---|---|---|
|
235302a807 | ||
|
d47c8eb956 | ||
|
977ec801b7 | ||
|
fe7e1a2565 | ||
|
e8595730b4 | ||
|
17c29fa0a2 | ||
|
dc3094549e | ||
|
ace8afb825 | ||
|
a41da1ec95 | ||
|
6e6f9971a2 | ||
|
1180bb0d80 | ||
|
9bb9ce079e | ||
|
1aa76b3beb | ||
|
1df2b0d3ae | ||
|
62455b415c | ||
|
022664f2bd | ||
|
a778270536 | ||
|
c19b995b8e | ||
|
b1495d52e5 | ||
|
44a6d8a761 | ||
|
4fa52a1302 | ||
|
4eecb6611f | ||
|
c5e54c0b37 | ||
|
14e6baeb48 | ||
|
bb1905ebc5 | ||
|
9b80d1d6c2 | ||
|
80cdbe4e09 | ||
|
769eee1ff3 | ||
|
7c883ef2f0 |
3 changed files with 26 additions and 1 deletions
12
README.md
12
README.md
|
@ -325,6 +325,18 @@ https://github.com/oobabooga/text-generation-webui/wiki
|
||||||
|
|
||||||
## Downloading models
|
## Downloading models
|
||||||
|
|
||||||
|
### Pointing to an existing AI model library
|
||||||
|
|
||||||
|
Edit the file `text-generation-webui\user_data\CMD_FLAGS.txt` to include this line:
|
||||||
|
|
||||||
|
```
|
||||||
|
--model-dir 'D:\MyAIModels\'
|
||||||
|
```
|
||||||
|
|
||||||
|
Replace `D:\MyAIModels\` with the path to your model library folder. Sub-folders will be automatically parsed to enumerate all existing models.
|
||||||
|
|
||||||
|
### Manual model download
|
||||||
|
|
||||||
Models should be placed in the folder `text-generation-webui/user_data/models`. They are usually downloaded from [Hugging Face](https://huggingface.co/models?pipeline_tag=text-generation&sort=downloads).
|
Models should be placed in the folder `text-generation-webui/user_data/models`. They are usually downloaded from [Hugging Face](https://huggingface.co/models?pipeline_tag=text-generation&sort=downloads).
|
||||||
|
|
||||||
* GGUF models are a single file and should be placed directly into `user_data/models`. Example:
|
* GGUF models are a single file and should be placed directly into `user_data/models`. Example:
|
||||||
|
|
|
@ -17,6 +17,14 @@
|
||||||
color: #d1d5db !important;
|
color: #d1d5db !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.chat .message-body :is(th, td) {
|
||||||
|
border-color: #40404096 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark .chat .message-body :is(th, td) {
|
||||||
|
border-color: #ffffff75 !important;
|
||||||
|
}
|
||||||
|
|
||||||
.chat .message-body :is(p, ul, ol) {
|
.chat .message-body :is(p, ul, ol) {
|
||||||
margin: 1.25em 0 !important;
|
margin: 1.25em 0 !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -604,7 +604,12 @@ def generate_search_query(user_message, state):
|
||||||
|
|
||||||
query = ""
|
query = ""
|
||||||
for reply in generate_reply(formatted_prompt, search_state, stopping_strings=[], is_chat=True):
|
for reply in generate_reply(formatted_prompt, search_state, stopping_strings=[], is_chat=True):
|
||||||
query = reply.strip()
|
query = reply
|
||||||
|
|
||||||
|
# Strip and remove surrounding quotes if present
|
||||||
|
query = query.strip()
|
||||||
|
if len(query) >= 2 and query.startswith('"') and query.endswith('"'):
|
||||||
|
query = query[1:-1]
|
||||||
|
|
||||||
return query
|
return query
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue