Skip to content

Instantly share code, notes, and snippets.

View StefanDanielSchwarz's full-sized avatar

Stefan Daniel Schwarz StefanDanielSchwarz

  • CLASSIFIED
  • DE
View GitHub Profile
@StefanDanielSchwarz
StefanDanielSchwarz / aliases
Created December 21, 2023 22:09
ShellGPT Aliases/Functions for Bash and Zsh
# ==============================================================================
# ShellGPT
# ==============================================================================
# ------------------------------------------------------------------------------
if which sgpt >/dev/null 2>&1; then
# ------------------------------------------------------------------------------
alias sgpt-chat="sgpt --repl chat"
alias sgpt-code="sgpt --repl code --code"
@StefanDanielSchwarz
StefanDanielSchwarz / install.sh
Last active April 16, 2023 12:34
Install oobabooga's text-generation-webui on WSL
#!/bin/bash -ex
################################################################################
PACKAGES_TO_INSTALL="python=3.10.9 pytorch[version=2,build=py3.10_cuda11.7*] torchvision torchaudio pytorch-cuda=11.7 cuda-toolkit ninja git"
CHANNEL="-c pytorch -c nvidia/label/cuda-11.7.0 -c nvidia -c conda-forge"
#REPO_URL="https://github.com/oobabooga/text-generation-webui.git" # -b …
#GPTQ_URL="https://github.com/qwopqwop200/GPTQ-for-LLaMa.git -b cuda"
#GPTQ_URL="https://github.com/oobabooga/GPTQ-for-LLaMa.git" # -b …