Skip to content

Commit 9bb9ce0

Browse files
authored
Merge pull request #6912 from oobabooga/dev
Merge dev branch
2 parents 1aa76b3 + 765fea5 commit 9bb9ce0

File tree

158 files changed

+893
-732
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+893
-732
lines changed

.github/workflows/build-portable-release-cuda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
- name: Build Package
102102
shell: bash
103103
run: |
104-
rm -rf .git cmd* update_wizard* start_wsl.bat wsl.sh Colab-TextGen-GPU.ipynb docker
104+
rm -rf .git cmd* update_wizard* Colab-TextGen-GPU.ipynb docker
105105
106106
# Define common variables
107107
CUDA_VERSION="${{ matrix.cuda }}"

.github/workflows/build-portable-release-vulkan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
- name: Build Package
101101
shell: bash
102102
run: |
103-
rm -rf .git cmd* update_wizard* start_wsl.bat wsl.sh Colab-TextGen-GPU.ipynb docker
103+
rm -rf .git cmd* update_wizard* Colab-TextGen-GPU.ipynb docker
104104
105105
# Define common variables
106106
AVX_SUPPORT="${{ matrix.avx }}"

.github/workflows/build-portable-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
- name: Build Package
101101
shell: bash
102102
run: |
103-
rm -rf .git cmd* update_wizard* start_wsl.bat wsl.sh Colab-TextGen-GPU.ipynb docker
103+
rm -rf .git cmd* update_wizard* Colab-TextGen-GPU.ipynb docker
104104
105105
# Define common variables
106106
AVX_SUPPORT="${{ matrix.avx }}"

.gitignore

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,8 @@
1-
/cache
2-
/characters
31
/css
42
/extensions
5-
/grammars
63
/installer_files
7-
/logs
8-
/loras
9-
/models
10-
/presets
11-
/prompts
124
/repositories
13-
/softprompts
14-
/torch-dumps
15-
/training/datasets
16-
17-
/CMD_FLAGS.txt
18-
/img_bot*
19-
/img_me*
20-
/models/config-user.yaml
21-
/notification.mp3
22-
/settings*.json
23-
/settings*.yaml
5+
/user_data
246

257
.chroma
268
.DS_Store

CMD_FLAGS.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 126 additions & 116 deletions
Large diffs are not rendered by default.

cmd_wsl.bat

Lines changed: 0 additions & 11 deletions
This file was deleted.

css/main.css

Lines changed: 95 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -625,19 +625,19 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
625625
width: 100%;
626626
overflow-y: visible;
627627
}
628-
628+
629629
.message {
630630
break-inside: avoid;
631631
}
632-
632+
633633
.gradio-container {
634634
overflow: visible;
635635
}
636-
636+
637637
.tab-nav {
638638
display: none !important;
639639
}
640-
640+
641641
#chat-tab > :first-child {
642642
max-width: unset;
643643
}
@@ -1291,3 +1291,94 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
12911291
.dark .footer-button:hover svg {
12921292
stroke: rgb(209 213 219);
12931293
}
1294+
1295+
.tgw-accordion {
1296+
padding: 10px 12px !important;
1297+
}
1298+
1299+
.dark .tgw-accordion {
1300+
border: 1px solid var(--border-color-dark);
1301+
}
1302+
1303+
.welcome-greeting {
1304+
text-align: center;
1305+
margin-top: 40vh;
1306+
font-size: 24px;
1307+
opacity: 0.7;
1308+
padding-left: 1rem;
1309+
padding-right: 1rem;
1310+
}
1311+
1312+
/* Thinking blocks styling */
1313+
.thinking-block {
1314+
margin-bottom: 12px;
1315+
border-radius: 8px;
1316+
border: 1px solid rgb(0 0 0 / 10%);
1317+
background-color: var(--light-theme-gray);
1318+
overflow: hidden;
1319+
}
1320+
1321+
.dark .thinking-block {
1322+
background-color: var(--darker-gray);
1323+
}
1324+
1325+
.thinking-header {
1326+
display: flex;
1327+
align-items: center;
1328+
padding: 10px 16px;
1329+
cursor: pointer;
1330+
user-select: none;
1331+
font-size: 14px;
1332+
color: rgb(0 0 0 / 70%);
1333+
transition: background-color 0.2s;
1334+
}
1335+
1336+
.thinking-header:hover {
1337+
background-color: rgb(0 0 0 / 3%);
1338+
}
1339+
1340+
.thinking-header::-webkit-details-marker {
1341+
display: none;
1342+
}
1343+
1344+
.thinking-icon {
1345+
margin-right: 8px;
1346+
color: rgb(0 0 0 / 50%);
1347+
}
1348+
1349+
.thinking-title {
1350+
font-weight: 500;
1351+
}
1352+
1353+
.thinking-content {
1354+
padding: 12px 16px;
1355+
border-top: 1px solid rgb(0 0 0 / 7%);
1356+
color: rgb(0 0 0 / 70%);
1357+
font-size: 14px;
1358+
line-height: 1.5;
1359+
overflow-wrap: break-word;
1360+
max-height: 250px;
1361+
overflow-y: scroll;
1362+
contain: layout;
1363+
}
1364+
1365+
/* Animation for opening thinking blocks */
1366+
@keyframes fadeIn {
1367+
from { opacity: 0; }
1368+
to { opacity: 1; }
1369+
}
1370+
1371+
.thinking-block[open] .thinking-content {
1372+
animation: fadeIn 0.3s ease-out;
1373+
}
1374+
1375+
/* Additional style for in-progress thinking */
1376+
.thinking-block[data-streaming="true"] .thinking-title {
1377+
animation: pulse 1.5s infinite;
1378+
}
1379+
1380+
@keyframes pulse {
1381+
0% { opacity: 0.6; }
1382+
50% { opacity: 1; }
1383+
100% { opacity: 0.6; }
1384+
}

docs/10 - WSL.md

Lines changed: 0 additions & 146 deletions
This file was deleted.

download-model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'''
2-
Downloads models from Hugging Face to models/username_modelname.
2+
Downloads models from Hugging Face to user_data/models/username_modelname.
33
44
Example:
55
python download-model.py facebook/opt-1.3b
@@ -175,7 +175,7 @@ def get_output_folder(self, model, branch, is_lora, is_llamacpp=False, model_dir
175175
if model_dir:
176176
base_folder = model_dir
177177
else:
178-
base_folder = 'models' if not is_lora else 'loras'
178+
base_folder = 'user_data/models' if not is_lora else 'user_data/loras'
179179

180180
# If the model is of type GGUF, save directly in the base_folder
181181
if is_llamacpp:
@@ -356,7 +356,7 @@ def check_model_files(self, model, branch, links, sha256, output_folder):
356356
parser.add_argument('--specific-file', type=str, default=None, help='Name of the specific file to download (if not provided, downloads all).')
357357
parser.add_argument('--exclude-pattern', type=str, default=None, help='Regex pattern to exclude files from download.')
358358
parser.add_argument('--output', type=str, default=None, help='Save the model files to this folder.')
359-
parser.add_argument('--model-dir', type=str, default=None, help='Save the model files to a subfolder of this folder instead of the default one (text-generation-webui/models).')
359+
parser.add_argument('--model-dir', type=str, default=None, help='Save the model files to a subfolder of this folder instead of the default one (text-generation-webui/user_data/models).')
360360
parser.add_argument('--clean', action='store_true', help='Does not resume the previous download.')
361361
parser.add_argument('--check', action='store_true', help='Validates the checksums of model files.')
362362
parser.add_argument('--max-retries', type=int, default=7, help='Max retries count when get error in download time.')

0 commit comments

Comments
 (0)