url
stringlengths
62
66
repository_url
stringclasses
1 value
labels_url
stringlengths
76
80
comments_url
stringlengths
71
75
events_url
stringlengths
69
73
html_url
stringlengths
50
56
id
int64
377M
2.15B
node_id
stringlengths
18
32
number
int64
1
29.2k
title
stringlengths
1
487
user
dict
labels
list
state
stringclasses
2 values
locked
bool
2 classes
assignee
dict
assignees
list
comments
list
created_at
int64
1.54k
1.71k
updated_at
int64
1.54k
1.71k
closed_at
int64
1.54k
1.71k
author_association
stringclasses
4 values
active_lock_reason
stringclasses
2 values
body
stringlengths
0
234k
reactions
dict
timeline_url
stringlengths
71
75
state_reason
stringclasses
3 values
draft
bool
2 classes
pull_request
dict
https://api.github.com/repos/huggingface/transformers/issues/509
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/509/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/509/comments
https://api.github.com/repos/huggingface/transformers/issues/509/events
https://github.com/huggingface/transformers/issues/509
435,407,887
MDU6SXNzdWU0MzU0MDc4ODc=
509
How to read a checkpoint and continue training?
{ "login": "a-maci", "id": 23125439, "node_id": "MDQ6VXNlcjIzMTI1NDM5", "avatar_url": "https://avatars.githubusercontent.com/u/23125439?v=4", "gravatar_id": "", "url": "https://api.github.com/users/a-maci", "html_url": "https://github.com/a-maci", "followers_url": "https://api.github.com/users/a-maci/fo...
[ { "id": 1108649070, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDcw", "url": "https://api.github.com/repos/huggingface/transformers/labels/Need%20more%20information", "name": "Need more information", "color": "d876e3", "default": false, "description": "Further information is requested" }, { ...
closed
false
null
[]
[ "Hi, what fine-tuning script and model are you referring to?", "I would like to know how to restart / continue runs as well.\r\nI would like to fine tune on half data first, checkpoint it. Then restart and continue on the other half of the data.\r\n\r\nLike the `main` function in this finetuning script:\r\nhttps:...
1,555
1,662
1,571
NONE
null
I wanted to experiment with longer training schedules. How do I re-start a run from it’s fine-tuned checkpoint?
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/509/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/509/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/508
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/508/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/508/comments
https://api.github.com/repos/huggingface/transformers/issues/508/events
https://github.com/huggingface/transformers/pull/508
435,037,149
MDExOlB1bGxSZXF1ZXN0MjcxODk2MzYx
508
Fix python syntax in examples/run_gpt2.py
{ "login": "SivilTaram", "id": 10275209, "node_id": "MDQ6VXNlcjEwMjc1MjA5", "avatar_url": "https://avatars.githubusercontent.com/u/10275209?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SivilTaram", "html_url": "https://github.com/SivilTaram", "followers_url": "https://api.github.com/use...
[]
closed
false
null
[]
[ "Thanks for the PR. This is fixed now." ]
1,555
1,556
1,556
CONTRIBUTOR
null
As the title, we will never reach the code from line 115 to 131 because the space before `if args.unconditional` is not enough.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/508/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/508/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/508", "html_url": "https://github.com/huggingface/transformers/pull/508", "diff_url": "https://github.com/huggingface/transformers/pull/508.diff", "patch_url": "https://github.com/huggingface/transformers/pull/508.patch", "merged_at": null ...
https://api.github.com/repos/huggingface/transformers/issues/507
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/507/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/507/comments
https://api.github.com/repos/huggingface/transformers/issues/507/events
https://github.com/huggingface/transformers/issues/507
434,994,568
MDU6SXNzdWU0MzQ5OTQ1Njg=
507
GPT-2 FineTuning on Cloze/ ROC
{ "login": "rohuns", "id": 17604744, "node_id": "MDQ6VXNlcjE3NjA0NzQ0", "avatar_url": "https://avatars.githubusercontent.com/u/17604744?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rohuns", "html_url": "https://github.com/rohuns", "followers_url": "https://api.github.com/users/rohuns/fo...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" } ...
closed
false
null
[]
[ "Hi rohuns, I was wondering what padding value have you used for the lm_labels, since the -1 specified in the docs doesn't work for me on GPT2LMHead model. See #577. ", "> Hi rohuns, I was wondering what padding value have you used for the lm_labels, since the -1 specified in the docs doesn't work for me on GPT2L...
1,555
1,556
1,556
NONE
null
Hi, wrote some code to finetune GPT2 on rocstories using the DoubleHeads model mirroring the GPT1 code. However, I'm only getting performance of 68% on the eval. Was wondering if anyone else had tried it and seen this drop in performance. Thanks
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/507/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/507/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/506
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/506/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/506/comments
https://api.github.com/repos/huggingface/transformers/issues/506/events
https://github.com/huggingface/transformers/pull/506
434,515,106
MDExOlB1bGxSZXF1ZXN0MjcxNDkyNjg0
506
Hubconf
{ "login": "ailzhang", "id": 5248122, "node_id": "MDQ6VXNlcjUyNDgxMjI=", "avatar_url": "https://avatars.githubusercontent.com/u/5248122?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ailzhang", "html_url": "https://github.com/ailzhang", "followers_url": "https://api.github.com/users/ailzh...
[]
closed
false
null
[]
[ "Hi @ailzhang,\r\nThis is great! I went through it and it looks good to me.\r\n\r\nI guess we should update the `from_pretrained` method of the other models as well (like [here](https://github.com/huggingface/pytorch-pretrained-BERT/blob/19666dcb3bee3e379f1458e295869957aac8590c/pytorch_pretrained_bert/modeling_open...
1,555
1,556
1,556
NONE
null
fixes #504 Also add hubconf for bert related tokenizer & models. There're a few GPT models and transformer models, but would like to send this out to get a review first. Also there's possibility to unify the cache dir with pytorch one.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/506/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/506/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/506", "html_url": "https://github.com/huggingface/transformers/pull/506", "diff_url": "https://github.com/huggingface/transformers/pull/506.diff", "patch_url": "https://github.com/huggingface/transformers/pull/506.patch", "merged_at": 15561...
https://api.github.com/repos/huggingface/transformers/issues/505
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/505/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/505/comments
https://api.github.com/repos/huggingface/transformers/issues/505/events
https://github.com/huggingface/transformers/issues/505
434,489,113
MDU6SXNzdWU0MzQ0ODkxMTM=
505
Generating text with Transformer XL
{ "login": "shashwath94", "id": 7631779, "node_id": "MDQ6VXNlcjc2MzE3Nzk=", "avatar_url": "https://avatars.githubusercontent.com/u/7631779?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shashwath94", "html_url": "https://github.com/shashwath94", "followers_url": "https://api.github.com/us...
[]
closed
false
null
[]
[ "Here's an example of text generation, picks second most likely word at each step\r\n\r\n```\r\ntokenizer = TransfoXLTokenizer.from_pretrained('transfo-xl-wt103')\r\nmodel = TransfoXLLMHeadModel.from_pretrained('transfo-xl-wt103')\r\nline = \"Cars were invented in\"\r\nline_tokenized = tokenizer.tokenize(line)\r\nl...
1,555
1,595
1,555
CONTRIBUTOR
null
Hi everyone, I am trying to generate text with the pre-trained transformer XL model in a similar way to how we do with the GPT-2 model. But I guess there is a bug in the `sample_sequence` function after I adjusted to the transformer XL architecture. But the generated text is completely random in general and with res...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/505/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/505/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/504
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/504/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/504/comments
https://api.github.com/repos/huggingface/transformers/issues/504/events
https://github.com/huggingface/transformers/issues/504
434,469,616
MDU6SXNzdWU0MzQ0Njk2MTY=
504
Init BertForTokenClassification from from_pretrained
{ "login": "ailzhang", "id": 5248122, "node_id": "MDQ6VXNlcjUyNDgxMjI=", "avatar_url": "https://avatars.githubusercontent.com/u/5248122?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ailzhang", "html_url": "https://github.com/ailzhang", "followers_url": "https://api.github.com/users/ailzh...
[]
closed
false
null
[]
[ "actually this is related to my current work, I will send a fix along with my PR." ]
1,555
1,556
1,556
NONE
null
``` model = BertForTokenClassification.from_pretrained('bert-base-uncased', 2) ``` will complain about missing positional arg for `num_labels`. The root cause is here the function signature should actually be https://github.com/huggingface/pytorch-pretrained-BERT/blob/19666dcb3bee3e379f1458e295869957aac8590c/pyt...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/504/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/504/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/503
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/503/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/503/comments
https://api.github.com/repos/huggingface/transformers/issues/503/events
https://github.com/huggingface/transformers/pull/503
434,376,103
MDExOlB1bGxSZXF1ZXN0MjcxMzgyMTEz
503
Fix possible risks of bpe on special tokens
{ "login": "SivilTaram", "id": 10275209, "node_id": "MDQ6VXNlcjEwMjc1MjA5", "avatar_url": "https://avatars.githubusercontent.com/u/10275209?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SivilTaram", "html_url": "https://github.com/SivilTaram", "followers_url": "https://api.github.com/use...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null } ]
closed
false
null
[]
[ "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.\n" ]
1,555
1,560
1,560
CONTRIBUTOR
null
Hi developers ! When I use the openai tokenizer, I find it hard to handle the `special tokens` correctly (my library version is v0.6.1) , even though I have already defined them and told the tokenizer NEVER SPLIT them. It is because all tokens, including the special ones will be processed by BPE. So I add one line f...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/503/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/503/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/503", "html_url": "https://github.com/huggingface/transformers/pull/503", "diff_url": "https://github.com/huggingface/transformers/pull/503.diff", "patch_url": "https://github.com/huggingface/transformers/pull/503.patch", "merged_at": null ...
https://api.github.com/repos/huggingface/transformers/issues/502
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/502/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/502/comments
https://api.github.com/repos/huggingface/transformers/issues/502/events
https://github.com/huggingface/transformers/issues/502
434,217,681
MDU6SXNzdWU0MzQyMTc2ODE=
502
How to obtain attention values for each layer
{ "login": "serenaklm", "id": 34397223, "node_id": "MDQ6VXNlcjM0Mzk3MjIz", "avatar_url": "https://avatars.githubusercontent.com/u/34397223?v=4", "gravatar_id": "", "url": "https://api.github.com/users/serenaklm", "html_url": "https://github.com/serenaklm", "followers_url": "https://api.github.com/users/...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" },...
closed
false
null
[]
[ "Not really.\r\nYou should build a new sub-class of `BertPreTrainedModel` which is identical to `BertModel`but send back self-attention values in addition to the hidden states.\r\n", "I see. Thank you! ", "Hi, \r\n\r\nJust to add on. If this is what I would be doing, would it be advisable to fine-tune the weigh...
1,555
1,561
1,561
NONE
null
Hi all, Please correct me if I am wrong. From my understanding, The encoded values for each layer (12 of them for base model) would be returned when we run our results through the pre-trained model. However, I would like to examine the self-attention values for each layer. Is there a way I can extract that ou...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/502/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/502/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/501
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/501/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/501/comments
https://api.github.com/repos/huggingface/transformers/issues/501/events
https://github.com/huggingface/transformers/issues/501
434,200,823
MDU6SXNzdWU0MzQyMDA4MjM=
501
Test a fine-tuned BERT-QA model
{ "login": "wasiahmad", "id": 17520413, "node_id": "MDQ6VXNlcjE3NTIwNDEz", "avatar_url": "https://avatars.githubusercontent.com/u/17520413?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wasiahmad", "html_url": "https://github.com/wasiahmad", "followers_url": "https://api.github.com/users/...
[ { "id": 1108649053, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDUz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Help%20wanted", "name": "Help wanted", "color": "008672", "default": false, "description": "Extra attention is needed, help appreciated" } ]
closed
false
null
[]
[ "I noticed the following snippet in the code. (which I have edited to solve my problem)\r\n\r\n if args.do_train and (args.local_rank == -1 or torch.distributed.get_rank() == 0):\r\n # Save a trained model, configuration and tokenizer\r\n model_to_save = model.module if hasattr(model, 'module') els...
1,555
1,569
1,555
NONE
null
I have fine-tuned a BERT-QA model on SQuAD and it produced a `pytorch_model.bin` file. Now, I want to load this fine-tuned model and evaluate on SQuAD. How can I do that? I am using the `run_squad.py` script.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/501/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/501/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/500
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/500/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/500/comments
https://api.github.com/repos/huggingface/transformers/issues/500/events
https://github.com/huggingface/transformers/pull/500
434,196,137
MDExOlB1bGxSZXF1ZXN0MjcxMjM3NTYw
500
Updating network handling
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
[]
closed
false
null
[]
[]
1,555
1,566
1,555
MEMBER
null
This PR adds: - a bunch of tests for the models and tokenizers stored on S3 with `--runslow` (download and load one model/tokenizer for each type of model BERT, GPT, GPT-2, Transformer-XL) - relax network connection checking (fallback on the last downloaded model in the cache when we can't get the last eTag from s3)
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/500/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/500/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/500", "html_url": "https://github.com/huggingface/transformers/pull/500", "diff_url": "https://github.com/huggingface/transformers/pull/500.diff", "patch_url": "https://github.com/huggingface/transformers/pull/500.patch", "merged_at": 15555...
https://api.github.com/repos/huggingface/transformers/issues/499
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/499/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/499/comments
https://api.github.com/repos/huggingface/transformers/issues/499/events
https://github.com/huggingface/transformers/issues/499
434,182,603
MDU6SXNzdWU0MzQxODI2MDM=
499
error when do python3 run_squad.py
{ "login": "directv00", "id": 37170991, "node_id": "MDQ6VXNlcjM3MTcwOTkx", "avatar_url": "https://avatars.githubusercontent.com/u/37170991?v=4", "gravatar_id": "", "url": "https://api.github.com/users/directv00", "html_url": "https://github.com/directv00", "followers_url": "https://api.github.com/users/...
[ { "id": 1108649070, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDcw", "url": "https://api.github.com/repos/huggingface/transformers/labels/Need%20more%20information", "name": "Need more information", "color": "d876e3", "default": false, "description": "Further information is requested" } ]
closed
false
null
[]
[ "Did you install pytorch-pretrained-bert as indicated in the README?\r\n`pip install pytorch_pretrained_bert`\r\n\r\nYou don't have to convert the checkpoints yourself, there are already converted.\r\n\r\nTry reading the installation and usage sections of the README.", "Of cause I installed,\r\nMore precisely, er...
1,555
1,580
1,556
NONE
null
Hello, I am newbie of pytorch-pretrained-Bert. After successfully converted from init-checkpoint of tensorflow to pytorch bin, I found an error when I do run_squad. Guessing I should've included some configuration ahead, could anyone can help? See below. ```bash File "run_squad.py", line 37, in <module> fro...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/499/reactions", "total_count": 4, "+1": 4, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/499/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/498
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/498/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/498/comments
https://api.github.com/repos/huggingface/transformers/issues/498/events
https://github.com/huggingface/transformers/pull/498
434,153,484
MDExOlB1bGxSZXF1ZXN0MjcxMjAzODg4
498
Gpt2 tokenization
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
[]
closed
false
null
[]
[]
1,555
1,566
1,555
MEMBER
null
Complete #489 by: - adding tests on GPT-2 Tokenizer (at last) - fixing GPT-2 tokenization to work on python 2 as well - adding `special_tokens` handling logic in GPT-2 tokenizer - fixing GPT and GPT-2 serialization logic to save special tokens
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/498/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/498/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/498", "html_url": "https://github.com/huggingface/transformers/pull/498", "diff_url": "https://github.com/huggingface/transformers/pull/498.diff", "patch_url": "https://github.com/huggingface/transformers/pull/498.patch", "merged_at": 15554...
https://api.github.com/repos/huggingface/transformers/issues/497
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/497/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/497/comments
https://api.github.com/repos/huggingface/transformers/issues/497/events
https://github.com/huggingface/transformers/issues/497
434,028,654
MDU6SXNzdWU0MzQwMjg2NTQ=
497
UnboundLocalError: local variable 'special_tokens_file' referenced before assignment
{ "login": "yaroslavvb", "id": 23068, "node_id": "MDQ6VXNlcjIzMDY4", "avatar_url": "https://avatars.githubusercontent.com/u/23068?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yaroslavvb", "html_url": "https://github.com/yaroslavvb", "followers_url": "https://api.github.com/users/yarosla...
[]
closed
false
null
[]
[ "Yes, this should be fixed by #498." ]
1,555
1,555
1,555
CONTRIBUTOR
null
Happens during this ```enc = GPT2Tokenizer.from_pretrained('gpt2')``` ``` File "example_lambada_prediction_difference.py", line 23, in <module> enc = GPT2Tokenizer.from_pretrained(model_name) File "/bflm/pytorch-pretrained-BERT/pytorch_pretrained_bert/tokenization_gpt2.py", line 134, in from_pretrained ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/497/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/497/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/496
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/496/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/496/comments
https://api.github.com/repos/huggingface/transformers/issues/496/events
https://github.com/huggingface/transformers/pull/496
434,011,487
MDExOlB1bGxSZXF1ZXN0MjcxMDk1Mjgw
496
[run_gpt2.py] temperature should be a float, not int
{ "login": "8enmann", "id": 1021104, "node_id": "MDQ6VXNlcjEwMjExMDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/1021104?v=4", "gravatar_id": "", "url": "https://api.github.com/users/8enmann", "html_url": "https://github.com/8enmann", "followers_url": "https://api.github.com/users/8enmann/...
[]
closed
false
null
[]
[ "Indeed, thanks @8enmann!" ]
1,555
1,555
1,555
CONTRIBUTOR
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/496/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/496/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/496", "html_url": "https://github.com/huggingface/transformers/pull/496", "diff_url": "https://github.com/huggingface/transformers/pull/496.diff", "patch_url": "https://github.com/huggingface/transformers/pull/496.patch", "merged_at": 15554...
https://api.github.com/repos/huggingface/transformers/issues/495
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/495/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/495/comments
https://api.github.com/repos/huggingface/transformers/issues/495/events
https://github.com/huggingface/transformers/pull/495
433,929,690
MDExOlB1bGxSZXF1ZXN0MjcxMDI5MDQx
495
Fix gradient overflow issue during attention mask
{ "login": "SudoSharma", "id": 18308855, "node_id": "MDQ6VXNlcjE4MzA4ODU1", "avatar_url": "https://avatars.githubusercontent.com/u/18308855?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SudoSharma", "html_url": "https://github.com/SudoSharma", "followers_url": "https://api.github.com/use...
[]
closed
false
null
[]
[ "Ok, great, thanks @SudoSharma!", "While the outputs are the same between 1e10 and 1e4, I shouldn't expect the outputs between fp32 and fp16 to be the same, should I? I get different outputs between the two when doing unconditional/conditional generation with top_k=40 but even with top_k=1. Usually they're the sa...
1,555
1,557
1,555
CONTRIBUTOR
null
This fix is in reference to issue #382. GPT2 can now be trained in mixed precision, which I've confirmed with testing. I also tested unconditional generation on multiple seeds before and after changing 1e10 to 1e4 and there was no difference. Please let me know if there is anything else I can do to make this pull reque...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/495/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/495/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/495", "html_url": "https://github.com/huggingface/transformers/pull/495", "diff_url": "https://github.com/huggingface/transformers/pull/495.diff", "patch_url": "https://github.com/huggingface/transformers/pull/495.patch", "merged_at": 15554...
https://api.github.com/repos/huggingface/transformers/issues/494
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/494/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/494/comments
https://api.github.com/repos/huggingface/transformers/issues/494/events
https://github.com/huggingface/transformers/pull/494
433,917,699
MDExOlB1bGxSZXF1ZXN0MjcxMDE5NTA3
494
Fix indentation for unconditional generation
{ "login": "SudoSharma", "id": 18308855, "node_id": "MDQ6VXNlcjE4MzA4ODU1", "avatar_url": "https://avatars.githubusercontent.com/u/18308855?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SudoSharma", "html_url": "https://github.com/SudoSharma", "followers_url": "https://api.github.com/use...
[]
closed
false
null
[]
[ "Thanks!" ]
1,555
1,555
1,555
CONTRIBUTOR
null
Hey guys, there was an issue with the example file for generating unconditional samples. I just fixed the indentation. Let me know if there is anything else I need to do! Thanks for the great work on this repo.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/494/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/494/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/494", "html_url": "https://github.com/huggingface/transformers/pull/494", "diff_url": "https://github.com/huggingface/transformers/pull/494.diff", "patch_url": "https://github.com/huggingface/transformers/pull/494.patch", "merged_at": 15554...
https://api.github.com/repos/huggingface/transformers/issues/493
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/493/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/493/comments
https://api.github.com/repos/huggingface/transformers/issues/493/events
https://github.com/huggingface/transformers/issues/493
433,778,597
MDU6SXNzdWU0MzM3Nzg1OTc=
493
how to use extracted features in extract_features.py?
{ "login": "heslowen", "id": 22348625, "node_id": "MDQ6VXNlcjIyMzQ4NjI1", "avatar_url": "https://avatars.githubusercontent.com/u/22348625?v=4", "gravatar_id": "", "url": "https://api.github.com/users/heslowen", "html_url": "https://github.com/heslowen", "followers_url": "https://api.github.com/users/hes...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" },...
closed
false
null
[]
[ "Without fine-tuning, BERT features are usually less useful than plain GloVe or wrd2vec indeed.\r\nThey start to be interesting when you fine-tune a classifier on top of BERT.\r\n\r\nSee the recent study by Matthew Peters, Sebastian Ruder, Noah A. Smith ([To Tune or Not to Tune? Adapting Pretrained Representations ...
1,555
1,576
1,562
NONE
null
I extract features like examples in extarct_features.py. But went I used these features (the last encoded_layers) as word embeddings in a text classification task, I got a worse result than using 300D Glove(any other parameters are the same). I also used these features to compute the cos similarity for each word in sen...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/493/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/493/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/492
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/492/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/492/comments
https://api.github.com/repos/huggingface/transformers/issues/492/events
https://github.com/huggingface/transformers/issues/492
433,597,604
MDU6SXNzdWU0MzM1OTc2MDQ=
492
no_decay = ['bias', 'LayerNorm.bias', 'LayerNorm.weight']
{ "login": "RayXu14", "id": 22774575, "node_id": "MDQ6VXNlcjIyNzc0NTc1", "avatar_url": "https://avatars.githubusercontent.com/u/22774575?v=4", "gravatar_id": "", "url": "https://api.github.com/users/RayXu14", "html_url": "https://github.com/RayXu14", "followers_url": "https://api.github.com/users/RayXu1...
[]
closed
false
null
[]
[ "Yes. We are reproducing the behavior of the original optimizer, see [here](https://github.com/google-research/bert/blob/master/optimization.py#L65).", "thanks~", "but why?", "I have the same question, but did this prove to be better? Or is it just to speed up calculations?" ]
1,555
1,613
1,555
NONE
null
what does this means? Whay these three kind no decay?
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/492/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/492/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/491
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/491/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/491/comments
https://api.github.com/repos/huggingface/transformers/issues/491/events
https://github.com/huggingface/transformers/issues/491
433,550,221
MDU6SXNzdWU0MzM1NTAyMjE=
491
pretrained GPT-2 checkpoint gets only 31% accuracy on Lambada
{ "login": "yaroslavvb", "id": 23068, "node_id": "MDQ6VXNlcjIzMDY4", "avatar_url": "https://avatars.githubusercontent.com/u/23068?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yaroslavvb", "html_url": "https://github.com/yaroslavvb", "followers_url": "https://api.github.com/users/yarosla...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" } ...
closed
false
null
[]
[ "Accuracy goes to 31% if I use [stop-word filter](https://github.com/cybertronai/bflm/blob/51908bdd15477a0cedfbd010d489f8d355443b6a/eval_lambada_slow.py#L62), still seems lower than expected ([predictions](https://s3.amazonaws.com/yaroslavvb2/data/lambada_predictions_stopword_filter.txt))\r\n", "Hi, I doubt it's...
1,555
1,559
1,559
CONTRIBUTOR
null
For some reason I only see 26% accuracy when evaluating on Lambada for GPT-2 checkpoint instead of expected 45.99% Here's a file of [predictions](https://s3.amazonaws.com/yaroslavvb2/data/lambada_predictions.txt) with sets of 3 lines of the form: ground truth predicted last_word is_counted_as_error Generated...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/491/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/491/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/490
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/490/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/490/comments
https://api.github.com/repos/huggingface/transformers/issues/490/events
https://github.com/huggingface/transformers/pull/490
433,306,374
MDExOlB1bGxSZXF1ZXN0MjcwNTM1OTk1
490
Clean up GPT and GPT-2 losses computation
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
[]
closed
false
null
[]
[]
1,555
1,566
1,555
MEMBER
null
Small clean up of GPT and GPT-2 losses computations. Also fix an issue with special adding tokens.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/490/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/490/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/490", "html_url": "https://github.com/huggingface/transformers/pull/490", "diff_url": "https://github.com/huggingface/transformers/pull/490.diff", "patch_url": "https://github.com/huggingface/transformers/pull/490.patch", "merged_at": 15553...
https://api.github.com/repos/huggingface/transformers/issues/489
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/489/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/489/comments
https://api.github.com/repos/huggingface/transformers/issues/489/events
https://github.com/huggingface/transformers/pull/489
433,198,223
MDExOlB1bGxSZXF1ZXN0MjcwNDUwNjg4
489
Better serialization for Tokenizer and Config classes (BERT, GPT, GPT-2 and Transformer-XL)
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
[]
closed
false
null
[]
[]
1,555
1,566
1,555
MEMBER
null
This PR add standardized serialization to all the tokenizers (BERT, GPT, GPT-2, Transformer-XL) through a `tokenizer.save_vocabulary(path)` method. Also add a serialization method to all the Configuration classes: `Config.to_json_file(file_path)` Added clean examples for serialization best practices in README and...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/489/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/489/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/489", "html_url": "https://github.com/huggingface/transformers/pull/489", "diff_url": "https://github.com/huggingface/transformers/pull/489.diff", "patch_url": "https://github.com/huggingface/transformers/pull/489.patch", "merged_at": 15553...
https://api.github.com/repos/huggingface/transformers/issues/488
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/488/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/488/comments
https://api.github.com/repos/huggingface/transformers/issues/488/events
https://github.com/huggingface/transformers/pull/488
433,161,099
MDExOlB1bGxSZXF1ZXN0MjcwNDIxODM2
488
fixed BertForMultipleChoice model init and forward pass
{ "login": "dhpollack", "id": 368699, "node_id": "MDQ6VXNlcjM2ODY5OQ==", "avatar_url": "https://avatars.githubusercontent.com/u/368699?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dhpollack", "html_url": "https://github.com/dhpollack", "followers_url": "https://api.github.com/users/dhpo...
[]
closed
false
null
[]
[ "Indeed, it looks better.\r\nDo you want to have a look and confirm @rodgzilla?", "@thomwolf any word on this?", "Oh yes sorry. Looking at it and reading Alec Radford's paper on GPT (section 3.3) again, I think @rodgzilla was actually right in the original implementation.\r\n\r\nSo I guess we should close this ...
1,555
1,556
1,556
CONTRIBUTOR
null
the number of choices is not respected because you've hardcoded '1' into the classifier layer. also `token_type_ids` and `attention_mask` will cause an error if `None` because `None` does not have a `view` method.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/488/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/488/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/488", "html_url": "https://github.com/huggingface/transformers/pull/488", "diff_url": "https://github.com/huggingface/transformers/pull/488.diff", "patch_url": "https://github.com/huggingface/transformers/pull/488.patch", "merged_at": 15562...
https://api.github.com/repos/huggingface/transformers/issues/487
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/487/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/487/comments
https://api.github.com/repos/huggingface/transformers/issues/487/events
https://github.com/huggingface/transformers/issues/487
432,963,792
MDU6SXNzdWU0MzI5NjM3OTI=
487
BERT multilingual for zero-shot classification
{ "login": "ramild", "id": 9999944, "node_id": "MDQ6VXNlcjk5OTk5NDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/9999944?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ramild", "html_url": "https://github.com/ramild", "followers_url": "https://api.github.com/users/ramild/foll...
[ { "id": 1108649053, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDUz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Help%20wanted", "name": "Help wanted", "color": "008672", "default": false, "description": "Extra attention is needed, help appreciated" }, { "id": 1260...
closed
false
null
[]
[ "UPD. I tried it with bert-multilingual-cased, but the results are still bad. A number of very simple (text, translated text) give very different probability distributions (the translated versions almost always fall into one major category).\r\n\r\nSpecifiically, **I fine-tune pre-trained bert-multilingual-cased on...
1,555
1,561
1,561
NONE
null
Hi! I'm interested in solving a classification problem in which I train the model on one language and make the predictions for another one (zero-shot classification). It is said in the README for the multilingual BERT model (https://github.com/google-research/bert/blob/master/multilingual.md) that: > For tokeniz...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/487/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/487/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/486
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/486/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/486/comments
https://api.github.com/repos/huggingface/transformers/issues/486/events
https://github.com/huggingface/transformers/issues/486
432,884,928
MDU6SXNzdWU0MzI4ODQ5Mjg=
486
Difference between this repo and bert-as-service
{ "login": "tcqiuyu", "id": 6031166, "node_id": "MDQ6VXNlcjYwMzExNjY=", "avatar_url": "https://avatars.githubusercontent.com/u/6031166?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tcqiuyu", "html_url": "https://github.com/tcqiuyu", "followers_url": "https://api.github.com/users/tcqiuyu/...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" },...
closed
false
null
[]
[ "Yes there are some optimizations. Please take a look here:\r\n\r\nhttps://hanxiao.github.io/2019/01/02/Serving-Google-BERT-in-Production-using-Tensorflow-and-ZeroMQ/#engineering-building-a-scalable-service", "Hi, there is no specific relation between the present repo (which provides PyTorch implementations of se...
1,555
1,561
1,561
NONE
null
Hi, I wondered if anybody knows the difference between the `BertModel` of this repo and [bert-as-service](https://github.com/hanxiao/bert-as-service). 1. I cannot get the same result between these two even if I use the same checkpoint. pytorch-pretrained-BERT yield a lower acc and slower convergence. 2. The m...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/486/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/486/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/485
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/485/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/485/comments
https://api.github.com/repos/huggingface/transformers/issues/485/events
https://github.com/huggingface/transformers/issues/485
432,830,533
MDU6SXNzdWU0MzI4MzA1MzM=
485
UnboundLocalError: local variable 'i' referenced before assignment when using fine_tuning code
{ "login": "KavyaGujjala", "id": 28920687, "node_id": "MDQ6VXNlcjI4OTIwNjg3", "avatar_url": "https://avatars.githubusercontent.com/u/28920687?v=4", "gravatar_id": "", "url": "https://api.github.com/users/KavyaGujjala", "html_url": "https://github.com/KavyaGujjala", "followers_url": "https://api.github.c...
[]
closed
false
null
[]
[ "I found out the issue. The text corpus I was using is just one document. So the code is for two or more documents only?", "Yes only for multiple documents.\r\nWe have a test now to check that since #478 thanks to @Rocketknight1." ]
1,555
1,555
1,555
NONE
null
Hi @thomwolf I am using the lm_finetuning codes. Generated training data using generate_pretraining_data.py When running finetune_on_pregenerated.py . I am getting this error. logs python finetune_on_pregenerated.py --pregenerated_data training_1/ --bert_model bert-base-uncased --do_lower_case --output_dir ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/485/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/485/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/484
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/484/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/484/comments
https://api.github.com/repos/huggingface/transformers/issues/484/events
https://github.com/huggingface/transformers/issues/484
432,826,407
MDU6SXNzdWU0MzI4MjY0MDc=
484
KeyError: in convert_tokens_to_ids()
{ "login": "wasiahmad", "id": 17520413, "node_id": "MDQ6VXNlcjE3NTIwNDEz", "avatar_url": "https://avatars.githubusercontent.com/u/17520413?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wasiahmad", "html_url": "https://github.com/wasiahmad", "followers_url": "https://api.github.com/users/...
[ { "id": 1108649070, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDcw", "url": "https://api.github.com/repos/huggingface/transformers/labels/Need%20more%20information", "name": "Need more information", "color": "d876e3", "default": false, "description": "Further information is requested" } ]
closed
false
null
[]
[ "Hi @wasiahmad,\r\nThis should actually already been taken care of by the WordPieceTokenizer ([here](https://github.com/huggingface/pytorch-pretrained-BERT/blob/19666dcb3bee3e379f1458e295869957aac8590c/pytorch_pretrained_bert/tokenization.py#L357)).\r\nDo you have a simple example to share so I can try to reproduce...
1,555
1,555
1,555
NONE
null
In BertTokenizer's, [convert_tokens_to_ids](https://github.com/huggingface/pytorch-pretrained-BERT/blob/19666dcb3bee3e379f1458e295869957aac8590c/pytorch_pretrained_bert/tokenization.py#L117) function gives KeyError. So, I suggest to modify the **for loop** in the function as follows. ``` for token in tokens: i...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/484/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/484/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/483
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/483/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/483/comments
https://api.github.com/repos/huggingface/transformers/issues/483/events
https://github.com/huggingface/transformers/issues/483
432,747,117
MDU6SXNzdWU0MzI3NDcxMTc=
483
Perplexity number of wikitext-103 on gpt-2 don't match the paper
{ "login": "Akhila-Yerukola", "id": 4477323, "node_id": "MDQ6VXNlcjQ0NzczMjM=", "avatar_url": "https://avatars.githubusercontent.com/u/4477323?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Akhila-Yerukola", "html_url": "https://github.com/Akhila-Yerukola", "followers_url": "https://api.g...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" },...
closed
false
null
[]
[ "Are you using context length 256 by chance?\r\n\r\nOn WikiText-2 I see\r\n\r\nI see 29.17378 using context length 1024 and 43.3393707 using context length 256\r\nThis is close to OpenAI report result of 29.41\r\n(although I don't get why it doesn't match it exactly)\r\n", "@yaroslavvb \r\nNo, I'm using a contex...
1,555
1,592
1,567
NONE
null
Hi, The reported perplexity number of gpt-2 (117M) on wikitext-103 is 37.5. However when I use the pre-trained tokenizer for gpt-2 `GPT2Tokenizer` using: `tokenizer = GPT2Tokenizer.from_pretrained('gpt2')` to tokenize wikitext-103, and then evaluate it using the pre-trained 117M gpt-2 model, I get a ppl of 48.4 ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/483/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/483/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/482
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/482/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/482/comments
https://api.github.com/repos/huggingface/transformers/issues/482/events
https://github.com/huggingface/transformers/issues/482
432,743,293
MDU6SXNzdWU0MzI3NDMyOTM=
482
Suggestion: exception handling for out-of-vocab in pretrained model
{ "login": "sdeva14", "id": 18130526, "node_id": "MDQ6VXNlcjE4MTMwNTI2", "avatar_url": "https://avatars.githubusercontent.com/u/18130526?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sdeva14", "html_url": "https://github.com/sdeva14", "followers_url": "https://api.github.com/users/sdeva1...
[ { "id": 1108649070, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDcw", "url": "https://api.github.com/repos/huggingface/transformers/labels/Need%20more%20information", "name": "Need more information", "color": "d876e3", "default": false, "description": "Further information is requested" } ]
closed
false
null
[]
[ "Hi Sungho,\r\nThis should already be taken care of by the BertTokenizer which defaults on the `unk` token when a sub-word is not in the vocabulary (see [here](https://github.com/huggingface/pytorch-pretrained-BERT/blob/master/pytorch_pretrained_bert/tokenization.py#L372)).\r\nWhat BERT model are you using?\r\nDo y...
1,555
1,573
1,555
NONE
null
Dear concern, I appreciate your favor for public implementation. As you know, all NLP people have an interest in applying your gorgeous model to every NLP problem. I am writing this to suggest to add exception handling or warning message about out-of-vocabulary when a pretrained model is used. I had been suff...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/482/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/482/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/481
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/481/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/481/comments
https://api.github.com/repos/huggingface/transformers/issues/481/events
https://github.com/huggingface/transformers/issues/481
432,700,310
MDU6SXNzdWU0MzI3MDAzMTA=
481
BERT does mask-answering or sequence prediction or both???
{ "login": "bladedsupernova", "id": 46139490, "node_id": "MDQ6VXNlcjQ2MTM5NDkw", "avatar_url": "https://avatars.githubusercontent.com/u/46139490?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bladedsupernova", "html_url": "https://github.com/bladedsupernova", "followers_url": "https://api...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" },...
closed
false
null
[]
[ "I'm not sure I understand your question.\r\n\r\nBut one thing BERT can do is mask-answering indeed (guessing a word in the middle of a sentence).\r\n\r\nBERT is quite bad at doing sequence prediction at the end of an input because it's not trained on partial sentences.", "When BERT fills-in a MASK, does it alway...
1,555
1,561
1,561
NONE
null
I'm working on a exciting project but need to know something fast. I seen BERT adds a word at the end of your input, like sequence prediction, elongating your input text. But I read that BERT has been trained at (and is a pro at) filling in the blank word mask, and in fact CANNOT do sequence prediction at the end...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/481/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/481/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/480
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/480/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/480/comments
https://api.github.com/repos/huggingface/transformers/issues/480/events
https://github.com/huggingface/transformers/pull/480
432,692,428
MDExOlB1bGxSZXF1ZXN0MjcwMTExMzc3
480
Extend the BertForSequenceClassification docs to mention the special CLS token.
{ "login": "mboyanov", "id": 1610015, "node_id": "MDQ6VXNlcjE2MTAwMTU=", "avatar_url": "https://avatars.githubusercontent.com/u/1610015?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mboyanov", "html_url": "https://github.com/mboyanov", "followers_url": "https://api.github.com/users/mboya...
[]
closed
false
null
[]
[ "Ok, let's go for that @mboyanov!", "Great!" ]
1,555
1,555
1,555
CONTRIBUTOR
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/480/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/480/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/480", "html_url": "https://github.com/huggingface/transformers/pull/480", "diff_url": "https://github.com/huggingface/transformers/pull/480.diff", "patch_url": "https://github.com/huggingface/transformers/pull/480.patch", "merged_at": 15553...
https://api.github.com/repos/huggingface/transformers/issues/479
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/479/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/479/comments
https://api.github.com/repos/huggingface/transformers/issues/479/events
https://github.com/huggingface/transformers/issues/479
432,688,857
MDU6SXNzdWU0MzI2ODg4NTc=
479
Using GPT2 to implement GLTR
{ "login": "asad1996172", "id": 19806866, "node_id": "MDQ6VXNlcjE5ODA2ODY2", "avatar_url": "https://avatars.githubusercontent.com/u/19806866?v=4", "gravatar_id": "", "url": "https://api.github.com/users/asad1996172", "html_url": "https://github.com/asad1996172", "followers_url": "https://api.github.com/...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" },...
closed
false
null
[]
[ "the allen institute tool may help you....it has probabilities of next 10 words for when adding a next word....i think the prorbablities are shown....may just be the 10 words but the git code is available i think so may be what you want.", "The output of `GPT2LMHeadModel` are logits so you can just apply a softma...
1,555
1,561
1,561
NONE
null
How can we use this GPT2 model to create the basic functionality of the GLTR tool? Like getting probabilities for each word in a sequence.?
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/479/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/479/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/478
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/478/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/478/comments
https://api.github.com/repos/huggingface/transformers/issues/478/events
https://github.com/huggingface/transformers/pull/478
432,587,116
MDExOlB1bGxSZXF1ZXN0MjcwMDI4NDcx
478
Added a helpful error for users with single-document corpuses
{ "login": "Rocketknight1", "id": 12866554, "node_id": "MDQ6VXNlcjEyODY2NTU0", "avatar_url": "https://avatars.githubusercontent.com/u/12866554?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Rocketknight1", "html_url": "https://github.com/Rocketknight1", "followers_url": "https://api.githu...
[]
closed
false
null
[]
[ "Looks good to me, thanks @Rocketknight1 " ]
1,555
1,555
1,555
MEMBER
null
This adds the helpful error message suggested in #452 for users trying to do language model fine-tuning with one long document as a corpus, and replaces some of the `randint()` calls with equivalent cleaner `randrange()` ones.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/478/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/478/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/478", "html_url": "https://github.com/huggingface/transformers/pull/478", "diff_url": "https://github.com/huggingface/transformers/pull/478.diff", "patch_url": "https://github.com/huggingface/transformers/pull/478.patch", "merged_at": 15553...
https://api.github.com/repos/huggingface/transformers/issues/477
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/477/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/477/comments
https://api.github.com/repos/huggingface/transformers/issues/477/events
https://github.com/huggingface/transformers/issues/477
432,435,797
MDU6SXNzdWU0MzI0MzU3OTc=
477
Getting Sentence level log probabilities using this model
{ "login": "Shashi456", "id": 18056781, "node_id": "MDQ6VXNlcjE4MDU2Nzgx", "avatar_url": "https://avatars.githubusercontent.com/u/18056781?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Shashi456", "html_url": "https://github.com/Shashi456", "followers_url": "https://api.github.com/users/...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" },...
closed
false
null
[]
[ "So p_M(S) is just the output of the model right?\r\n\r\nFor p_u(S), I think the easiest is probably to use the empirical probabilities.\r\n`TransfoXLTokenizer` has a counter to store words frequencies [here](https://github.com/huggingface/pytorch-pretrained-BERT/blob/master/pytorch_pretrained_bert/tokenization_tra...
1,555
1,687
1,561
NONE
null
So I was trying to implement the SLOR score, using the transformer-XL, mostly avoiding training. But given the XL model and the sentence, how could i go about getting the sentence level log probability? Attached is the formula I'm trying to implement. ![image](https://user-images.githubusercontent.com/18056781/56...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/477/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/477/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/476
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/476/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/476/comments
https://api.github.com/repos/huggingface/transformers/issues/476/events
https://github.com/huggingface/transformers/issues/476
432,372,999
MDU6SXNzdWU0MzIzNzI5OTk=
476
cannot run squad script
{ "login": "jiahuigeng", "id": 22496073, "node_id": "MDQ6VXNlcjIyNDk2MDcz", "avatar_url": "https://avatars.githubusercontent.com/u/22496073?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jiahuigeng", "html_url": "https://github.com/jiahuigeng", "followers_url": "https://api.github.com/use...
[ { "id": 1108649070, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDcw", "url": "https://api.github.com/repos/huggingface/transformers/labels/Need%20more%20information", "name": "Need more information", "color": "d876e3", "default": false, "description": "Further information is requested" }, { ...
closed
false
null
[]
[ "What hardware are you using?\r\nWhat is your software configuration (versions of python, pytorch, pytorh-pretrained-bert, etc...)?", "I'm not so sure that this is the same problem that I experienced.\r\n\r\nIf you installed apex, the problem may be related to BertLayerNorm, because BertLayerNorm will use FusedLa...
1,555
1,567
1,567
NONE
null
(g-torch) [bipkg@SVR16173HP380 examples]$ python run_squad.py --bert_model bert-base-uncased --train_file squad/train-v1.1.json --do_train --output_dir exps2 04/12/2019 11:32:03 - INFO - __main__ - device: cuda n_gpu: 1, distributed training: False, 16-bits training: False 04/12/2019 11:32:03 - WARNING - pytorch_...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/476/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/476/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/475
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/475/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/475/comments
https://api.github.com/repos/huggingface/transformers/issues/475/events
https://github.com/huggingface/transformers/issues/475
432,341,853
MDU6SXNzdWU0MzIzNDE4NTM=
475
Non-Determinism Behavior that cannot reproduce result when evaluate on each epoch
{ "login": "Jacob-Ma", "id": 46578842, "node_id": "MDQ6VXNlcjQ2NTc4ODQy", "avatar_url": "https://avatars.githubusercontent.com/u/46578842?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Jacob-Ma", "html_url": "https://github.com/Jacob-Ma", "followers_url": "https://api.github.com/users/Jac...
[ { "id": 1108649053, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDUz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Help%20wanted", "name": "Help wanted", "color": "008672", "default": false, "description": "Extra attention is needed, help appreciated" }, { "id": 1108...
closed
false
null
[]
[ "There is some non-determinism in cuDNN. Try setting `torch.backends.cudnn.deterministic = True` in your code: with that plus the RNG seeding, you should be able to get deterministic results.", "Yes go with @Rocketknight1 suggestion.\r\nAlso check that you set model in eval mode to disable the DropOut modules bef...
1,555
1,556
1,556
NONE
null
I modified the example file `run_classifier.py` a little bit, so that the model could evaluate after each training epoch and save each evaluation results on file. This is good for someone who wants to see how the training epoch number influence the result. It is good to simply set the train_epoch = 50, save a checkpoin...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/475/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/475/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/474
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/474/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/474/comments
https://api.github.com/repos/huggingface/transformers/issues/474/events
https://github.com/huggingface/transformers/pull/474
432,218,030
MDExOlB1bGxSZXF1ZXN0MjY5NzMyMTY1
474
Fix tsv read error in Windows
{ "login": "jiesutd", "id": 9111828, "node_id": "MDQ6VXNlcjkxMTE4Mjg=", "avatar_url": "https://avatars.githubusercontent.com/u/9111828?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jiesutd", "html_url": "https://github.com/jiesutd", "followers_url": "https://api.github.com/users/jiesutd/...
[]
closed
false
null
[]
[ "Ok, thanks @jiesutd!" ]
1,555
1,555
1,555
CONTRIBUTOR
null
The initial version suffers from the error of `UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position` when loading the `.tsv` filein **Windows** System, as indicated in https://github.com/huggingface/pytorch-pretrained-BERT/issues/52 It is solved by adding `encoding='utf-8'` when reading the `.tsv` ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/474/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/474/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/474", "html_url": "https://github.com/huggingface/transformers/pull/474", "diff_url": "https://github.com/huggingface/transformers/pull/474.diff", "patch_url": "https://github.com/huggingface/transformers/pull/474.patch", "merged_at": 15553...
https://api.github.com/repos/huggingface/transformers/issues/473
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/473/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/473/comments
https://api.github.com/repos/huggingface/transformers/issues/473/events
https://github.com/huggingface/transformers/issues/473
432,162,932
MDU6SXNzdWU0MzIxNjI5MzI=
473
GPT as a Language Model
{ "login": "mdasadul", "id": 8009589, "node_id": "MDQ6VXNlcjgwMDk1ODk=", "avatar_url": "https://avatars.githubusercontent.com/u/8009589?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mdasadul", "html_url": "https://github.com/mdasadul", "followers_url": "https://api.github.com/users/mdasa...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null } ]
closed
false
null
[]
[ "Looks good to me. It's perplexity so lower is better.\r\nYou can do a `math.exp(loss.item())` and call you model in a `with torch.no_grad()` context to be a little cleaner.", "Oh no wait, you need to compare to the shifted inputs:\r\n`loss=model(tensor_input[:-1], lm_labels=tensor_input[1:])`\r\nIt's a causal mo...
1,555
1,623
1,563
NONE
null
I am interested to use GPT as Language Model to assign Language modeling score (Perplexity score) of a sentence. Here is what I am using ```import torch import math from pytorch_pretrained_bert import OpenAIGPTTokenizer, OpenAIGPTModel, OpenAIGPTLMHeadModel # Load pre-trained model (weights) model = OpenAIGPTLMH...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/473/reactions", "total_count": 30, "+1": 29, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/473/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/472
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/472/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/472/comments
https://api.github.com/repos/huggingface/transformers/issues/472/events
https://github.com/huggingface/transformers/issues/472
431,935,327
MDU6SXNzdWU0MzE5MzUzMjc=
472
Compilation terminated
{ "login": "hongkahjun", "id": 29894605, "node_id": "MDQ6VXNlcjI5ODk0NjA1", "avatar_url": "https://avatars.githubusercontent.com/u/29894605?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hongkahjun", "html_url": "https://github.com/hongkahjun", "followers_url": "https://api.github.com/use...
[]
closed
false
null
[]
[ "managed to install it by running \r\n\r\n> sudo apt-get install python3 python-dev" ]
1,554
1,554
1,554
NONE
null
Hi, I cannot pip install the package. I have > regex_3/_regex.c:48:10: fatal error: Python.h: No such file or directory #include "Python.h" ^~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Might have something to do with CI failure for ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/472/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/472/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/471
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/471/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/471/comments
https://api.github.com/repos/huggingface/transformers/issues/471/events
https://github.com/huggingface/transformers/issues/471
431,881,640
MDU6SXNzdWU0MzE4ODE2NDA=
471
modeling_openai.py bug report
{ "login": "Jonbean", "id": 10235447, "node_id": "MDQ6VXNlcjEwMjM1NDQ3", "avatar_url": "https://avatars.githubusercontent.com/u/10235447?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Jonbean", "html_url": "https://github.com/Jonbean", "followers_url": "https://api.github.com/users/Jonbea...
[]
closed
false
null
[]
[ "Good catch, I'll fix this." ]
1,554
1,554
1,554
NONE
null
line 651 has a potential bug ``` # Copy word and positional embeddings from the previous weights self.tokens_embed.weight.data[: self.config.vocab_size, :] = old_embed.weight.data[: self.config.vocab_size, :] self.tokens_embed.weight.data[-self.config.n_positions :, :] = old_embed.weight.dat...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/471/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/471/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/470
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/470/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/470/comments
https://api.github.com/repos/huggingface/transformers/issues/470/events
https://github.com/huggingface/transformers/issues/470
431,639,901
MDU6SXNzdWU0MzE2Mzk5MDE=
470
how to correctly do classifying?
{ "login": "junchen14", "id": 19342556, "node_id": "MDQ6VXNlcjE5MzQyNTU2", "avatar_url": "https://avatars.githubusercontent.com/u/19342556?v=4", "gravatar_id": "", "url": "https://api.github.com/users/junchen14", "html_url": "https://github.com/junchen14", "followers_url": "https://api.github.com/users/...
[ { "id": 1108649053, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDUz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Help%20wanted", "name": "Help wanted", "color": "008672", "default": false, "description": "Extra attention is needed, help appreciated" }, { "id": 1108...
closed
false
null
[]
[ "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.\n", "I'm having a similar issue where I run a BERT tutorial by Chris McCormick and receive 65-78% accuracy on training data and 0.0% for te...
1,554
1,568
1,560
NONE
null
when I do the classifying with task cola, the result is like this? eval_loss = 0.0 global_step = 49173 loss = 0.0 mcc = 0.0 what is my prediction result? and how should I use the output model????
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/470/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/470/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/469
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/469/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/469/comments
https://api.github.com/repos/huggingface/transformers/issues/469/events
https://github.com/huggingface/transformers/issues/469
431,615,901
MDU6SXNzdWU0MzE2MTU5MDE=
469
Why can`t we just use cached pytorch-model without internet
{ "login": "floAlpha", "id": 21286485, "node_id": "MDQ6VXNlcjIxMjg2NDg1", "avatar_url": "https://avatars.githubusercontent.com/u/21286485?v=4", "gravatar_id": "", "url": "https://api.github.com/users/floAlpha", "html_url": "https://github.com/floAlpha", "followers_url": "https://api.github.com/users/flo...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null } ]
closed
false
null
[]
[ "First, yes you can. You should be able to download the model(whether use shell command or python downloader) into a specified directory and modify the loading lines. That works for me. \r\nSecond, please be appreciated to these fantastic works huggingface team pulled off. It's not their fault that you don't have s...
1,554
1,581
1,561
NONE
null
Sorry for my Impolite words. I am very appreciate huggingface team for the excellent repo and my original intention is to provide some suggestion to great repo to help more people like me, forgive me for being rude.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/469/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/469/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/468
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/468/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/468/comments
https://api.github.com/repos/huggingface/transformers/issues/468/events
https://github.com/huggingface/transformers/issues/468
431,358,967
MDU6SXNzdWU0MzEzNTg5Njc=
468
GPT-2 fine tunning
{ "login": "Jonbean", "id": 10235447, "node_id": "MDQ6VXNlcjEwMjM1NDQ3", "avatar_url": "https://avatars.githubusercontent.com/u/10235447?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Jonbean", "html_url": "https://github.com/Jonbean", "followers_url": "https://api.github.com/users/Jonbea...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null } ]
closed
false
null
[]
[ "What kind of task are you fine-tuning on? I If it's something like ROCstories task, you need the extra tokens. I think people are doing BERT for up-stream tasks because birectional context gives better results than left-to-right", "Hi @yaroslavvb, I am mostly focusing on classification tasks(like ROCstories as y...
1,554
1,561
1,561
NONE
null
I wonder if GPT-2 model has some examples of how to do fine tuning like GPT. The DoubleHeadsModel interface of GPT-2 looks similar to GPT. But there's no special token handler for GPT-2 tokenizer. Is that necessary?
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/468/reactions", "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/468/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/467
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/467/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/467/comments
https://api.github.com/repos/huggingface/transformers/issues/467/events
https://github.com/huggingface/transformers/pull/467
431,210,818
MDExOlB1bGxSZXF1ZXN0MjY4OTM2NDAw
467
Update README.md
{ "login": "yaroslavvb", "id": 23068, "node_id": "MDQ6VXNlcjIzMDY4", "avatar_url": "https://avatars.githubusercontent.com/u/23068?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yaroslavvb", "html_url": "https://github.com/yaroslavvb", "followers_url": "https://api.github.com/users/yarosla...
[]
closed
false
null
[]
[ "Thanks Yaroslav!" ]
1,554
1,555
1,555
CONTRIBUTOR
null
Fix for ```> > > > 04/09/2019 21:39:38 - INFO - __main__ - device: cuda n_gpu: 1, distributed training: False, 16-bits training: False Traceback (most recent call last): File "/home/ubuntu/pytorch-pretrained-BERT/examples/lm_finetuning/simple_lm_finetuning.py", line 642, in <module> main() File "/home/...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/467/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/467/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/467", "html_url": "https://github.com/huggingface/transformers/pull/467", "diff_url": "https://github.com/huggingface/transformers/pull/467.diff", "patch_url": "https://github.com/huggingface/transformers/pull/467.patch", "merged_at": 15550...
https://api.github.com/repos/huggingface/transformers/issues/466
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/466/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/466/comments
https://api.github.com/repos/huggingface/transformers/issues/466/events
https://github.com/huggingface/transformers/issues/466
431,172,085
MDU6SXNzdWU0MzExNzIwODU=
466
Mismatch in pre-processed wikitext-103 corpus and using pre-trained tokenizer for TransfoXLLMHeadModel
{ "login": "Akhila-Yerukola", "id": 4477323, "node_id": "MDQ6VXNlcjQ0NzczMjM=", "avatar_url": "https://avatars.githubusercontent.com/u/4477323?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Akhila-Yerukola", "html_url": "https://github.com/Akhila-Yerukola", "followers_url": "https://api.g...
[]
closed
false
null
[]
[ "You are right, thanks for catching this.\r\n\r\nThis behavior is inherited from the BERT Tokenizer but the TransformerXL Tokenizer should behave differently ([this line](https://github.com/huggingface/pytorch-pretrained-BERT/blob/master/pytorch_pretrained_bert/tokenization_transfo_xl.py#L316) which split on punctu...
1,554
1,637
1,555
NONE
null
In `examples/run_transfo_xl.py`, the pre-processed wikitext-103 corpus is loaded using: `corpus` = TransfoXLCorpus.from_pretrained(args.model_name) ` Example of pre-processed batch converted to tokens: > ['<eos>', '=', 'Homarus', 'gammarus', '=', '<eos>', '<eos>', 'Homarus', 'gammarus', ',', 'known', 'as', 'the...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/466/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/466/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/465
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/465/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/465/comments
https://api.github.com/repos/huggingface/transformers/issues/465/events
https://github.com/huggingface/transformers/issues/465
431,026,223
MDU6SXNzdWU0MzEwMjYyMjM=
465
Errors when using Apex
{ "login": "ibeltagy", "id": 2287797, "node_id": "MDQ6VXNlcjIyODc3OTc=", "avatar_url": "https://avatars.githubusercontent.com/u/2287797?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ibeltagy", "html_url": "https://github.com/ibeltagy", "followers_url": "https://api.github.com/users/ibelt...
[ { "id": 1108649053, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDUz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Help%20wanted", "name": "Help wanted", "color": "008672", "default": false, "description": "Extra attention is needed, help appreciated" }, { "id": 1108...
closed
false
null
[]
[ "Can you try to run it with `CUDA_LAUNCH_BLOCKING=1` so we can see which exact CUDA call fails?\r\nAlso, do you have a simple way for me to try to reproduce this error?", "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Tha...
1,554
1,560
1,560
CONTRIBUTOR
null
Using `pytorch-pretrained-BERT` with `apex` installed breaks with the errors below. I am using it through allennlp, and my environment settings are: ``` ubuntu 16.04 nvidia driver 410.48 4 Titan V gpus python 3.6.8 cuda 9 pytorch 1.0.1.post2 pytorch-pretrained-bert 0.6.1 ``` I also tried python 3.7, cuda 10...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/465/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/465/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/464
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/464/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/464/comments
https://api.github.com/repos/huggingface/transformers/issues/464/events
https://github.com/huggingface/transformers/issues/464
430,879,647
MDU6SXNzdWU0MzA4Nzk2NDc=
464
How to get vocab.txt and bert_config.json as output of fine tuning?
{ "login": "search4mahesh", "id": 4182331, "node_id": "MDQ6VXNlcjQxODIzMzE=", "avatar_url": "https://avatars.githubusercontent.com/u/4182331?v=4", "gravatar_id": "", "url": "https://api.github.com/users/search4mahesh", "html_url": "https://github.com/search4mahesh", "followers_url": "https://api.github....
[]
closed
false
null
[]
[ "You can get `pytorch_model.bin` and `config.json` just as indicated in the examples: https://github.com/huggingface/pytorch-pretrained-BERT/blob/master/examples/run_classifier.py#L861-L866\r\n\r\nThe vocabulary stays the same, just load the tokenizer as you did for the training (`BertTokenizer.from_pretrained(...)...
1,554
1,554
1,554
NONE
null
Hi, I am fine tuning bert on custom data. As output I am getting only pytorch_model.bin but how to get updated vocab.txt and bert_config.json . Please suggest. Thanks Mahesh
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/464/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/464/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/463
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/463/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/463/comments
https://api.github.com/repos/huggingface/transformers/issues/463/events
https://github.com/huggingface/transformers/issues/463
430,716,261
MDU6SXNzdWU0MzA3MTYyNjE=
463
Vocab changes in lm_finetuning in BERT
{ "login": "bhoomit", "id": 1269954, "node_id": "MDQ6VXNlcjEyNjk5NTQ=", "avatar_url": "https://avatars.githubusercontent.com/u/1269954?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bhoomit", "html_url": "https://github.com/bhoomit", "followers_url": "https://api.github.com/users/bhoomit/...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" },...
closed
false
null
[]
[ "Hi,\r\nAlso it should produce vocab.txt and bert_config.json along with pytorch_model.bin.\r\nHow you are getting those?", "We did this for [SciBERT](https://github.com/allenai/scibert), and you might find this discussion useful https://github.com/allenai/scibert/issues/29", "lm_finetuning produce pytorch_mode...
1,554
1,596
1,570
NONE
null
I want to use lm_finetuning for BERT. A potential issue is vocab_size. Since I'm using Hinglish data (Hindi text written using English Alphabets) there can be new words which are not present in English vocabulary. According to BERT doc... > If using your own vocabulary, make sure to change vocab_size in bert_config....
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/463/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/463/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/462
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/462/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/462/comments
https://api.github.com/repos/huggingface/transformers/issues/462/events
https://github.com/huggingface/transformers/pull/462
430,713,066
MDExOlB1bGxSZXF1ZXN0MjY4NTQyMTcx
462
fix run_gpt2.py
{ "login": "8enmann", "id": 1021104, "node_id": "MDQ6VXNlcjEwMjExMDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/1021104?v=4", "gravatar_id": "", "url": "https://api.github.com/users/8enmann", "html_url": "https://github.com/8enmann", "followers_url": "https://api.github.com/users/8enmann/...
[]
closed
false
null
[]
[ "Fixes #412 ", "Ok, looks good to me, thanks!" ]
1,554
1,555
1,555
CONTRIBUTOR
null
Before this PR, unconditional sample generation fails silently. Fixing the loop reveals a reference before assignment error.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/462/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/462/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/462", "html_url": "https://github.com/huggingface/transformers/pull/462", "diff_url": "https://github.com/huggingface/transformers/pull/462.diff", "patch_url": "https://github.com/huggingface/transformers/pull/462.patch", "merged_at": 15550...
https://api.github.com/repos/huggingface/transformers/issues/461
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/461/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/461/comments
https://api.github.com/repos/huggingface/transformers/issues/461/events
https://github.com/huggingface/transformers/issues/461
430,686,503
MDU6SXNzdWU0MzA2ODY1MDM=
461
Pooler weights not being updated for Multiple Choice models?
{ "login": "meetps", "id": 6251729, "node_id": "MDQ6VXNlcjYyNTE3Mjk=", "avatar_url": "https://avatars.githubusercontent.com/u/6251729?v=4", "gravatar_id": "", "url": "https://api.github.com/users/meetps", "html_url": "https://github.com/meetps", "followers_url": "https://api.github.com/users/meetps/foll...
[]
closed
false
null
[]
[ "Indeed this looks like a bug in the `run_swag.py` example.\r\nWhat do you think @rodgzilla?\r\nIsn't the exclusion of the pooler parameters from optimization ([line 392 of `run_swag.py`](https://github.com/huggingface/pytorch-pretrained-BERT/blob/master/examples/run_swag.py#L392)) a typo?", "This issue has been ...
1,554
1,560
1,560
CONTRIBUTOR
null
I'm trying use pretrained BERT to finetune on a multiple choice dataset. The parameters from `pooler` are excluded from the optimizer params [here](https://github.com/huggingface/pytorch-pretrained-BERT/blob/master/pytorch_pretrained_bert/modeling.py#L1044-L1047), however, the MutlipleChoice model does indeed use `p...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/461/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/461/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/460
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/460/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/460/comments
https://api.github.com/repos/huggingface/transformers/issues/460/events
https://github.com/huggingface/transformers/issues/460
430,584,037
MDU6SXNzdWU0MzA1ODQwMzc=
460
run_classifier on CoLA fails with illegal memory access
{ "login": "prematurelyoptimized", "id": 13842527, "node_id": "MDQ6VXNlcjEzODQyNTI3", "avatar_url": "https://avatars.githubusercontent.com/u/13842527?v=4", "gravatar_id": "", "url": "https://api.github.com/users/prematurelyoptimized", "html_url": "https://github.com/prematurelyoptimized", "followers_url...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null } ]
closed
false
null
[]
[ "My guess is that the inputs are either larger than the maximum input size of the model (512) or outside the vocabulary (larger than the vocabulary size).\r\n\r\nDo you think you can try to check this?", "@ananyahjha93 did the implementation of the additional GLUE tasks. Maybe he has some additional insights on t...
1,554
1,561
1,561
NONE
null
I am trying to run the run_classifier.py script against the CoLA task as a smoke test to make sure I have everything installed correctly. However, when I run `CUDA_LAUNCH_BLOCKING=1 python run_classifier.py --task_name CoLA --do_train --do_eval --do_lower_case --data_dir /workspace/glue/CoLA/ --bert_model bert-base-...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/460/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/460/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/459
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/459/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/459/comments
https://api.github.com/repos/huggingface/transformers/issues/459/events
https://github.com/huggingface/transformers/issues/459
430,525,932
MDU6SXNzdWU0MzA1MjU5MzI=
459
Question about BertForQuestionAnswering model
{ "login": "geekboood", "id": 23272969, "node_id": "MDQ6VXNlcjIzMjcyOTY5", "avatar_url": "https://avatars.githubusercontent.com/u/23272969?v=4", "gravatar_id": "", "url": "https://api.github.com/users/geekboood", "html_url": "https://github.com/geekboood", "followers_url": "https://api.github.com/users/...
[]
closed
false
null
[]
[]
1,554
1,554
1,554
NONE
null
Hi, I want to train `BertForQuestionAnswering` with my own dataset. I have already taken care of the format of the dataset, however, I encounter some problem when I want to do the inference job. If I am right, the forward output of the model is `start_logits` and `end_logits`. When I use `batchsize=1`, the output shape...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/459/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/459/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/458
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/458/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/458/comments
https://api.github.com/repos/huggingface/transformers/issues/458/events
https://github.com/huggingface/transformers/issues/458
430,400,523
MDU6SXNzdWU0MzA0MDA1MjM=
458
Suggestion: add warning when using BertForSequenceClassification without special [CLS] token
{ "login": "mboyanov", "id": 1610015, "node_id": "MDQ6VXNlcjE2MTAwMTU=", "avatar_url": "https://avatars.githubusercontent.com/u/1610015?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mboyanov", "html_url": "https://github.com/mboyanov", "followers_url": "https://api.github.com/users/mboya...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" } ...
closed
false
null
[]
[ "I understand the issue but I'm not sure this would be very easy to implement as we would like to keep the model and tokenizer separated one from the other.\r\n\r\nDo you have a solution in mind?\r\n\r\nOtherwise, I'll guess people will have to continue to read the paper before using the model... 😉", "I totally ...
1,554
1,555
1,555
CONTRIBUTOR
null
Thank you for the awesome package! As I understand it right now, it is the user's responsibility to add the special `CLS` and `SEP` tokens. People who haven't read the paper might miss this detail. It would be nice to issue a warning in the tokenizer or the model itself if the input is missing these tokens. An alt...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/458/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/458/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/457
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/457/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/457/comments
https://api.github.com/repos/huggingface/transformers/issues/457/events
https://github.com/huggingface/transformers/issues/457
430,289,105
MDU6SXNzdWU0MzAyODkxMDU=
457
Load Biobert pre-trained weights into Bert model with Pytorch bert hugging face run_classifier.py code
{ "login": "sheetalsh456", "id": 12454534, "node_id": "MDQ6VXNlcjEyNDU0NTM0", "avatar_url": "https://avatars.githubusercontent.com/u/12454534?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sheetalsh456", "html_url": "https://github.com/sheetalsh456", "followers_url": "https://api.github.c...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" },...
closed
false
null
[]
[ "Have you tried the solutions discussed in the other issues on this topic:\r\n- https://github.com/huggingface/pytorch-pretrained-BERT/issues/312\r\n- https://github.com/huggingface/pytorch-pretrained-BERT/issues/239", "This issue has been automatically marked as stale because it has not had recent activity. It w...
1,554
1,591
1,560
NONE
null
These are the steps I followed to get Biobert working with the existing Bert hugging face pytorch code. 1. I downloaded the pre-trained weights 'biobert_pubmed_pmc.tar.gz' from [the Releases page](https://github.com/naver/biobert-pretrained/releases). 2. I ran this command to convert the tf checkpoint to pytorch ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/457/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/457/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/456
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/456/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/456/comments
https://api.github.com/repos/huggingface/transformers/issues/456/events
https://github.com/huggingface/transformers/issues/456
430,270,548
MDU6SXNzdWU0MzAyNzA1NDg=
456
max_seq_length for squad
{ "login": "ZhaofengWu", "id": 11954789, "node_id": "MDQ6VXNlcjExOTU0Nzg5", "avatar_url": "https://avatars.githubusercontent.com/u/11954789?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ZhaofengWu", "html_url": "https://github.com/ZhaofengWu", "followers_url": "https://api.github.com/use...
[]
closed
false
null
[]
[ "Then you're doomed for this answer. There are a possibility to do a sliding window approach but we didn't implemented it in the examples of pytorch-pretrained-bert.\r\nCheck this issue (and the linked TensorFlow issue) for a discussion on this: https://github.com/huggingface/pytorch-pretrained-BERT/issues/89" ]
1,554
1,559
1,554
CONTRIBUTOR
null
The example script for squad sets `--max_seq_length` at 384 as default. However it seems that many paragraphs in squad exceed this length. Then what if the answer to some question lies in the truncated part of the paragraph?
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/456/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/456/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/455
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/455/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/455/comments
https://api.github.com/repos/huggingface/transformers/issues/455/events
https://github.com/huggingface/transformers/issues/455
430,116,432
MDU6SXNzdWU0MzAxMTY0MzI=
455
LM fine tuning on top of a custom model
{ "login": "ZhaofengWu", "id": 11954789, "node_id": "MDQ6VXNlcjExOTU0Nzg5", "avatar_url": "https://avatars.githubusercontent.com/u/11954789?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ZhaofengWu", "html_url": "https://github.com/ZhaofengWu", "followers_url": "https://api.github.com/use...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" } ...
closed
false
null
[]
[ "Not really, I guess we could remove this restriction and just let people point to an arbitrary folder (as we do in the other scripts).\r\nWhat do you think @Rocketknight1?", "No, that's entirely my bad. We should allow an arbitrary folder!", "Should I just remove the `choices` argument and allow any string the...
1,554
1,573
1,554
CONTRIBUTOR
null
Currently the `finetune_on_pregenerated.py` script allows only fine-tuning on top of one of the five pretrained bert models. However I don't understand why there is such a restriction. I am trying to finetune a LM on top of a custom bert model (mt-dnn). Of course I can just remove the `choices`, but I am wondering if t...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/455/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/455/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/454
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/454/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/454/comments
https://api.github.com/repos/huggingface/transformers/issues/454/events
https://github.com/huggingface/transformers/issues/454
429,755,590
MDU6SXNzdWU0Mjk3NTU1OTA=
454
getting sequence embeddings for pair of sentences
{ "login": "omerarshad", "id": 16164105, "node_id": "MDQ6VXNlcjE2MTY0MTA1", "avatar_url": "https://avatars.githubusercontent.com/u/16164105?v=4", "gravatar_id": "", "url": "https://api.github.com/users/omerarshad", "html_url": "https://github.com/omerarshad", "followers_url": "https://api.github.com/use...
[]
closed
false
null
[]
[ "Hi, yes." ]
1,554
1,554
1,554
NONE
null
given [cls] word1 word2 word3 [sep] word1 word2 [sep] If i get sequence embeddings, will word1 of sentence 1 will have context of word1 of sentence2?
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/454/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/454/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/453
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/453/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/453/comments
https://api.github.com/repos/huggingface/transformers/issues/453/events
https://github.com/huggingface/transformers/issues/453
429,654,860
MDU6SXNzdWU0Mjk2NTQ4NjA=
453
What‘s op-for-op meaning?
{ "login": "JiahangOK", "id": 40447174, "node_id": "MDQ6VXNlcjQwNDQ3MTc0", "avatar_url": "https://avatars.githubusercontent.com/u/40447174?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JiahangOK", "html_url": "https://github.com/JiahangOK", "followers_url": "https://api.github.com/users/...
[]
closed
false
null
[]
[ "Hi, it means that the computation graphs of the Tensorflow and PyTorch versions are identical." ]
1,554
1,554
1,554
NONE
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/453/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/453/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/452
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/452/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/452/comments
https://api.github.com/repos/huggingface/transformers/issues/452/events
https://github.com/huggingface/transformers/issues/452
429,634,551
MDU6SXNzdWU0Mjk2MzQ1NTE=
452
Pregenerating data requires multiple documents
{ "login": "yanneyanne", "id": 15113131, "node_id": "MDQ6VXNlcjE1MTEzMTMx", "avatar_url": "https://avatars.githubusercontent.com/u/15113131?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yanneyanne", "html_url": "https://github.com/yanneyanne", "followers_url": "https://api.github.com/use...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" },...
closed
false
null
[]
[ "Hi, I wrote that script! That's a tricky issue, though - what behaviour do you expect when your data is one long text? \r\n\r\nIn the original BERT repo, they used the document breaks to control sampling for the NextSentence task - 'random' next sentences were selected from a different document. I'm not sure there...
1,554
1,560
1,560
NONE
null
The script for pregenerating language modelling data assumes that the training corpus consists of multiple documents (i.e. a single training corpus file where empty lines separate documents). If the training corpus is made up of only one long text, the pregen script produces empty output. I have a small fix for this...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/452/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/452/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/451
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/451/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/451/comments
https://api.github.com/repos/huggingface/transformers/issues/451/events
https://github.com/huggingface/transformers/issues/451
429,438,737
MDU6SXNzdWU0Mjk0Mzg3Mzc=
451
Help: cannot load pretrain models from .pytorch_pretrained_bert folder
{ "login": "yangliu2", "id": 3577730, "node_id": "MDQ6VXNlcjM1Nzc3MzA=", "avatar_url": "https://avatars.githubusercontent.com/u/3577730?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yangliu2", "html_url": "https://github.com/yangliu2", "followers_url": "https://api.github.com/users/yangl...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null } ]
closed
false
null
[]
[ "It is likely due to the script is not able to find the vocabulary file. So you should download the vocab first and copy it over. Then when you load the tokenizer you need to specify the path to the vocab. So if you vocab is in \"/tmp/transformer_xl/\" you do:\r\n```python\r\ntokenizer = TransfoXLTokenizer.from_pre...
1,554
1,583
1,562
NONE
null
I need to run the package on a machine without internet. Copied over the ".pytorch_pretrained_bert" folder from one machine to another. Installed anaconda3 and tried to run `tokenizer = TransfoXLTokenizer.from_pretrained('transfo-xl-wt103')`. Got this error: `Model name 'transfo-xl-wt103' was not found in model na...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/451/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/451/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/450
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/450/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/450/comments
https://api.github.com/repos/huggingface/transformers/issues/450/events
https://github.com/huggingface/transformers/issues/450
429,293,867
MDU6SXNzdWU0MjkyOTM4Njc=
450
Understanding pre-training and fine-tuning
{ "login": "BramVanroy", "id": 2779410, "node_id": "MDQ6VXNlcjI3Nzk0MTA=", "avatar_url": "https://avatars.githubusercontent.com/u/2779410?v=4", "gravatar_id": "", "url": "https://api.github.com/users/BramVanroy", "html_url": "https://github.com/BramVanroy", "followers_url": "https://api.github.com/users...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" },...
closed
false
null
[]
[ "Maybe a good introduction on the topic are the writings of @sebastianruder:\r\n- http://ruder.io/transfer-learning/\r\n- https://thegradient.pub/nlp-imagenet/\r\n- the ULMFiT paper: http://nlp.fast.ai/classification/2018/05/15/introducting-ulmfit.html\r\n\r\nRegarding your specific question of training a Bert mode...
1,554
1,560
1,560
COLLABORATOR
null
I am confused about what these two steps actually do to the model. I would have assumed that pre-training is unsupervised (i.e. no labels) and, thus, the only thing that can be 'learned' is the embedding representations of all tokens. You can then use this pre-trained model (which is an 'empty' model but with pretraine...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/450/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/450/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/449
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/449/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/449/comments
https://api.github.com/repos/huggingface/transformers/issues/449/events
https://github.com/huggingface/transformers/issues/449
429,191,528
MDU6SXNzdWU0MjkxOTE1Mjg=
449
Convert_tf_checkpoint_to_pytorch for bert-joint-baseline
{ "login": "raheja", "id": 9508410, "node_id": "MDQ6VXNlcjk1MDg0MTA=", "avatar_url": "https://avatars.githubusercontent.com/u/9508410?v=4", "gravatar_id": "", "url": "https://api.github.com/users/raheja", "html_url": "https://github.com/raheja", "followers_url": "https://api.github.com/users/raheja/foll...
[ { "id": 1108649053, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDUz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Help%20wanted", "name": "Help wanted", "color": "008672", "default": false, "description": "Extra attention is needed, help appreciated" }, { "id": 1260...
closed
false
null
[]
[ "I also encountered a similar problem AttributeError: 'BertForPreTraining' object has no attribute 'crf_loss'\r\n\r\n@thomwolf \r\n\r\nLooking forward to your reply", "Hi, from my reading of the [Natural Questions model](https://github.com/google-research/language/blob/master/language/question_answering/bert_jo...
1,554
1,562
1,560
NONE
null
Hello, I know that the format of Squad and Google NQ is different, but is there a way to convert the bert joint model for Natural Questions (https://github.com/google-research/language/tree/master/language/question_answering/bert_joint) to pytorch? I get this error 'BertForPreTraining' object has no attribute 'answ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/449/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/449/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/448
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/448/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/448/comments
https://api.github.com/repos/huggingface/transformers/issues/448/events
https://github.com/huggingface/transformers/issues/448
429,145,745
MDU6SXNzdWU0MjkxNDU3NDU=
448
pretrain for chinese dataset
{ "login": "Jason-kid", "id": 31425629, "node_id": "MDQ6VXNlcjMxNDI1NjI5", "avatar_url": "https://avatars.githubusercontent.com/u/31425629?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Jason-kid", "html_url": "https://github.com/Jason-kid", "followers_url": "https://api.github.com/users/...
[]
closed
false
null
[]
[ "Hi, you should probably turn to the TensorFlow version for pre-training.\r\nThis package is mostly intended to be used for fine-tuning pre-trained models.\r\nAnother option for BERT-like pre-training is to use Facebook's [XLM](https://github.com/facebookresearch/XLM)" ]
1,554
1,557
1,554
NONE
null
Hi , I want to pretrain my model for chinese dataset . can i use my own vocab.txt ? and what is the format for vocab.txt ? thanks a lot
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/448/reactions", "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/448/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/447
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/447/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/447/comments
https://api.github.com/repos/huggingface/transformers/issues/447/events
https://github.com/huggingface/transformers/issues/447
429,012,525
MDU6SXNzdWU0MjkwMTI1MjU=
447
Dynamic max_seq_length implementation?
{ "login": "zijwang", "id": 25057983, "node_id": "MDQ6VXNlcjI1MDU3OTgz", "avatar_url": "https://avatars.githubusercontent.com/u/25057983?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zijwang", "html_url": "https://github.com/zijwang", "followers_url": "https://api.github.com/users/zijwan...
[]
closed
false
null
[]
[ "Hi @zijwang , the package doesn't implement any specific batching logic, only tokenizers and models.\r\nYou are supposed to take care of this yourself in your scripts." ]
1,554
1,554
1,554
NONE
null
Does the package support dynamic `max_seq_length`, e.g., if it's None, it will automatically be the maximum length in the mini-batch?
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/447/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/447/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/446
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/446/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/446/comments
https://api.github.com/repos/huggingface/transformers/issues/446/events
https://github.com/huggingface/transformers/issues/446
428,971,570
MDU6SXNzdWU0Mjg5NzE1NzA=
446
How to select a certain layer as token's representation?
{ "login": "yexing99", "id": 25463584, "node_id": "MDQ6VXNlcjI1NDYzNTg0", "avatar_url": "https://avatars.githubusercontent.com/u/25463584?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yexing99", "html_url": "https://github.com/yexing99", "followers_url": "https://api.github.com/users/yex...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" } ...
closed
false
null
[]
[ "Hi @yexing99,\r\nWhat you need is the `hidden_state`, not the `weights`of the model.\r\nDon't use `model.named_parameters()` but just use the output of the model.\r\nHere is an example: https://github.com/huggingface/pytorch-pretrained-BERT#bert\r\nAnd more details here: https://github.com/huggingface/pytorch-pret...
1,554
1,554
1,554
NONE
null
My understanding from the paper that each token is represented by a 768-dim vector from the last hidden layer. Is it correct? If so, how can I get the second-to-the last layer's parameter as token representation? model = BertForTokenClassification.from_pretrained("bert-base-uncased", num_labels=len(tag2idx)) list...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/446/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/446/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/445
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/445/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/445/comments
https://api.github.com/repos/huggingface/transformers/issues/445/events
https://github.com/huggingface/transformers/pull/445
428,837,798
MDExOlB1bGxSZXF1ZXN0MjY3MTAzMTkx
445
Learning rate schedules improvement + extension
{ "login": "lukovnikov", "id": 1732910, "node_id": "MDQ6VXNlcjE3MzI5MTA=", "avatar_url": "https://avatars.githubusercontent.com/u/1732910?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lukovnikov", "html_url": "https://github.com/lukovnikov", "followers_url": "https://api.github.com/users...
[]
closed
false
null
[]
[ "Sorry for the delay in reviewing this.\r\nThis is a great PR and it looks good to me.\r\nThanks for adding some tests also.\r\nI agree with the (mostly cosmetic) comments from @marpaia.\r\nDo you think you can fix them and then we can merge?", "Fixed @marpaia 's comments.", "Awesome @lukovnikov, I think it loo...
1,554
1,556
1,556
CONTRIBUTOR
null
re: [PR#389](https://github.com/huggingface/pytorch-pretrained-BERT/pull/389) - refactored learning rate schedules into objects - added `WarmupCosineWithHardRestartsSchedule` for cosine schedule with hard restarts - added `WarmupCosineWithWarmupRestartsSchedule` for cosine schedule with restarts where each restart u...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/445/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/445/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/445", "html_url": "https://github.com/huggingface/transformers/pull/445", "diff_url": "https://github.com/huggingface/transformers/pull/445.diff", "patch_url": "https://github.com/huggingface/transformers/pull/445.patch", "merged_at": 15560...
https://api.github.com/repos/huggingface/transformers/issues/444
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/444/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/444/comments
https://api.github.com/repos/huggingface/transformers/issues/444/events
https://github.com/huggingface/transformers/issues/444
428,640,724
MDU6SXNzdWU0Mjg2NDA3MjQ=
444
if crf needed when do ner?
{ "login": "alphanlp", "id": 12368732, "node_id": "MDQ6VXNlcjEyMzY4NzMy", "avatar_url": "https://avatars.githubusercontent.com/u/12368732?v=4", "gravatar_id": "", "url": "https://api.github.com/users/alphanlp", "html_url": "https://github.com/alphanlp", "followers_url": "https://api.github.com/users/alp...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" },...
closed
false
null
[]
[ "A CRF gives better NER F1 scores in some cases, but not necessarily in all cases. In the BERT paper, no CRF is used and hence also no CRF in this repository. I'd presume the BERT authors tested both with and without CRF and found that a CRF layer gives no improvement, since using a CRF is kind of the default setti...
1,554
1,652
1,560
NONE
null
If crf needed when do ner? In BertForTokenClassification, just Linear is used to predict tag. If not, why?
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/444/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/444/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/443
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/443/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/443/comments
https://api.github.com/repos/huggingface/transformers/issues/443/events
https://github.com/huggingface/transformers/issues/443
428,572,223
MDU6SXNzdWU0Mjg1NzIyMjM=
443
How do you train custom corpus with bert?
{ "login": "shadylpstan", "id": 14815653, "node_id": "MDQ6VXNlcjE0ODE1NjUz", "avatar_url": "https://avatars.githubusercontent.com/u/14815653?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shadylpstan", "html_url": "https://github.com/shadylpstan", "followers_url": "https://api.github.com/...
[ { "id": 1108649070, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDcw", "url": "https://api.github.com/repos/huggingface/transformers/labels/Need%20more%20information", "name": "Need more information", "color": "d876e3", "default": false, "description": "Further information is requested" }, { ...
closed
false
null
[]
[ "Maybe it's a problem of not setting `do_lower_case=False` and using a `cased` model like in #436.\r\nWhich pretrained model are you using?", "@thomwolf \r\nsorry but this is completely not what I am asking for.\r\nSuppose I have medical data and the names of the medicines and diseases are not in the bert pre-tra...
1,554
1,563
1,560
NONE
null
I am using a domain specific dataset for text classification. But major of my data points are treated with [UNK] token in Bert. Can I please get help on how to keep my custom corpus tokens?
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/443/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/443/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/442
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/442/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/442/comments
https://api.github.com/repos/huggingface/transformers/issues/442/events
https://github.com/huggingface/transformers/issues/442
428,418,589
MDU6SXNzdWU0Mjg0MTg1ODk=
442
Unable to incrementally train BERT with custom training
{ "login": "AmrHendy", "id": 20549448, "node_id": "MDQ6VXNlcjIwNTQ5NDQ4", "avatar_url": "https://avatars.githubusercontent.com/u/20549448?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AmrHendy", "html_url": "https://github.com/AmrHendy", "followers_url": "https://api.github.com/users/Amr...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" },...
closed
false
null
[]
[ "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.\n" ]
1,554
1,560
1,560
NONE
null
I have trained BERT with custom small training. I am unable to train the same on QQP and then with custom train. Any discussion will be appreciated.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/442/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/442/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/441
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/441/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/441/comments
https://api.github.com/repos/huggingface/transformers/issues/441/events
https://github.com/huggingface/transformers/pull/441
428,369,581
MDExOlB1bGxSZXF1ZXN0MjY2NzUzMzE2
441
Fix bug in run_squad.py
{ "login": "MottoX", "id": 6220861, "node_id": "MDQ6VXNlcjYyMjA4NjE=", "avatar_url": "https://avatars.githubusercontent.com/u/6220861?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MottoX", "html_url": "https://github.com/MottoX", "followers_url": "https://api.github.com/users/MottoX/foll...
[]
closed
false
null
[]
[ "Hi @MottoX, sorry for the delay on reviewing this.\r\nIt seems to make sense to me.\r\nWhat kind of testing are you referring to? Could you share a bit more about them?", "Hi, @thomwolf \r\nI was trying to train a BERT-based model on NewsQA, a document-level QA dataset, using `run_squad.py`. I used 384 for max_s...
1,554
1,556
1,556
CONTRIBUTOR
null
I fired an issue in Google's repo, https://github.com/google-research/bert/issues/540#issue-428344784 After testing, I found it is indeed a bug. We should not put these chunks with `start_position==0` and `end_position==0` into training set. Thanks for code review.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/441/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/441/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/441", "html_url": "https://github.com/huggingface/transformers/pull/441", "diff_url": "https://github.com/huggingface/transformers/pull/441.diff", "patch_url": "https://github.com/huggingface/transformers/pull/441.patch", "merged_at": null ...
https://api.github.com/repos/huggingface/transformers/issues/440
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/440/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/440/comments
https://api.github.com/repos/huggingface/transformers/issues/440/events
https://github.com/huggingface/transformers/issues/440
428,321,828
MDU6SXNzdWU0MjgzMjE4Mjg=
440
How can i use bert for finding word embeddings
{ "login": "gkv91", "id": 8320832, "node_id": "MDQ6VXNlcjgzMjA4MzI=", "avatar_url": "https://avatars.githubusercontent.com/u/8320832?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gkv91", "html_url": "https://github.com/gkv91", "followers_url": "https://api.github.com/users/gkv91/follower...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" },...
closed
false
null
[]
[ "I extract features like examples in extarct_features.py. But went I used these features(the last encoded_layers) as word embeddings, I got a worse result than using 300D Glove. I also used these features to compute the cos similarity for each word in sentences, I found that all values were around 0.6", "This is...
1,554
1,567
1,561
NONE
null
Hi all, Can I use pre-trained BERT for finding fixed sized word embeddings, like 300D Glove or Word2vec word embeddings?.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/440/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/440/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/439
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/439/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/439/comments
https://api.github.com/repos/huggingface/transformers/issues/439/events
https://github.com/huggingface/transformers/issues/439
428,321,776
MDU6SXNzdWU0MjgzMjE3NzY=
439
DistributedDataParallel Not Working
{ "login": "moinnadeem", "id": 813367, "node_id": "MDQ6VXNlcjgxMzM2Nw==", "avatar_url": "https://avatars.githubusercontent.com/u/813367?v=4", "gravatar_id": "", "url": "https://api.github.com/users/moinnadeem", "html_url": "https://github.com/moinnadeem", "followers_url": "https://api.github.com/users/m...
[ { "id": 1108649070, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDcw", "url": "https://api.github.com/repos/huggingface/transformers/labels/Need%20more%20information", "name": "Need more information", "color": "d876e3", "default": false, "description": "Further information is requested" }, { ...
closed
false
null
[]
[ "Hi @moinnadeem,\r\nWhat is the hardware you are using and what is the exact command you are using to run DistributedDataParallel with the PyTorch launch module? ", "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you...
1,554
1,560
1,560
NONE
null
Hi, I've been stuck on this for days, so I decided to make an issue. When I run DistributedDataParallel with the PyTorch launch module, I see that one machine will start training without waiting for the other one to start; this is different than if I run it without the launch module. WIthout the launch module, I am ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/439/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/439/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/438
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/438/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/438/comments
https://api.github.com/repos/huggingface/transformers/issues/438/events
https://github.com/huggingface/transformers/issues/438
428,199,727
MDU6SXNzdWU0MjgxOTk3Mjc=
438
convert_tf_checkpoint_to_pytorch 'BertPreTrainingHeads' object has no attribute 'squad'
{ "login": "ghost", "id": 10137, "node_id": "MDQ6VXNlcjEwMTM3", "avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ghost", "html_url": "https://github.com/ghost", "followers_url": "https://api.github.com/users/ghost/followers", "f...
[]
closed
false
null
[]
[ "Hi @SandeepBhutani,\r\nCan you point me to the script you use for finetuning in Tensorflow?", "Hi @thomwolf : Thanks for reply. \r\nFine Tuning is done by mentioning do_train=True on run_squad.py (From google bert release github page: [https://github.com/google-research/bert](https://github.com/google-research/...
1,554
1,589
1,554
NONE
null
Trying to convert BERT checkpoints to pytorch checkpoints. It worked for default uncased bert_model.ckpt. However, after we did a custom training of tensorflow version and then tried to convert TF checkpoints to pytorch, it is giving error: 'BertPreTrainingHeads' object has no attribute 'squad' When printed ``...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/438/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/438/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/437
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/437/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/437/comments
https://api.github.com/repos/huggingface/transformers/issues/437/events
https://github.com/huggingface/transformers/pull/437
428,115,435
MDExOlB1bGxSZXF1ZXN0MjY2NTU3Nzc5
437
Fix links in README
{ "login": "MottoX", "id": 6220861, "node_id": "MDQ6VXNlcjYyMjA4NjE=", "avatar_url": "https://avatars.githubusercontent.com/u/6220861?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MottoX", "html_url": "https://github.com/MottoX", "followers_url": "https://api.github.com/users/MottoX/foll...
[]
closed
false
null
[]
[]
1,554
1,554
1,554
CONTRIBUTOR
null
Fixed two broken links, i.e., _**convert_tf_checkpoint_to_pytorch.py**_ and _**run_squad.py**_.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/437/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/437/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/437", "html_url": "https://github.com/huggingface/transformers/pull/437", "diff_url": "https://github.com/huggingface/transformers/pull/437.diff", "patch_url": "https://github.com/huggingface/transformers/pull/437.patch", "merged_at": 15541...
https://api.github.com/repos/huggingface/transformers/issues/436
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/436/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/436/comments
https://api.github.com/repos/huggingface/transformers/issues/436/events
https://github.com/huggingface/transformers/issues/436
427,944,845
MDU6SXNzdWU0Mjc5NDQ4NDU=
436
BertTokenizer.from_pretrained('bert-base-multilingual-cased') does not recognize Korean
{ "login": "chiehminwei", "id": 2521639, "node_id": "MDQ6VXNlcjI1MjE2Mzk=", "avatar_url": "https://avatars.githubusercontent.com/u/2521639?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chiehminwei", "html_url": "https://github.com/chiehminwei", "followers_url": "https://api.github.com/us...
[]
closed
false
null
[]
[ "Hi @icewing1996,\r\nThis comes from the fact that your tokenizer has `do_lower_case=True` but you load an uncased model.\r\n\r\nTry loading the tokenizer like this `tok = BertTokenizer.from_pretrained('bert-base-multilingual-uncased', do_lower_case=False)`.\r\n\r\nThis is actually a common issue and I see Jacob ha...
1,554
1,582
1,554
NONE
null
I'm using the pre-trained multilingual tokenizer to tokenize some Korean texts, but it seems like this tokenizer is unable to recognize any Korean text at all. For example, when running on all the Universal Dependency Korean treebanks, this tokenizer fails to tokenize (it produces '[UNK]') the following characters. ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/436/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/436/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/435
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/435/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/435/comments
https://api.github.com/repos/huggingface/transformers/issues/435/events
https://github.com/huggingface/transformers/pull/435
427,870,022
MDExOlB1bGxSZXF1ZXN0MjY2MzY5NDAy
435
Fixes to the TensorFlow conversion tool
{ "login": "marpaia", "id": 927168, "node_id": "MDQ6VXNlcjkyNzE2OA==", "avatar_url": "https://avatars.githubusercontent.com/u/927168?v=4", "gravatar_id": "", "url": "https://api.github.com/users/marpaia", "html_url": "https://github.com/marpaia", "followers_url": "https://api.github.com/users/marpaia/fo...
[]
closed
false
null
[]
[ "Yes! Thanks @marpaia!" ]
1,554
1,554
1,554
NONE
null
This PR contains a small fix to the script which converts TensorFlow weights to PyTorch weights. The related issues are #50, #306, etc. Thanks for all of the open source code you've been putting out in this domain, it has been incredibly helpful to me and my team.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/435/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/435/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/435", "html_url": "https://github.com/huggingface/transformers/pull/435", "diff_url": "https://github.com/huggingface/transformers/pull/435.diff", "patch_url": "https://github.com/huggingface/transformers/pull/435.patch", "merged_at": 15541...
https://api.github.com/repos/huggingface/transformers/issues/434
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/434/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/434/comments
https://api.github.com/repos/huggingface/transformers/issues/434/events
https://github.com/huggingface/transformers/issues/434
427,743,495
MDU6SXNzdWU0Mjc3NDM0OTU=
434
Model not training at all in Google Colab
{ "login": "nicholasbailey87", "id": 9570481, "node_id": "MDQ6VXNlcjk1NzA0ODE=", "avatar_url": "https://avatars.githubusercontent.com/u/9570481?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nicholasbailey87", "html_url": "https://github.com/nicholasbailey87", "followers_url": "https://ap...
[ { "id": 1108649053, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDUz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Help%20wanted", "name": "Help wanted", "color": "008672", "default": false, "description": "Extra attention is needed, help appreciated" }, { "id": 1260...
closed
false
null
[]
[ "Try train_batch_size =1. Alternatively I propose to finetune with the tensorflow model using colabs TPUs as these have far more memory.", "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.\n...
1,554
1,560
1,560
NONE
null
Hi! Thanks for your help. I am initiating training in the following way in a Colab notebook with GPU acceleration (with very small train batch size and max seq length to prove I'm not getting out of memory problems!): !pip install pytorch-pretrained-bert !rm -rf bert_output !mkdir bert_output !...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/434/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/434/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/433
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/433/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/433/comments
https://api.github.com/repos/huggingface/transformers/issues/433/events
https://github.com/huggingface/transformers/issues/433
427,720,799
MDU6SXNzdWU0Mjc3MjA3OTk=
433
how to do the pre training the model form scratch?
{ "login": "SeekPoint", "id": 18051187, "node_id": "MDQ6VXNlcjE4MDUxMTg3", "avatar_url": "https://avatars.githubusercontent.com/u/18051187?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SeekPoint", "html_url": "https://github.com/SeekPoint", "followers_url": "https://api.github.com/users/...
[]
closed
false
null
[]
[ "```\r\npython3 examples/lm_finetuning/simple_lm_finetuning.py \r\n--train_corpus sample_text.txt \r\n--bert_model bert-base-uncased \r\n--do_lower_case \r\n--output_dir finetuned_lm/\r\n```\r\nIn addition, you can refer to #385 ", "Yes let's keep a single issue on this. Closing in favor of #385." ]
1,554
1,554
1,554
NONE
null
for example, use sample_text.txt
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/433/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/433/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/432
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/432/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/432/comments
https://api.github.com/repos/huggingface/transformers/issues/432/events
https://github.com/huggingface/transformers/issues/432
427,657,833
MDU6SXNzdWU0Mjc2NTc4MzM=
432
Predictions from BertForSequenceClassification model keep changing across runs
{ "login": "varun-nathan", "id": 48044871, "node_id": "MDQ6VXNlcjQ4MDQ0ODcx", "avatar_url": "https://avatars.githubusercontent.com/u/48044871?v=4", "gravatar_id": "", "url": "https://api.github.com/users/varun-nathan", "html_url": "https://github.com/varun-nathan", "followers_url": "https://api.github.c...
[ { "id": 1108649070, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDcw", "url": "https://api.github.com/repos/huggingface/transformers/labels/Need%20more%20information", "name": "Need more information", "color": "d876e3", "default": false, "description": "Further information is requested" }, { ...
closed
false
null
[]
[ "You probably forgot to deactivate the DropOut modules with `model.eval()`", "Oh ok, I get it. That's helpful. Thanks!", "I tried that and now I seem to be getting the same predictions for any input. In other words, the logits don't change with change in input. Not sure why this is happening?", "Maybe a bug i...
1,554
1,614
1,560
NONE
null
I used the code in run_classifier.py to train a model for intent detection which is a multi-class classification problem. After training the model, when I used it for prediction, I found the predictions to be changing from one run to another. I'm trying to understand the reason for the same and how I can avoid this beh...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/432/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/432/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/431
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/431/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/431/comments
https://api.github.com/repos/huggingface/transformers/issues/431/events
https://github.com/huggingface/transformers/issues/431
427,645,865
MDU6SXNzdWU0Mjc2NDU4NjU=
431
How to fine tune Transformer-XL on own dataset?
{ "login": "Archelunch", "id": 10900176, "node_id": "MDQ6VXNlcjEwOTAwMTc2", "avatar_url": "https://avatars.githubusercontent.com/u/10900176?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Archelunch", "html_url": "https://github.com/Archelunch", "followers_url": "https://api.github.com/use...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" },...
closed
false
null
[]
[ "Hi,\r\nYou can tokenize your data with the Transformer-XL tokenizer and use it to train your model.", "I understand it. But I want to fine tune pretrained model", "What is the difference?\r\n\r\nCan you start by trying to do what you would do normally to fine-tune a pytorch model and then if you encounter an i...
1,554
1,563
1,563
NONE
null
I have my own dataset. What format of data I need to fine tune TransformerXL for text generation?
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/431/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/431/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/430
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/430/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/430/comments
https://api.github.com/repos/huggingface/transformers/issues/430/events
https://github.com/huggingface/transformers/pull/430
427,305,693
MDExOlB1bGxSZXF1ZXN0MjY1OTU0MTYy
430
Fix typo in example code
{ "login": "MottoX", "id": 6220861, "node_id": "MDQ6VXNlcjYyMjA4NjE=", "avatar_url": "https://avatars.githubusercontent.com/u/6220861?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MottoX", "html_url": "https://github.com/MottoX", "followers_url": "https://api.github.com/users/MottoX/foll...
[]
closed
false
null
[]
[]
1,553
1,554
1,554
CONTRIBUTOR
null
Modify 'unambigiously' to 'unambiguously'
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/430/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/430/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/430", "html_url": "https://github.com/huggingface/transformers/pull/430", "diff_url": "https://github.com/huggingface/transformers/pull/430.diff", "patch_url": "https://github.com/huggingface/transformers/pull/430.patch", "merged_at": 15541...
https://api.github.com/repos/huggingface/transformers/issues/429
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/429/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/429/comments
https://api.github.com/repos/huggingface/transformers/issues/429/events
https://github.com/huggingface/transformers/issues/429
427,290,740
MDU6SXNzdWU0MjcyOTA3NDA=
429
GPT2Tokenizer <|endoftext|>
{ "login": "latkins", "id": 1080217, "node_id": "MDQ6VXNlcjEwODAyMTc=", "avatar_url": "https://avatars.githubusercontent.com/u/1080217?v=4", "gravatar_id": "", "url": "https://api.github.com/users/latkins", "html_url": "https://github.com/latkins", "followers_url": "https://api.github.com/users/latkins/...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" } ...
closed
false
null
[]
[ "`\"<|endoftext|>\"` is a *special token* that is not intended to be feed through the tokenizer but added to the indices list after the tokenization process (see for example the way it is used in the short example [`run_gpt2.py`](https://github.com/huggingface/pytorch-pretrained-BERT/blob/master/examples/run_gpt2.p...
1,553
1,694
1,554
NONE
null
I am confused as to how the GPT2Tokenizer is intended to be used. It looks like `GPT2Tokenizer.encode` doesn't always take the byte pair encoding into account -- is this intentional? ``` from pytorch_pretrained_bert import GPT2Tokenizer tok = GPT2Tokenizer.from_pretrained("gpt2") print(tok.encode("<|endoftex...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/429/reactions", "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/429/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/428
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/428/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/428/comments
https://api.github.com/repos/huggingface/transformers/issues/428/events
https://github.com/huggingface/transformers/issues/428
427,271,826
MDU6SXNzdWU0MjcyNzE4MjY=
428
Cannot find Synthetic self-training in this repository.
{ "login": "Dogy06", "id": 27922893, "node_id": "MDQ6VXNlcjI3OTIyODkz", "avatar_url": "https://avatars.githubusercontent.com/u/27922893?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Dogy06", "html_url": "https://github.com/Dogy06", "followers_url": "https://api.github.com/users/Dogy06/fo...
[]
closed
false
null
[]
[ "Hi, indeed there is no Synthetic self-training in this repository, and the SQuAD leaderboard website actually refers to the Tensorflow repository so I'll close this issue.", "Will you be adding synthetic self training though?" ]
1,553
1,554
1,554
NONE
null
The SQuAD leader board's (https://rajpurkar.github.io/SQuAD-explorer/) 3rd highest scored model uses 'synthetic self-training'. There is a PDF explaining it: https://nlp.stanford.edu/seminar/details/jdevlin.pdf?fbclid=IwAR2TBFCJOeZ9cGhxB-z5cJJ17vHN4W25oWsjI8NqJoTEmlYIYEKG7oh4tlY but I have found no such model within t...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/428/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/428/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/427
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/427/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/427/comments
https://api.github.com/repos/huggingface/transformers/issues/427/events
https://github.com/huggingface/transformers/pull/427
427,247,452
MDExOlB1bGxSZXF1ZXN0MjY1OTE3NzM2
427
fix sample_doc
{ "login": "jeonsworld", "id": 37530102, "node_id": "MDQ6VXNlcjM3NTMwMTAy", "avatar_url": "https://avatars.githubusercontent.com/u/37530102?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jeonsworld", "html_url": "https://github.com/jeonsworld", "followers_url": "https://api.github.com/use...
[]
closed
false
null
[]
[ "Good catch, thanks!", "Gah. I meant to use `randrange()`, but this fix is equivalent!" ]
1,553
1,555
1,554
CONTRIBUTOR
null
If the value of rand_end is returned from the randint function, the value of sampled_doc_index that matches current_idx is returned from searchsorted. example: cumsum_max = {int64} 30 doc_cumsum = {ndarray} [ 5 7 11 19 30] doc_lengths = {list} <class 'list'>: [5, 2, 4, 8, 11] if current_idx = 1, rand_start = ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/427/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/427/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/427", "html_url": "https://github.com/huggingface/transformers/pull/427", "diff_url": "https://github.com/huggingface/transformers/pull/427.diff", "patch_url": "https://github.com/huggingface/transformers/pull/427.patch", "merged_at": 15542...
https://api.github.com/repos/huggingface/transformers/issues/426
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/426/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/426/comments
https://api.github.com/repos/huggingface/transformers/issues/426/events
https://github.com/huggingface/transformers/pull/426
426,985,414
MDExOlB1bGxSZXF1ZXN0MjY1NzE0ODgz
426
instantiate loss_fct once
{ "login": "Separius", "id": 519177, "node_id": "MDQ6VXNlcjUxOTE3Nw==", "avatar_url": "https://avatars.githubusercontent.com/u/519177?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Separius", "html_url": "https://github.com/Separius", "followers_url": "https://api.github.com/users/Separiu...
[]
closed
false
null
[]
[ "Thanks for the PR but I think it's fine like it is now (slightly easier to read and debug)." ]
1,553
1,554
1,554
CONTRIBUTOR
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/426/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/426/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/426", "html_url": "https://github.com/huggingface/transformers/pull/426", "diff_url": "https://github.com/huggingface/transformers/pull/426.diff", "patch_url": "https://github.com/huggingface/transformers/pull/426.patch", "merged_at": null ...
https://api.github.com/repos/huggingface/transformers/issues/425
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/425/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/425/comments
https://api.github.com/repos/huggingface/transformers/issues/425/events
https://github.com/huggingface/transformers/pull/425
426,865,891
MDExOlB1bGxSZXF1ZXN0MjY1NjIxMjQ5
425
fix lm_finetuning's link
{ "login": "Separius", "id": 519177, "node_id": "MDQ6VXNlcjUxOTE3Nw==", "avatar_url": "https://avatars.githubusercontent.com/u/519177?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Separius", "html_url": "https://github.com/Separius", "followers_url": "https://api.github.com/users/Separiu...
[]
closed
false
null
[]
[ "Thanks!" ]
1,553
1,553
1,553
CONTRIBUTOR
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/425/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/425/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/425", "html_url": "https://github.com/huggingface/transformers/pull/425", "diff_url": "https://github.com/huggingface/transformers/pull/425.diff", "patch_url": "https://github.com/huggingface/transformers/pull/425.patch", "merged_at": 15538...
https://api.github.com/repos/huggingface/transformers/issues/424
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/424/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/424/comments
https://api.github.com/repos/huggingface/transformers/issues/424/events
https://github.com/huggingface/transformers/issues/424
426,651,083
MDU6SXNzdWU0MjY2NTEwODM=
424
Difference between base and large tokenizer?
{ "login": "ZhaofengWu", "id": 11954789, "node_id": "MDQ6VXNlcjExOTU0Nzg5", "avatar_url": "https://avatars.githubusercontent.com/u/11954789?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ZhaofengWu", "html_url": "https://github.com/ZhaofengWu", "followers_url": "https://api.github.com/use...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" },...
closed
false
null
[]
[ "I haven't looked in the details of the vocabularies for each model.\r\nIf you investigate this question, be sure to share the results here, it may interest others as well!", "I did a diff on the two vocabulary files and there is no difference. As long as you use the uncased version at least. I haven't investigat...
1,553
1,560
1,560
CONTRIBUTOR
null
I understand that a cased tokenizer and an uncased one are surely different because their vocabs are different in casing, but how does a base tokenizer different from a large tokenizer? Does a large tokenizer have a larger vocab?
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/424/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/424/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/423
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/423/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/423/comments
https://api.github.com/repos/huggingface/transformers/issues/423/events
https://github.com/huggingface/transformers/pull/423
426,614,853
MDExOlB1bGxSZXF1ZXN0MjY1NDI5MDQx
423
making unconditional generation work
{ "login": "dhanajitb", "id": 19517627, "node_id": "MDQ6VXNlcjE5NTE3NjI3", "avatar_url": "https://avatars.githubusercontent.com/u/19517627?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dhanajitb", "html_url": "https://github.com/dhanajitb", "followers_url": "https://api.github.com/users/...
[]
closed
false
null
[]
[ "Hi thanks for the PR.\r\nI think we still need to clean up the example a little more indeed.\r\nThese lines should be taken care off:\r\n```python\r\nwhile not args.unconditional:\r\n if not args.unconditional:\r\n```\r\nI will see if I can find time to refactor it next week or you can update your PR if you want...
1,553
1,555
1,555
CONTRIBUTOR
null
The unconditional generation works now but if the seed is fixed, the sample is the same every time. n_samples > 1 will give different samples though. I am giving the start token as '<|endoftext|>' for the unconditional generation.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/423/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/423/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/423", "html_url": "https://github.com/huggingface/transformers/pull/423", "diff_url": "https://github.com/huggingface/transformers/pull/423.diff", "patch_url": "https://github.com/huggingface/transformers/pull/423.patch", "merged_at": 15553...
https://api.github.com/repos/huggingface/transformers/issues/422
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/422/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/422/comments
https://api.github.com/repos/huggingface/transformers/issues/422/events
https://github.com/huggingface/transformers/issues/422
426,611,523
MDU6SXNzdWU0MjY2MTE1MjM=
422
BertForTokenClassification for NER, mask labels
{ "login": "alexyalunin", "id": 23011284, "node_id": "MDQ6VXNlcjIzMDExMjg0", "avatar_url": "https://avatars.githubusercontent.com/u/23011284?v=4", "gravatar_id": "", "url": "https://api.github.com/users/alexyalunin", "html_url": "https://github.com/alexyalunin", "followers_url": "https://api.github.com/...
[]
closed
false
null
[]
[ "Sequence tagging is explained here: https://github.com/huggingface/pytorch-pretrained-BERT/issues/64#issuecomment-443703063", "Yes, this is the relevant issue on this topic. I'll close this issue in favor of #64." ]
1,553
1,554
1,554
NONE
null
I'm trying to do Named Entity Recognition with BertForTokenClassification. Say I have 10 words with 10 labels, after WordPiece tokenization I get 15 tokens and I assign them labels, "X" for pieces of words like (##ing). In the original paper https://arxiv.org/pdf/1810.04805.pdf in 4.3 section is said that we don't ma...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/422/reactions", "total_count": 3, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/422/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/421
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/421/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/421/comments
https://api.github.com/repos/huggingface/transformers/issues/421/events
https://github.com/huggingface/transformers/issues/421
426,549,937
MDU6SXNzdWU0MjY1NDk5Mzc=
421
pytorch model to tensorflow checkpoint
{ "login": "KavyaGujjala", "id": 28920687, "node_id": "MDQ6VXNlcjI4OTIwNjg3", "avatar_url": "https://avatars.githubusercontent.com/u/28920687?v=4", "gravatar_id": "", "url": "https://api.github.com/users/KavyaGujjala", "html_url": "https://github.com/KavyaGujjala", "followers_url": "https://api.github.c...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null } ]
closed
false
null
[]
[ "Hi, there is no script to do that currently. I don't plan to add this feature in the short term but I would be happy to welcome a PR on that.", "A PR for this would be great. It would allow a simple deployment via Han's bert-as-service\r\n https://github.com/hanxiao/bert-as-service/", "This issue has been aut...
1,553
1,560
1,560
NONE
null
How to convert a pytorch_model.bin to tensorflow checkpoint?
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/421/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/421/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/420
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/420/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/420/comments
https://api.github.com/repos/huggingface/transformers/issues/420/events
https://github.com/huggingface/transformers/issues/420
426,544,017
MDU6SXNzdWU0MjY1NDQwMTc=
420
Advantage of BertAdam over Adam?
{ "login": "BramVanroy", "id": 2779410, "node_id": "MDQ6VXNlcjI3Nzk0MTA=", "avatar_url": "https://avatars.githubusercontent.com/u/2779410?v=4", "gravatar_id": "", "url": "https://api.github.com/users/BramVanroy", "html_url": "https://github.com/BramVanroy", "followers_url": "https://api.github.com/users...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" } ...
closed
false
null
[]
[ "Some explanation is given here: https://github.com/huggingface/pytorch-pretrained-BERT/blob/694e2117f33d752ae89542e70b84533c52cb9142/README.md#optimizers\r\n\r\n`BertAdam` is a `torch.optimizer` adapted to be closer to the optimizer used in the TensorFlow implementation of Bert. The differences with PyTorch `Adam`...
1,553
1,594
1,554
COLLABORATOR
null
I have implemented BERT, taking the output of [CLS] and feeding that to a linear layer on top to do regression. I froze the embedding layers of BERT, though. I was using the standard Adam optimizer and did not run into any issues. When and/or why should one use BERTAdam? And, in a set-up like mine, would you use BER...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/420/reactions", "total_count": 8, "+1": 8, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/420/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/419
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/419/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/419/comments
https://api.github.com/repos/huggingface/transformers/issues/419/events
https://github.com/huggingface/transformers/issues/419
426,376,347
MDU6SXNzdWU0MjYzNzYzNDc=
419
bug in examples/run_squad.py line 88 & 90
{ "login": "lbyiuou", "id": 11863461, "node_id": "MDQ6VXNlcjExODYzNDYx", "avatar_url": "https://avatars.githubusercontent.com/u/11863461?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lbyiuou", "html_url": "https://github.com/lbyiuou", "followers_url": "https://api.github.com/users/lbyiuo...
[]
closed
false
null
[]
[ "Indeed, thanks" ]
1,553
1,554
1,554
NONE
null
if self.start_position: s += ", end_position: %d" % (self.end_position) if self.start_position: s += ", is_impossible: %r" % (self.is_impossible)
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/419/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/419/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/418
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/418/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/418/comments
https://api.github.com/repos/huggingface/transformers/issues/418/events
https://github.com/huggingface/transformers/issues/418
426,349,075
MDU6SXNzdWU0MjYzNDkwNzU=
418
can I fine-tuning pretrained gpt2 model on my corpus?
{ "login": "marvinzh", "id": 6829031, "node_id": "MDQ6VXNlcjY4MjkwMzE=", "avatar_url": "https://avatars.githubusercontent.com/u/6829031?v=4", "gravatar_id": "", "url": "https://api.github.com/users/marvinzh", "html_url": "https://github.com/marvinzh", "followers_url": "https://api.github.com/users/marvi...
[]
closed
false
null
[]
[]
1,553
1,553
1,553
NONE
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/418/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/418/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/417
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/417/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/417/comments
https://api.github.com/repos/huggingface/transformers/issues/417/events
https://github.com/huggingface/transformers/issues/417
426,327,845
MDU6SXNzdWU0MjYzMjc4NDU=
417
Is there any pre-training example code?
{ "login": "tmchojo", "id": 16629196, "node_id": "MDQ6VXNlcjE2NjI5MTk2", "avatar_url": "https://avatars.githubusercontent.com/u/16629196?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tmchojo", "html_url": "https://github.com/tmchojo", "followers_url": "https://api.github.com/users/tmchoj...
[]
closed
false
null
[]
[ "Hi @tmchojo there are now several detailed examples [here](https://github.com/huggingface/pytorch-pretrained-BERT/tree/master/examples/lm_finetuning) thanks to @Rocketknight1 and #392 ", "Thanks.\r\nBut it still needs pre-trained model.\r\nMy data is another domain (not English or Chinese), so I can't use pre-tr...
1,553
1,640
1,553
NONE
null
I want to pre-train BERT with my own data. [#124](https://github.com/huggingface/pytorch-pretrained-BERT/pull/124), [#170](https://github.com/huggingface/pytorch-pretrained-BERT/issues/170) say the model can pre-training. But I can't find pre-training example code. Is there any pre-training example code? If there i...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/417/reactions", "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/417/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/416
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/416/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/416/comments
https://api.github.com/repos/huggingface/transformers/issues/416/events
https://github.com/huggingface/transformers/issues/416
426,242,746
MDU6SXNzdWU0MjYyNDI3NDY=
416
Distributed Training Gets Stuck
{ "login": "moinnadeem", "id": 813367, "node_id": "MDQ6VXNlcjgxMzM2Nw==", "avatar_url": "https://avatars.githubusercontent.com/u/813367?v=4", "gravatar_id": "", "url": "https://api.github.com/users/moinnadeem", "html_url": "https://github.com/moinnadeem", "followers_url": "https://api.github.com/users/m...
[ { "id": 1108649053, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDUz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Help%20wanted", "name": "Help wanted", "color": "008672", "default": false, "description": "Extra attention is needed, help appreciated" }, { "id": 1108...
closed
false
null
[]
[ "Hi,\r\nOne possible cause of this behavior may be the way you are freezing your parameters.\r\n\r\nPyTorch's `DistributedDataParallel` is a rather sensitive beast as you can juge by the number of warnings in [its doc](https://pytorch.org/docs/stable/nn.html#torch.nn.parallel.DistributedDataParallel).\r\n\r\nTwo fe...
1,553
1,560
1,560
NONE
null
Hi, When I freeze the BERT layers, distributed training works just fine. However, when I unfreeze the BERT layers, the first node continues training, and all other nodes wait on the training step with 100% GPU utilization on the first GPU. Is this expected behavior, or am I doing something wrong? I'm using PyTorc...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/416/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/416/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/415
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/415/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/415/comments
https://api.github.com/repos/huggingface/transformers/issues/415/events
https://github.com/huggingface/transformers/issues/415
426,146,199
MDU6SXNzdWU0MjYxNDYxOTk=
415
For sequence classification, is this model using the wrong token?
{ "login": "CatalinVoss", "id": 332459, "node_id": "MDQ6VXNlcjMzMjQ1OQ==", "avatar_url": "https://avatars.githubusercontent.com/u/332459?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CatalinVoss", "html_url": "https://github.com/CatalinVoss", "followers_url": "https://api.github.com/user...
[]
closed
false
null
[]
[ "Never mind, I think I got confused. Is it that the pooler already takes care of that and encoded_layers represents the pooler output for each attention layer?", "Hi Catalin, the content of the outputs (`encoded_layers` and `pooled_output`) is detailed in the readme [here](https://github.com/huggingface/pytorch-p...
1,553
1,553
1,553
CONTRIBUTOR
null
According to the BERT paper, we want to use the weights for the `[CLS]` token, which – as far as I understand – would be the first hidden output here, not the last? i.e. shouldn't this be `encoded_layers[0]` below? https://github.com/huggingface/pytorch-pretrained-BERT/blob/f7c9dc8c998395d2ad9edbf0fd6fa072f03cc66...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/415/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/415/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/414
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/414/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/414/comments
https://api.github.com/repos/huggingface/transformers/issues/414/events
https://github.com/huggingface/transformers/issues/414
425,788,102
MDU6SXNzdWU0MjU3ODgxMDI=
414
Help with implementing strides into features for multi-label classifier
{ "login": "alvin-leong", "id": 33982759, "node_id": "MDQ6VXNlcjMzOTgyNzU5", "avatar_url": "https://avatars.githubusercontent.com/u/33982759?v=4", "gravatar_id": "", "url": "https://api.github.com/users/alvin-leong", "html_url": "https://github.com/alvin-leong", "followers_url": "https://api.github.com/...
[ { "id": 1108649053, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDUz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Help%20wanted", "name": "Help wanted", "color": "008672", "default": false, "description": "Extra attention is needed, help appreciated" }, { "id": 1260...
closed
false
null
[]
[ "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.\n", "@alvin-leong did this make any progress? I am interested in doing something similar for the sequence classifier. ", "@alvin-leong @ma...
1,553
1,678
1,559
NONE
null
As you might know, BERT has a maximum wordpiece token sequence length of 512. The SQuAD example actually uses strides to account for this: https://github.com/google-research/bert/issues/27 I want to implement something like what Jacob Devlin described in that post for Kaushal's multi-label BERT classifier: https://m...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/414/reactions", "total_count": 11, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 11 }
https://api.github.com/repos/huggingface/transformers/issues/414/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/413
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/413/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/413/comments
https://api.github.com/repos/huggingface/transformers/issues/413/events
https://github.com/huggingface/transformers/issues/413
425,665,342
MDU6SXNzdWU0MjU2NjUzNDI=
413
Bert Pretrained model has no modules nor parameters
{ "login": "yousenwang", "id": 10716228, "node_id": "MDQ6VXNlcjEwNzE2MjI4", "avatar_url": "https://avatars.githubusercontent.com/u/10716228?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yousenwang", "html_url": "https://github.com/yousenwang", "followers_url": "https://api.github.com/use...
[]
closed
false
null
[]
[]
1,553
1,553
1,553
NONE
null
"from pytorch_pretrained_bert.modeling import BertPreTrainedModel bert_model = BertPreTrainedModel.from_pretrained(pretrained_model_name_or_path='bert-base-uncased') bert_model.to(device)" returns: 2019-03-26 21:38:07,404 pytorch_pretrained_bert.modeling INFO loading archive file https://s3.amazonaws.com/mode...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/413/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/413/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/412
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/412/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/412/comments
https://api.github.com/repos/huggingface/transformers/issues/412/events
https://github.com/huggingface/transformers/issues/412
425,663,361
MDU6SXNzdWU0MjU2NjMzNjE=
412
Possible error in "pytorch-pretrained-BERT/examples/run_gpt2.py" unconditional
{ "login": "brunokinder", "id": 1786870, "node_id": "MDQ6VXNlcjE3ODY4NzA=", "avatar_url": "https://avatars.githubusercontent.com/u/1786870?v=4", "gravatar_id": "", "url": "https://api.github.com/users/brunokinder", "html_url": "https://github.com/brunokinder", "followers_url": "https://api.github.com/us...
[]
closed
false
null
[]
[ "This should be fixed by #462." ]
1,553
1,555
1,555
NONE
null
Hello, First of all thanks for offering us those great NLP implementations. I think there may be an error in the file pytorch-pretrained-BERT/examples/run_gpt2.py ![image](https://user-images.githubusercontent.com/1786870/55035530-94df8c80-4fee-11e9-90eb-bde5bcba7832.png) The way it is implemented if we do unco...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/412/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/412/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/411
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/411/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/411/comments
https://api.github.com/repos/huggingface/transformers/issues/411/events
https://github.com/huggingface/transformers/issues/411
425,415,282
MDU6SXNzdWU0MjU0MTUyODI=
411
Why average the loss when training on multi-GPUs
{ "login": "pkuyym", "id": 5782283, "node_id": "MDQ6VXNlcjU3ODIyODM=", "avatar_url": "https://avatars.githubusercontent.com/u/5782283?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkuyym", "html_url": "https://github.com/pkuyym", "followers_url": "https://api.github.com/users/pkuyym/foll...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" } ...
closed
false
null
[]
[ "Multi-GPU loss returns a tuple of losses with one loss for each GPU.\r\nWe average them to get the full loss. See [this blog post](https://medium.com/huggingface/training-larger-batches-practical-tips-on-1-gpu-multi-gpu-distributed-setups-ec88c3e51255) for more details." ]
1,553
1,553
1,553
NONE
null
Could anyone help to explain the motivation for this operation? https://github.com/huggingface/pytorch-pretrained-BERT/blob/master/examples/run_classifier.py#L573-L574
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/411/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/411/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/410
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/410/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/410/comments
https://api.github.com/repos/huggingface/transformers/issues/410/events
https://github.com/huggingface/transformers/issues/410
425,411,023
MDU6SXNzdWU0MjU0MTEwMjM=
410
something wrong in example
{ "login": "Wangpeiyi9979", "id": 42565075, "node_id": "MDQ6VXNlcjQyNTY1MDc1", "avatar_url": "https://avatars.githubusercontent.com/u/42565075?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Wangpeiyi9979", "html_url": "https://github.com/Wangpeiyi9979", "followers_url": "https://api.githu...
[ { "id": 1108649070, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDcw", "url": "https://api.github.com/repos/huggingface/transformers/labels/Need%20more%20information", "name": "Need more information", "color": "d876e3", "default": false, "description": "Further information is requested" }, { ...
closed
false
null
[]
[ "Do you have the latest `pytorch-pretrained-bert` ?\r\n```python\r\nimport pytorch_pretrained_bert\r\npytorch_pretrained_bert.__version__\r\n```", "Thank you so much!!!!!!!", "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occur...
1,553
1,559
1,559
NONE
null
![image](https://user-images.githubusercontent.com/42565075/54999939-5789f780-500c-11e9-958f-1c7b0b92a257.png) the segmentation is wrong。。
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/410/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/410/timeline
completed
null
null