mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 19:47:12 +00:00
Proper flash-attn parameters. (#244)
* Proper flash-attn parameters. * Set the flash attention parameters. * Add more validations. * Setup the o_ flash attn parameters. * More flash-attn support. * Set more flash attn parameters.
This commit is contained in:
@ -203,3 +203,16 @@ impl Error {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! bail {
|
||||
($msg:literal $(,)?) => {
|
||||
return Err($crate::Error::Wrapped(format!($msg).into()).bt())
|
||||
};
|
||||
($err:expr $(,)?) => {
|
||||
return Err($crate::Error::Wrapped(format!($err).into()).bt())
|
||||
};
|
||||
($fmt:expr, $($arg:tt)*) => {
|
||||
return Err($crate::Error::Wrapped(format!($fmt, $($arg)*).into()).bt())
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user