add logging in case of decoding error

This commit is contained in:
Morgan Funtowicz 2024-07-18 22:19:25 +00:00
parent 9ea7f9e950
commit 97723d1458

View File

@ -9,7 +9,7 @@ use std::time::Duration;
use async_trait::async_trait;
use cxx::UniquePtr;
use log::{debug, warn};
use log::{error, warn};
use tokenizers::Tokenizer;
use tokio::sync::mpsc::{unbounded_channel, UnboundedSender};
use tokio::sync::RwLock;
@ -261,6 +261,7 @@ impl TensorRtLlmBackend {
})
}
} else {
error!("Error caught while decoding: {}", &step.error_msg);
Err(InferError::GenerationError(step.error_msg))
};