Skip to content

Commit

Permalink
fix: Allow marian configs to deserialize from json. (#2556)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikarific authored Oct 13, 2024
1 parent 6eab6b5 commit 41ade77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion candle-transformers/src/models/marian.rs
Original file line number Diff line number Diff line change
@@ -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<usize>,
Expand Down

0 comments on commit 41ade77

Please sign in to comment.