caoyu-noob / d3 Goto Github PK
View Code? Open in Web Editor NEWThe implementation for ACL 2022 paper
The implementation for ACL 2022 paper
When I run train_gpt2.sh, I get this error:
Traceback (most recent call last):
File "train.py", line 500, in <module>
main()
File "train.py", line 492, in main
model, tokenizer = get_model_and_tokenizer(args, trainer_config, logger)
File "train.py", line 105, in get_model_and_tokenizer
model = GPT2DoubleHeadsModel.from_pretrained('/home/ma-user/work/baojianzhu/gpt2')
File "/home/ma-user/anaconda3/envs/d3/lib/python3.7/site-packages/transformers/modeling_utils.py", line 852, in from_pretrained
model = cls(config, *model_args, **model_kwargs)
File "/home/ma-user/work/baojianzhu/grounded/D3/model/gpt2_model.py", line 847, in __init__
self.transformer = GPT2Model(config, sinlge_input=True)
File "/home/ma-user/work/baojianzhu/grounded/D3/model/gpt2_model.py", line 500, in __init__
self.h = nn.ModuleList([Block(config.n_ctx, config, scale=True, single_input=sinlge_input) for _ in range(config.n_layer)])
File "/home/ma-user/work/baojianzhu/grounded/D3/model/gpt2_model.py", line 500, in <listcomp>
self.h = nn.ModuleList([Block(config.n_ctx, config, scale=True, single_input=sinlge_input) for _ in range(config.n_layer)])
File "/home/ma-user/work/baojianzhu/grounded/D3/model/gpt2_model.py", line 282, in __init__
self.shared_attention = config.shared_attention
AttributeError: 'GPT2Config' object has no attribute 'shared_attention'
I checked the transformer version but didn't solve this issue. Could you give me some clues?
Hi , I found a bug while running your tutorial.
In train_nli_model.py , following script(line136,137) is disrupting learning.
if step >= 32: break
In dataset.py, from .postprocessing import augment_replica.
But I can't find the postprocessing file in this repo.
Could you tell me how to deal with this? Thank a lot!
Hi, first of all, thank you for sharing your code!
Could you also share your generation results of GPT2-D3 and Trans-D3 with the text file?
It would be great if I could compare your generation results.
My email address is "[email protected]".
I look forward to hearing back from you!
Does the C-score metric in the paper represent the entail_score in the external_metrics_func function?
Also, is the model used to calculate the entail_score the same as the model used for Persona distillation?
Could you share your model for calculating the C-score?
Furthermore, I did not find the BSf metric in the results, how can I calculate this?
Thanks a lot!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.