Merge remote-tracking branch 'united/united' into 4bit

This commit is contained in:
0cc4m
2023-03-20 19:06:40 +00:00
7 changed files with 69 additions and 17 deletions

View File

@@ -3249,6 +3249,11 @@ def load_model(use_gpu=True, gpu_layers=None, disk_layers=None, initial_load=Fal
#for key in koboldai_vars.badwords: #for key in koboldai_vars.badwords:
# koboldai_vars.badwordsids.append([vocab[key]]) # koboldai_vars.badwordsids.append([vocab[key]])
# These are model specific overrides if a model has bad defaults
if koboldai_vars.model_type == "llama":
tokenizer.decode_with_prefix_space = True
tokenizer.add_bos_token = False
logger.info(f"Pipeline created: {koboldai_vars.model}") logger.info(f"Pipeline created: {koboldai_vars.model}")
else: else:

View File

@@ -66,7 +66,7 @@
"#@title <b><-- Select your model below and then click this to start KoboldAI</b>\n", "#@title <b><-- Select your model below and then click this to start KoboldAI</b>\n",
"#@markdown You can find a description of the models below along with instructions on how to start KoboldAI.\n", "#@markdown You can find a description of the models below along with instructions on how to start KoboldAI.\n",
"\n", "\n",
"Model = \"Nerys 13B V2\" #@param [\"Nerys 13B V2\", \"Nerybus 13B\", \"Erebus 13B\", \"Janeway 13B\", \"Shinen 13B\", \"Skein 20B\", \"Erebus 20B\", \"Skein 6B\", \"Janeway 6B\", \"Adventure 6B\", \"Shinen 6B\", \"Pygmalion 6B\", \"Lit V2 6B\", \"Lit 6B\", \"NeoX 20B\", \"OPT 13B\", \"Fairseq Dense 13B\", \"GPT-J-6B\"] {allow-input: true}\n", "Model = \"Nerys 13B V2\" #@param [\"Nerys 13B V2\", \"Nerybus 13B\", \"Erebus 13B\", \"Janeway 13B\", \"Shinen 13B\", \"Skein 20B\", \"Erebus 20B\", \"Skein 6B\", \"Janeway 6B\", \"Adventure 6B\", \"Shinen 6B\", \"Pygmalion 6B\", \"Pygmalion 6B Dev\", \"Lit V2 6B\", \"Lit 6B\", \"NeoX 20B\", \"OPT 13B\", \"Fairseq Dense 13B\", \"GPT-J-6B\"] {allow-input: true}\n",
"Version = \"Official\" #@param [\"Official\", \"United\"] {allow-input: true}\n", "Version = \"Official\" #@param [\"Official\", \"United\"] {allow-input: true}\n",
"Provider = \"Cloudflare\" #@param [\"Localtunnel\", \"Cloudflare\"]\n", "Provider = \"Cloudflare\" #@param [\"Localtunnel\", \"Cloudflare\"]\n",
"use_google_drive = True #@param {type:\"boolean\"}\n", "use_google_drive = True #@param {type:\"boolean\"}\n",
@@ -89,6 +89,8 @@
" if not os.path.exists(\"/content/drive/MyDrive/\"):\n", " if not os.path.exists(\"/content/drive/MyDrive/\"):\n",
" os.mkdir(\"/content/drive/MyDrive/\")\n", " os.mkdir(\"/content/drive/MyDrive/\")\n",
"\n", "\n",
"Revision = \"\"\n",
"\n",
"if Model == \"Janeway 13B\":\n", "if Model == \"Janeway 13B\":\n",
" Model = \"KoboldAI/fairseq-dense-13B-Janeway\"\n", " Model = \"KoboldAI/fairseq-dense-13B-Janeway\"\n",
" path = \"\"\n", " path = \"\"\n",
@@ -177,7 +179,7 @@
"else:\n", "else:\n",
" tunnel = \"\"\n", " tunnel = \"\"\n",
"\n", "\n",
"!wget https://koboldai.org/ckds -O - | bash /dev/stdin $path$download -m $Model -g $Version $tunnel" "!wget https://koboldai.org/ckds -O - | bash /dev/stdin $path$download -m $Model -g $Version $tunnel $Revision"
] ]
}, },
{ {

View File

@@ -5,12 +5,13 @@ channels:
- defaults - defaults
dependencies: dependencies:
- colorama - colorama
- flask-socketio - flask-socketio=5.3.2
- flask-session - flask-session=0.4.0
- python-socketio=5.7.2
- pytorch=1.11.* - pytorch=1.11.*
- python=3.8.* - python=3.8.*
- cudatoolkit=11.1 - cudatoolkit=11.1
- eventlet - eventlet=0.33.3
- dnspython=2.2.1 - dnspython=2.2.1
- markdown - markdown
- bleach=4.1.0 - bleach=4.1.0

View File

@@ -4,10 +4,11 @@ channels:
- defaults - defaults
dependencies: dependencies:
- colorama - colorama
- flask-socketio - flask-socketio=5.3.2
- flask-session - flask-session=0.4.0
- python-socketio=5.7.2
- python=3.8.* - python=3.8.*
- eventlet - eventlet=0.33.3
- dnspython=2.2.1 - dnspython=2.2.1
- markdown - markdown
- bleach=4.1.0 - bleach=4.1.0

View File

@@ -0,0 +1,41 @@
@echo off
cd /D %~dp0
SET CONDA_SHLVL=
TITLE KoboldAI - Git Transformers Installer
ECHO This script will replace the Transformers version with the latest Git Transformers which may contain breaking changes.
ECHO If you wish to return to the approved version of transformers you can run the install_requirements.bat script or KoboldAI Updater.
pause
SET /P M=<loader.settings
IF %M%==1 GOTO drivemap
IF %M%==2 GOTO subfolder
IF %M%==3 GOTO drivemap_B
:subfolder
ECHO Runtime launching in subfolder mode
SET TEMP=%~DP0MINICONDA3
SET TMP=%~DP0MINICONDA3
call miniconda3\condabin\activate
pip install git+https://github.com/huggingface/transformers
cmd /k
:drivemap
ECHO Runtime launching in K: drive mode
subst /D K: >nul
subst K: miniconda3 >nul
SET TEMP=K:\
SET TMP=K:\
call K:\python\condabin\activate
pip install git+https://github.com/huggingface/transformers
cmd /k
:drivemap_B
ECHO Runtime launching in B: drive mode
subst /D B: >nul
subst B: miniconda3 >nul
SET TEMP=B:\
SET TMP=B:\
call B:\python\condabin\activate
pip install git+https://github.com/huggingface/transformers
cmd /k

View File

@@ -1,13 +1,14 @@
transformers==4.25.1 transformers==4.25.1
huggingface_hub==0.12.1 huggingface_hub==0.12.1
Flask Flask==2.2.3
Flask-SocketIO Flask-SocketIO==5.3.2
python-socketio==5.7.2
requests requests
torch >= 1.9, < 1.13 torch >= 1.9, < 1.13
flask-cloudflared==0.0.10 flask-cloudflared==0.0.10
flask-ngrok flask-ngrok
flask-cors flask-cors
eventlet eventlet==0.33.3
dnspython==2.2.1 dnspython==2.2.1
lupa==1.10 lupa==1.10
markdown markdown
@@ -15,7 +16,7 @@ bleach==4.1.0
sentencepiece sentencepiece
protobuf protobuf
accelerate accelerate
flask_session flask-session==0.4.0
marshmallow>=3.13 marshmallow>=3.13
apispec-webframeworks apispec-webframeworks
loguru loguru

View File

@@ -9,17 +9,18 @@ transformers == 4.25.1
huggingface_hub==0.12.1 huggingface_hub==0.12.1
progressbar2 progressbar2
git+https://github.com/VE-FORBRYDERNE/mesh-transformer-jax@ck git+https://github.com/VE-FORBRYDERNE/mesh-transformer-jax@ck
flask Flask==2.2.3
Flask-SocketIO Flask-SocketIO==5.3.2
python-socketio==5.7.2
flask-cloudflared==0.0.10 flask-cloudflared==0.0.10
flask-ngrok flask-ngrok
flask-cors flask-cors
eventlet eventlet==0.33.3
dnspython==2.2.1 dnspython==2.2.1
lupa==1.10 lupa==1.10
markdown markdown
bleach==4.1.0 bleach==4.1.0
flask-session flask-session==0.4.0
marshmallow>=3.13 marshmallow>=3.13
apispec-webframeworks apispec-webframeworks
loguru loguru