Skip to content

Commit e28a809

Browse files
v0.9.0 (#525)
1 parent 2b53d71 commit e28a809

File tree

16 files changed

+375
-257
lines changed

16 files changed

+375
-257
lines changed

Cargo.lock

Lines changed: 323 additions & 180 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ members = [
88
]
99

1010
[workspace.package]
11-
version = "0.8.2"
11+
version = "0.9.0"
1212
edition = "2021"
1313
authors = ["Olivier Dehaene"]
1414
homepage = "https://github.com/huggingface/text-generation-inference"

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Rust builder
2-
FROM lukemathwalker/cargo-chef:latest-rust-1.69 AS chef
2+
FROM lukemathwalker/cargo-chef:latest-rust-1.70 AS chef
33
WORKDIR /usr/src
44

55
ARG CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ model=bigscience/bloom-560m
8484
num_shard=2
8585
volume=$PWD/data # share a volume with the Docker container to avoid downloading weights every run
8686

87-
docker run --gpus all --shm-size 1g -p 8080:80 -v $volume:/data ghcr.io/huggingface/text-generation-inference:0.8 --model-id $model --num-shard $num_shard
87+
docker run --gpus all --shm-size 1g -p 8080:80 -v $volume:/data ghcr.io/huggingface/text-generation-inference:0.9 --model-id $model --num-shard $num_shard
8888
```
8989
**Note:** To use GPUs, you need to install the [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html). We also recommend using NVIDIA drivers with CUDA version 11.8 or higher.
9090

aml/README.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

aml/deployment.yaml

Lines changed: 0 additions & 38 deletions
This file was deleted.

aml/endpoint.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

aml/model.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/openapi.json

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"name": "Apache 2.0",
1111
"url": "https://www.apache.org/licenses/LICENSE-2.0"
1212
},
13-
"version": "0.8.2"
13+
"version": "0.9.0"
1414
},
1515
"paths": {
1616
"/": {
@@ -270,6 +270,35 @@
270270
}
271271
}
272272
},
273+
"/health": {
274+
"get": {
275+
"tags": [
276+
"Text Generation Inference"
277+
],
278+
"summary": "Health check method",
279+
"description": "Health check method",
280+
"operationId": "health",
281+
"responses": {
282+
"200": {
283+
"description": "Everything is working fine"
284+
},
285+
"503": {
286+
"description": "Text generation inference is down",
287+
"content": {
288+
"application/json": {
289+
"schema": {
290+
"$ref": "#/components/schemas/ErrorResponse"
291+
},
292+
"example": {
293+
"error": "unhealthy",
294+
"error_type": "healthcheck"
295+
}
296+
}
297+
}
298+
}
299+
}
300+
}
301+
},
273302
"/info": {
274303
"get": {
275304
"tags": [

launcher/src/main.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,14 +1040,18 @@ fn main() -> Result<(), LauncherError> {
10401040
return Ok(());
10411041
}
10421042

1043-
let mut webserver = spawn_webserver(args, shutdown.clone(), &shutdown_receiver)?;
1043+
let mut webserver =
1044+
spawn_webserver(args, shutdown.clone(), &shutdown_receiver).map_err(|err| {
1045+
shutdown_shards(shutdown.clone(), &shutdown_receiver);
1046+
err
1047+
})?;
10441048

10451049
// Default exit code
10461050
let mut exit_code = Ok(());
10471051

10481052
while running.load(Ordering::SeqCst) {
10491053
if let Ok(ShardStatus::Failed((rank, err))) = status_receiver.try_recv() {
1050-
tracing::error!("Shard {rank} failed to start");
1054+
tracing::error!("Shard {rank} crashed");
10511055
if let Some(err) = err {
10521056
tracing::error!("{err}");
10531057
}

0 commit comments

Comments
 (0)