summaryrefslogtreecommitdiff
path: root/candle-transformers
diff options
context:
space:
mode:
authorDave Lage <rockerboo@gmail.com>2024-05-28 00:08:00 -0400
committerGitHub <noreply@github.com>2024-05-28 06:08:00 +0200
commitea260aeffdf97d0231cdb5cf6d31d33adfc4d4b0 (patch)
tree6050fb9d81cdca16ce36db8b43b254f9ee684fdc /candle-transformers
parent0814dfd148474f436bb43314fc41639a7b429aab (diff)
downloadcandle-ea260aeffdf97d0231cdb5cf6d31d33adfc4d4b0.tar.gz
candle-ea260aeffdf97d0231cdb5cf6d31d33adfc4d4b0.tar.bz2
candle-ea260aeffdf97d0231cdb5cf6d31d33adfc4d4b0.zip
Add Debug, Clone, Deserialize to moondream config (#2222)
Diffstat (limited to 'candle-transformers')
-rw-r--r--candle-transformers/src/models/moondream.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/candle-transformers/src/models/moondream.rs b/candle-transformers/src/models/moondream.rs
index 162f7820..e63fcf6e 100644
--- a/candle-transformers/src/models/moondream.rs
+++ b/candle-transformers/src/models/moondream.rs
@@ -3,6 +3,7 @@ use crate::models::with_tracing::{layer_norm, linear_b, LayerNorm, Linear};
use candle::{IndexOp, Module, Result, Tensor, D};
use candle_nn::VarBuilder;
+#[derive(Debug, Clone, serde::Deserialize)]
pub struct Config {
pub phi_config: PhiConfig,
pub vision_config: VisionConfig,