1
0
mirror of https://github.com/fauxpilot/fauxpilot.git synced 2025-03-12 04:36:10 -07:00
Commit Graph

124 Commits

Author SHA1 Message Date
Parth Thakkar
4bf40cdb6c Some minor ergonomic changes for python backend
- Add validation rule to ensure  is set to fastertransformer or python-backend
- Add warning if model is unavailable, likely the user has not set  correctly

Signed-off-by: Parth Thakkar <thakkarparth007@gmail.com>
2023-01-02 18:54:51 +05:30
Fred de Gier
8df5058c5c
Merge pull request from leemgs/upstream-pr-template
github: added PULL_REQEUEST_TEMPLATE for PR maintenance
2023-01-02 11:04:44 +01:00
Geunsik Lim
2d9367ae45 GitHub: added PULL_REQEUEST_TEMPLATE for PR maintenance
This commit is to improve PR template (e.g., summary, goal, description,
reproduction, and so on) that can be submitted by contributers
to evolve the FauxPilot software.

**Changelog**
 * Version 2
  - Applied comments of reviewer(s)
  - Updated the sections of a PR writing guide for readability.

 * Version 1
  - Added Pull Request template

Signed-off-by: Geunsik Lim <leemgs@gmail.com>
Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
2023-01-02 15:25:35 +09:00
Brendan Dolan-Gavitt
e18fbf5145
Merge pull request from fauxpilot/fix-streaming
Fix json formatting issue with streaming
2022-12-24 17:54:12 -05:00
Parth Thakkar
e90f1c5dc2 Discard extra newlines
Doesn't seem necessary. Copilot works without these newlines

Signed-off-by: Parth Thakkar <thakkarparth007@gmail.com>
2022-12-24 02:58:31 +05:30
Parth Thakkar
566cf7a675 Fix json formatting issue with streaming
See this and the following comment for context:

https://github.com/fauxpilot/fauxpilot/issues/1\#issuecomment-1357174072

Signed-off-by: Parth Thakkar <thakkarparth007@gmail.com>
2022-12-24 02:50:06 +05:30
Fred de Gier
7ebe8b6d5b
Merge pull request from leemgs/upstream-action-new-contributor
github: added action runner to welcome  new contributors
2022-12-22 19:55:14 +01:00
Fred de Gier
0642015c80
Merge pull request from leemgs/upstream-issue-template
github: added ISSUE_TEMPLATE for issue maintenance
2022-12-22 19:34:32 +01:00
Brendan Dolan-Gavitt
ecc47dbf96
Merge pull request from leemgs/upstream-unknow-flag-removal
feat: add option of launch.sh to avoid unknown flags issue
2022-12-20 17:57:11 -05:00
Brendan Dolan-Gavitt
df15a58544 Small fixes to launch.sh option parsing
* Fixed a small mistake that prevented the -h option from working.
* Corrected some capitalization / grammar issues in the help text.
* Removed a debug print that was left in.
2022-12-20 17:28:28 -05:00
Brendan Dolan-Gavitt
8c0a257017
Merge pull request from Frederisk/patch-3
Ignore huggingface cache
2022-11-26 18:40:57 -06:00
Rowe Wilson Frederisk Holme
e09c0030b7
Update .dockerignore 2022-11-26 22:14:50 +08:00
Rowe Wilson Frederisk Holme
bc26fb453e
Ignore huggingface cache 2022-11-26 22:14:02 +08:00
Brendan Dolan-Gavitt
3960f31bcb
Merge pull request from leemgs/upstream-converter-doc
doc: Added manual on converter script files
2022-11-24 17:04:42 -05:00
Brendan Dolan-Gavitt
5b024b9b3b
Merge pull request from leemgs/upstream-logo
doc: added logo image of FauxPilot
2022-11-24 16:41:40 -05:00
Brendan Dolan-Gavitt
c0010cd5d2
Merge pull request from Frederisk/patch-1
Fix 
2022-11-24 15:45:56 -05:00
Brendan Dolan-Gavitt
e153c17194 Fix bug introduced by Python backend merge
HF_CACHE_DIR needs to be set in .env, even if the FT backend is in
use, or docker compose will complain and fail to start.
2022-11-24 15:44:15 -05:00
Rowe Wilson Frederisk Holme
ed0695ce3a
Fix 2022-11-25 00:19:22 +08:00
Brendan Dolan-Gavitt
1b2b8ec251
Add basic CI that tests the Python backend ()
* Basic action that runs pytest

* fix indentation

* debugging actions :(

* pull the images in a separate step so it doesn't take so long to build

* Split out the container build

* Another try, fixing missing env vars
2022-11-23 21:01:29 -05:00
Brendan Dolan-Gavitt
fd484a2b03 Merge branch 'python_backend'
Add a couple commits from BDG to fix small issues.
2022-11-23 17:18:37 -05:00
Brendan Dolan-Gavitt
92dc571108
Merge pull request from thakkarparth007/python_backend
Add python backend support
2022-11-23 16:58:52 -05:00
Brendan Dolan-Gavitt
f84f040a58 remove spurious common_config and force a container build for the python backend 2022-11-23 16:58:30 -05:00
Brendan Dolan-Gavitt
7e8c74d3a6 s/docker-compose/docker compose/ and add requirements.txt 2022-11-23 16:57:16 -05:00
Parth
7ea388fe19 Fix segfault issue
I'd been using dlpack for copying triton tensors to torch tensors,
which I did because it was advertised to perform zero copy transfers.
Turns out that only worked on my laptop, and didn't work on other machines.
IDK why. But for now, I'm just copying the tensors as triton<->numpy<->torch.
That works on the VM on which earlier code was segfaulting

Signed-off-by: Parth <thakkarparth007@gmail.com>
2022-11-19 18:32:50 +00:00
Parth Thakkar
f0a12b5e8e Merge branch 'main' into python_backend
Signed-off-by: Parth Thakkar <thakkarparth007@gmail.com>
2022-11-09 12:51:16 -06:00
Parth Thakkar
fa423d1da1 Update location of hf_cache in case user doesn't want to share cache
Signed-off-by: Parth Thakkar <thakkarparth007@gmail.com>
2022-11-08 17:57:43 -06:00
Geunsik Lim
73b645b29a doc: Added manual on converter script files
This commit is to append the manual of the Python script files.

Signed-off-by: Geunsik Lim <leemgs@gmail.com>
Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
2022-11-08 19:21:37 +09:00
Geunsik Lim
1ef4c890b9 github: added action runner to welcome new contributors
This commit is to append an GitHub Action to welcome new contributors
into the FauxPilot community. This action is to post automatically a welcome
message whenever a new contributor opens a first issue or PR in this
repository.

Signed-off-by: Geunsik Lim <leemgs@gmail.com>
Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
2022-11-05 08:23:36 +09:00
Geunsik Lim
9b5ba361e4 github: added ISSUE_TEMPLATE for issue maintenance
This commit is to enable the ISSUE_TEMPLATE to maintain issues of FauxPilot
by adding the ISSUE_TEMPLATE files into the FauxPilot repository.

Signed-off-by: Geunsik Lim <leemgs@gmail.com>
Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
2022-11-05 08:05:02 +09:00
Geunsik Lim
0a5a4af5e4 doc: added logo image of FauxPilot
This commimt is to append the official logo image in the GitHub repository.

Signed-off-by: Geunsik Lim <leemgs@gmail.com>
2022-11-04 14:39:00 +09:00
Brendan Dolan-Gavitt
e5825da8be
Very important update: add a logo 2022-11-02 17:25:37 -04:00
Geunsik Lim
3ddde13f5f feat: add option of launch.sh
This PR is to add an option function for the user to selectively use
foreground mode and background mode (i.e., daemon mode).
Also, depending on the version of docker composer, the -d (daemon mode) option
may or may not be present. Therefore, this is to deal effectively with these
situations.

Signed-off-by: Geunsik Lim <leemgs@gmail.com>
Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
2022-11-02 12:21:26 +09:00
Brendan Dolan-Gavitt
00db26c3b7
Merge pull request from Frederisk/patch-3
Add EditorConfig file
2022-11-01 19:58:25 +02:00
Brendan Dolan-Gavitt
f41c21a1fb
Merge pull request from fdegier/patch-1
Add GitLab VS Code extension
2022-11-01 18:58:17 +02:00
Brendan Dolan-Gavitt
690e00467a
Merge pull request from fdegier/feat/prompt-safety-valve
feat: Return 400 for prompts that are too long
2022-11-01 18:49:19 +02:00
Brendan Dolan-Gavitt
b7b85461af Reformat the error to match OpenAI's 2022-11-01 12:46:55 -04:00
Brendan Dolan-Gavitt
87900f4fa0
Merge pull request from Frederisk/patch-4
Delete example.env
2022-10-31 22:00:43 +02:00
Rowe Wilson Frederisk Holme
65161c88e4
Delete example.env 2022-10-23 05:11:21 +08:00
Rowe Wilson Frederisk Holme
a2d6ec2215
Create .editorconfig 2022-10-23 05:03:33 +08:00
Parth Thakkar
b3bf26ba90
Merge branch 'moyix:main' into python_backend 2022-10-21 13:25:33 -05:00
Parth Thakkar
c6be12979e Fix setup issues and add test script
Signed-off-by: Parth Thakkar <thakkarparth007@gmail.com>
2022-10-21 13:23:10 -05:00
Brendan Dolan-Gavitt
ba76ccf74a
Merge pull request from Frederisk/patch-1
Remove unused ignore rule
2022-10-21 14:18:38 -04:00
Fred de Gier
2a91018792 Resolve merge conflicts and fix issues with setup.sh 2022-10-20 16:09:12 +02:00
Fred de Gier
4f936c3049 Pep8 formatting 2022-10-20 15:37:17 +02:00
Fred de Gier
e2486698e0 feat: Return a 400 if prompt exceeds max tokens 2022-10-20 14:56:39 +02:00
Rowe Wilson Frederisk Holme
5367196e3f
Remove unused ignore rule 2022-10-20 17:25:46 +08:00
Brendan Dolan-Gavitt
31d2349dbb Now that launch.sh runs in the background, add shutdown.sh to stop the server 2022-10-19 17:37:59 -04:00
Brendan Dolan-Gavitt
0fcd4fff50
Merge pull request from fdegier/main
Simplify config and port setup
2022-10-19 12:14:16 -04:00
Fred de Gier
986c342cad
Update launch.sh 2022-10-19 14:52:22 +02:00
Fred de Gier
43900971f2
Add GitLab VS Code extension 2022-10-19 14:37:06 +02:00