diff --git a/candle-transformers/src/models/marian.rs b/candle-transformers/src/models/marian.rs index 05804a1c1e..c4299da601 100644 --- a/candle-transformers/src/models/marian.rs +++ b/candle-transformers/src/models/marian.rs @@ -1,8 +1,9 @@ use super::with_tracing::{linear, Embedding, Linear}; use candle::{Result, Tensor}; use candle_nn::{layer_norm, LayerNorm, VarBuilder}; +use serde::Deserialize; -#[derive(Debug, Clone)] +#[derive(Debug, Clone, Deserialize)] pub struct Config { pub vocab_size: usize, pub decoder_vocab_size: Option,