mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-27 21:12:07 +00:00
Co-authored-by: Karol Damaszke <kdamaszke@habana.ai>
This commit is contained in:
parent
32acdd55b4
commit
2eb2da5f02
@ -72,7 +72,5 @@ COPY --from=builder /usr/src/target/release/text-generation-launcher /usr/local/
|
||||
# Final image
|
||||
FROM base
|
||||
|
||||
COPY ./tgi-entrypoint.sh /tgi-entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/tgi-entrypoint.sh"]
|
||||
ENTRYPOINT ["text-generation-launcher"]
|
||||
CMD ["--json-output"]
|
||||
|
@ -1253,6 +1253,16 @@ fn terminate(process_name: &str, mut process: Child, timeout: Duration) -> io::R
|
||||
}
|
||||
|
||||
fn main() -> Result<(), LauncherError> {
|
||||
match Command::new("ldconfig").spawn() {
|
||||
Ok(_) => {}
|
||||
Err(err) => {
|
||||
tracing::warn!(
|
||||
"Unable to refresh ldconfig cache. Skipping (useless in most cases). Details {:?}",
|
||||
err
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
// Pattern match configuration
|
||||
let args: Args = Args::parse();
|
||||
|
||||
|
@ -1,5 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
ldconfig 2>/dev/null || echo 'unable to refresh ld cache, not a big deal in most cases'
|
||||
|
||||
text-generation-launcher $@
|
Loading…
Reference in New Issue
Block a user