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

ValueError: 'early_stopping' must be a boolean or 'never', but is None. #3

Open
Victordeleusse opened this issue Apr 28, 2024 · 1 comment

Comments

@Victordeleusse
Copy link

Victordeleusse commented Apr 28, 2024

This error happened even after implementation of :

class Canary(object):
    def __init__(self):
        canary_dir = download(DATA_DIR)
        canary_meta_data = os.path.join(canary_dir, 'model.opt')
        with open(canary_meta_data) as f:
            opt = json.load(f)
        **opt['early_stopping'] = False  # 'never' doesn t work neither**

        opt['skip_generation'] = False
        opt['model_file'] = os.path.join(canary_dir, 'model')
        self.agent = create_agent(opt)
@jeremychang9
Copy link

jeremychang9 commented Dec 1, 2024

This might due to installing the newer version of transformers library.
My solution is update transformers and Parlai to the latest. (transformer==4.46.3 ,parlai==1.7.2)
Still working on it, making sure that everything goes as plan.

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

2 participants