summaryrefslogtreecommitdiff
path: root/candle-transformers/src/models/quantized_mistral.rs
diff options
context:
space:
mode:
Diffstat (limited to 'candle-transformers/src/models/quantized_mistral.rs')
-rw-r--r--candle-transformers/src/models/quantized_mistral.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/candle-transformers/src/models/quantized_mistral.rs b/candle-transformers/src/models/quantized_mistral.rs
index 00c80209..9e306c67 100644
--- a/candle-transformers/src/models/quantized_mistral.rs
+++ b/candle-transformers/src/models/quantized_mistral.rs
@@ -6,7 +6,7 @@ use std::sync::Arc;
pub use crate::models::mistral::Config;
-#[derive(Debug)]
+#[derive(Debug, Clone)]
struct RotaryEmbedding {
sin: Tensor,
cos: Tensor,
@@ -57,7 +57,7 @@ impl RotaryEmbedding {
}
}
-#[derive(Debug)]
+#[derive(Debug, Clone)]
#[allow(clippy::upper_case_acronyms)]
struct MLP {
gate_proj: Linear,
@@ -90,7 +90,7 @@ impl Module for MLP {
}
}
-#[derive(Debug)]
+#[derive(Debug, Clone)]
struct Attention {
q_proj: Linear,
k_proj: Linear,
@@ -200,7 +200,7 @@ impl Attention {
}
}
-#[derive(Debug)]
+#[derive(Debug, Clone)]
struct DecoderLayer {
self_attn: Attention,
mlp: MLP,
@@ -243,7 +243,7 @@ impl DecoderLayer {
}
}
-#[derive(Debug)]
+#[derive(Debug, Clone)]
pub struct Model {
embed_tokens: Embedding,
layers: Vec<DecoderLayer>,