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
c720555a
Unverified
Commit
c720555a
authored
Feb 16, 2023
by
OlivierDehaene
Committed by
GitHub
Feb 16, 2023
Browse files
v0.3.0 (#72)
parent
439fcaf8
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
55 deletions
+48
-55
Cargo.lock
Cargo.lock
+4
-4
docs/openapi.json
docs/openapi.json
+39
-46
launcher/Cargo.toml
launcher/Cargo.toml
+1
-1
router/Cargo.toml
router/Cargo.toml
+1
-1
router/client/Cargo.toml
router/client/Cargo.toml
+1
-1
router/grpc-metadata/Cargo.toml
router/grpc-metadata/Cargo.toml
+1
-1
server/pyproject.toml
server/pyproject.toml
+1
-1
No files found.
Cargo.lock
View file @
c720555a
...
@@ -785,7 +785,7 @@ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
...
@@ -785,7 +785,7 @@ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
[[package]]
[[package]]
name = "grpc-metadata"
name = "grpc-metadata"
version = "0.
1
.0"
version = "0.
3
.0"
dependencies = [
dependencies = [
"opentelemetry",
"opentelemetry",
"tonic",
"tonic",
...
@@ -2222,7 +2222,7 @@ dependencies = [
...
@@ -2222,7 +2222,7 @@ dependencies = [
[[package]]
[[package]]
name = "text-generation-client"
name = "text-generation-client"
version = "0.
2.1
"
version = "0.
3.0
"
dependencies = [
dependencies = [
"futures",
"futures",
"grpc-metadata",
"grpc-metadata",
...
@@ -2239,7 +2239,7 @@ dependencies = [
...
@@ -2239,7 +2239,7 @@ dependencies = [
[[package]]
[[package]]
name = "text-generation-launcher"
name = "text-generation-launcher"
version = "0.
2.1
"
version = "0.
3.0
"
dependencies = [
dependencies = [
"clap 4.1.4",
"clap 4.1.4",
"ctrlc",
"ctrlc",
...
@@ -2254,7 +2254,7 @@ dependencies = [
...
@@ -2254,7 +2254,7 @@ dependencies = [
[[package]]
[[package]]
name = "text-generation-router"
name = "text-generation-router"
version = "0.
2.1
"
version = "0.
3.0
"
dependencies = [
dependencies = [
"async-stream",
"async-stream",
"axum",
"axum",
...
...
docs/openapi.json
View file @
c720555a
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
"name"
:
"Apache 2.0"
,
"name"
:
"Apache 2.0"
,
"url"
:
"https://www.apache.org/licenses/LICENSE-2.0"
"url"
:
"https://www.apache.org/licenses/LICENSE-2.0"
},
},
"version"
:
"0.
2.1
"
"version"
:
"0.
3.0
"
},
},
"paths"
:
{
"paths"
:
{
"/generate"
:
{
"/generate"
:
{
...
@@ -38,23 +38,17 @@
...
@@ -38,23 +38,17 @@
"content"
:
{
"content"
:
{
"application/json"
:
{
"application/json"
:
{
"schema"
:
{
"schema"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/components/schemas/GenerateResponse"
"$ref"
:
"#/components/schemas/GenerateResponse"
}
}
}
}
}
}
}
},
},
"422"
:
{
"422"
:
{
"description"
:
"Input validation error"
,
"description"
:
"Input validation error"
,
"content"
:
{
"content"
:
{
"application/json"
:
{
"application/json"
:
{
"schema"
:
{
"schema"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/components/schemas/ErrorResponse"
"$ref"
:
"#/components/schemas/ErrorResponse"
}
},
},
"example"
:
{
"example"
:
{
"error"
:
"Input validation error"
"error"
:
"Input validation error"
...
@@ -67,10 +61,7 @@
...
@@ -67,10 +61,7 @@
"content"
:
{
"content"
:
{
"application/json"
:
{
"application/json"
:
{
"schema"
:
{
"schema"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/components/schemas/ErrorResponse"
"$ref"
:
"#/components/schemas/ErrorResponse"
}
},
},
"example"
:
{
"example"
:
{
"error"
:
"Request failed during generation"
"error"
:
"Request failed during generation"
...
@@ -83,10 +74,7 @@
...
@@ -83,10 +74,7 @@
"content"
:
{
"content"
:
{
"application/json"
:
{
"application/json"
:
{
"schema"
:
{
"schema"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/components/schemas/ErrorResponse"
"$ref"
:
"#/components/schemas/ErrorResponse"
}
},
},
"example"
:
{
"example"
:
{
"error"
:
"Model is overloaded"
"error"
:
"Model is overloaded"
...
@@ -99,10 +87,7 @@
...
@@ -99,10 +87,7 @@
"content"
:
{
"content"
:
{
"application/json"
:
{
"application/json"
:
{
"schema"
:
{
"schema"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/components/schemas/ErrorResponse"
"$ref"
:
"#/components/schemas/ErrorResponse"
}
},
},
"example"
:
{
"example"
:
{
"error"
:
"Incomplete generation"
"error"
:
"Incomplete generation"
...
@@ -136,25 +121,19 @@
...
@@ -136,25 +121,19 @@
"200"
:
{
"200"
:
{
"description"
:
"Generated Text"
,
"description"
:
"Generated Text"
,
"content"
:
{
"content"
:
{
"text/event-stream
"
:
{
"text/event-stream"
:
{
"schema"
:
{
"schema"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/components/schemas/StreamResponse"
"$ref"
:
"#/components/schemas/StreamResponse"
}
}
}
}
}
}
}
},
},
"422"
:
{
"422"
:
{
"description"
:
"Input validation error"
,
"description"
:
"Input validation error"
,
"content"
:
{
"content"
:
{
"text/event-stream
"
:
{
"text/event-stream"
:
{
"schema"
:
{
"schema"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/components/schemas/ErrorResponse"
"$ref"
:
"#/components/schemas/ErrorResponse"
}
},
},
"example"
:
{
"example"
:
{
"error"
:
"Input validation error"
"error"
:
"Input validation error"
...
@@ -165,12 +144,9 @@
...
@@ -165,12 +144,9 @@
"424"
:
{
"424"
:
{
"description"
:
"Generation Error"
,
"description"
:
"Generation Error"
,
"content"
:
{
"content"
:
{
"text/event-stream
"
:
{
"text/event-stream"
:
{
"schema"
:
{
"schema"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/components/schemas/ErrorResponse"
"$ref"
:
"#/components/schemas/ErrorResponse"
}
},
},
"example"
:
{
"example"
:
{
"error"
:
"Request failed during generation"
"error"
:
"Request failed during generation"
...
@@ -181,12 +157,9 @@
...
@@ -181,12 +157,9 @@
"429"
:
{
"429"
:
{
"description"
:
"Model is overloaded"
,
"description"
:
"Model is overloaded"
,
"content"
:
{
"content"
:
{
"text/event-stream
"
:
{
"text/event-stream"
:
{
"schema"
:
{
"schema"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/components/schemas/ErrorResponse"
"$ref"
:
"#/components/schemas/ErrorResponse"
}
},
},
"example"
:
{
"example"
:
{
"error"
:
"Model is overloaded"
"error"
:
"Model is overloaded"
...
@@ -197,12 +170,9 @@
...
@@ -197,12 +170,9 @@
"500"
:
{
"500"
:
{
"description"
:
"Incomplete generation"
,
"description"
:
"Incomplete generation"
,
"content"
:
{
"content"
:
{
"text/event-stream
"
:
{
"text/event-stream"
:
{
"schema"
:
{
"schema"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/components/schemas/ErrorResponse"
"$ref"
:
"#/components/schemas/ErrorResponse"
}
},
},
"example"
:
{
"example"
:
{
"error"
:
"Incomplete generation"
"error"
:
"Incomplete generation"
...
@@ -213,6 +183,29 @@
...
@@ -213,6 +183,29 @@
},
},
"deprecated"
:
false
"deprecated"
:
false
}
}
},
"/metrics"
:
{
"get"
:
{
"tags"
:
[
"Text Generation Inference"
],
"summary"
:
"Prometheus metrics scrape endpoint"
,
"description"
:
"Prometheus metrics scrape endpoint"
,
"operationId"
:
"metrics"
,
"responses"
:
{
"200"
:
{
"description"
:
"Prometheus Metrics"
,
"content"
:
{
"text/plain"
:
{
"schema"
:
{
"type"
:
"string"
}
}
}
}
},
"deprecated"
:
false
}
}
}
},
},
"components"
:
{
"components"
:
{
...
...
launcher/Cargo.toml
View file @
c720555a
[package]
[package]
name
=
"text-generation-launcher"
name
=
"text-generation-launcher"
version
=
"0.
2.1
"
version
=
"0.
3.0
"
edition
=
"2021"
edition
=
"2021"
authors
=
[
"Olivier Dehaene"
]
authors
=
[
"Olivier Dehaene"
]
description
=
"Text Generation Launcher"
description
=
"Text Generation Launcher"
...
...
router/Cargo.toml
View file @
c720555a
[package]
[package]
name
=
"text-generation-router"
name
=
"text-generation-router"
version
=
"0.
2.1
"
version
=
"0.
3.0
"
edition
=
"2021"
edition
=
"2021"
authors
=
[
"Olivier Dehaene"
]
authors
=
[
"Olivier Dehaene"
]
description
=
"Text Generation Webserver"
description
=
"Text Generation Webserver"
...
...
router/client/Cargo.toml
View file @
c720555a
[package]
[package]
name
=
"text-generation-client"
name
=
"text-generation-client"
version
=
"0.
2.1
"
version
=
"0.
3.0
"
edition
=
"2021"
edition
=
"2021"
[dependencies]
[dependencies]
...
...
router/grpc-metadata/Cargo.toml
View file @
c720555a
[package]
[package]
name
=
"grpc-metadata"
name
=
"grpc-metadata"
version
=
"0.
1
.0"
version
=
"0.
3
.0"
edition
=
"2021"
edition
=
"2021"
[dependencies]
[dependencies]
...
...
server/pyproject.toml
View file @
c720555a
[tool.poetry]
[tool.poetry]
name
=
"text-generation"
name
=
"text-generation"
version
=
"0.
2.1
"
version
=
"0.
3.0
"
description
=
"Text Generation Inference Python gRPC Server"
description
=
"Text Generation Inference Python gRPC Server"
authors
=
[
"Olivier Dehaene <olivier@huggingface.co>"
]
authors
=
[
"Olivier Dehaene <olivier@huggingface.co>"
]
...
...
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