This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import autogen | |
config_list = [ | |
{ | |
'model': 'gpt-4', | |
'api_key': 'API_KEY' | |
} | |
] | |
llm_config={ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: |