Skip to main content

Module textgen

Module textgen 

Source
Expand description

text-generation-webui installer — ports scripts/install_textgen.sh.

Clones the text-generation-webui repository, installs Python dependencies with ROCm-only filtering (excludes nvidia/CUDA packages), and creates launcher shim.

§Validation Assertions

  • VAL-INSTALL-024: text-generation-webui correct git clone
  • VAL-INSTALL-025: App installers correct target directory

Structs§

ShellCommand
A constructed shell command.
TextgenConfig
Configuration for the text-generation-webui installer.
TextgenInstaller
The text-generation-webui installer.

Constants§

DEFAULT_BRANCH
Default branch for text-generation-webui.
EXCLUDED_PATTERNS
Regex pattern for packages to exclude from requirements.txt. Original script excludes: nvidia-, cuda, tensorrt*, triton[versioned], xformers, flash-attn, torch/torchvision/torchaudio.
PRESERVE_DIRS
Directories to preserve during git update.
REPO_URL
text-generation-webui Git repository URL.
WEB_PORT
Default web port.

Functions§

default_install_dir
Default text-generation-webui installation directory.