Coder Social home page Coder Social logo

Comments (3)

yanchlu avatar yanchlu commented on May 16, 2024

Change the "bert-joint-baseline" to "uncased_L-12_H-768_A-12"?

from language.

yanchlu avatar yanchlu commented on May 16, 2024

InvalidArgumentError (see above for traceback): Restoring from checkpoint failed. This is most likely due to a mismatch between the current graph and the graph from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:

Assign requires shapes of both tensors to match. lhs shape= [768] rhs shape= [1024]


Where does the '1024' comes from?!

python -m language.question_answering.bert_joint.prepare_nq_data
--logtostderr
--input_jsonl=tiny-data/nq-train-??.jsonl.gz
--output_tfrecord=tiny_output_dir/nq-train.tfrecords-00000-of-00001
--max_seq_length=512
--include_unknowns=0.02
--vocab_file=uncased_L-12_H-768_A-12/vocab.txt

python -m language.question_answering.bert_joint.run_nq
--logtostderr
--bert_config_file=uncased_L-12_H-768_A-12/bert_config.json
--vocab_file=uncased_L-12_H-768_A-12/vocab.txt
--train_precomputed_file=tiny_output_dir/nq-train.tfrecords-00000-of-00001
--train_num_precomputed=494670
--learning_rate=3e-5
--num_train_epochs=1
--max_seq_length=512
--save_checkpoints_steps=5000
--init_checkpoint=uncased_L-12_H-768_A-12/bert_model.ckpt
--do_train
--output_dir=bert_model_output

from language.

yanchlu avatar yanchlu commented on May 16, 2024

Oh, I forget to clean the "bert_model_output" file.

from language.

Related Issues (20)

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.