Comments (2)
预训练那块的话因为我是直接拿的开源的代码,你可以参考这两个:
如果它们有实现的话可以参考着改改,没有的话就得自己改了。 改的话我建议用horvod这个库,改动不会太大,我在别的预训练上试过,没有在这里改过。
谷歌自己用tf2实现过,但我没试过是否支持转成tf1的
-https://github.com/tensorflow/models/tree/master/official/nlp
另外一个思路就是用huggingface的transformers,里面应该实现了electra的预训练,那边训练好之后转换为tf的格式
再者更简单是这个库https://simpletransformers.ai/docs/lm-specifics/。
方法挺多,自己研究研究吧😊。
from ccks2021-track2-code.
感谢大佬指点,这就去试试~
from ccks2021-track2-code.
Related Issues (6)
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 ccks2021-track2-code.