Spaces:
Building
Building
update
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- CMD_FLAGS.txt +0 -0
- Colab-TextGen-GPU.ipynb +16 -33
- LICENSE +0 -0
- characters/Assistant.yaml +0 -0
- characters/Example.png +0 -0
- characters/Example.yaml +0 -0
- cmd_linux.sh +1 -1
- convert-to-safetensors.py +0 -0
- css/NotoSans/NotoSans-Black.woff +0 -0
- css/NotoSans/NotoSans-Black.woff2 +0 -0
- css/NotoSans/NotoSans-BlackItalic.woff +0 -0
- css/NotoSans/NotoSans-BlackItalic.woff2 +0 -0
- css/NotoSans/NotoSans-Bold.woff +0 -0
- css/NotoSans/NotoSans-Bold.woff2 +0 -0
- css/NotoSans/NotoSans-BoldItalic.woff +0 -0
- css/NotoSans/NotoSans-BoldItalic.woff2 +0 -0
- css/NotoSans/NotoSans-ExtraBold.woff +0 -0
- css/NotoSans/NotoSans-ExtraBold.woff2 +0 -0
- css/NotoSans/NotoSans-ExtraBoldItalic.woff +0 -0
- css/NotoSans/NotoSans-ExtraBoldItalic.woff2 +0 -0
- css/NotoSans/NotoSans-ExtraLight.woff +0 -0
- css/NotoSans/NotoSans-ExtraLight.woff2 +0 -0
- css/NotoSans/NotoSans-ExtraLightItalic.woff +0 -0
- css/NotoSans/NotoSans-ExtraLightItalic.woff2 +0 -0
- css/NotoSans/NotoSans-Italic.woff +0 -0
- css/NotoSans/NotoSans-Italic.woff2 +0 -0
- css/NotoSans/NotoSans-Light.woff +0 -0
- css/NotoSans/NotoSans-Light.woff2 +0 -0
- css/NotoSans/NotoSans-LightItalic.woff +0 -0
- css/NotoSans/NotoSans-LightItalic.woff2 +0 -0
- css/NotoSans/NotoSans-Medium.woff +0 -0
- css/NotoSans/NotoSans-Medium.woff2 +0 -0
- css/NotoSans/NotoSans-MediumItalic.woff +0 -0
- css/NotoSans/NotoSans-MediumItalic.woff2 +0 -0
- css/NotoSans/NotoSans-Regular.woff +0 -0
- css/NotoSans/NotoSans-Regular.woff2 +0 -0
- css/NotoSans/NotoSans-SemiBold.woff +0 -0
- css/NotoSans/NotoSans-SemiBold.woff2 +0 -0
- css/NotoSans/NotoSans-SemiBoldItalic.woff +0 -0
- css/NotoSans/NotoSans-SemiBoldItalic.woff2 +0 -0
- css/NotoSans/NotoSans-Thin.woff +0 -0
- css/NotoSans/NotoSans-Thin.woff2 +0 -0
- css/NotoSans/NotoSans-ThinItalic.woff +0 -0
- css/NotoSans/NotoSans-ThinItalic.woff2 +0 -0
- css/NotoSans/stylesheet.css +0 -0
- css/chat_style-TheEncrypted777.css +1 -0
- css/chat_style-cai-chat-square.css +0 -0
- css/chat_style-cai-chat.css +2 -1
- css/chat_style-messenger.css +1 -0
- css/chat_style-wpp.css +2 -1
CMD_FLAGS.txt
CHANGED
File without changes
|
Colab-TextGen-GPU.ipynb
CHANGED
@@ -22,7 +22,7 @@
|
|
22 |
"source": [
|
23 |
"# oobabooga/text-generation-webui\n",
|
24 |
"\n",
|
25 |
-
"After running both cells, a public gradio URL will appear at the bottom in
|
26 |
"\n",
|
27 |
"* Project page: https://github.com/oobabooga/text-generation-webui\n",
|
28 |
"* Gradio server status: https://status.gradio.app/"
|
@@ -53,44 +53,28 @@
|
|
53 |
"\n",
|
54 |
"#@markdown If unsure about the branch, write \"main\" or leave it blank.\n",
|
55 |
"\n",
|
56 |
-
"import
|
57 |
"from pathlib import Path\n",
|
58 |
"\n",
|
|
|
|
|
59 |
"if Path.cwd().name != 'text-generation-webui':\n",
|
60 |
-
" print(\"Installing the
|
61 |
"\n",
|
62 |
" !git clone https://github.com/oobabooga/text-generation-webui\n",
|
63 |
" %cd text-generation-webui\n",
|
64 |
"\n",
|
65 |
-
"
|
66 |
-
"
|
67 |
-
"
|
68 |
-
"
|
69 |
-
"
|
70 |
-
"
|
71 |
-
" else:\n",
|
72 |
-
" !python -m pip install --upgrade torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 --index-url https://download.pytorch.org/whl/cu121\n",
|
73 |
-
"\n",
|
74 |
-
" textgen_requirements = open('requirements.txt').read().splitlines()\n",
|
75 |
-
" if is_cuda118:\n",
|
76 |
-
" textgen_requirements = [req.replace('+cu121', '+cu118').replace('+cu122', '+cu118') for req in textgen_requirements]\n",
|
77 |
-
" with open('temp_requirements.txt', 'w') as file:\n",
|
78 |
-
" file.write('\\n'.join(textgen_requirements))\n",
|
79 |
-
"\n",
|
80 |
-
" !pip install -r temp_requirements.txt --upgrade\n",
|
81 |
-
"\n",
|
82 |
-
" print(\"\\033[1;32;1m\\n --> If you see a warning about \\\"previously imported packages\\\", just ignore it.\\033[0;37;0m\")\n",
|
83 |
-
" print(\"\\033[1;32;1m\\n --> There is no need to restart the runtime.\\n\\033[0;37;0m\")\n",
|
84 |
-
"\n",
|
85 |
-
" try:\n",
|
86 |
-
" import flash_attn\n",
|
87 |
-
" except:\n",
|
88 |
-
" !pip uninstall -y flash_attn\n",
|
89 |
"\n",
|
90 |
"# Parameters\n",
|
91 |
-
"model_url = \"https://huggingface.co/
|
92 |
-
"branch = \"
|
93 |
-
"command_line_flags = \"--n-gpu-layers 128 --load-in-4bit --use_double_quant\" #@param {type:\"string\"}\n",
|
94 |
"api = False #@param {type:\"boolean\"}\n",
|
95 |
"\n",
|
96 |
"if api:\n",
|
@@ -116,11 +100,10 @@
|
|
116 |
" output_folder = \"\"\n",
|
117 |
"\n",
|
118 |
"# Start the web UI\n",
|
119 |
-
"cmd = f\"
|
120 |
"if output_folder != \"\":\n",
|
121 |
" cmd += f\" --model {output_folder}\"\n",
|
122 |
-
"
|
123 |
-
"print(cmd)\n",
|
124 |
"!$cmd"
|
125 |
],
|
126 |
"metadata": {
|
|
|
22 |
"source": [
|
23 |
"# oobabooga/text-generation-webui\n",
|
24 |
"\n",
|
25 |
+
"After running both cells, a public gradio URL will appear at the bottom in around 10 minutes. You can optionally generate an API link.\n",
|
26 |
"\n",
|
27 |
"* Project page: https://github.com/oobabooga/text-generation-webui\n",
|
28 |
"* Gradio server status: https://status.gradio.app/"
|
|
|
53 |
"\n",
|
54 |
"#@markdown If unsure about the branch, write \"main\" or leave it blank.\n",
|
55 |
"\n",
|
56 |
+
"import os\n",
|
57 |
"from pathlib import Path\n",
|
58 |
"\n",
|
59 |
+
"os.environ.pop('PYTHONPATH', None)\n",
|
60 |
+
"\n",
|
61 |
"if Path.cwd().name != 'text-generation-webui':\n",
|
62 |
+
" print(\"\\033[1;32;1m\\n --> Installing the web UI. This will take a while, but after the initial setup, you can download and test as many models as you like.\\033[0;37;0m\\n\")\n",
|
63 |
"\n",
|
64 |
" !git clone https://github.com/oobabooga/text-generation-webui\n",
|
65 |
" %cd text-generation-webui\n",
|
66 |
"\n",
|
67 |
+
" # Install the project in an isolated environment\n",
|
68 |
+
" !GPU_CHOICE=A \\\n",
|
69 |
+
" USE_CUDA118=FALSE \\\n",
|
70 |
+
" LAUNCH_AFTER_INSTALL=FALSE \\\n",
|
71 |
+
" INSTALL_EXTENSIONS=FALSE \\\n",
|
72 |
+
" ./start_linux.sh\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
"\n",
|
74 |
"# Parameters\n",
|
75 |
+
"model_url = \"https://huggingface.co/turboderp/gemma-2-9b-it-exl2\" #@param {type:\"string\"}\n",
|
76 |
+
"branch = \"8.0bpw\" #@param {type:\"string\"}\n",
|
77 |
+
"command_line_flags = \"--n-gpu-layers 128 --load-in-4bit --use_double_quant --no_flash_attn\" #@param {type:\"string\"}\n",
|
78 |
"api = False #@param {type:\"boolean\"}\n",
|
79 |
"\n",
|
80 |
"if api:\n",
|
|
|
100 |
" output_folder = \"\"\n",
|
101 |
"\n",
|
102 |
"# Start the web UI\n",
|
103 |
+
"cmd = f\"./start_linux.sh {command_line_flags} --share\"\n",
|
104 |
"if output_folder != \"\":\n",
|
105 |
" cmd += f\" --model {output_folder}\"\n",
|
106 |
+
"\n",
|
|
|
107 |
"!$cmd"
|
108 |
],
|
109 |
"metadata": {
|
LICENSE
CHANGED
File without changes
|
characters/Assistant.yaml
CHANGED
File without changes
|
characters/Example.png
CHANGED
![]() |
![]() |
characters/Example.yaml
CHANGED
File without changes
|
cmd_linux.sh
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
#!/bin/bash
|
2 |
|
3 |
cd "$(dirname "${BASH_SOURCE[0]}")"
|
4 |
|
|
|
1 |
+
#!/usr/bin/env bash
|
2 |
|
3 |
cd "$(dirname "${BASH_SOURCE[0]}")"
|
4 |
|
convert-to-safetensors.py
CHANGED
File without changes
|
css/NotoSans/NotoSans-Black.woff
CHANGED
File without changes
|
css/NotoSans/NotoSans-Black.woff2
CHANGED
File without changes
|
css/NotoSans/NotoSans-BlackItalic.woff
CHANGED
File without changes
|
css/NotoSans/NotoSans-BlackItalic.woff2
CHANGED
File without changes
|
css/NotoSans/NotoSans-Bold.woff
CHANGED
File without changes
|
css/NotoSans/NotoSans-Bold.woff2
CHANGED
File without changes
|
css/NotoSans/NotoSans-BoldItalic.woff
CHANGED
File without changes
|
css/NotoSans/NotoSans-BoldItalic.woff2
CHANGED
File without changes
|
css/NotoSans/NotoSans-ExtraBold.woff
CHANGED
File without changes
|
css/NotoSans/NotoSans-ExtraBold.woff2
CHANGED
File without changes
|
css/NotoSans/NotoSans-ExtraBoldItalic.woff
CHANGED
File without changes
|
css/NotoSans/NotoSans-ExtraBoldItalic.woff2
CHANGED
File without changes
|
css/NotoSans/NotoSans-ExtraLight.woff
CHANGED
File without changes
|
css/NotoSans/NotoSans-ExtraLight.woff2
CHANGED
File without changes
|
css/NotoSans/NotoSans-ExtraLightItalic.woff
CHANGED
File without changes
|
css/NotoSans/NotoSans-ExtraLightItalic.woff2
CHANGED
File without changes
|
css/NotoSans/NotoSans-Italic.woff
CHANGED
File without changes
|
css/NotoSans/NotoSans-Italic.woff2
CHANGED
File without changes
|
css/NotoSans/NotoSans-Light.woff
CHANGED
File without changes
|
css/NotoSans/NotoSans-Light.woff2
CHANGED
File without changes
|
css/NotoSans/NotoSans-LightItalic.woff
CHANGED
File without changes
|
css/NotoSans/NotoSans-LightItalic.woff2
CHANGED
File without changes
|
css/NotoSans/NotoSans-Medium.woff
CHANGED
File without changes
|
css/NotoSans/NotoSans-Medium.woff2
CHANGED
File without changes
|
css/NotoSans/NotoSans-MediumItalic.woff
CHANGED
File without changes
|
css/NotoSans/NotoSans-MediumItalic.woff2
CHANGED
File without changes
|
css/NotoSans/NotoSans-Regular.woff
CHANGED
File without changes
|
css/NotoSans/NotoSans-Regular.woff2
CHANGED
File without changes
|
css/NotoSans/NotoSans-SemiBold.woff
CHANGED
File without changes
|
css/NotoSans/NotoSans-SemiBold.woff2
CHANGED
File without changes
|
css/NotoSans/NotoSans-SemiBoldItalic.woff
CHANGED
File without changes
|
css/NotoSans/NotoSans-SemiBoldItalic.woff2
CHANGED
File without changes
|
css/NotoSans/NotoSans-Thin.woff
CHANGED
File without changes
|
css/NotoSans/NotoSans-Thin.woff2
CHANGED
File without changes
|
css/NotoSans/NotoSans-ThinItalic.woff
CHANGED
File without changes
|
css/NotoSans/NotoSans-ThinItalic.woff2
CHANGED
File without changes
|
css/NotoSans/stylesheet.css
CHANGED
File without changes
|
css/chat_style-TheEncrypted777.css
CHANGED
@@ -90,6 +90,7 @@
|
|
90 |
line-height: 1.428571429 !important;
|
91 |
color: rgb(243 244 246) !important;
|
92 |
text-shadow: 2px 2px 2px rgb(0 0 0);
|
|
|
93 |
}
|
94 |
|
95 |
.message-body p em {
|
|
|
90 |
line-height: 1.428571429 !important;
|
91 |
color: rgb(243 244 246) !important;
|
92 |
text-shadow: 2px 2px 2px rgb(0 0 0);
|
93 |
+
font-weight: 500;
|
94 |
}
|
95 |
|
96 |
.message-body p em {
|
css/chat_style-cai-chat-square.css
CHANGED
File without changes
|
css/chat_style-cai-chat.css
CHANGED
@@ -46,6 +46,7 @@
|
|
46 |
.message-body p {
|
47 |
font-size: 15px !important;
|
48 |
line-height: 22.5px !important;
|
|
|
49 |
}
|
50 |
|
51 |
.message-body p, .chat .message-body ul, .chat .message-body ol {
|
@@ -59,4 +60,4 @@
|
|
59 |
.message-body p em {
|
60 |
color: rgb(110 110 110) !important;
|
61 |
font-weight: 500;
|
62 |
-
}
|
|
|
46 |
.message-body p {
|
47 |
font-size: 15px !important;
|
48 |
line-height: 22.5px !important;
|
49 |
+
font-weight: 500;
|
50 |
}
|
51 |
|
52 |
.message-body p, .chat .message-body ul, .chat .message-body ol {
|
|
|
60 |
.message-body p em {
|
61 |
color: rgb(110 110 110) !important;
|
62 |
font-weight: 500;
|
63 |
+
}
|
css/chat_style-messenger.css
CHANGED
@@ -88,6 +88,7 @@
|
|
88 |
margin-bottom: 0 !important;
|
89 |
font-size: 15px !important;
|
90 |
line-height: 1.428571429 !important;
|
|
|
91 |
}
|
92 |
|
93 |
.dark .message-body p em {
|
|
|
88 |
margin-bottom: 0 !important;
|
89 |
font-size: 15px !important;
|
90 |
line-height: 1.428571429 !important;
|
91 |
+
font-weight: 500;
|
92 |
}
|
93 |
|
94 |
.dark .message-body p em {
|
css/chat_style-wpp.css
CHANGED
@@ -44,6 +44,7 @@
|
|
44 |
margin-bottom: 0 !important;
|
45 |
font-size: 15px !important;
|
46 |
line-height: 1.428571429 !important;
|
|
|
47 |
}
|
48 |
|
49 |
.dark .message-body p em {
|
@@ -52,4 +53,4 @@
|
|
52 |
|
53 |
.message-body p em {
|
54 |
color: rgb(110 110 110) !important;
|
55 |
-
}
|
|
|
44 |
margin-bottom: 0 !important;
|
45 |
font-size: 15px !important;
|
46 |
line-height: 1.428571429 !important;
|
47 |
+
font-weight: 500;
|
48 |
}
|
49 |
|
50 |
.dark .message-body p em {
|
|
|
53 |
|
54 |
.message-body p em {
|
55 |
color: rgb(110 110 110) !important;
|
56 |
+
}
|