use candle_core::DType;
use crate::registry::Backend;
pub(super) fn refusal(backend: &Backend, dtype: &DType) -> String {
match (backend, dtype) {
(Backend::Cpu, DType::BF16) => "bf16 matmul".to_string(),
(Backend::Cpu, dtype) => format!(
"{} matmul for this checkpoint (it is accelerator-only there)",
dtype.as_str()
),
(_, dtype) => format!(
"{} for this checkpoint (its registry cell reads unsupported there)",
dtype.as_str()
),
}
}