Jacob Devlin
Jacob Devlin
I added a paragraph in the README about this, thanks.
Not sure exactly what you're asking, but the core Transformer implementation is in [modeling.py](https://github.com/google-research/bert/blob/fce885483ca05ada58462ef2931f7206796d9f76/modeling.py#L762) Which is based on the one from tensor2tensor (but with less abstraction) and [Attention is All...
Yes, it's "Segment A" and "Segment B" embeddings. We changed the name for clarity in the paper but forgot to update the code. They are also used for multi-sentence tasks...
Yes, if you're pre-training a model from scratch, you technically don't need to download anything. However, I would recommend downloading a pre-train model from [this section](https://github.com/google-research/bert#pre-trained-models) (choose `BERT-Base, Uncased`) and...
Correct, you *can't* use `tokenizer.py` with any of the three libraries I mentioned. You should use the code included in the library to do the tokenization instead. You will also...
how is the perfermance when inference?if it cost much time, may a smaller model reach a good result?
We haven't benchmarked inference time since it depends on the hardware used (especially CPU vs. GPU vs. TPU), as well as a lot of other factors (batch size, sequence length,...
I think the issue is just the double slash here: `./models/cased_L-12_H-768_A-12//bert_model.ckpt` I get the same issue when my path has a double slash, and it works fine when it doesn't....
Yes they should be there for all of the released models, let me know if they are missing for any of them.
This is what the masked LM does, so you can just look at the `run_pretraining.py` code to see how it computes the masked LM log probabilities and just use that....
We don't plan on supporting Multi-GPU, you'll have to look for someone's fork or use the generic [distributed TensorFlow](https://www.tensorflow.org/deploy/distributed) mechanism.