Skip to content

Commit fe21f68

Browse files
author
mint
committed
Upstream Changes
2 parents 3a75c0c + ee72003 commit fe21f68

File tree

101 files changed

+1591
-215
lines changed

Some content is hidden

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

101 files changed

+1591
-215
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
github: oobabooga
12
ko_fi: oobabooga

README.md

Lines changed: 1 addition & 0 deletions

css/highlightjs/github-dark.min.css

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/highlightjs/highlightjs-copy.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/html_instruct_style.css

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
.chat {
2-
background: var(--block-background-fill);
2+
background: transparent;
33
padding: 24px 19px;
44
padding-right: 19px !important;
55
padding-top: 0;
6-
border: 1px solid var(--block-border-color);
76
}
87

98
.chat > .messages {
10-
padding-top: 28px !important;
9+
padding-top: 18px !important;
1110
}
1211

1312
.message {
@@ -50,23 +49,24 @@
5049

5150
.gradio-container .chat .assistant-message {
5251
padding: 20px;
53-
background: var(--background-fill-secondary);
54-
margin-top: 12px !important;
55-
margin-bottom: 24px !important;
56-
margin-right: 16px;
57-
border-radius: 22px;
58-
border-bottom-left-radius: 0;
52+
background: var(--color-grey-200);
53+
margin-top: 9px !important;
54+
margin-bottom: 12px !important;
55+
border-radius: 7px;
5956
border: 1px solid var(--border-color-primary);
6057
}
6158

59+
.dark .chat .assistant-message {
60+
background: var(--color-grey-800);
61+
}
62+
6263
.gradio-container .chat .user-message {
6364
padding: 20px;
64-
background-color: var(--color-accent-soft);
65-
margin-bottom: 12px !important;
66-
margin-left: 16px;
67-
border-radius: 22px;
65+
padding-left: 0px;
66+
padding-right: 0px;
67+
background-color: transparent;
68+
border-radius: 8px;
6869
border-bottom-right-radius: 0;
69-
border: 1px solid var(--border-color-accent-subdued);
7070
}
7171

7272
.gradio-container .chat .assistant-message:last-child, .gradio-container .chat .user-message:last-child {
@@ -79,4 +79,4 @@ code {
7979

8080
.dark code {
8181
background-color: #1f2937 !important;
82-
}
82+
}

css/katex/fonts/KaTeX_AMS-Regular.ttf

62.1 KB
Binary file not shown.
32.7 KB
Binary file not shown.
27.4 KB
Binary file not shown.
12.1 KB
Binary file not shown.
7.54 KB
Binary file not shown.
6.75 KB
Binary file not shown.
12.1 KB
Binary file not shown.
7.48 KB
Binary file not shown.
6.75 KB
Binary file not shown.
19.1 KB
Binary file not shown.
13 KB
Binary file not shown.
11.1 KB
Binary file not shown.
19.1 KB
Binary file not shown.
12.9 KB
Binary file not shown.
11.1 KB
Binary file not shown.

css/katex/fonts/KaTeX_Main-Bold.ttf

50.1 KB
Binary file not shown.

css/katex/fonts/KaTeX_Main-Bold.woff

29.2 KB
Binary file not shown.

css/katex/fonts/KaTeX_Main-Bold.woff2

24.7 KB
Binary file not shown.
32.2 KB
Binary file not shown.
19 KB
Binary file not shown.
16.4 KB
Binary file not shown.

css/katex/fonts/KaTeX_Main-Italic.ttf

32.8 KB
Binary file not shown.
19.2 KB
Binary file not shown.
16.6 KB
Binary file not shown.
52.3 KB
Binary file not shown.
30.1 KB
Binary file not shown.
25.7 KB
Binary file not shown.
30.5 KB
Binary file not shown.
18.2 KB
Binary file not shown.
16 KB
Binary file not shown.

css/katex/fonts/KaTeX_Math-Italic.ttf

30.6 KB
Binary file not shown.
18.3 KB
Binary file not shown.
16.1 KB
Binary file not shown.
23.9 KB
Binary file not shown.
14.1 KB
Binary file not shown.
11.9 KB
Binary file not shown.
21.8 KB
Binary file not shown.
13.8 KB
Binary file not shown.
11.7 KB
Binary file not shown.
19 KB
Binary file not shown.
12 KB
Binary file not shown.
10.1 KB
Binary file not shown.
16.3 KB
Binary file not shown.
10.3 KB
Binary file not shown.
9.42 KB
Binary file not shown.
11.9 KB
Binary file not shown.
6.34 KB
Binary file not shown.
5.34 KB
Binary file not shown.
11.2 KB
Binary file not shown.
6.04 KB
Binary file not shown.
5.09 KB
Binary file not shown.
7.41 KB
Binary file not shown.
4.32 KB
Binary file not shown.
3.54 KB
Binary file not shown.
10.1 KB
Binary file not shown.
5.84 KB
Binary file not shown.
4.81 KB
Binary file not shown.
26.9 KB
Binary file not shown.
15.7 KB
Binary file not shown.
13.3 KB
Binary file not shown.

css/katex/katex.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/main.css

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ gradio-app > :first-child {
9696

9797
.header_bar {
9898
background-color: #f7f7f7;
99-
box-shadow: 0 2px 3px rgba(22 22 22 / 35%);
99+
box-shadow: 0 0px 3px rgba(22 22 22 / 35%);
100100
margin-bottom: 0;
101101
overflow-x: scroll;
102102
margin-left: calc(-1 * var(--size-4));
@@ -220,7 +220,7 @@ button {
220220
}
221221

222222
.pretty_scrollbar::-webkit-scrollbar {
223-
width: 5px;
223+
width: 7px;
224224
}
225225

226226
.pretty_scrollbar::-webkit-scrollbar-track {
@@ -229,12 +229,12 @@ button {
229229

230230
.pretty_scrollbar::-webkit-scrollbar-thumb,
231231
.pretty_scrollbar::-webkit-scrollbar-thumb:hover {
232-
background: #c5c5d2;
232+
background: var(--neutral-300);
233233
}
234234

235235
.dark .pretty_scrollbar::-webkit-scrollbar-thumb,
236236
.dark .pretty_scrollbar::-webkit-scrollbar-thumb:hover {
237-
background: #374151;
237+
background: var(--neutral-700);
238238
}
239239

240240
.pretty_scrollbar::-webkit-resizer {
@@ -433,11 +433,12 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
433433
.message-body code {
434434
white-space: pre-wrap !important;
435435
word-wrap: break-word !important;
436-
border: 1px solid var(--border-color-primary);
437-
border-radius: var(--radius-sm);
438-
background: var(--background-fill-secondary);
439-
font-size: 90%;
436+
border: 1px solid #666666;
437+
border-radius: 5px;
438+
font-size: 82%;
440439
padding: 1px 3px;
440+
background: #0d1117 !important;
441+
color: rgb(201, 209, 217);
441442
}
442443

443444
.message-body pre > code {
@@ -518,8 +519,12 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
518519
text-overflow: ellipsis;
519520
}
520521

522+
.dark #show-controls span {
523+
color: var(--neutral-400);
524+
}
525+
521526
#show-controls span {
522-
opacity: 0.6;
527+
color: var(--neutral-600);
523528
}
524529

525530
#typing-container {
@@ -590,8 +595,8 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
590595
position: absolute;
591596
bottom: 80%;
592597
left: 0;
593-
background-color: var(--background-fill-secondary);
594-
box-shadow: 0 0 10px rgb(0 0 0 / 50%);
598+
background-color: var(--background-fill-primary);
599+
box-shadow: 0 0 5px rgb(0 0 0 / 25%);
595600
z-index: 10000;
596601
min-width: 330px;
597602
flex-direction: column;
@@ -601,6 +606,7 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
601606
width: 100%;
602607
background: transparent !important;
603608
border-radius: 0 !important;
609+
border-color: var(--border-color-primary);
604610
justify-content: space-between;
605611
margin: 0 !important;
606612
height: 36px;
@@ -611,7 +617,7 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
611617
}
612618

613619
.hover-menu button:not(#clear-history-confirm):last-child {
614-
border-bottom: var(--button-border-width) solid var(--button-secondary-border-color) !important;
620+
border-bottom: var(--button-border-width) solid var(--border-color-primary) !important;
615621
}
616622

617623
.hover-menu button:hover {

docker/amd/docker-compose.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@ services:
55
context: .
66
args:
77
# Requirements file to use:
8-
# | GPU | CPU | requirements file to use |
9-
# |--------|---------|---------|
10-
# | NVIDIA | has AVX2 | `requirements.txt` |
11-
# | NVIDIA | no AVX2 | `requirements_noavx2.txt` |
12-
# | AMD | has AVX2 | `requirements_amd.txt` |
13-
# | AMD | no AVX2 | `requirements_amd_noavx2.txt` |
14-
# | CPU only | has AVX2 | `requirements_cpu_only.txt` |
15-
# | CPU only | no AVX2 | `requirements_cpu_only_noavx2.txt` |
16-
# | Apple | Intel | `requirements_apple_intel.txt` |
17-
# | Apple | Apple Silicon | `requirements_apple_silicon.txt` |
8+
# | GPU | requirements file to use |
9+
# |--------|---------|
10+
# | NVIDIA | `requirements.txt` |
11+
# | AMD | `requirements_amd.txt` |
12+
# | CPU only | `requirements_cpu_only.txt` |
13+
# | Apple Intel | `requirements_apple_intel.txt` |
14+
# | Apple Silicon | `requirements_apple_silicon.txt` |
1815
# Default: requirements.txt`
1916
# BUILD_REQUIREMENTS: requirements.txt
2017

docker/cpu/docker-compose.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@ services:
55
context: .
66
args:
77
# Requirements file to use:
8-
# | GPU | CPU | requirements file to use |
9-
# |--------|---------|---------|
10-
# | NVIDIA | has AVX2 | `requirements.txt` |
11-
# | NVIDIA | no AVX2 | `requirements_noavx2.txt` |
12-
# | AMD | has AVX2 | `requirements_amd.txt` |
13-
# | AMD | no AVX2 | `requirements_amd_noavx2.txt` |
14-
# | CPU only | has AVX2 | `requirements_cpu_only.txt` |
15-
# | CPU only | no AVX2 | `requirements_cpu_only_noavx2.txt` |
16-
# | Apple | Intel | `requirements_apple_intel.txt` |
17-
# | Apple | Apple Silicon | `requirements_apple_silicon.txt` |
8+
# | GPU | requirements file to use |
9+
# |--------|---------|
10+
# | NVIDIA | `requirements.txt` |
11+
# | AMD | `requirements_amd.txt` |
12+
# | CPU only | `requirements_cpu_only.txt` |
13+
# | Apple Intel | `requirements_apple_intel.txt` |
14+
# | Apple Silicon | `requirements_apple_silicon.txt` |
1815
# Default: requirements.txt`
1916
# BUILD_REQUIREMENTS: requirements.txt
2017

docker/intel/docker-compose.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,19 @@ services:
55
context: .
66
args:
77
# Requirements file to use:
8-
# | GPU | CPU | requirements file to use |
9-
# |--------|---------|---------|
10-
# | NVIDIA | has AVX2 | `requirements.txt` |
11-
# | NVIDIA | no AVX2 | `requirements_noavx2.txt` |
12-
# | AMD | has AVX2 | `requirements_amd.txt` |
13-
# | AMD | no AVX2 | `requirements_amd_noavx2.txt` |
14-
# | CPU only | has AVX2 | `requirements_cpu_only.txt` |
15-
# | CPU only | no AVX2 | `requirements_cpu_only_noavx2.txt` |
16-
# | Apple | Intel | `requirements_apple_intel.txt` |
17-
# | Apple | Apple Silicon | `requirements_apple_silicon.txt` |
8+
# | GPU | requirements file to use |
9+
# |--------|---------|
10+
# | NVIDIA | `requirements.txt` |
11+
# | AMD | `requirements_amd.txt` |
12+
# | CPU only | `requirements_cpu_only.txt` |
13+
# | Apple Intel | `requirements_apple_intel.txt` |
14+
# | Apple Silicon | `requirements_apple_silicon.txt` |
1815
# Default: requirements.txt`
1916
# BUILD_REQUIREMENTS: requirements.txt
20-
17+
2118
# Extension requirements to build:
2219
# BUILD_EXTENSIONS:
23-
20+
2421
# specify which cuda version your card supports: https://developer.nvidia.com/cuda-gpus
2522
TORCH_CUDA_ARCH_LIST: ${TORCH_CUDA_ARCH_LIST:-7.5}
2623
BUILD_EXTENSIONS: ${BUILD_EXTENSIONS:-}

docker/nvidia/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ COPY CMD_FLAGS.txt /home/app/text-generation-webui/
1818
EXPOSE ${CONTAINER_PORT:-7860} ${CONTAINER_API_PORT:-5000} ${CONTAINER_API_STREAM_PORT:-5005}
1919
WORKDIR /home/app/text-generation-webui
2020
# set umask to ensure group read / write at runtime
21-
CMD umask 0002 && export HOME=/home/app/text-generation-webui && ./start_linux.sh
21+
CMD umask 0002 && export HOME=/home/app/text-generation-webui && ./start_linux.sh --listen

docker/nvidia/docker-compose.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,19 @@ services:
55
context: .
66
args:
77
# Requirements file to use:
8-
# | GPU | CPU | requirements file to use |
9-
# |--------|---------|---------|
10-
# | NVIDIA | has AVX2 | `requirements.txt` |
11-
# | NVIDIA | no AVX2 | `requirements_noavx2.txt` |
12-
# | AMD | has AVX2 | `requirements_amd.txt` |
13-
# | AMD | no AVX2 | `requirements_amd_noavx2.txt` |
14-
# | CPU only | has AVX2 | `requirements_cpu_only.txt` |
15-
# | CPU only | no AVX2 | `requirements_cpu_only_noavx2.txt` |
16-
# | Apple | Intel | `requirements_apple_intel.txt` |
17-
# | Apple | Apple Silicon | `requirements_apple_silicon.txt` |
8+
# | GPU | requirements file to use |
9+
# |--------|---------|
10+
# | NVIDIA | `requirements.txt` |
11+
# | AMD | `requirements_amd.txt` |
12+
# | CPU only | `requirements_cpu_only.txt` |
13+
# | Apple Intel | `requirements_apple_intel.txt` |
14+
# | Apple Silicon | `requirements_apple_silicon.txt` |
1815
# Default: requirements.txt`
1916
# BUILD_REQUIREMENTS: requirements.txt
20-
17+
2118
# Extension requirements to build:
2219
# BUILD_EXTENSIONS:
23-
20+
2421
# specify which cuda version your card supports: https://developer.nvidia.com/cuda-gpus
2522
TORCH_CUDA_ARCH_LIST: ${TORCH_CUDA_ARCH_LIST:-7.5}
2623
BUILD_EXTENSIONS: ${BUILD_EXTENSIONS:-}

0 commit comments

Comments
 (0)