Comments (4)
Not yet, but I knew the model and the idea was just great. What about before this weekend?
from unif.
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.
@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 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)
- Any bugs?
- smart对抗训练 HOT 3
- question on wide and deep HOT 1
- How to load pretrained models from Hugging Face with this framework? HOT 3
- callbacks HOT 18
- 对抗训练 HOT 28
- 对抗训练tf2 HOT 5
- GPU显存溢出
- 单机多卡 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unif.