Can't get Config to work on this Bert based models. #1907
Unanswered
martin-conur
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to implement this model for text summarization:
option 1: mrm8488/bert2bert_shared-spanish-finetuned-summarization
option 2: "Narrativa/bsc_roberta2roberta_shared-spanish-finetuned-mlsum-summarization
I'm using the following:
use candle_transformers::models::bert::Config;
let config = std::fs::read_to_string(config_filename)?;
let mut config: Config = serde_json::from_str(&config)?;
But I get this error: missing field
hidden_size
at line 171 column 1I suppose that doesn't have the same structure that it needs.
Beta Was this translation helpful? Give feedback.
All reactions