Commit Graph

745 Commits

Author SHA1 Message Date
Adam Treat
ee016e10ab Send info on how many are running into this error. 2023-05-08 08:31:35 -04:00
Adam Treat
e0c9d7f8e0 Fail early/gracefully if incompatible hardware detected. And default to universal builds on mac. 2023-05-08 08:23:00 -04:00
Adam Treat
4bcc88b051 Convert the old format properly. 2023-05-08 05:53:16 -04:00
Adam Treat
fb464bb60e Add debug for chatllm model loading and fix order of getting rid of the
dummy chat when no models are restored.
2023-05-07 14:40:02 -04:00
Adam Treat
3a039c8dc1 Deserialize one at a time and don't block gui until all of them are done. 2023-05-07 09:20:09 -04:00
Adam Treat
fc8c158fac Use last lts for this. 2023-05-07 06:39:32 -04:00
Adam Treat
280ad04c63 The GUI should come up immediately and not wait on deserializing from disk. 2023-05-06 20:01:14 -04:00
Adam Treat
ec7ea8a550 Move the location of the chat files to the model download directory and add a magic+version. 2023-05-06 18:51:49 -04:00
Aaron Miller
516a7ffa23 add name to LICENSE 2023-05-06 13:11:39 -04:00
Adam Treat
eb294d5623 Bump the version and save up to an order of magnitude of disk space for chat files. 2023-05-05 20:12:00 -04:00
Adam Treat
6ba0a1b693 Turn off saving chats to disk by default as it eats so much disk space. 2023-05-05 12:30:11 -04:00
Adam Treat
ba76cecbdf Bump the version. 2023-05-05 11:43:25 -04:00
Adam Treat
b7b2ff8bab Add reverse prompt support for gptj too. 2023-05-05 11:16:24 -04:00
Adam Treat
c2a81e5692 Add about dialog. 2023-05-05 10:47:05 -04:00
Adam Treat
cd83723ed7 Persistent state for gpt-j models too. 2023-05-05 10:00:17 -04:00
Adam Treat
a548448fcf Don't crash if state has not been set. 2023-05-05 10:00:17 -04:00
Richard Guo
561acf81d7 Update monorepo_plan.md 2023-05-05 09:32:45 -04:00
Aaron Miller
56e9fd7e63 include <cstdint> in llmodel.h 2023-05-04 20:36:19 -04:00
Adam Treat
01e582f15b First attempt at providing a persistent chat list experience.
Limitations:

1) Context is not restored for gpt-j models
2) When you switch between different model types in an existing chat
   the context and all the conversation is lost
3) The settings are not chat or conversation specific
4) The sizes of the chat persisted files are very large due to how much
   data the llama.cpp backend tries to persist. Need to investigate how
   we can shrink this.
2023-05-04 15:31:41 -04:00
Adam Treat
02c9bb4ac7 Restore the model when switching chats. 2023-05-03 12:45:14 -04:00
Adam Treat
078675386f Experiment with a much shorter default prompt template. 2023-05-03 12:19:14 -04:00
Adam Treat
97ec9074e5 Add reverse prompts for llama models. 2023-05-03 11:58:26 -04:00
Adam Treat
fec5093351 Don't exceed the window size for dialogs. 2023-05-03 08:37:45 -04:00
Adam Treat
005898b1bc Changes the datalake feature so all conversations are captured when opted-in. 2023-05-03 07:54:45 -04:00
Aaron Miller
f487118007 download: make model downloads resumable
* save files as `incomplete-{filename}` in the dest folder
* rename into place after hash is confirmed or delete if hash is bad
* resume downloads using http `range`
* if DL is resumed from a different app session rewind a bit -
  this is to deal with the case where the file size changes before
  the content is fully flushed out
* flush dest file at end of readyRead, this mitigates the above
  and provides backpressure on the download if the destination disk
  is slower than the network connection
2023-05-02 20:36:25 -04:00
Adam Treat
db094c5b92 More extensive usage stats to help diagnose errors and problems in the ui. 2023-05-02 20:31:17 -04:00
Adam Treat
f8c3ae6cc7 Some more startup info to help determine what hardware we need to support. 2023-05-02 16:24:06 -04:00
Adam Treat
a7c02a52ca Don't block the GUI when reloading via combobox. 2023-05-02 15:02:25 -04:00
Adam Treat
745a8c3ac5 Provide a confirm button for deletion of chats. 2023-05-02 12:36:21 -04:00
Adam Treat
60acc18625 Use different border colors if we're current or being edited. 2023-05-02 11:34:39 -04:00
Adam Treat
6a905d38d9 Update the right index when removing. 2023-05-02 11:26:21 -04:00
Adam Treat
c217b7538a Generate names via llm. 2023-05-02 11:19:17 -04:00
Zach Nussbaum
d1ec122079 Merge pull request #472 from berkantay/main
Update README.md
2023-05-02 10:15:40 -04:00
Adam Treat
1e6e682156 Always have a chat. 2023-05-02 09:07:28 -04:00
Adam Treat
c3d923cdc7 Don't add new chats willy nilly. 2023-05-02 07:53:09 -04:00
Adam Treat
548e68ee0c Allow removing chats. 2023-05-01 20:56:53 -04:00
Adam Treat
d91dd567e2 Hot swapping of conversations. Destroys context for now. 2023-05-01 20:27:07 -04:00
Adam Treat
925ad70833 Turn the chat list into a model. 2023-05-01 17:13:20 -04:00
Richard Guo
424b680b42 rough draft of monorepo plan 2023-05-01 15:45:39 -04:00
Richard Guo
6304f6d322 mono repo structure 2023-05-01 15:45:23 -04:00
Adam Treat
463c1474dc Provide convenience methods for adding/removing/changing chat. 2023-05-01 14:24:16 -04:00
Adam Treat
1b1c3f6333 Break out the drawer into own component. 2023-05-01 13:51:46 -04:00
Adam Treat
482f543675 Handle the fwd of important signals from LLM object so qml doesn't have to deal with which chat is current. 2023-05-01 12:41:03 -04:00
Adam Treat
8b94a23253 Continue to shrink the API space for qml and the backend. 2023-05-01 12:30:54 -04:00
Adam Treat
385743b302 Consolidate these into single api from qml to backend. 2023-05-01 12:24:51 -04:00
Adam Treat
414a12c33d Major refactor in prep for multiple conversations. 2023-05-01 09:10:05 -04:00
Adam Treat
75c8bf28a1 Move the reset and id into the chat object. 2023-04-30 21:05:54 -04:00
Adam Treat
bbffa7364b Add new C++ version of the chat model. Getting ready for chat history. 2023-04-30 20:28:43 -04:00
AT
83609bf8a5 Update README.md 2023-04-30 16:07:59 -04:00
AT
5bf8d48b3b Update README.md 2023-04-30 09:05:26 -04:00