generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from mloncode/prepare-v0.0.1-release
Prepare v0.0.1 release
- Loading branch information
Showing
24 changed files
with
278 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,6 @@ | |
.idea | ||
.qodana | ||
build | ||
.venv | ||
.DS_Store | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
# Python server | ||
Usage: | ||
|
||
`python server.py [-p PORT] [-a HOSTNAME| address]` | ||
Note: On macOS, MPS [requires](https://github.com/huggingface/transformers/issues/22502) Torch nightly. | ||
|
||
Default address is `localhost`, default port is `8000` | ||
Usage: | ||
|
||
Call to API using curl: | ||
`python server.py -p 8080 --model` | ||
|
||
`curl -X POST [ADDRESS]:[PORT] --data "your_text_here"` | ||
|
||
In response json in form `{"text": "another_text_here"}` will be returned. | ||
Call the API using curl: | ||
|
||
Example: | ||
```sh | ||
curl -X POST localhost:8080/generate --data "{ 'prompt': 'def ping_with_back_off():\n ' }" | ||
``` | ||
|
||
`python server.py -p 8000 -a localhost` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
accelerate==0.23.0 | ||
bitsandbytes==0.41.1 | ||
certifi==2023.7.22 | ||
charset-normalizer==3.2.0 | ||
filelock==3.12.4 | ||
fsspec==2023.9.0 | ||
huggingface-hub==0.17.1 | ||
idna==3.4 | ||
Jinja2==3.1.2 | ||
MarkupSafe==2.1.3 | ||
mpmath==1.3.0 | ||
networkx==3.1 | ||
numpy==1.25.2 | ||
packaging==23.1 | ||
psutil==5.9.5 | ||
PyYAML==6.0.1 | ||
regex==2023.8.8 | ||
requests==2.31.0 | ||
safetensors==0.3.3 | ||
sympy==1.12 | ||
tokenizers==0.13.3 | ||
torch>=2.1.0 | ||
tqdm==4.66.1 | ||
transformers==4.33.1 | ||
typing_extensions==4.7.1 | ||
urllib3==2.0.4 |
Oops, something went wrong.