Skip to content

Commit

Permalink
fix: Allow marian configs to deserialize from json. (huggingface#2556)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikarific authored and EricLBuehler committed Nov 26, 2024
1 parent 15f3bc7 commit 7b0bab3
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 7b0bab3

Please sign in to comment.