Skip to content

fix: load state_dict of conda#5

Open
4turkuaz wants to merge 1 commit intoxinleihe:mainfrom
4turkuaz:main
Open

fix: load state_dict of conda#5
4turkuaz wants to merge 1 commit intoxinleihe:mainfrom
4turkuaz:main

Conversation

@4turkuaz
Copy link
Copy Markdown

@4turkuaz 4turkuaz commented Mar 7, 2024

Normally, to run ConDA experiments, there's a need for preprocessing.

The pull request covers that preprocessing part and allows user to run ConDA experiments in a smooth way. Now, Locating the downloaded pre-trained weight file namely fair_wmt19_chatgpt_syn_rep_loss1.pt under directory update_results/ConDA is sufficient. Also, files are refactored using black.

Added following parameter to the process of restoring the model_state_dict

strict=False

otherwise user would face the following error: Unexpected key(s) in state_dict: "roberta.embeddings.position_ids".

This PR resolves issue #4.

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

Successfully merging this pull request may close these issues.

1 participant