You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Georgi Gerganov
b7c85d1ea6
|
2 years ago | |
---|---|---|
.. | ||
.gitignore | 2 years ago | |
CMakeLists.txt | 2 years ago | |
README.md | 2 years ago | |
gpt-2.cpp | 2 years ago | |
gpt-2.h | 2 years ago | |
speak.sh | 2 years ago | |
talk.cpp | 2 years ago |
README.md
talk
Talk with an Artificial Intelligence in your terminal
Web version: examples/talk.wasm
Building
The talk
tool depends on SDL2 library to capture audio from the microphone. You can build it like this:
# Install SDL2 on Linux
sudo apt-get install libsdl2-dev
# Install SDL2 on Mac OS
brew install sdl2
# Build the "talk" executable
make talk
# Run it
./talk -p Santa
To run this, you will need a ggml GPT-2 model: instructions
Alternatively, you can simply download the smallest ggml GPT-2 117M model (240 MB) like this:
wget --quiet --show-progress -O models/ggml-gpt-2-117M.bin https://ggml.ggerganov.com/ggml-model-gpt-2-117M.bin