Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't execute EditScorer #1

Open
Rastapar opened this issue May 17, 2024 · 0 comments
Open

I can't execute EditScorer #1

Rastapar opened this issue May 17, 2024 · 0 comments

Comments

@Rastapar
Copy link

Following the evaluation guide given in "scripts/edit_scorer_baselines/EVALUATION_GUIDE.md" I wasn't table to execute EditScorer. Could you add an improved usage step-by-step guide?
Here is my error:

Some weights of the model checkpoint at roberta-base were not used when initializing RobertaModel: ['lm_head.dense.weight', 'lm_head.layer_norm.weight', 'lm_head.bias', 'lm_head.layer_norm.bias', 'lm_head.decoder.weight', 'lm_head.dense.bias']
- This IS expected if you are initializing RobertaModel from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model).
- This IS NOT expected if you are initializing RobertaModel from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).
Source model weights=0.00
Traceback (most recent call last):
  File "EditScorer/apply_staged_model.py", line 103, in <module>
    alpha_source=alpha)
  File "path_to/pillars-of-gec/EditScorer/ranking/score_utils.py", line 111, in predict_by_stages
    dataset = dataset_preparer.prepare(curr_data, has_answers=("label" in data[0]))
IndexError: list index out of range
Some weights of the model checkpoint at roberta-base were not used when initializing RobertaModel: ['lm_head.dense.weight', 'lm_head.decoder.weight', 'lm_head.dense.bias', 'lm_head.layer_norm.weight', 'lm_head.bias', 'lm_head.layer_norm.bias']
- This IS expected if you are initializing RobertaModel from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model).
- This IS NOT expected if you are initializing RobertaModel from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).
Source model weights=0.00
Traceback (most recent call last):
  File "EditScorer/apply_staged_model.py", line 103, in <module>
    alpha_source=alpha)
  File "path_to/pillars-of-gec/EditScorer/ranking/score_utils.py", line 111, in predict_by_stages
    dataset = dataset_preparer.prepare(curr_data, has_answers=("label" in data[0]))
IndexError: list index out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant