Skip to content

Commit a2a97b0

Browse files
authored
Fix CI . (#2118)
Fix clippy.
1 parent fc9c315 commit a2a97b0

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ this will impact performance.
153153
### Distributed Tracing
154154

155155
`text-generation-inference` is instrumented with distributed tracing using OpenTelemetry. You can use this feature
156-
by setting the address to an OTLP collector with the `--otlp-endpoint` argument. The default service name can be
156+
by setting the address to an OTLP collector with the `--otlp-endpoint` argument. The default service name can be
157157
overridden with the `--otlp-service-name` argument
158158

159159
### Architecture

benchmark/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
147147
tracing::info!("Downloading tokenizer");
148148

149149
// Parse Huggingface hub token
150-
let auth_token = std::env::var("HF_TOKEN").or_else(|_| std::env::var("HUGGING_FACE_HUB_TOKEN")).ok();
150+
let auth_token = std::env::var("HF_TOKEN")
151+
.or_else(|_| std::env::var("HUGGING_FACE_HUB_TOKEN"))
152+
.ok();
151153

152154
// Download and instantiate tokenizer
153155
// We need to download it outside of the Tokio runtime

launcher/src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ fn num_cuda_devices() -> Option<usize> {
762762
Err(_) => match env::var("NVIDIA_VISIBLE_DEVICES") {
763763
Ok(devices) => devices,
764764
Err(_) => env::var("ZE_AFFINITY_MASK").ok()?,
765-
}
765+
},
766766
};
767767
let n_devices = devices.split(',').count();
768768
Some(n_devices)
@@ -1225,7 +1225,6 @@ fn spawn_webserver(
12251225
router_args.push("--otlp-service-name".to_string());
12261226
router_args.push(otlp_service_name);
12271227

1228-
12291228
// CORS origins
12301229
for origin in args.cors_allow_origin.into_iter() {
12311230
router_args.push("--cors-allow-origin".to_string());

router/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ async fn main() -> Result<(), RouterError> {
159159
});
160160

161161
// Parse Huggingface hub token
162-
let authorization_token = std::env::var("HF_TOKEN").or_else(|_| std::env::var("HUGGING_FACE_HUB_TOKEN")).ok();
162+
let authorization_token = std::env::var("HF_TOKEN")
163+
.or_else(|_| std::env::var("HUGGING_FACE_HUB_TOKEN"))
164+
.ok();
163165

164166
// Tokenizer instance
165167
// This will only be used to validate payloads

0 commit comments

Comments
 (0)