Comments (2)
Hi, Thanks for your inputs.
Yes, this is a TODO before. I was manually changing some lines of codes. This is due to the fact that CGBERT returns 2 data structs whereas QACGBERT returns more than 2 (the others were for analyses purposes), and we forgot to change CGBERT.
The fix just checked in. It is a one line change, you can refer to it and pull the master. Or you can simply change the line by yourself.
I attached logs from my manual testing:
06/04/2021 15:51:23 - INFO - util.train_helper - model = CGBERT
init_weight = True
06/04/2021 15:51:25 - INFO - util.train_helper - retraining with saved model.
100%|█████████████████████████████████████████████████████████████████████████████████████████████| 15220/15220 [00:03<00:00, 4500.98it/s]
06/04/2021 15:51:30 - INFO - util.train_helper - ***** Running training *****
06/04/2021 15:51:30 - INFO - util.train_helper - Num examples = 15220
06/04/2021 15:51:30 - INFO - util.train_helper - Batch size = 32
06/04/2021 15:51:30 - INFO - util.train_helper - Num steps = 14268
100%|███████████████████████████████████████████████████████████████████████████████████████████████| 4000/4000 [00:00<00:00, 4346.86it/s]
Epoch: 0%| | 0/30 [00:00<?, ?it/s/dfs/user/wuzhengx/workspace/Quasi-Attention-ABSA/code/util/optimization.py:146: UserWarning: This overload of add_ is deprecated:?, ?it/s]
add_(Number alpha, Tensor other)
Consider using one of the following signatures instead:
add_(Tensor other, *, Number alpha) (Triggered internally at /pytorch/torch/csrc/utils/python_arg_parser.cpp:1005.)
next_m.mul_(beta1).add_(1 - beta1, grad)
Iteration: 8%|█████▋ | 38/476
Happy debugging! Thanks!
from quasi-attention-absa.
Hi, @frankaging thanks for your feedback. I have just run the command for training CGBERT and all went well. Thanks
from quasi-attention-absa.
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 quasi-attention-absa.