mirror of
https://github.com/huggingface/candle.git
synced 2025-06-19 03:54:56 +00:00
Transpose the weight matrixes for llama2.c. (#321)
This commit is contained in:
@ -101,6 +101,13 @@ impl Device {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_cpu(&self) -> bool {
|
||||
match self {
|
||||
Self::Cpu => true,
|
||||
Self::Cuda(_) => false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_cuda(&self) -> bool {
|
||||
match self {
|
||||
Self::Cpu => false,
|
||||
|
Reference in New Issue
Block a user