talk : talk with AI in the terminal

This commit is contained in:
Georgi Gerganov
2022-12-09 20:38:10 +02:00
parent d1da35de06
commit 3b1aacbe6d
14 changed files with 1753 additions and 5 deletions

View File

@@ -154,7 +154,7 @@ libwhisper.so: ggml.o whisper.o
$(CXX) $(CXXFLAGS) -shared -o libwhisper.so ggml.o whisper.o $(LDFLAGS)
clean:
rm -f *.o main stream command bench libwhisper.a libwhisper.so
rm -f *.o main stream command talk bench libwhisper.a libwhisper.so
#
# Examples
@@ -172,6 +172,9 @@ stream: examples/stream/stream.cpp ggml.o whisper.o
command: examples/command/command.cpp ggml.o whisper.o
$(CXX) $(CXXFLAGS) examples/command/command.cpp ggml.o whisper.o -o command $(CC_SDL) $(LDFLAGS)
talk: examples/talk/talk.cpp examples/talk/gpt-2.cpp ggml.o whisper.o
$(CXX) $(CXXFLAGS) examples/talk/talk.cpp examples/talk/gpt-2.cpp ggml.o whisper.o -o talk $(CC_SDL) $(LDFLAGS)
bench: examples/bench/bench.cpp ggml.o whisper.o
$(CXX) $(CXXFLAGS) examples/bench/bench.cpp ggml.o whisper.o -o bench $(LDFLAGS)