Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

model after running run_pretraining.py script #644

Discussion options

You must be logged in to vote

Hi @KavyaGujjala

By contextual embedding did you mean BertEmbedding in scripts/bert/embedding.py? You can modify this script with changes in https://github.com/dmlc/gluon-nlp/pull/640/files contributed by @Deseaus (which uses the load_parameters API to load the checkpoint file xx.params)

        if params_path:
            logger.info('Loading params from %s', params_path)
            self.bert.load_parameters(params_path, ctx=ctx, ignore_extra=True)

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by szha
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #644 on August 30, 2020 19:13.