Git Product home page Git Product logo

d3's Issues

About the metrics.

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!

Trained Models

Hi, thank you for open-sourcing your work. Would you please consider sharing your trained models, or the responses generated using your models?

postprocessing file missing

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!

'GPT2Config' object has no attribute 'shared_attention'

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?

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.