unilm icon indicating copy to clipboard operation
unilm copied to clipboard

Other Pretrained Models with Seq-Labeling Task.

Open sibtain-r opened this issue 6 years ago • 5 comments

I am using (LayoutLM): I want to use pre trained bert-base-multilingual-cased in layout lm. But i am not getting any success. Is there any thing i need to modify, other than is-decoder=false?

sibtain-r avatar Jul 19 '20 15:07 sibtain-r

Closing the issue, since i have found solution to integrate this model.

sibtain-r avatar Jul 20 '20 15:07 sibtain-r

@SibtainRazaJamali how do you do it ? thanks

yuzi1949 avatar Jul 23 '20 03:07 yuzi1949

This model simply extends bertPreTrainedModel class

  1. BertConfig.from_pretrained('bert-base-multilingual-cased',num_labels=len(labels))
  2. --pre_trained_model_path= 'bert-base-multilingual-cased'
  3. Initilize remaining embedding layers with kaiming-init
  4. For faster generalization initialize remaining layers with released pre trained versions.

You might need more data.

sibtain-r avatar Jul 23 '20 12:07 sibtain-r

@SibtainRazaJamali Is it possible to open source the code for pretraining? I want to learn how to implement this? Thanks

kwokwangliu avatar Jul 29 '20 08:07 kwokwangliu

@kwokwangliu We may release the pre-training code in the future, but no bandwidth for that right now.

wolfshow avatar Sep 21 '20 03:09 wolfshow