Coder Social home page Coder Social logo

task about UNILM model about unif HOT 4 OPEN

geyingli avatar geyingli commented on June 12, 2024
task about UNILM model

from unif.

Comments (4)

geyingli avatar geyingli commented on June 12, 2024

Not yet, but I knew the model and the idea was just great. What about before this weekend?

from unif.

wangbq18 avatar wangbq18 commented on June 12, 2024

Not yet, but I knew the model and the idea was just great. What about before this weekend?

I'm looking forward to it.

from unif.

geyingli avatar geyingli commented on June 12, 2024

@wangbq18 Thanks for your suggestion. UNIF now supports UniLM (≥ beta v2.4.9).

Here listed the foundation details of UniLM.
model = uf.UniLM(config_file='demo/bert_config.json', vocab_file='demo/vocab.txt', max_seq_length=128, init_checkpoint=None, output_dir=None, gpu_ids=None, drop_pooler=False, do_sample_next_sentence=True, max_predictions_per_seq=20, masked_lm_prob=0.15, short_seq_prob=0.1, do_whole_word_mask=False, mode='bi', do_lower_case=True, truncate_method='LIFO')

Say, if you wish to switch to other modes, like sequence-to-sequence language modeling. Simply by running model.to_mode('s2s'), you can make it.

The namespace of UniLM is exactly the same as BERT. After pretraining of UniLM, you can fine-tune the model on BERT-series modules, e.g. BERTClassifier, BERTMRC, and etc. Whenever you encounter any problems, please let me know :)

from unif.

wangbq18 avatar wangbq18 commented on June 12, 2024

@wangbq18 Thanks for your suggestion. UNIF now supports UniLM (≥ beta v2.4.9).

Here listed the foundation details of UniLM.
model = uf.UniLM(config_file='demo/bert_config.json', vocab_file='demo/vocab.txt', max_seq_length=128, init_checkpoint=None, output_dir=None, gpu_ids=None, drop_pooler=False, do_sample_next_sentence=True, max_predictions_per_seq=20, masked_lm_prob=0.15, short_seq_prob=0.1, do_whole_word_mask=False, mode='s2s', do_lower_case=True, truncate_method='LIFO')

Say, if you wish to switch to other modes, like sequence-to-sequence language modeling. Simply by running model.to_mode('s2s'), you can make it.

The namespace of UniLM is exactly the same as BERT. After pretraining of UniLM, you can fine-tune the model on BERT-series modules, e.g. BERTClassifier, BERTMRC, and etc. Whenever you encounter any problems, please let me know :)

Thanks for your job!

from unif.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.