Skip to content

Commit 00a17ea

Browse files
fix: add cors_allow_origin to cli (#162)
1 parent 9d35f82 commit 00a17ea

File tree

64 files changed

+176
-118
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+176
-118
lines changed

.cargo/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ rustflags = ["-C", "target-cpu=native"]
55
rustflags = ["-C", "target-feature=+simd128"]
66

77
[target.x86_64-apple-darwin]
8-
rustflags = ["-C", "target-feature=-avx,-avx2"]
8+
rustflags = ["-C", "target-feature=-avx,-avx2"]

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ body:
55
id: system-info
66
attributes:
77
label: System Info
8-
description: |
8+
description: |
99
Please share your system info with us (`text-generation-launcher --env` if installed locally).
10-
The full command line used that causes issues:
10+
The full command line used that causes issues:
1111
OS version:
1212
Rust version (if self-compiling, `cargo version`):
1313
Model being used (`curl 127.0.0.1:8080/info | jq`):
1414
If local model please explicit the kind of model and/or equivalents.
15-
Hardware used (GPUs, how many, on which cloud) (`nvidia-smi`):
15+
Hardware used (GPUs, how many, on which cloud) (`nvidia-smi`):
1616
Deployment specificities (Kubernetes, EKS, AKS, any particular deployments):
1717
The current version being used:
1818
@@ -52,11 +52,11 @@ body:
5252
5353
placeholder: |
5454
Steps to reproduce the behavior:
55-
55+
5656
1.
5757
2.
5858
3.
59-
59+
6060
6161
- type: textarea
6262
id: expected-behavior

.github/ISSUE_TEMPLATE/feature-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ body:
1919
label: Motivation
2020
description: |
2121
Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too.
22-
22+
2323
2424
- type: textarea
2525
id: contribution

.github/workflows/build_86.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,3 @@
131131
tags: ${{ steps.meta-86-grpc.outputs.tags }}
132132
labels: ${{ steps.meta-86-grpc.outputs.labels }}
133133
cache-from: type=registry,ref=registry.internal.huggingface.tech/api-inference/text-embeddings-inference:cache-86,mode=max
134-

.github/workflows/build_89.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,3 @@
131131
tags: ${{ steps.meta-89-grpc.outputs.tags }}
132132
labels: ${{ steps.meta-89-grpc.outputs.labels }}
133133
cache-from: type=registry,ref=registry.internal.huggingface.tech/api-inference/text-embeddings-inference:cache-89,mode=max
134-

.github/workflows/build_90.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,3 @@
131131
tags: ${{ steps.meta-90-grpc.outputs.tags }}
132132
labels: ${{ steps.meta-90-grpc.outputs.labels }}
133133
cache-from: type=registry,ref=registry.internal.huggingface.tech/api-inference/text-embeddings-inference:cache-90,mode=max
134-
135-
136-

.github/workflows/build_cpu.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,3 @@
129129
tags: ${{ steps.meta-cpu-grpc.outputs.tags }}
130130
labels: ${{ steps.meta-cpu-grpc.outputs.labels }}
131131
cache-from: type=registry,ref=registry.internal.huggingface.tech/api-inference/text-embeddings-inference:cache-cpu,mode=max
132-

.github/workflows/build_documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
languages: en
2020
secrets:
2121
token: ${{ secrets.HUGGINGFACE_PUSH }}
22-
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
22+
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}

.github/workflows/build_pr_documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ jobs:
1717
pr_number: ${{ github.event.number }}
1818
package: text-embeddings-inference
1919
additional_args: --not_python_module
20-
languages: en
20+
languages: en

.github/workflows/liniting.yaml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Linting Tests
2+
3+
on:
4+
pull_request:
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
run_tests:
12+
runs-on: ubuntu-latest
13+
14+
env:
15+
SCCACHE_GHA_ENABLED: "on"
16+
RUSTC_WRAPPER: /usr/local/bin/sccache
17+
SCCACHE: 0.3.3
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Install Rust
22+
uses: actions-rs/toolchain@v1
23+
with:
24+
# Released on: 28 December, 2023
25+
# Branched from master on: 10 November, 2023
26+
# https://releases.rs/docs/1.75.0/
27+
toolchain: 1.75.0
28+
override: true
29+
components: rustfmt, clippy
30+
- name: Install Protoc
31+
uses: arduino/setup-protoc@v1
32+
- name: Clean unused files
33+
run: |
34+
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
35+
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
36+
- name: Install sccache
37+
run: |
38+
curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sccache-v$SCCACHE-x86_64-unknown-linux-musl.tar.gz | tar -xzv --strip-components=1 -C /usr/local/bin sccache-v$SCCACHE-x86_64-unknown-linux-musl/sccache
39+
chmod +x /usr/local/bin/sccache
40+
- name: configure sccache
41+
uses: actions/github-script@v6
42+
with:
43+
script: |
44+
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
45+
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
46+
core.exportVariable('SCCACHE_GHA_CACHE_TO', 'sccache-${{runner.os}}-${{github.ref_name}}');
47+
core.exportVariable('SCCACHE_GHA_CACHE_FROM', 'sccache-${{runner.os}}-main,sccache-${{runner.os}}-');
48+
- name: cargo registry cache
49+
uses: actions/cache@v3
50+
with:
51+
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-${{ github.sha }}
52+
restore-keys: |
53+
cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-
54+
cargo-${{ runner.os }}-
55+
path: |
56+
~/.cargo/registry
57+
~/.cargo/git
58+
- name: Build
59+
run: |
60+
cargo build
61+
- name: Pre-commit checks
62+
run: |
63+
pip install pre-commit
64+
pre-commit install
65+
pre-commit run --all-files
66+
- name: sccache stats
67+
run: |
68+
/usr/local/bin/sccache --show-stats

0 commit comments

Comments
 (0)