NahFam13 commited on
Commit
dd0518d
1 Parent(s): 3784c34

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -428
README.md CHANGED
@@ -1,428 +1,8 @@
1
- # Text generation web UI
2
-
3
- A Gradio web UI for Large Language Models.
4
-
5
- Its goal is to become the [AUTOMATIC1111/stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui) of text generation.
6
-
7
- |![Image1](https://github.com/oobabooga/screenshots/raw/main/print_instruct.png) | ![Image2](https://github.com/oobabooga/screenshots/raw/main/print_chat.png) |
8
- |:---:|:---:|
9
- |![Image1](https://github.com/oobabooga/screenshots/raw/main/print_default.png) | ![Image2](https://github.com/oobabooga/screenshots/raw/main/print_parameters.png) |
10
-
11
- ## Features
12
-
13
- * 3 interface modes: default (two columns), notebook, and chat.
14
- * Multiple model backends: [Transformers](https://github.com/huggingface/transformers), [llama.cpp](https://github.com/ggerganov/llama.cpp) (through [llama-cpp-python](https://github.com/abetlen/llama-cpp-python)), [ExLlamaV2](https://github.com/turboderp/exllamav2), [AutoGPTQ](https://github.com/PanQiWei/AutoGPTQ), [AutoAWQ](https://github.com/casper-hansen/AutoAWQ), [GPTQ-for-LLaMa](https://github.com/qwopqwop200/GPTQ-for-LLaMa), [CTransformers](https://github.com/marella/ctransformers), [QuIP#](https://github.com/Cornell-RelaxML/quip-sharp).
15
- * Dropdown menu for quickly switching between different models.
16
- * Large number of extensions (built-in and user-contributed), including Coqui TTS for realistic voice outputs, Whisper STT for voice inputs, translation, [multimodal pipelines](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/multimodal), vector databases, Stable Diffusion integration, and a lot more. See [the wiki](https://github.com/oobabooga/text-generation-webui/wiki/07-%E2%80%90-Extensions) and [the extensions directory](https://github.com/oobabooga/text-generation-webui-extensions) for details.
17
- * [Chat with custom characters](https://github.com/oobabooga/text-generation-webui/wiki/03-%E2%80%90-Parameters-Tab#character).
18
- * Precise chat templates for instruction-following models, including Llama-2-chat, Alpaca, Vicuna, Mistral.
19
- * LoRA: train new LoRAs with your own data, load/unload LoRAs on the fly for generation.
20
- * Transformers library integration: load models in 4-bit or 8-bit precision through bitsandbytes, use llama.cpp with transformers samplers (`llamacpp_HF` loader), CPU inference in 32-bit precision using PyTorch.
21
- * OpenAI-compatible API server with Chat and Completions endpoints -- see the [examples](https://github.com/oobabooga/text-generation-webui/wiki/12-%E2%80%90-OpenAI-API#examples).
22
-
23
- ## How to install
24
-
25
- 1) Clone or [download](https://github.com/oobabooga/text-generation-webui/archive/refs/heads/main.zip) the repository.
26
- 2) Run the `start_linux.sh`, `start_windows.bat`, `start_macos.sh`, or `start_wsl.bat` script depending on your OS.
27
- 3) Select your GPU vendor when asked.
28
- 4) Once the installation ends, browse to `http://localhost:7860/?__theme=dark`.
29
- 5) Have fun!
30
-
31
- To restart the web UI in the future, just run the `start_` script again. This script creates an `installer_files` folder where it sets up the project's requirements. In case you need to reinstall the requirements, you can simply delete that folder and start the web UI again.
32
-
33
- The script accepts command-line flags. Alternatively, you can edit the `CMD_FLAGS.txt` file with a text editor and add your flags there.
34
-
35
- To get updates in the future, run `update_linux.sh`, `update_windows.bat`, `update_macos.sh`, or `update_wsl.bat`.
36
-
37
- <details>
38
- <summary>
39
- Setup details and information about installing manually
40
- </summary>
41
-
42
- ### One-click-installer
43
-
44
- The script uses Miniconda to set up a Conda environment in the `installer_files` folder.
45
-
46
- If you ever need to install something manually in the `installer_files` environment, you can launch an interactive shell using the cmd script: `cmd_linux.sh`, `cmd_windows.bat`, `cmd_macos.sh`, or `cmd_wsl.bat`.
47
-
48
- * There is no need to run any of those scripts (`start_`, `update_`, or `cmd_`) as admin/root.
49
- * For additional instructions about AMD and WSL setup, consult [the documentation](https://github.com/oobabooga/text-generation-webui/wiki).
50
- * For automated installation, you can use the `GPU_CHOICE`, `USE_CUDA118`, `LAUNCH_AFTER_INSTALL`, and `INSTALL_EXTENSIONS` environment variables. For instance: `GPU_CHOICE=A USE_CUDA118=FALSE LAUNCH_AFTER_INSTALL=FALSE INSTALL_EXTENSIONS=FALSE ./start_linux.sh`.
51
-
52
- ### Manual installation using Conda
53
-
54
- Recommended if you have some experience with the command-line.
55
-
56
- #### 0. Install Conda
57
-
58
- https://docs.conda.io/en/latest/miniconda.html
59
-
60
- On Linux or WSL, it can be automatically installed with these two commands ([source](https://educe-ubc.github.io/conda.html)):
61
-
62
- ```
63
- curl -sL "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh" > "Miniconda3.sh"
64
- bash Miniconda3.sh
65
- ```
66
-
67
- #### 1. Create a new conda environment
68
-
69
- ```
70
- conda create -n textgen python=3.11
71
- conda activate textgen
72
- ```
73
-
74
- #### 2. Install Pytorch
75
-
76
- | System | GPU | Command |
77
- |--------|---------|---------|
78
- | Linux/WSL | NVIDIA | `pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121` |
79
- | Linux/WSL | CPU only | `pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu` |
80
- | Linux | AMD | `pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm5.6` |
81
- | MacOS + MPS | Any | `pip3 install torch torchvision torchaudio` |
82
- | Windows | NVIDIA | `pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121` |
83
- | Windows | CPU only | `pip3 install torch torchvision torchaudio` |
84
-
85
- The up-to-date commands can be found here: https://pytorch.org/get-started/locally/.
86
-
87
- For NVIDIA, you also need to install the CUDA runtime libraries:
88
-
89
- ```
90
- conda install -y -c "nvidia/label/cuda-12.1.1" cuda-runtime
91
- ```
92
-
93
- If you need `nvcc` to compile some library manually, replace the command above with
94
-
95
- ```
96
- conda install -y -c "nvidia/label/cuda-12.1.1" cuda
97
- ```
98
-
99
- #### 3. Install the web UI
100
-
101
- ```
102
- git clone https://github.com/oobabooga/text-generation-webui
103
- cd text-generation-webui
104
- pip install -r <requirements file according to table below>
105
- ```
106
-
107
- Requirements file to use:
108
-
109
- | GPU | CPU | requirements file to use |
110
- |--------|---------|---------|
111
- | NVIDIA | has AVX2 | `requirements.txt` |
112
- | NVIDIA | no AVX2 | `requirements_noavx2.txt` |
113
- | AMD | has AVX2 | `requirements_amd.txt` |
114
- | AMD | no AVX2 | `requirements_amd_noavx2.txt` |
115
- | CPU only | has AVX2 | `requirements_cpu_only.txt` |
116
- | CPU only | no AVX2 | `requirements_cpu_only_noavx2.txt` |
117
- | Apple | Intel | `requirements_apple_intel.txt` |
118
- | Apple | Apple Silicon | `requirements_apple_silicon.txt` |
119
-
120
- ### Start the web UI
121
-
122
- ```
123
- conda activate textgen
124
- cd text-generation-webui
125
- python server.py
126
- ```
127
-
128
- Then browse to
129
-
130
- `http://localhost:7860/?__theme=dark`
131
-
132
- ##### AMD GPU on Windows
133
-
134
- 1) Use `requirements_cpu_only.txt` or `requirements_cpu_only_noavx2.txt` in the command above.
135
-
136
- 2) Manually install llama-cpp-python using the appropriate command for your hardware: [Installation from PyPI](https://github.com/abetlen/llama-cpp-python#installation-with-hardware-acceleration).
137
- * Use the `LLAMA_HIPBLAS=on` toggle.
138
- * Note the [Windows remarks](https://github.com/abetlen/llama-cpp-python#windows-remarks).
139
-
140
- 3) Manually install AutoGPTQ: [Installation](https://github.com/PanQiWei/AutoGPTQ#install-from-source).
141
- * Perform the from-source installation - there are no prebuilt ROCm packages for Windows.
142
-
143
- ##### Older NVIDIA GPUs
144
-
145
- 1) For Kepler GPUs and older, you will need to install CUDA 11.8 instead of 12:
146
-
147
- ```
148
- pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
149
- conda install -y -c "nvidia/label/cuda-11.8.0" cuda-runtime
150
- ```
151
-
152
- 2) bitsandbytes >= 0.39 may not work. In that case, to use `--load-in-8bit`, you may have to downgrade like this:
153
- * Linux: `pip install bitsandbytes==0.38.1`
154
- * Windows: `pip install https://github.com/jllllll/bitsandbytes-windows-webui/raw/main/bitsandbytes-0.38.1-py3-none-any.whl`
155
-
156
- ##### Manual install
157
-
158
- The `requirements*.txt` above contain various wheels precompiled through GitHub Actions. If you wish to compile things manually, or if you need to because no suitable wheels are available for your hardware, you can use `requirements_nowheels.txt` and then install your desired loaders manually.
159
-
160
- ### Alternative: Docker
161
-
162
- ```
163
- For NVIDIA GPU:
164
- ln -s docker/{nvidia/Dockerfile,nvidia/docker-compose.yml,.dockerignore} .
165
- For AMD GPU:
166
- ln -s docker/{amd/Dockerfile,intel/docker-compose.yml,.dockerignore} .
167
- For Intel GPU:
168
- ln -s docker/{intel/Dockerfile,amd/docker-compose.yml,.dockerignore} .
169
- For CPU only
170
- ln -s docker/{cpu/Dockerfile,cpu/docker-compose.yml,.dockerignore} .
171
- cp docker/.env.example .env
172
- #Create logs/cache dir :
173
- mkdir -p logs cache
174
- # Edit .env and set:
175
- # TORCH_CUDA_ARCH_LIST based on your GPU model
176
- # APP_RUNTIME_GID your host user's group id (run `id -g` in a terminal)
177
- # BUILD_EXTENIONS optionally add comma separated list of extensions to build
178
- # Edit CMD_FLAGS.txt and add in it the options you want to execute (like --listen --cpu)
179
- #
180
- docker compose up --build
181
- ```
182
-
183
- * You need to have Docker Compose v2.17 or higher installed. See [this guide](https://github.com/oobabooga/text-generation-webui/wiki/09-%E2%80%90-Docker) for instructions.
184
- * For additional docker files, check out [this repository](https://github.com/Atinoda/text-generation-webui-docker).
185
-
186
- ### Updating the requirements
187
-
188
- From time to time, the `requirements*.txt` change. To update, use these commands:
189
-
190
- ```
191
- conda activate textgen
192
- cd text-generation-webui
193
- pip install -r <requirements file that you have used> --upgrade
194
- ```
195
- </details>
196
-
197
- <details>
198
- <summary>
199
- List of command-line flags
200
- </summary>
201
-
202
- #### Basic settings
203
-
204
- | Flag | Description |
205
- |--------------------------------------------|-------------|
206
- | `-h`, `--help` | show this help message and exit |
207
- | `--multi-user` | Multi-user mode. Chat histories are not saved or automatically loaded. WARNING: this is likely not safe for sharing publicly. |
208
- | `--character CHARACTER` | The name of the character to load in chat mode by default. |
209
- | `--model MODEL` | Name of the model to load by default. |
210
- | `--lora LORA [LORA ...]` | The list of LoRAs to load. If you want to load more than one LoRA, write the names separated by spaces. |
211
- | `--model-dir MODEL_DIR` | Path to directory with all the models. |
212
- | `--lora-dir LORA_DIR` | Path to directory with all the loras. |
213
- | `--model-menu` | Show a model menu in the terminal when the web UI is first launched. |
214
- | `--settings SETTINGS_FILE` | Load the default interface settings from this yaml file. See `settings-template.yaml` for an example. If you create a file called `settings.yaml`, this file will be loaded by default without the need to use the `--settings` flag. |
215
- | `--extensions EXTENSIONS [EXTENSIONS ...]` | The list of extensions to load. If you want to load more than one extension, write the names separated by spaces. |
216
- | `--verbose` | Print the prompts to the terminal. |
217
- | `--chat-buttons` | Show buttons on the chat tab instead of a hover menu. |
218
-
219
- #### Model loader
220
-
221
- | Flag | Description |
222
- |--------------------------------------------|-------------|
223
- | `--loader LOADER` | Choose the model loader manually, otherwise, it will get autodetected. Valid options: Transformers, llama.cpp, llamacpp_HF, ExLlamav2_HF, ExLlamav2, AutoGPTQ, AutoAWQ, GPTQ-for-LLaMa, ctransformers, QuIP#. |
224
-
225
- #### Accelerate/transformers
226
-
227
- | Flag | Description |
228
- |---------------------------------------------|-------------|
229
- | `--cpu` | Use the CPU to generate text. Warning: Training on CPU is extremely slow. |
230
- | `--auto-devices` | Automatically split the model across the available GPU(s) and CPU. |
231
- | `--gpu-memory GPU_MEMORY [GPU_MEMORY ...]` | Maximum GPU memory in GiB to be allocated per GPU. Example: --gpu-memory 10 for a single GPU, --gpu-memory 10 5 for two GPUs. You can also set values in MiB like --gpu-memory 3500MiB. |
232
- | `--cpu-memory CPU_MEMORY` | Maximum CPU memory in GiB to allocate for offloaded weights. Same as above. |
233
- | `--disk` | If the model is too large for your GPU(s) and CPU combined, send the remaining layers to the disk. |
234
- | `--disk-cache-dir DISK_CACHE_DIR` | Directory to save the disk cache to. Defaults to "cache". |
235
- | `--load-in-8bit` | Load the model with 8-bit precision (using bitsandbytes). |
236
- | `--bf16` | Load the model with bfloat16 precision. Requires NVIDIA Ampere GPU. |
237
- | `--no-cache` | Set `use_cache` to `False` while generating text. This reduces VRAM usage slightly, but it comes at a performance cost. |
238
- | `--trust-remote-code` | Set `trust_remote_code=True` while loading the model. Necessary for some models. |
239
- | `--no_use_fast` | Set use_fast=False while loading the tokenizer (it's True by default). Use this if you have any problems related to use_fast. |
240
- | `--use_flash_attention_2` | Set use_flash_attention_2=True while loading the model. |
241
-
242
- #### bitsandbytes 4-bit
243
-
244
- ⚠️ Requires minimum compute of 7.0 on Windows at the moment.
245
-
246
- | Flag | Description |
247
- |---------------------------------------------|-------------|
248
- | `--load-in-4bit` | Load the model with 4-bit precision (using bitsandbytes). |
249
- | `--use_double_quant` | use_double_quant for 4-bit. |
250
- | `--compute_dtype COMPUTE_DTYPE` | compute dtype for 4-bit. Valid options: bfloat16, float16, float32. |
251
- | `--quant_type QUANT_TYPE` | quant_type for 4-bit. Valid options: nf4, fp4. |
252
-
253
- #### llama.cpp
254
-
255
- | Flag | Description |
256
- |-------------|-------------|
257
- | `--tensorcores` | Use llama-cpp-python compiled with tensor cores support. This increases performance on RTX cards. NVIDIA only. |
258
- | `--n_ctx N_CTX` | Size of the prompt context. |
259
- | `--threads` | Number of threads to use. |
260
- | `--threads-batch THREADS_BATCH` | Number of threads to use for batches/prompt processing. |
261
- | `--no_mul_mat_q` | Disable the mulmat kernels. |
262
- | `--n_batch` | Maximum number of prompt tokens to batch together when calling llama_eval. |
263
- | `--no-mmap` | Prevent mmap from being used. |
264
- | `--mlock` | Force the system to keep the model in RAM. |
265
- | `--n-gpu-layers N_GPU_LAYERS` | Number of layers to offload to the GPU. |
266
- | `--tensor_split TENSOR_SPLIT` | Split the model across multiple GPUs. Comma-separated list of proportions. Example: 18,17. |
267
- | `--numa` | Activate NUMA task allocation for llama.cpp. |
268
- | `--logits_all`| Needs to be set for perplexity evaluation to work. Otherwise, ignore it, as it makes prompt processing slower. |
269
- | `--no_offload_kqv` | Do not offload the K, Q, V to the GPU. This saves VRAM but reduces the performance. |
270
- | `--cache-capacity CACHE_CAPACITY` | Maximum cache capacity (llama-cpp-python). Examples: 2000MiB, 2GiB. When provided without units, bytes will be assumed. |
271
-
272
- #### ExLlamav2
273
-
274
- | Flag | Description |
275
- |------------------|-------------|
276
- |`--gpu-split` | Comma-separated list of VRAM (in GB) to use per GPU device for model layers. Example: 20,7,7. |
277
- |`--max_seq_len MAX_SEQ_LEN` | Maximum sequence length. |
278
- |`--cfg-cache` | ExLlamav2_HF: Create an additional cache for CFG negative prompts. Necessary to use CFG with that loader. |
279
- |`--no_flash_attn` | Force flash-attention to not be used. |
280
- |`--cache_8bit` | Use 8-bit cache to save VRAM. |
281
- |`--num_experts_per_token NUM_EXPERTS_PER_TOKEN` | Number of experts to use for generation. Applies to MoE models like Mixtral. |
282
-
283
- #### AutoGPTQ
284
-
285
- | Flag | Description |
286
- |------------------|-------------|
287
- | `--triton` | Use triton. |
288
- | `--no_inject_fused_attention` | Disable the use of fused attention, which will use less VRAM at the cost of slower inference. |
289
- | `--no_inject_fused_mlp` | Triton mode only: disable the use of fused MLP, which will use less VRAM at the cost of slower inference. |
290
- | `--no_use_cuda_fp16` | This can make models faster on some systems. |
291
- | `--desc_act` | For models that don't have a quantize_config.json, this parameter is used to define whether to set desc_act or not in BaseQuantizeConfig. |
292
- | `--disable_exllama` | Disable ExLlama kernel, which can improve inference speed on some systems. |
293
- | `--disable_exllamav2` | Disable ExLlamav2 kernel. |
294
-
295
- #### GPTQ-for-LLaMa
296
-
297
- | Flag | Description |
298
- |---------------------------|-------------|
299
- | `--wbits WBITS` | Load a pre-quantized model with specified precision in bits. 2, 3, 4 and 8 are supported. |
300
- | `--model_type MODEL_TYPE` | Model type of pre-quantized model. Currently LLaMA, OPT, and GPT-J are supported. |
301
- | `--groupsize GROUPSIZE` | Group size. |
302
- | `--pre_layer PRE_LAYER [PRE_LAYER ...]` | The number of layers to allocate to the GPU. Setting this parameter enables CPU offloading for 4-bit models. For multi-gpu, write the numbers separated by spaces, eg `--pre_layer 30 60`. |
303
- | `--checkpoint CHECKPOINT` | The path to the quantized checkpoint file. If not specified, it will be automatically detected. |
304
- | `--monkey-patch` | Apply the monkey patch for using LoRAs with quantized models. |
305
-
306
- #### ctransformers
307
-
308
- | Flag | Description |
309
- |-------------|-------------|
310
- | `--model_type MODEL_TYPE` | Model type of pre-quantized model. Currently gpt2, gptj, gptneox, falcon, llama, mpt, starcoder (gptbigcode), dollyv2, and replit are supported. |
311
-
312
- #### HQQ
313
-
314
- | Flag | Description |
315
- |-------------|-------------|
316
- | `--hqq-backend` | Backend for the HQQ loader. Valid options: PYTORCH, PYTORCH_COMPILE, ATEN. |
317
-
318
- #### DeepSpeed
319
-
320
- | Flag | Description |
321
- |---------------------------------------|-------------|
322
- | `--deepspeed` | Enable the use of DeepSpeed ZeRO-3 for inference via the Transformers integration. |
323
- | `--nvme-offload-dir NVME_OFFLOAD_DIR` | DeepSpeed: Directory to use for ZeRO-3 NVME offloading. |
324
- | `--local_rank LOCAL_RANK` | DeepSpeed: Optional argument for distributed setups. |
325
-
326
- #### RoPE (for llama.cpp, ExLlamaV2, and transformers)
327
-
328
- | Flag | Description |
329
- |------------------|-------------|
330
- | `--alpha_value ALPHA_VALUE` | Positional embeddings alpha factor for NTK RoPE scaling. Use either this or `compress_pos_emb`, not both. |
331
- | `--rope_freq_base ROPE_FREQ_BASE` | If greater than 0, will be used instead of alpha_value. Those two are related by `rope_freq_base = 10000 * alpha_value ^ (64 / 63)`. |
332
- | `--compress_pos_emb COMPRESS_POS_EMB` | Positional embeddings compression factor. Should be set to `(context length) / (model's original context length)`. Equal to `1/rope_freq_scale`. |
333
-
334
- #### Gradio
335
-
336
- | Flag | Description |
337
- |---------------------------------------|-------------|
338
- | `--listen` | Make the web UI reachable from your local network. |
339
- | `--listen-port LISTEN_PORT` | The listening port that the server will use. |
340
- | `--listen-host LISTEN_HOST` | The hostname that the server will use. |
341
- | `--share` | Create a public URL. This is useful for running the web UI on Google Colab or similar. |
342
- | `--auto-launch` | Open the web UI in the default browser upon launch. |
343
- | `--gradio-auth USER:PWD` | Set Gradio authentication password in the format "username:password". Multiple credentials can also be supplied with "u1:p1,u2:p2,u3:p3". |
344
- | `--gradio-auth-path GRADIO_AUTH_PATH` | Set the Gradio authentication file path. The file should contain one or more user:password pairs in the same format as above. |
345
- | `--ssl-keyfile SSL_KEYFILE` | The path to the SSL certificate key file. |
346
- | `--ssl-certfile SSL_CERTFILE` | The path to the SSL certificate cert file. |
347
-
348
- #### API
349
-
350
- | Flag | Description |
351
- |---------------------------------------|-------------|
352
- | `--api` | Enable the API extension. |
353
- | `--public-api` | Create a public URL for the API using Cloudfare. |
354
- | `--public-api-id PUBLIC_API_ID` | Tunnel ID for named Cloudflare Tunnel. Use together with public-api option. |
355
- | `--api-port API_PORT` | The listening port for the API. |
356
- | `--api-key API_KEY` | API authentication key. |
357
- | `--admin-key ADMIN_KEY` | API authentication key for admin tasks like loading and unloading models. If not set, will be the same as --api-key. |
358
- | `--nowebui` | Do not launch the Gradio UI. Useful for launching the API in standalone mode. |
359
-
360
- #### Multimodal
361
-
362
- | Flag | Description |
363
- |---------------------------------------|-------------|
364
- | `--multimodal-pipeline PIPELINE` | The multimodal pipeline to use. Examples: `llava-7b`, `llava-13b`. |
365
-
366
- </details>
367
-
368
- ## Documentation
369
-
370
- https://github.com/oobabooga/text-generation-webui/wiki
371
-
372
- ## Downloading models
373
-
374
- Models should be placed in the folder `text-generation-webui/models`. They are usually downloaded from [Hugging Face](https://huggingface.co/models?pipeline_tag=text-generation&sort=downloads).
375
-
376
- * GGUF models are a single file and should be placed directly into `models`. Example:
377
-
378
- ```
379
- text-generation-webui
380
- └── models
381
- └── llama-2-13b-chat.Q4_K_M.gguf
382
- ```
383
-
384
- * The remaining model types (like 16-bit transformers models and GPTQ models) are made of several files and must be placed in a subfolder. Example:
385
-
386
- ```
387
- text-generation-webui
388
- ├── models
389
- │   ├── lmsys_vicuna-33b-v1.3
390
- │   │   ├── config.json
391
- │   │   ├── generation_config.json
392
- │   │   ├── pytorch_model-00001-of-00007.bin
393
- │   │   ├── pytorch_model-00002-of-00007.bin
394
- │   │   ├── pytorch_model-00003-of-00007.bin
395
- │   │   ├── pytorch_model-00004-of-00007.bin
396
- │   │   ├── pytorch_model-00005-of-00007.bin
397
- │   │   ├── pytorch_model-00006-of-00007.bin
398
- │   │   ├── pytorch_model-00007-of-00007.bin
399
- │   │   ├── pytorch_model.bin.index.json
400
- │   │   ├── special_tokens_map.json
401
- │   │   ├── tokenizer_config.json
402
- │   │   └── tokenizer.model
403
- ```
404
-
405
- In both cases, you can use the "Model" tab of the UI to download the model from Hugging Face automatically. It is also possible to download it via the command-line with
406
-
407
- ```
408
- python download-model.py organization/model
409
- ```
410
-
411
- Run `python download-model.py --help` to see all the options.
412
-
413
- ## Google Colab notebook
414
-
415
- https://colab.research.google.com/github/oobabooga/text-generation-webui/blob/main/Colab-TextGen-GPU.ipynb
416
-
417
- ## Contributing
418
-
419
- If you would like to contribute to the project, check out the [Contributing guidelines](https://github.com/oobabooga/text-generation-webui/wiki/Contributing-guidelines).
420
-
421
- ## Community
422
-
423
- * Subreddit: https://www.reddit.com/r/oobabooga/
424
- * Discord: https://discord.gg/jwZCF2dPQN
425
-
426
- ## Acknowledgment
427
-
428
- In August 2023, [Andreessen Horowitz](https://a16z.com/) (a16z) provided a generous grant to encourage and support my independent work on this project. I am **extremely** grateful for their trust and recognition.
 
1
+ ---
2
+ pinned: true
3
+ license: apache-2.0
4
+ sdk: docker
5
+ emoji: 😻
6
+ colorFrom: gray
7
+ colorTo: indigo
8
+ ---