Skip to content

Instantly share code, notes, and snippets.

@mberman84
mberman84 / gist:e3418c826306e614e04affde49abcc79
Created October 11, 2023 23:25
LLaVA Install (RunPod OR Linux/WSL)
git clone https://github.com/haotian-liu/LLaVA.git
cd LLaVA
pip install --upgrade pip
pip install torch
pip install -e .
# for runpod: edit pod to have port 3000 and 100GB of temporary storage
python3 -m llava.serve.controller --host 0.0.0.0 --port 10000
# open new terminal, keep previous one open
python -m llava.serve.model_worker --host 0.0.0.0 --controller http://localhost:10000 --port 40000 --worker http://localhost:40000 --model-path liuhaotian/llava-v1.5-13b
# open new terminal, keep previous one open
import autogen
config_list = [
{
'model': 'gpt-4',
'api_key': 'API_KEY'
}
]
llm_config={
# once you have an app created and downloaded:
curl -sSL https://get.wasp-lang.dev/installer.sh | sh
cd {app_folder}
# to install NVM:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
nvm install 18
nvm use 18
wasp db migrate-dev
wasp start
# need to have conda installed
# these are instructions for macOS
git clone https://github.com/OpenBMB/ChatDev.git
conda create -n ChatDev_conda_env python=3.9 -y
conda activate ChatDev_conda_env
cd ChatDev
pip3 install -r requirements.txt
set OPENAI_API_KEY=your_key
python run.py --task "[description_of_your_idea]" --name "[project_name]"
python3 online_log/app.py
# Make sure you have Anaconda installed
# This tutorial assumes you have an Nvidia GPU, but you can find the non-GPU version on the Textgen WebUI github
# More information found here: https://github.com/oobabooga/text-generation-webui
conda create -n textgen python=3.10.9
conda activate textgen
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
git clone https://github.com/oobabooga/text-generation-webui
cd text-generation-webui
python -m pip install -r requirements.txt
@mberman84
mberman84 / gist:d40d3e5c0e649d26dcd3dd0163e9d8d0
Created August 15, 2023 14:42
Generative Agents Installation
# must have conda installed
git clone https://github.com/joonspk-research/generative_agents.git
cd generative_agents
# open visual studio code, open gen agents folder
# within vscode, go to reverie/backend_server
# create new file utils.py
# copy/paste contents from github (below)
###
# Copy and paste your OpenAI API Key
# Must have conda installed
# It costs approximately $0.2 (in GPT-4 API fees) to generate one example with analysis and design, and around $2.0 for a full project.
conda create -n metagpt python=3.11.4
conda activate metagpt
npm --version # to check you have npm installed
# optional: install node if you don't have it
npm install -g @mermaid-js/mermaid-cli
git clone https://github.com/geekan/metagpt
cd metagpt
# must have miniconda installed
# installation for musicgen
conda create -n audiocraft python=3.9
conda activate audiocraft
brew install ffmpeg (for mac)
winget install ffmpeg (for windows)
git clone https://github.com/facebookresearch/audiocraft.git
cd audiocraft
python -m pip install -r requirements.txt
@mberman84
mberman84 / gist:45545e48040ef6aafb6a1cb3442edb83
Created July 24, 2023 00:22
LLaMA 2 13b chat fp16 Install Instructions
conda create -n textgen python=3.10.9
conda activate textgen
install pytorch: pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
git clone https://github.com/oobabooga/text-generation-webui
cd text-generation-webui
pip install -r requirements.txt
python server.py
# download model
# refresh model list
# load model
@mberman84
mberman84 / gist:f092a28e4151dd5cecebfc58ac1cbc0e
Last active May 6, 2024 19:34
Steps to install Textgen WebUI
# this tutorial assumes conda and git are both installed on your computer
conda create -n tg python=3.10.9
conda activate tg
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
git clone https://github.com/oobabooga/text-generation-webui.git
cd text-generation-webui
pip install -r requirements.txt
# GPU only: