1
mirror of https://github.com/cocktailpeanut/dalai synced 2024-11-25 09:27:20 +01:00
Commit Graph

60 Commits

Author SHA1 Message Date
cocktailpeanut
dfeecdbb58 Edge case handling
Always re-convert because something may have gone wrong but the file still exists.

Also use the official ipfs gateway for downloading instead of cloudflare for reliability
2023-03-16 22:05:44 -04:00
cocktailpeanut
a32b544014 windows fix 2023-03-16 19:57:02 -04:00
cocktailpeanut
d15b1a4770 update 2023-03-16 19:15:14 -04:00
cocktailpeanut
9cea2a1e43 debug 2023-03-16 18:55:48 -04:00
cocktailpeanut
f2928cc0d8 update ver 2023-03-16 18:50:13 -04:00
cocktailpeanut
f38b81b156 Merge branch 'main' of https://github.com/cocktailpeanut/dalai 2023-03-16 18:49:16 -04:00
cocktailpeanut
a4cbf1c73c dalai alpaca 2023-03-16 18:46:41 -04:00
cocktailpeanut
e205d14dca update docs 2023-03-16 02:08:25 -04:00
cocktailpeanut
6f3fba9009 More error logging in case something fails 2023-03-15 23:11:54 -04:00
cocktailpeanut
53049e3693 debug 2023-03-15 22:15:23 -04:00
cocktailpeanut
3b0b44419e web ui documentation 2023-03-15 21:32:47 -04:00
cocktailpeanut
607f17af29 revert docs 2023-03-15 20:03:09 -04:00
cocktailpeanut
c0507d51b7 troubleshoot for windows in case install fails 2023-03-15 19:45:18 -04:00
cocktailpeanut
4a000f4825 npm update 2023-03-15 17:43:22 -04:00
cocktailpeanut
00674a762f update documentation 2023-03-15 15:17:27 -04:00
cocktailpeanut
16c2ee7c5e Documentation
1. System requirements
2. Quickstart for each platform (now supports Windows and Linux)
2023-03-15 15:09:43 -04:00
cocktailpeanut
83fb25efd5 cleanup 2023-03-15 14:02:45 -04:00
cocktailpeanut
0517e12afc [windows] path fix + terminal width fix
the terminal width must be wider, otherwise the lines get wrapped and the startpattern is incorrectly parsed
2023-03-15 14:01:00 -04:00
cocktailpeanut
9561e0d6e7 Use Visual Studio on Windows
1. revert ninja + mingw => need visual studio anyway to even begin, so might as well recommend installing vs before installing dalai. it's simpler too.
2. path resolution
2023-03-15 13:48:17 -04:00
cocktailpeanut
e9a1ba4247 . 2023-03-15 09:25:15 -07:00
cocktailpeanut
ac1a6d3da7 win32 support
- use ninja generator for cmake
- use mingw64 gcc/g++
- different path for the built binaries on windows
2023-03-15 09:24:47 -07:00
cocktailpeanut
4c96d43e6a Different folder structure for win32 binary 2023-03-14 18:20:25 -07:00
cocktailpeanut
6eb0daa335 Do not assume that virtualenv is installed by default on win32 and darwin 2023-03-14 21:02:43 -04:00
cocktailpeanut
895dec3bb7 Merge branch 'main' of https://github.com/cocktailpeanut/dalai 2023-03-14 20:19:14 -04:00
cocktailpeanut
e33ad58ed3 Remove native program dependencies
1. Use isomorphic-git to avoid requiring users to install git separately
2. On windows, do not assume python is already installed. Instead, download a self-contained python and use this.
2023-03-14 20:17:16 -04:00
cocktailpeanut
1a4d9c6382
Merge pull request #46 from EliasVincent/node-version
Throw error if Node version is below 18
2023-03-14 17:12:53 -07:00
EliasVincent
472784ffd7 throw error if Node version is below 18 2023-03-15 00:12:40 +01:00
cocktailpeanut
86b62ab625 use pip 2023-03-14 00:47:22 -04:00
cocktailpeanut
172ac0374a use winget 2023-03-14 00:46:09 -04:00
cocktailpeanut
afe97fdbeb win + linux 2023-03-14 00:40:24 -04:00
cocktailpeanut
19198cf3e0 0.1.0 2023-03-13 16:37:24 -04:00
cocktailpeanut
0de53463e6 Update
- manually setting home: handle by passing in the argument instead of using the ENV variable (for flexibility)
- installed() API
- better exception handling
- request() now takes a "url" attribute (Previously the url was being set in the constructor, this is not really correct, so moved it to the request() method)
- added 2 latest attributes: `repeat_last_n`, `repeat_penalty`
- changed `skipEnd` to `skip_end` to be consistent with the rest of the request spec
- web UI update: less brutalist. expose all customizable knobs in the header. display all currently installed models using the new `installed()` api
2023-03-13 16:11:47 -04:00
cocktailpeanut
118547742d
Merge pull request #19 from EliasVincent/venv
Use venv for pip and python commands
2023-03-13 12:48:47 -04:00
cocktailpeanut
43e76211ed
Merge branch 'main' into venv 2023-03-13 12:47:12 -04:00
cocktailpeanut
9dcc96dfdd
Merge pull request #16 from marcuswestin/main
Multiple improvements:
2023-03-13 12:42:05 -04:00
EliasVincent
b332c3a54a use venv for pip and python commands 2023-03-13 13:59:55 +01:00
Marcus Westin
54e2457980 Remove warning on server startup
See https://github.com/expressjs/body-parser#extended for more info
2023-03-13 07:24:52 -04:00
Marcus Westin
7f763e5ee0 Rename "yarn make-model" to "yarn dalai:llama", since that it what it does 2023-03-13 07:10:30 -04:00
Marcus Westin
15c7713f17 Put the llama/dalai directory in CWD by default, but allow for specifying where to put it with "LLAMA_DIR" environment variable 2023-03-13 06:59:04 -04:00
Marcus Westin
2fa081d802 Allow for "yarn just:run <MODEL>" 2023-03-13 06:40:53 -04:00
Marcus Westin
f5467f77f7 Log every execution statement during download and process 2023-03-13 06:40:35 -04:00
Marcus Westin
a701a66798 Allow for the server to optionally end a response with "\n\n<end>" 2023-03-13 06:40:12 -04:00
Marcus Westin
731d422d6b Log every query that comes in on the server 2023-03-13 06:39:38 -04:00
Marcus Westin
2732d36e22 Allow for specifying which model to run in the UI, and if the model has not been downloaded and processed yet then return an error message with instructions for how to 2023-03-13 06:39:12 -04:00
Marcus Westin
17f9bb1278 Exit with success exit code success 2023-03-13 06:36:21 -04:00
Marcus Westin
f65e03e6c1 Skip conversion and quantizing if they have already been done 2023-03-13 06:09:58 -04:00
Marcus Westin
83093ac689 Dont download files if they already exist 2023-03-13 05:06:16 -04:00
Marcus Westin
e62611fa2f Add .prettierignore file to avoid auto-formatting files (and complicate PR merges); but also add .prettierrc and yarn script to auto-format the entire repo to encourage the decision to enable this ability 2023-03-13 04:43:06 -04:00
Marcus Westin
926303a3c9 Add ./dalai script which runs the cli script for test running, and fix yarn scripts 2023-03-13 04:40:16 -04:00
Marcus Westin
d138a8f733 Remove unused line of code with syntax error 2023-03-13 04:38:53 -04:00