Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
text-generation-inference
Commits
9946165e
Unverified
Commit
9946165e
authored
Feb 16, 2024
by
OlivierDehaene
Committed by
GitHub
Feb 16, 2024
Browse files
chore: add pre-commit (#1569)
parent
142cdabe
Changes
78
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
66 additions
and
50 deletions
+66
-50
.github/ISSUE_TEMPLATE/bug-report.yml
.github/ISSUE_TEMPLATE/bug-report.yml
+5
-5
.github/ISSUE_TEMPLATE/feature-request.yml
.github/ISSUE_TEMPLATE/feature-request.yml
+1
-1
.github/workflows/autodocs.yml
.github/workflows/autodocs.yml
+3
-3
.github/workflows/build_pr_documentation.yml
.github/workflows/build_pr_documentation.yml
+1
-1
.github/workflows/tests.yaml
.github/workflows/tests.yaml
+4
-5
.github/workflows/upload_pr_documentation.yml
.github/workflows/upload_pr_documentation.yml
+1
-1
.gitignore
.gitignore
+0
-1
.pre-commit-config.yaml
.pre-commit-config.yaml
+18
-0
README.md
README.md
+2
-2
benchmark/Cargo.toml
benchmark/Cargo.toml
+0
-1
benchmark/README.md
benchmark/README.md
+4
-4
clients/python/.gitignore
clients/python/.gitignore
+1
-1
clients/python/Makefile
clients/python/Makefile
+1
-1
clients/python/README.md
clients/python/README.md
+4
-4
clients/python/text_generation/types.py
clients/python/text_generation/types.py
+1
-0
docs/index.html
docs/index.html
+1
-1
docs/openapi.json
docs/openapi.json
+1
-1
docs/source/basic_tutorials/consuming_tgi.md
docs/source/basic_tutorials/consuming_tgi.md
+12
-12
docs/source/basic_tutorials/non_core_models.md
docs/source/basic_tutorials/non_core_models.md
+3
-3
docs/source/basic_tutorials/preparing_model.md
docs/source/basic_tutorials/preparing_model.md
+3
-3
No files found.
.github/ISSUE_TEMPLATE/bug-report.yml
View file @
9946165e
.github/ISSUE_TEMPLATE/feature-request.yml
View file @
9946165e
.github/workflows/autodocs.yml
View file @
9946165e
.github/workflows/build_pr_documentation.yml
View file @
9946165e
.github/workflows/tests.yaml
View file @
9946165e
...
...
@@ -71,12 +71,11 @@ jobs:
pip install pytest
export HUGGING_FACE_HUB_TOKEN=${{ secrets.HUGGING_FACE_HUB_TOKEN }}
pytest -s -vv server/tests
-
name
:
Run Rust fmt
-
name
:
Pre-commit checks
run
:
|
cargo fmt --check
-
name
:
Run Rust clippy
run
:
|
cargo clippy
pip install pre-commit
pre-commit install
pre-commit run --all-files
-
name
:
Run Rust tests
run
:
|
cargo test
...
...
.github/workflows/upload_pr_documentation.yml
View file @
9946165e
.gitignore
View file @
9946165e
...
...
@@ -11,4 +11,3 @@ server/exllama_kernels/exllama_kernels/hip_func/
*_hip.cuh
server/exllama_kernels/exllama_kernels/hip_buffers.cuh
server/exllama_kernels/exllama_kernels/exllama_ext_hip.cpp
.pre-commit-config.yaml
0 → 100644
View file @
9946165e
repos
:
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v4.5.0
hooks
:
-
id
:
check-yaml
-
id
:
end-of-file-fixer
-
id
:
trailing-whitespace
exclude
:
docs/source/basic_tutorials/launcher.md
-
repo
:
https://github.com/psf/black
rev
:
24.2.0
hooks
:
-
id
:
black
-
repo
:
https://github.com/doublify/pre-commit-rust
rev
:
v1.0
hooks
:
-
id
:
fmt
-
id
:
cargo-check
-
id
:
clippy
README.md
View file @
9946165e
benchmark/Cargo.toml
View file @
9946165e
...
...
@@ -29,4 +29,3 @@ tui = {package = "ratatui", version = "0.23", default-features = false, features
tracing
=
"0.1.37"
tracing-subscriber
=
{
version
=
"0.3.17"
,
features
=
[
"json"
,
"env-filter"
]
}
hf-hub
=
"0.3.1"
benchmark/README.md
View file @
9946165e
clients/python/.gitignore
View file @
9946165e
clients/python/Makefile
View file @
9946165e
clients/python/README.md
View file @
9946165e
clients/python/text_generation/types.py
View file @
9946165e
...
...
@@ -134,6 +134,7 @@ class Parameters(BaseModel):
raise
ValidationError
(
"`value` cannot be empty for `json` grammar"
)
return
v
class
Request
(
BaseModel
):
# Prompt
inputs
:
str
...
...
docs/index.html
View file @
9946165e
docs/openapi.json
View file @
9946165e
docs/source/basic_tutorials/consuming_tgi.md
View file @
9946165e
docs/source/basic_tutorials/non_core_models.md
View file @
9946165e
docs/source/basic_tutorials/preparing_model.md
View file @
9946165e
Prev
1
2
3
4
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment