mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
fix error in passing flags to router
This commit is contained in:
parent
81c9ad7073
commit
53ad84dac7
@ -1207,18 +1207,14 @@ fn spawn_webserver(
|
||||
format!("{}-0", args.shard_uds_path),
|
||||
"--tokenizer-name".to_string(),
|
||||
args.model_id,
|
||||
"--disable-usage-stats".to_string(),
|
||||
args.disable_usage_stats.to_string(),
|
||||
"--disable-crash-reports".to_string(),
|
||||
args.disable_crash_reports.to_string(),
|
||||
];
|
||||
|
||||
// Pass usage stats flags to router
|
||||
if args.disable_usage_stats {
|
||||
router_args.push("--usage-stats".to_string());
|
||||
router_args.push("--disable-usage-stats".to_string());
|
||||
}
|
||||
if args.disable_crash_reports {
|
||||
router_args.push("--crash-reports".to_string());
|
||||
router_args.push("--disable-crash-reports".to_string());
|
||||
}
|
||||
|
||||
// Grammar support
|
||||
|
Loading…
Reference in New Issue
Block a user