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/1009
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/1009/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/1009/comments
https://api.github.com/repos/huggingface/transformers/issues/1009/events
https://github.com/huggingface/transformers/issues/1009
479,508,305
MDU6SXNzdWU0Nzk1MDgzMDU=
1,009
GPT2 Sentence Probability: Necessary to Prepend "<|endoftext|>"?
{ "login": "jhlau", "id": 4261132, "node_id": "MDQ6VXNlcjQyNjExMzI=", "avatar_url": "https://avatars.githubusercontent.com/u/4261132?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jhlau", "html_url": "https://github.com/jhlau", "followers_url": "https://api.github.com/users/jhlau/follower...
[]
closed
false
null
[]
[ "Dig into this a little, and it looks like the answer is yes:\r\n\r\n```\r\ntext = \"the book is on the desk.\"\r\ntokenizer = GPT2Tokenizer.from_pretrained('gpt2')\r\nmodel = GPT2LMHeadModel.from_pretrained('gpt2')\r\ninput_ids = torch.tensor(tokenizer.encode(text)).unsqueeze(0) # Batch size 1\r\ntokenize_input =...
1,565
1,667
1,565
NONE
null
When computing sentence probability, do we need to prepend the sentence with a dummy start token (e.g. <|endoftext|>) to get the full sentence probability? I am currently using the following implemention (from https://github.com/huggingface/pytorch-transformers/issues/473): ``` model = GPT2LMHeadModel.from_pretrain...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/1009/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/1009/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/1008
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/1008/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/1008/comments
https://api.github.com/repos/huggingface/transformers/issues/1008/events
https://github.com/huggingface/transformers/issues/1008
479,450,807
MDU6SXNzdWU0Nzk0NTA4MDc=
1,008
How can I use only one layer transformer via this repository?
{ "login": "LLLLLLI", "id": 22325702, "node_id": "MDQ6VXNlcjIyMzI1NzAy", "avatar_url": "https://avatars.githubusercontent.com/u/22325702?v=4", "gravatar_id": "", "url": "https://api.github.com/users/LLLLLLI", "html_url": "https://github.com/LLLLLLI", "followers_url": "https://api.github.com/users/LLLLLL...
[]
closed
false
null
[]
[ "This repository is especially useful if you're looking to use a pre-trained transformer of the same architecture than that of BERT, GPT, GPT-2, XLM, XLNet or TransfoXL.\r\n\r\nIf you're looking at using a simple transformer of your own making, how about using the newly released [torch.nn.Transformer](https://pytor...
1,565
1,565
1,565
NONE
null
## ❓ Questions & Help I want to use only one layer transformer on the head of some backbone model. Can I use this repository in a simple way?
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/1008/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/1008/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/1007
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/1007/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/1007/comments
https://api.github.com/repos/huggingface/transformers/issues/1007/events
https://github.com/huggingface/transformers/issues/1007
479,401,438
MDU6SXNzdWU0Nzk0MDE0Mzg=
1,007
can somebody share an example of how to use GPT2 model for multiclass classification problem with fine tuning Language model ?
{ "login": "p9anand", "id": 7848315, "node_id": "MDQ6VXNlcjc4NDgzMTU=", "avatar_url": "https://avatars.githubusercontent.com/u/7848315?v=4", "gravatar_id": "", "url": "https://api.github.com/users/p9anand", "html_url": "https://github.com/p9anand", "followers_url": "https://api.github.com/users/p9anand/...
[ { "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,565
1,571
1,571
NONE
null
## ❓ Questions & Help I have huge text corpus without label and few data points with label. can somebody guide on how to use GPT2 model for multi class classification problem with fine tuned Language model ?
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/1007/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/1007/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/1006
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/1006/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/1006/comments
https://api.github.com/repos/huggingface/transformers/issues/1006/events
https://github.com/huggingface/transformers/pull/1006
479,370,922
MDExOlB1bGxSZXF1ZXN0MzA2MjgxMzc2
1,006
Update README.md
{ "login": "carefree0910", "id": 15677328, "node_id": "MDQ6VXNlcjE1Njc3MzI4", "avatar_url": "https://avatars.githubusercontent.com/u/15677328?v=4", "gravatar_id": "", "url": "https://api.github.com/users/carefree0910", "html_url": "https://github.com/carefree0910", "followers_url": "https://api.github.c...
[]
closed
false
null
[]
[ "You're right, it should! Thanks for pointing it out!" ]
1,565
1,565
1,565
CONTRIBUTOR
null
I assume that it should test the `re-load` functionality after testing the `save` functionality, however I'm also surprised that nobody points this out after such a long time, so maybe I've misunderstood the purpose. This PR is just in case :)
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/1006/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/1006/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/1006", "html_url": "https://github.com/huggingface/transformers/pull/1006", "diff_url": "https://github.com/huggingface/transformers/pull/1006.diff", "patch_url": "https://github.com/huggingface/transformers/pull/1006.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/1005
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/1005/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/1005/comments
https://api.github.com/repos/huggingface/transformers/issues/1005/events
https://github.com/huggingface/transformers/issues/1005
479,358,726
MDU6SXNzdWU0NzkzNTg3MjY=
1,005
Can't get attribute 'Corpus' on <module '__main__' from 'convert_transfo_xl_checkpoint_to_pytorch.py'>
{ "login": "Pydataman", "id": 17594431, "node_id": "MDQ6VXNlcjE3NTk0NDMx", "avatar_url": "https://avatars.githubusercontent.com/u/17594431?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Pydataman", "html_url": "https://github.com/Pydataman", "followers_url": "https://api.github.com/users/...
[]
closed
false
null
[]
[]
1,565
1,565
1,565
NONE
null
I trained my data with the original transformer_xl repo, but I use convert_transfo_xl_checkpoint_to_pytorch.py to transfer tf to pytorch, error occurs: AttributeError: Can't get attribute 'Corpus' on <module '__main__' from 'convert_transfo_xl_checkpoint_to_pytorch.py'> to use my data, What code do I want to chan...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/1005/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/1005/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/1004
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/1004/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/1004/comments
https://api.github.com/repos/huggingface/transformers/issues/1004/events
https://github.com/huggingface/transformers/pull/1004
479,344,163
MDExOlB1bGxSZXF1ZXN0MzA2MjY0MTAx
1,004
Refactoring old run_swag.py
{ "login": "erenup", "id": 43887288, "node_id": "MDQ6VXNlcjQzODg3Mjg4", "avatar_url": "https://avatars.githubusercontent.com/u/43887288?v=4", "gravatar_id": "", "url": "https://api.github.com/users/erenup", "html_url": "https://github.com/erenup", "followers_url": "https://api.github.com/users/erenup/fo...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/pytorch-transformers/pull/1004?src=pr&el=h1) Report\n> Merging [#1004](https://codecov.io/gh/huggingface/pytorch-transformers/pull/1004?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/pytorch-transformers/commit/e768f2322abd2a2f60a3a6d64a6a94c2d957fe89?...
1,565
1,573
1,568
CONTRIBUTOR
null
Pytorch-transformers! Nice work! Refactoring old run_swag.py. ## Motivation: I have seen the swag PR1 #951 and related issues #931 According to @thomwolf 's comments on PR1, I think it's necessary to adopt code styles of [run_squad.py](https://github.com/huggingface/pytorch-transformers/blob/master/examples/run_...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/1004/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/1004/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/1004", "html_url": "https://github.com/huggingface/transformers/pull/1004", "diff_url": "https://github.com/huggingface/transformers/pull/1004.diff", "patch_url": "https://github.com/huggingface/transformers/pull/1004.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/1003
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/1003/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/1003/comments
https://api.github.com/repos/huggingface/transformers/issues/1003/events
https://github.com/huggingface/transformers/issues/1003
479,271,279
MDU6SXNzdWU0NzkyNzEyNzk=
1,003
Can't GPT-2 set special_tokens? (or unk tokens)
{ "login": "jeonggwanlee", "id": 16661213, "node_id": "MDQ6VXNlcjE2NjYxMjEz", "avatar_url": "https://avatars.githubusercontent.com/u/16661213?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jeonggwanlee", "html_url": "https://github.com/jeonggwanlee", "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
[]
[ "I also saw #468. It will be probably added soon.\r\nBut, If someone informs new information about this, I'll thank for that.", "Passing them like so works for me:\r\n\r\n`GPT2Tokenizer.from_pretrained(args.model_name, unk_token=\"<|endoftext|>\")`\r\n\r\nYou can all pass a list to `tokenizer.add_tokens`, then ca...
1,565
1,572
1,572
NONE
null
## ❓ Questions & Help <!-- A clear and concise description of the question. --> In GPT, we can set special tokens. (I also did it branch 0.6.2) https://github.com/huggingface/pytorch-transformers/blob/v1.0.0/pytorch_transformers/modeling_openai.py But, in GPT-2, It seems like no way to add special tokens. http...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/1003/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/1003/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/1002
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/1002/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/1002/comments
https://api.github.com/repos/huggingface/transformers/issues/1002/events
https://github.com/huggingface/transformers/issues/1002
479,268,507
MDU6SXNzdWU0NzkyNjg1MDc=
1,002
How to make a new line when using gpt2 to generate lyrics?
{ "login": "tine8899", "id": 46165960, "node_id": "MDQ6VXNlcjQ2MTY1OTYw", "avatar_url": "https://avatars.githubusercontent.com/u/46165960?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tine8899", "html_url": "https://github.com/tine8899", "followers_url": "https://api.github.com/users/tin...
[ { "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
[]
[ "Did you pre-train your model while keeping all the line returns or did you remove them? You can keep them during the training so that the model learns to predict them.\r\n\r\nIf you remove them during training and wish to apply them later on, I guess you can always just create the long string of lyrics and split t...
1,565
1,571
1,571
NONE
null
## ❓ Questions & Help <!-- A clear and concise description of the question. --> I use pre-trained gpt2 to generate lyrics (text generation). I can generate a long string of lyrics. While how to break the line, I try to add "\n" into it. But it seems that is not a good idea. Thanks!
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/1002/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/1002/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/1001
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/1001/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/1001/comments
https://api.github.com/repos/huggingface/transformers/issues/1001/events
https://github.com/huggingface/transformers/issues/1001
479,238,464
MDU6SXNzdWU0NzkyMzg0NjQ=
1,001
How do a put a different classifier on top of BertForSequenceClassification?
{ "login": "shivin9", "id": 13609964, "node_id": "MDQ6VXNlcjEzNjA5OTY0", "avatar_url": "https://avatars.githubusercontent.com/u/13609964?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shivin9", "html_url": "https://github.com/shivin9", "followers_url": "https://api.github.com/users/shivin...
[]
closed
false
null
[]
[ "Sure, one way you could go about it would be to create a new class similar to `BertForSequenceClassification` and implement your own custom final classifier.\r\n\r\nThe lib is pretty modular so you can usually subclass/extend what you need.", "You can also replace `self.classifier` with your own model.\r\n\r\n``...
1,565
1,599
1,566
NONE
null
Hi, Thanks for providing an efficient and easy-to-use implementation of BERT and other models. I am working on a project that requires me to do binary classification of sentences. I am using `BertForSequenceClassification` for that but I am not getting good results i.e. my loss function doesn't converge. I notice...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/1001/reactions", "total_count": 6, "+1": 5, "-1": 1, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/1001/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/1000
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/1000/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/1000/comments
https://api.github.com/repos/huggingface/transformers/issues/1000/events
https://github.com/huggingface/transformers/issues/1000
479,169,073
MDU6SXNzdWU0NzkxNjkwNzM=
1,000
Running on GPU?
{ "login": "dimitarsh1", "id": 15775250, "node_id": "MDQ6VXNlcjE1Nzc1MjUw", "avatar_url": "https://avatars.githubusercontent.com/u/15775250?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dimitarsh1", "html_url": "https://github.com/dimitarsh1", "followers_url": "https://api.github.com/use...
[]
closed
false
null
[]
[ "Hi!\r\n\r\nWhen you're talking about extracting the embeddings using a pre-trained model, what are you talking about exactly?\r\n\r\nAre you talking about using the tokenizer like :\r\n```python\r\ntokenizer.encode(text)\r\n```\r\n which returns the word ids?\r\n\r\nAre you talking about using the embedding layer ...
1,565
1,589
1,565
NONE
null
## ❓ Questions & Help Hello, I have a straightforward question I think, which I am curious about. When I load a pretrained model and use it to tokenise and extract embeddings, is the model running on a GPU or CPU? The reason why I am asking is that using bert is very slow. In particular approximately 100 times...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/1000/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/1000/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/999
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/999/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/999/comments
https://api.github.com/repos/huggingface/transformers/issues/999/events
https://github.com/huggingface/transformers/issues/999
479,151,661
MDU6SXNzdWU0NzkxNTE2NjE=
999
Multi_Head Attention in BERT different from Transformer?
{ "login": "PedroUria", "id": 43831167, "node_id": "MDQ6VXNlcjQzODMxMTY3", "avatar_url": "https://avatars.githubusercontent.com/u/43831167?v=4", "gravatar_id": "", "url": "https://api.github.com/users/PedroUria", "html_url": "https://github.com/PedroUria", "followers_url": "https://api.github.com/users/...
[]
closed
false
null
[]
[ "Hi!\r\n\r\nIn the forward pass of the BertSelfAttention model you’re getting the hidden state of the previous layer which is of size `(batch_size, sequence_length, 768)` (768 being the embedding dimension).\r\n\r\nThe first step of the attention is to obtain the `mixed_query_layer`, `mixed_key_layer` as well as th...
1,565
1,693
1,565
NONE
null
I have been digging through the code to understand the whole architecture of BERT (great job by the way, it's really easy to follow), and I noticed the way Multi-Headed Attention is implemented is different than from the original Transformer (unless I'm missing something). In particular, instead of using learnable weig...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/999/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/999/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/998
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/998/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/998/comments
https://api.github.com/repos/huggingface/transformers/issues/998/events
https://github.com/huggingface/transformers/issues/998
479,104,387
MDU6SXNzdWU0NzkxMDQzODc=
998
Running the pytorch.distributed.launch example of Glue hangs at evaluation
{ "login": "taavi-primer", "id": 46458725, "node_id": "MDQ6VXNlcjQ2NDU4NzI1", "avatar_url": "https://avatars.githubusercontent.com/u/46458725?v=4", "gravatar_id": "", "url": "https://api.github.com/users/taavi-primer", "html_url": "https://github.com/taavi-primer", "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
[]
[ "More precisely it hangs on line 280:\r\n\r\n if args.local_rank == 0:\r\nHERE ---> torch.distributed.barrier() # Make sure only the first process in distributed training process the dataset, and the others will use the cache\r\n\r\n # Convert to Tensors and build dataset\r\n all_input_ids = torch....
1,565
1,572
1,572
NONE
null
## 🐛 Bug Model I am using (Bert, XLNet....): BERT base uncased Language I am using the model on (English, Chinese....): English The problem arise when using: * [x] the official example scripts: (give details) The glue distributed example from Readme ## To Reproduce Steps to reproduce the behavior: 1...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/998/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/998/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/997
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/997/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/997/comments
https://api.github.com/repos/huggingface/transformers/issues/997/events
https://github.com/huggingface/transformers/issues/997
479,040,601
MDU6SXNzdWU0NzkwNDA2MDE=
997
Is XLA feature existed in current repo?
{ "login": "geekan", "id": 2707039, "node_id": "MDQ6VXNlcjI3MDcwMzk=", "avatar_url": "https://avatars.githubusercontent.com/u/2707039?v=4", "gravatar_id": "", "url": "https://api.github.com/users/geekan", "html_url": "https://github.com/geekan", "followers_url": "https://api.github.com/users/geekan/foll...
[]
closed
false
null
[]
[ "Hi, there is no XLA/TPU support with the current library. Maybe in a future release!" ]
1,565
1,565
1,565
NONE
null
## ❓ Questions & Help I find https://news.developer.nvidia.com/nvidia-achieves-4x-speedup-on-bert-neural-network/ says tensorflow XLA has higher speed on bert, however, the pull request in this repo it mentioned https://github.com/huggingface/pytorch-pretrained-BERT/pull/116 didn't implement something like XLA. Is t...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/997/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/997/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/996
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/996/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/996/comments
https://api.github.com/repos/huggingface/transformers/issues/996/events
https://github.com/huggingface/transformers/pull/996
478,920,742
MDExOlB1bGxSZXF1ZXN0MzA1OTM1NTUx
996
Small typo fix in logger
{ "login": "HansBambel", "id": 9060786, "node_id": "MDQ6VXNlcjkwNjA3ODY=", "avatar_url": "https://avatars.githubusercontent.com/u/9060786?v=4", "gravatar_id": "", "url": "https://api.github.com/users/HansBambel", "html_url": "https://github.com/HansBambel", "followers_url": "https://api.github.com/users...
[]
closed
false
null
[]
[ "Great, thanks !" ]
1,565
1,565
1,565
CONTRIBUTOR
null
I noticed two small typos when converting from Tensorflow checkpoints to PyTorch.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/996/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/996/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/996", "html_url": "https://github.com/huggingface/transformers/pull/996", "diff_url": "https://github.com/huggingface/transformers/pull/996.diff", "patch_url": "https://github.com/huggingface/transformers/pull/996.patch", "merged_at": 15653...
https://api.github.com/repos/huggingface/transformers/issues/995
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/995/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/995/comments
https://api.github.com/repos/huggingface/transformers/issues/995/events
https://github.com/huggingface/transformers/issues/995
478,899,015
MDU6SXNzdWU0Nzg4OTkwMTU=
995
BERT with sequence pairs & padding
{ "login": "domaala", "id": 2824507, "node_id": "MDQ6VXNlcjI4MjQ1MDc=", "avatar_url": "https://avatars.githubusercontent.com/u/2824507?v=4", "gravatar_id": "", "url": "https://api.github.com/users/domaala", "html_url": "https://github.com/domaala", "followers_url": "https://api.github.com/users/domaala/...
[]
closed
false
null
[]
[ "Hi! Yes, I think your understanding is correct. Your setup seems fine to me!", "regarding the token_type_ids, shall we mark [PAD] token as 0 or 1? [PAD] by default does not belong to any of the two input sequences. Therefore it is ambiguous to determine whether it should be 0 or 1.", "The default padding value...
1,565
1,638
1,565
NONE
null
## ❓ Questions & Help I am having trouble understanding how to setup BERT when doing a classification task like STS, for example, inputting two sentences and getting a classification of some sorts. I am using `BertForSequenceClassification` for this purpose. However, what boggles me is how to set up `attention_mask`...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/995/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/995/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/994
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/994/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/994/comments
https://api.github.com/repos/huggingface/transformers/issues/994/events
https://github.com/huggingface/transformers/issues/994
478,682,497
MDU6SXNzdWU0Nzg2ODI0OTc=
994
Pretrained GPT2 mdoels does not load unk special symbol
{ "login": "pywirrarika", "id": 457373, "node_id": "MDQ6VXNlcjQ1NzM3Mw==", "avatar_url": "https://avatars.githubusercontent.com/u/457373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pywirrarika", "html_url": "https://github.com/pywirrarika", "followers_url": "https://api.github.com/user...
[]
closed
false
null
[]
[ "Hi! GPT-2 does not have an unknown token because of its byte-level BPE. This is a warning so it should not affect your code, but maybe we should do something about this warning for models that do not have unknown tokens. cc @thomwolf.", "However, it seems that having a defined _unk_ symbol is necessary to run ot...
1,565
1,565
1,565
NONE
null
## 🐛 Bug <!-- Important information --> Im using GPT2 (on pytorch-transformers 1.0.0) using the introductory tutorial but it seems that the tokenizer does not load the unk special symbol from the pretrained dictionary. ` tokenizer = GPT2Tokenizer.from_pretrained('gpt2') model = GPT2Model.from_pretrained('gp...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/994/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/994/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/993
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/993/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/993/comments
https://api.github.com/repos/huggingface/transformers/issues/993/events
https://github.com/huggingface/transformers/issues/993
478,598,495
MDU6SXNzdWU0Nzg1OTg0OTU=
993
RuntimeError: Invalid index in gather at ../aten/src/TH/generic/THTensorEvenMoreMath.cpp:469 (GPT2DoubleHeadsModel)
{ "login": "tonyhqanguyen", "id": 36124849, "node_id": "MDQ6VXNlcjM2MTI0ODQ5", "avatar_url": "https://avatars.githubusercontent.com/u/36124849?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tonyhqanguyen", "html_url": "https://github.com/tonyhqanguyen", "followers_url": "https://api.githu...
[]
closed
false
null
[]
[ "Indeed, there seems to be a problem here. I'll look into it.", "Thanks for the report, the error was in the docstring, we cannot use `-1` as the index for the last token, it has to be the positive index of the CLS token (in the case of the example `9`.", "The fix seems to have led to other issues. I'm getting ...
1,565
1,566
1,565
NONE
null
## 🐛 Bug Model I am using (Bert, XLNet....): GPT2DoubleHeadsModel Language I am using the model on (English, Chinese....): English The problem arise when using: * [x] the official example scripts: Trying out documentation * [ ] my own modified scripts: ## To Reproduce Steps to reproduce the behavio...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/993/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/993/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/992
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/992/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/992/comments
https://api.github.com/repos/huggingface/transformers/issues/992/events
https://github.com/huggingface/transformers/issues/992
478,444,254
MDU6SXNzdWU0Nzg0NDQyNTQ=
992
Any idea how to use pytorch-transformers for Entity Linking?
{ "login": "almoslmi", "id": 18172640, "node_id": "MDQ6VXNlcjE4MTcyNjQw", "avatar_url": "https://avatars.githubusercontent.com/u/18172640?v=4", "gravatar_id": "", "url": "https://api.github.com/users/almoslmi", "html_url": "https://github.com/almoslmi", "followers_url": "https://api.github.com/users/alm...
[ { "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,565
1,571
1,571
NONE
null
Thanks @huggingface for such a great library. I am interested to use pytorch-transformers for entity linking. Any idea how to that? Any help in this regard is highly appreciated.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/992/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/992/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/991
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/991/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/991/comments
https://api.github.com/repos/huggingface/transformers/issues/991/events
https://github.com/huggingface/transformers/issues/991
478,429,009
MDU6SXNzdWU0Nzg0MjkwMDk=
991
Supress long sequence tokenization warning
{ "login": "eladbitton", "id": 15705362, "node_id": "MDQ6VXNlcjE1NzA1MzYy", "avatar_url": "https://avatars.githubusercontent.com/u/15705362?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eladbitton", "html_url": "https://github.com/eladbitton", "followers_url": "https://api.github.com/use...
[]
closed
false
null
[]
[ "This is simply a warning, it won't change your results. I think it's important we keep it for people that are unaware that sequences have a max length of 512, so there's currently no option to suppress that warning.", "Just a note: if you want to avoid displaying the warning, you can raise the level of the logge...
1,565
1,653
1,565
NONE
null
## ❓ Questions & Help <!-- A clear and concise description of the question. --> While tokenizing some sequences longer than 512 i get this error. I am aware that bert can't handle sequences longer than 512 so i split it later. > Token indices sequence length is longer than the specified maximum sequence length...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/991/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/991/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/990
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/990/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/990/comments
https://api.github.com/repos/huggingface/transformers/issues/990/events
https://github.com/huggingface/transformers/issues/990
478,374,186
MDU6SXNzdWU0NzgzNzQxODY=
990
bert-base-multilingual-uncased vocabulary not consecutive
{ "login": "ntubertchen", "id": 7036778, "node_id": "MDQ6VXNlcjcwMzY3Nzg=", "avatar_url": "https://avatars.githubusercontent.com/u/7036778?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ntubertchen", "html_url": "https://github.com/ntubertchen", "followers_url": "https://api.github.com/us...
[ { "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
[]
[ "H! Could you please specify on which OS you have this error? I cannot reproduce this on MacOS 10.15, nor on Ubuntu 18.04 with both Python 3.5 and 3.6.", "Hi, @LysandreJik \r\n\r\nI tried these on Ubuntu 16.04.6 LTS.", "@ntubertchen\r\nJust in case helpful for you -- I had exactly the same issue with release 1....
1,565
1,572
1,572
NONE
null
## 🐛 Bug When I was checking out bert-base-multilingual-uncased vocabulary. I receive the warning "Saving vocabulary to ./vocab.txt: vocabulary indices are not consecutive. Please check that the vocabulary is not corrupted" I ran the similar command on two different machine and got the same warning. from pyto...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/990/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/990/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/989
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/989/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/989/comments
https://api.github.com/repos/huggingface/transformers/issues/989/events
https://github.com/huggingface/transformers/issues/989
478,356,897
MDU6SXNzdWU0NzgzNTY4OTc=
989
Using hidden states from BERT (Similar to using precomputed hidden states in GPT2 model "past" argument)
{ "login": "PExplorer", "id": 31173861, "node_id": "MDQ6VXNlcjMxMTczODYx", "avatar_url": "https://avatars.githubusercontent.com/u/31173861?v=4", "gravatar_id": "", "url": "https://api.github.com/users/PExplorer", "html_url": "https://github.com/PExplorer", "followers_url": "https://api.github.com/users/...
[ { "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, no, Bert doesn't have a cached hidden-states option.", "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,565
1,572
1,572
NONE
null
Hi, In question and answer model using BERT, I will be querying context and around 50 questions on the same context. To reduce latency for obtaining results, I would like to cache hidden states of context before prediction. For each question answer prediction on the same context, can the model use precomputed hidde...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/989/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/989/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/988
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/988/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/988/comments
https://api.github.com/repos/huggingface/transformers/issues/988/events
https://github.com/huggingface/transformers/issues/988
478,349,356
MDU6SXNzdWU0NzgzNDkzNTY=
988
seq2seq model with transformer
{ "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...
[ { "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
[]
[ "Are you looking for LSTM/RNN-based seq2seq architectures or Transformer-based architectures? This repository does not host any LSTM/RNN architectures.\r\n\r\nYou can find information on all our (transformer) [models here](https://huggingface.co/pytorch-transformers/pretrained_models.html), and [examples using them...
1,565
1,571
1,571
NONE
null
Hi I am urgently looking for a sequence to sequence model with transformer with script to finetuning and training, I appreciate telling me which of the implementations in this repo could do a sequence to sequence model? thanks Best regards Julia
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/988/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/988/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/987
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/987/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/987/comments
https://api.github.com/repos/huggingface/transformers/issues/987/events
https://github.com/huggingface/transformers/pull/987
478,153,155
MDExOlB1bGxSZXF1ZXN0MzA1MzMxNDU4
987
Generative finetuning
{ "login": "LysandreJik", "id": 30755778, "node_id": "MDQ6VXNlcjMwNzU1Nzc4", "avatar_url": "https://avatars.githubusercontent.com/u/30755778?v=4", "gravatar_id": "", "url": "https://api.github.com/users/LysandreJik", "html_url": "https://github.com/LysandreJik", "followers_url": "https://api.github.com/...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/pytorch-transformers/pull/987?src=pr&el=h1) Report\n> Merging [#987](https://codecov.io/gh/huggingface/pytorch-transformers/pull/987?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/pytorch-transformers/commit/3566d2791905269b75014e8ea9db322c86f980b2?src...
1,565
1,578
1,567
MEMBER
null
Example script for fine-tuning generative models such as GPT-2 using causal language modeling (CLM). Will eventually cover masked language modeling (MLM) for BERT and RoBERTa as well. Edit (thom): Added `max_len_single_sentence` and `max_len_sentences_pair` properties to the tokenizer to easily access the max length...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/987/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/987/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/987", "html_url": "https://github.com/huggingface/transformers/pull/987", "diff_url": "https://github.com/huggingface/transformers/pull/987.diff", "patch_url": "https://github.com/huggingface/transformers/pull/987.patch", "merged_at": 15670...
https://api.github.com/repos/huggingface/transformers/issues/986
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/986/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/986/comments
https://api.github.com/repos/huggingface/transformers/issues/986/events
https://github.com/huggingface/transformers/issues/986
477,982,585
MDU6SXNzdWU0Nzc5ODI1ODU=
986
Potential bug with gradient clipping when using gradient accumulation in examples
{ "login": "Mathieu-Prouveur", "id": 24923813, "node_id": "MDQ6VXNlcjI0OTIzODEz", "avatar_url": "https://avatars.githubusercontent.com/u/24923813?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Mathieu-Prouveur", "html_url": "https://github.com/Mathieu-Prouveur", "followers_url": "https://...
[ { "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, indeed we could move the gradient clipping just before the call to the optimizer.\r\nDo you want to send a PR to fix that on `run_squad` and `run_glue`?", "Hi, was this ever implemented? I think it makes the most sense to clip right before an optimizer step. Right now it's implemented in two different ways i...
1,565
1,575
1,575
NONE
null
## ❓ Questions & Help Hi developpers, Thanks for the awesome package. I have a question related to the recent major from pytorch_pretrained_bert to pytorch_transformers. Gradient clipping used to be done inside the optimizer BertAdam and is now done at the same time as gradient computation in `run_squad.py` : ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/986/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/986/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/985
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/985/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/985/comments
https://api.github.com/repos/huggingface/transformers/issues/985/events
https://github.com/huggingface/transformers/issues/985
477,965,992
MDU6SXNzdWU0Nzc5NjU5OTI=
985
Unable to read pre-trained model using BertModel.from_pretrained
{ "login": "rshah1990", "id": 37735152, "node_id": "MDQ6VXNlcjM3NzM1MTUy", "avatar_url": "https://avatars.githubusercontent.com/u/37735152?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rshah1990", "html_url": "https://github.com/rshah1990", "followers_url": "https://api.github.com/users/...
[ { "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, you are trying to download one of your own models kept on a personal AWS s3 bucket or one of our models? What string do you pass to the `from_pretrained` method?", "Thank you for your response, \r\nI am trying to use my own model kept on my personal AWS s3 bucket. \r\nThe string to from_pretrained method is ...
1,565
1,572
1,572
NONE
null
I am using pre-trained BERT model kept at AWS s3 bucket. When i am trying to read the model using BertModel.from_pretrained It return NONE object. Things are working offline when i download a folder on the same location as my code resides.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/985/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/985/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/984
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/984/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/984/comments
https://api.github.com/repos/huggingface/transformers/issues/984/events
https://github.com/huggingface/transformers/pull/984
477,961,918
MDExOlB1bGxSZXF1ZXN0MzA1MTc1NTQy
984
docs: correct number of layers for various xlm models
{ "login": "stefan-it", "id": 20651387, "node_id": "MDQ6VXNlcjIwNjUxMzg3", "avatar_url": "https://avatars.githubusercontent.com/u/20651387?v=4", "gravatar_id": "", "url": "https://api.github.com/users/stefan-it", "html_url": "https://github.com/stefan-it", "followers_url": "https://api.github.com/users/...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/pytorch-transformers/pull/984?src=pr&el=h1) Report\n> Merging [#984](https://codecov.io/gh/huggingface/pytorch-transformers/pull/984?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/pytorch-transformers/commit/7729ef738161a0a182b172fcb7c351f6d2b9c50d?src...
1,565
1,566
1,566
COLLABORATOR
null
Hi, during some NER experiments I found out, that the number of reported layers in the documentation is different compared to the model configuration for some XLM models. This PR fixes the documentation :)
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/984/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/984/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/984", "html_url": "https://github.com/huggingface/transformers/pull/984", "diff_url": "https://github.com/huggingface/transformers/pull/984.diff", "patch_url": "https://github.com/huggingface/transformers/pull/984.patch", "merged_at": null ...
https://api.github.com/repos/huggingface/transformers/issues/983
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/983/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/983/comments
https://api.github.com/repos/huggingface/transformers/issues/983/events
https://github.com/huggingface/transformers/issues/983
477,898,864
MDU6SXNzdWU0Nzc4OTg4NjQ=
983
Worse performance of gpt2 than gpt
{ "login": "Nealcly", "id": 31234962, "node_id": "MDQ6VXNlcjMxMjM0OTYy", "avatar_url": "https://avatars.githubusercontent.com/u/31234962?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Nealcly", "html_url": "https://github.com/Nealcly", "followers_url": "https://api.github.com/users/Nealcl...
[ { "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
[]
[ "@Nealcly Could you try to use the `gpt2-medium` model? It has more layers :)", "Also I'm not sure that your testing procedure is statistically representative :)", "Any new updates on this issue? I am also facing the same question. ", "Based on the paper, only the largest model is called gpt2. The smallest mo...
1,565
1,579
1,579
NONE
null
## ❓ Questions & Help <!-- A clear and concise description of the question. --> Hi, I just want to compare the performance of gpt and gpt2 as Language Model to assign Language modeling score. Like #473 , I implement my model as follows: ``` def gpt_score(text, model, tokenizer): input_ids = torch.tensor(toke...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/983/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/983/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/982
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/982/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/982/comments
https://api.github.com/repos/huggingface/transformers/issues/982/events
https://github.com/huggingface/transformers/issues/982
477,860,801
MDU6SXNzdWU0Nzc4NjA4MDE=
982
How to predict masked whole word which was tokenized as sub-words for bert-base-multilingual-cased
{ "login": "ksopyla", "id": 64201, "node_id": "MDQ6VXNlcjY0MjAx", "avatar_url": "https://avatars.githubusercontent.com/u/64201?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ksopyla", "html_url": "https://github.com/ksopyla", "followers_url": "https://api.github.com/users/ksopyla/follower...
[ { "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 I don't have any good solution for your use-case, unfortunately.\r\n\r\nThere are two \"Whole-Word_masking\" models for Bert (see the [list here](https://huggingface.co/pytorch-transformers/pretrained_models.html)) that would be better at guessing full words but they are only in English unfortunately.\r\n\r\nSp...
1,565
1,589
1,571
NONE
null
## ❓ Questions & Help Hello, I have started working with pytorch-transformers and want to use it to predict masked words in polish. I use ' bert-base-multilingual-cased' pre-trained model and want to predict masked words which very often are tokenized into sub-word. My question is how can I predict the whole word? ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/982/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/982/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/981
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/981/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/981/comments
https://api.github.com/repos/huggingface/transformers/issues/981/events
https://github.com/huggingface/transformers/issues/981
477,823,213
MDU6SXNzdWU0Nzc4MjMyMTM=
981
The pre-trained model you are loading is a cased model but you have not set `do_lower_case` to False.
{ "login": "loretoparisi", "id": 163333, "node_id": "MDQ6VXNlcjE2MzMzMw==", "avatar_url": "https://avatars.githubusercontent.com/u/163333?v=4", "gravatar_id": "", "url": "https://api.github.com/users/loretoparisi", "html_url": "https://github.com/loretoparisi", "followers_url": "https://api.github.com/u...
[]
closed
false
null
[]
[ "Hi! You seem to be loading a cased model (such as the `bert-base-multilingual-cased`), but you're specifying `do_lower_case` to your tokenizer, which strips accents and lowercases every character.\r\n\r\nThe model you specified has been trained with uppercase and lowercase characters as well as accent markers, so ...
1,565
1,565
1,565
CONTRIBUTOR
null
I initialized the tokenizer and the model like ```python def load_bert_score_model(bert="bert-base-multilingual-cased", num_layers=8): assert bert in bert_types tokenizer = BertTokenizer.from_pretrained(bert, do_lower_case=True) model = BertModel.from_pretrained(bert) model.eval() d...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/981/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/981/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/980
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/980/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/980/comments
https://api.github.com/repos/huggingface/transformers/issues/980/events
https://github.com/huggingface/transformers/pull/980
477,662,980
MDExOlB1bGxSZXF1ZXN0MzA0OTQ1NTE2
980
n/a
{ "login": "henryzxu", "id": 23414112, "node_id": "MDQ6VXNlcjIzNDE0MTEy", "avatar_url": "https://avatars.githubusercontent.com/u/23414112?v=4", "gravatar_id": "", "url": "https://api.github.com/users/henryzxu", "html_url": "https://github.com/henryzxu", "followers_url": "https://api.github.com/users/hen...
[]
closed
false
null
[]
[]
1,565
1,565
1,565
NONE
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/980/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/980/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/980", "html_url": "https://github.com/huggingface/transformers/pull/980", "diff_url": "https://github.com/huggingface/transformers/pull/980.diff", "patch_url": "https://github.com/huggingface/transformers/pull/980.patch", "merged_at": null ...
https://api.github.com/repos/huggingface/transformers/issues/979
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/979/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/979/comments
https://api.github.com/repos/huggingface/transformers/issues/979/events
https://github.com/huggingface/transformers/pull/979
477,625,615
MDExOlB1bGxSZXF1ZXN0MzA0OTE1ODE5
979
n/a
{ "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...
[]
closed
false
null
[]
[ "Hi @ibeltagy,\r\nDoes it train on TPU?", "Not yet, it still has some issues. I will create another PR when it is in good shape. " ]
1,565
1,565
1,565
CONTRIBUTOR
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/979/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/979/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/979", "html_url": "https://github.com/huggingface/transformers/pull/979", "diff_url": "https://github.com/huggingface/transformers/pull/979.diff", "patch_url": "https://github.com/huggingface/transformers/pull/979.patch", "merged_at": null ...
https://api.github.com/repos/huggingface/transformers/issues/978
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/978/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/978/comments
https://api.github.com/repos/huggingface/transformers/issues/978/events
https://github.com/huggingface/transformers/issues/978
477,557,501
MDU6SXNzdWU0Nzc1NTc1MDE=
978
RuntimeError: bool value of Tensor with more than one value is ambiguous
{ "login": "letsgoduke", "id": 2087201, "node_id": "MDQ6VXNlcjIwODcyMDE=", "avatar_url": "https://avatars.githubusercontent.com/u/2087201?v=4", "gravatar_id": "", "url": "https://api.github.com/users/letsgoduke", "html_url": "https://github.com/letsgoduke", "followers_url": "https://api.github.com/users...
[]
closed
false
null
[]
[ "Could you please provide more information, especially regarding the `sample_sequence` function and where it is coming from?", "Thanks for the response!\r\n\r\nMy goal is to wrap the GPT2 model interface in a function so I can input a prompt and output generated text. I'm trying to adapt one of the examples, and...
1,565
1,565
1,565
NONE
null
## ❓ Questions & Help <!-- Using tokenizer to decode tensor is throwing this error: RuntimeError: bool value of Tensor with more than one value is ambiguous --> Here's the code I'm trying to run, the tensor itself gets returned, but when I try to decode it I get the error above. Any ideas? Thanks! `if _...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/978/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/978/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/977
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/977/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/977/comments
https://api.github.com/repos/huggingface/transformers/issues/977/events
https://github.com/huggingface/transformers/pull/977
477,526,470
MDExOlB1bGxSZXF1ZXN0MzA0ODM0NjM1
977
Fixed typo in migration guide
{ "login": "chrisgzf", "id": 4933577, "node_id": "MDQ6VXNlcjQ5MzM1Nzc=", "avatar_url": "https://avatars.githubusercontent.com/u/4933577?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chrisgzf", "html_url": "https://github.com/chrisgzf", "followers_url": "https://api.github.com/users/chris...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/pytorch-transformers/pull/977?src=pr&el=h1) Report\n> Merging [#977](https://codecov.io/gh/huggingface/pytorch-transformers/pull/977?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/pytorch-transformers/commit/4fc9f9ef54e2ab250042c55b55a2e3c097858cb7?src...
1,565
1,565
1,565
CONTRIBUTOR
null
This PR fixes a minor typo in the migration guide. `weights` was misspelled as `weigths`
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/977/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/977/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/977", "html_url": "https://github.com/huggingface/transformers/pull/977", "diff_url": "https://github.com/huggingface/transformers/pull/977.diff", "patch_url": "https://github.com/huggingface/transformers/pull/977.patch", "merged_at": 15651...
https://api.github.com/repos/huggingface/transformers/issues/976
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/976/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/976/comments
https://api.github.com/repos/huggingface/transformers/issues/976/events
https://github.com/huggingface/transformers/issues/976
477,404,327
MDU6SXNzdWU0Nzc0MDQzMjc=
976
Issue: Possibly wrong documentation about labels in BERT classifier
{ "login": "domaala", "id": 2824507, "node_id": "MDQ6VXNlcjI4MjQ1MDc=", "avatar_url": "https://avatars.githubusercontent.com/u/2824507?v=4", "gravatar_id": "", "url": "https://api.github.com/users/domaala", "html_url": "https://github.com/domaala", "followers_url": "https://api.github.com/users/domaala/...
[]
closed
false
null
[]
[ "Indeed. @LysandreJik I think it should be `Indices should be in ``[0, ..., config.num_labels-1]`` for classification or torch.floats for regression`, what do you think? " ]
1,565
1,565
1,565
NONE
null
Possibly also elsewhere, but when discussing the proper format of labels for BERT classification, the documentation states the following: https://github.com/huggingface/pytorch-transformers/blob/44dd941efb602433b7edc29612cbdd0a03bf14dc/pytorch_transformers/modeling_bert.py#L935 However, shouldn't it be `[0, ..., ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/976/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/976/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/975
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/975/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/975/comments
https://api.github.com/repos/huggingface/transformers/issues/975/events
https://github.com/huggingface/transformers/issues/975
477,291,576
MDU6SXNzdWU0NzcyOTE1NzY=
975
Inconsistant output between pytorch-transformers and pytorch-pretrained-bert
{ "login": "Nealcly", "id": 31234962, "node_id": "MDQ6VXNlcjMxMjM0OTYy", "avatar_url": "https://avatars.githubusercontent.com/u/31234962?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Nealcly", "html_url": "https://github.com/Nealcly", "followers_url": "https://api.github.com/users/Nealcl...
[ { "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
[]
[ "See #954. I got bitten by the same documentation _bug_.", "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,565
1,570
1,570
NONE
null
## 📚 Migration <!-- Important information --> Model I am using (GPT, GPT2, XLNet): Language I am using the model on (English): The problem arise when using: * [ ] the official example scripts: (give details) * [x] my own modified scripts: (give details) ``` def xlnet_score(text, model, tokenizer): ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/975/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/975/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/974
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/974/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/974/comments
https://api.github.com/repos/huggingface/transformers/issues/974/events
https://github.com/huggingface/transformers/issues/974
477,285,103
MDU6SXNzdWU0NzcyODUxMDM=
974
Support longer sequences with BertForSequenceClassification
{ "login": "eladbitton", "id": 15705362, "node_id": "MDQ6VXNlcjE1NzA1MzYy", "avatar_url": "https://avatars.githubusercontent.com/u/15705362?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eladbitton", "html_url": "https://github.com/eladbitton", "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
[]
[ "A little question because we are trying to organize the issues better:\r\n- what made you not use the issue templates we have added?", "> A little question because we are trying to organize the issues better:\r\n> \r\n> * what made you not use the issue templates we have added?\r\n\r\nDidn't know about it...", ...
1,565
1,584
1,574
NONE
null
## ❓ Questions & Help <!-- A clear and concise description of the question. --> I am using `BertForSequenceClassification` for solving a regression task. I have a long sequence as an input and the model outputs a float in range [0,1]. Most of my sequences are longer than 512, which is the max sequence length i...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/974/reactions", "total_count": 5, "+1": 5, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/974/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/973
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/973/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/973/comments
https://api.github.com/repos/huggingface/transformers/issues/973/events
https://github.com/huggingface/transformers/pull/973
477,151,598
MDExOlB1bGxSZXF1ZXN0MzA0NTM0MzQ1
973
Fix examples of loading pretrained models in docstring
{ "login": "FeiWang96", "id": 19998174, "node_id": "MDQ6VXNlcjE5OTk4MTc0", "avatar_url": "https://avatars.githubusercontent.com/u/19998174?v=4", "gravatar_id": "", "url": "https://api.github.com/users/FeiWang96", "html_url": "https://github.com/FeiWang96", "followers_url": "https://api.github.com/users/...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/pytorch-transformers/pull/973?src=pr&el=h1) Report\n> Merging [#973](https://codecov.io/gh/huggingface/pytorch-transformers/pull/973?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/pytorch-transformers/commit/4fc9f9ef54e2ab250042c55b55a2e3c097858cb7?src...
1,565
1,565
1,565
CONTRIBUTOR
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/973/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/973/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/973", "html_url": "https://github.com/huggingface/transformers/pull/973", "diff_url": "https://github.com/huggingface/transformers/pull/973.diff", "patch_url": "https://github.com/huggingface/transformers/pull/973.patch", "merged_at": 15651...
https://api.github.com/repos/huggingface/transformers/issues/972
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/972/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/972/comments
https://api.github.com/repos/huggingface/transformers/issues/972/events
https://github.com/huggingface/transformers/issues/972
477,015,898
MDU6SXNzdWU0NzcwMTU4OTg=
972
XLNetForQuestionAnswering - weight pruning
{ "login": "rsilveira79", "id": 11993881, "node_id": "MDQ6VXNlcjExOTkzODgx", "avatar_url": "https://avatars.githubusercontent.com/u/11993881?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rsilveira79", "html_url": "https://github.com/rsilveira79", "followers_url": "https://api.github.com/...
[ { "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
[]
[ "I'm interested in this as well. I've seen similar inference times of nearly 1.5 seconds running BERT for inference on a fine-tuned classification task on TF Serving and would like to improve it without paying for a GPU.\r\n\r\nI'm not associated with the following work, but found the paper interesting: \r\n\"tran...
1,565
1,572
1,572
NONE
null
## 🚀 Feature Hi guys, first of all, thank you a lot for the great API, I'm using a lot `pytorch-transformers`, you guys are really doing a good job! I have recently fine-tuned a `XLNetForQuestionAnswering` on SQuAD1.10, results looks good, however the model is taking ~ 2.0 seconds (in a MacBook Pro) to do a forw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/972/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/972/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/971
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/971/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/971/comments
https://api.github.com/repos/huggingface/transformers/issues/971/events
https://github.com/huggingface/transformers/issues/971
476,984,580
MDU6SXNzdWU0NzY5ODQ1ODA=
971
Brackets are not aligned in the DocString of Bert.
{ "login": "jiaxin96", "id": 20027416, "node_id": "MDQ6VXNlcjIwMDI3NDE2", "avatar_url": "https://avatars.githubusercontent.com/u/20027416?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jiaxin96", "html_url": "https://github.com/jiaxin96", "followers_url": "https://api.github.com/users/jia...
[]
closed
false
null
[]
[ "You're right, will fix! cc @LysandreJik " ]
1,565
1,565
1,565
NONE
null
The Brackets in the file https://github.com/huggingface/pytorch-transformers/blob/master/pytorch_transformers/modeling_bert.py#L606 are not aligned, which will cause some highlight mistakes in some editers (i.e. VSCODE). it should be fixed as : [0, config.max_position_embeddings - 1]
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/971/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/971/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/970
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/970/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/970/comments
https://api.github.com/repos/huggingface/transformers/issues/970/events
https://github.com/huggingface/transformers/issues/970
476,950,746
MDU6SXNzdWU0NzY5NTA3NDY=
970
How to use GPT2LMHeadModel for conditional generation
{ "login": "rabeehk", "id": 6278280, "node_id": "MDQ6VXNlcjYyNzgyODA=", "avatar_url": "https://avatars.githubusercontent.com/u/6278280?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rabeehk", "html_url": "https://github.com/rabeehk", "followers_url": "https://api.github.com/users/rabeehk/...
[]
closed
false
null
[]
[ "Hi Rabeeh,\r\n\r\nPlease take a look at the [run_generation.py](https://github.com/huggingface/pytorch-transformers/blob/master/examples/run_generation.py) example which shows how to do conditional generation with the library's auto-regressive models (GPT/GPT-2/Transformer-XL/XLNet).", "What's cracking Rabeeh, \...
1,565
1,703
1,565
NONE
null
Hi could you please provide one single example on how to use GPT2LMHeadModel for conditional generation? thanks Rabeeh
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/970/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/970/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/969
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/969/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/969/comments
https://api.github.com/repos/huggingface/transformers/issues/969/events
https://github.com/huggingface/transformers/issues/969
476,940,820
MDU6SXNzdWU0NzY5NDA4MjA=
969
Finetune GPT2
{ "login": "rabeehk", "id": 6278280, "node_id": "MDQ6VXNlcjYyNzgyODA=", "avatar_url": "https://avatars.githubusercontent.com/u/6278280?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rabeehk", "html_url": "https://github.com/rabeehk", "followers_url": "https://api.github.com/users/rabeehk/...
[]
closed
false
null
[]
[ "Hi Rabeeh,\r\n\r\nWe are currently working on an updated example on fine-tuning generative models, especially GPT-2. The example should be up later this week, keep an eye out!", "Any update on when this example will be available? Thanks!", "Hope this issue won't be closed until the example is done.", "The s...
1,565
1,590
1,565
NONE
null
Hi According to pytorch-transformers/docs/source/index.rst There was a run_gpt2.py example which also shows how to finetune GPT2 on the training data. I was wondernig if you could add this example back, and proving sample script to finetune GPT2. thanks. Best regards, Rabeeh
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/969/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/969/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/968
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/968/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/968/comments
https://api.github.com/repos/huggingface/transformers/issues/968/events
https://github.com/huggingface/transformers/issues/968
476,888,772
MDU6SXNzdWU0NzY4ODg3NzI=
968
Error when running run_squad.py in colab
{ "login": "bvy007", "id": 6167208, "node_id": "MDQ6VXNlcjYxNjcyMDg=", "avatar_url": "https://avatars.githubusercontent.com/u/6167208?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bvy007", "html_url": "https://github.com/bvy007", "followers_url": "https://api.github.com/users/bvy007/foll...
[ { "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,565
1,570
1,570
NONE
null
Hi I used the below code which was given as an example: !python -m torch.distributed.launch --nproc_per_node=8 ./examples/run_squad.py \ --model_type bert \ --model_name_or_path bert-large-uncased-whole-word-masking \ --do_train \ --do_eval \ --do_lower_case \ --train_file SQUAD_DIR/tra...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/968/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/968/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/967
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/967/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/967/comments
https://api.github.com/repos/huggingface/transformers/issues/967/events
https://github.com/huggingface/transformers/issues/967
476,738,277
MDU6SXNzdWU0NzY3MzgyNzc=
967
Unable to load weights properly from tf checkpoint
{ "login": "aavshr", "id": 22456204, "node_id": "MDQ6VXNlcjIyNDU2MjA0", "avatar_url": "https://avatars.githubusercontent.com/u/22456204?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aavshr", "html_url": "https://github.com/aavshr", "followers_url": "https://api.github.com/users/aavshr/fo...
[ { "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", "any updates on this?", "This issue has been automatically marked as stale because it has not had recent activity. It will be closed i...
1,564
1,575
1,575
NONE
null
The function ``` load_tf_weights_in_bert ``` in ``` modeling_bert.py ``` is buggy and throws a lot of attribute errors because of what seems as the pointer pointing to the entire model. For instance for the variable ```bert/encoder/layer_0/attention/output/dense/kernel ``` it throws an attribute error along the lin...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/967/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/huggingface/transformers/issues/967/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/966
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/966/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/966/comments
https://api.github.com/repos/huggingface/transformers/issues/966/events
https://github.com/huggingface/transformers/issues/966
476,716,934
MDU6SXNzdWU0NzY3MTY5MzQ=
966
AttributeError: module 'tensorflow.python.training.training' has no attribute 'list_variables'
{ "login": "Dhanachandra", "id": 10828657, "node_id": "MDQ6VXNlcjEwODI4NjU3", "avatar_url": "https://avatars.githubusercontent.com/u/10828657?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Dhanachandra", "html_url": "https://github.com/Dhanachandra", "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
[]
[ "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", "You just have to upgrade your tensorflow " ]
1,564
1,576
1,570
NONE
null
TF version 1.1.0: convert_tf_checkpoint_to_pytorch("../biobert1.1/biobert_v1.1_pubmed/biobert_model.ckpt", "../biobert1.1/biobert_v1.1_pubmed/bert_config.json", "../biobert1.1/pytorch_model")
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/966/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/966/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/965
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/965/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/965/comments
https://api.github.com/repos/huggingface/transformers/issues/965/events
https://github.com/huggingface/transformers/issues/965
476,645,407
MDU6SXNzdWU0NzY2NDU0MDc=
965
How to output a vector
{ "login": "Wenenen", "id": 33111299, "node_id": "MDQ6VXNlcjMzMTExMjk5", "avatar_url": "https://avatars.githubusercontent.com/u/33111299?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Wenenen", "html_url": "https://github.com/Wenenen", "followers_url": "https://api.github.com/users/Wenene...
[]
closed
false
null
[]
[ "Hi, you can use the BertModel to give you the encoded representation of the word ids you have as input. The tensor output by the model’s last layer (of dimension `(batch_size, sequence_length, 768)` for the BertModel) can be considered as the BERT-encoded representation of your input and then be used as input for ...
1,564
1,565
1,565
NONE
null
How to use BertModel to output a word's vector which like a vector in word2vec?
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/965/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/965/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/964
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/964/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/964/comments
https://api.github.com/repos/huggingface/transformers/issues/964/events
https://github.com/huggingface/transformers/pull/964
476,624,895
MDExOlB1bGxSZXF1ZXN0MzA0MTE3MTY4
964
RoBERTa: model conversion, inference, tests 🔥
{ "login": "julien-c", "id": 326577, "node_id": "MDQ6VXNlcjMyNjU3Nw==", "avatar_url": "https://avatars.githubusercontent.com/u/326577?v=4", "gravatar_id": "", "url": "https://api.github.com/users/julien-c", "html_url": "https://github.com/julien-c", "followers_url": "https://api.github.com/users/julien-...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/pytorch-transformers/pull/964?src=pr&el=h1) Report\n> Merging [#964](https://codecov.io/gh/huggingface/pytorch-transformers/pull/964?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/pytorch-transformers/commit/7729ef738161a0a182b172fcb7c351f6d2b9c50d?src...
1,564
1,567
1,565
MEMBER
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/964/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/964/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/964", "html_url": "https://github.com/huggingface/transformers/pull/964", "diff_url": "https://github.com/huggingface/transformers/pull/964.diff", "patch_url": "https://github.com/huggingface/transformers/pull/964.patch", "merged_at": 15658...
https://api.github.com/repos/huggingface/transformers/issues/963
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/963/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/963/comments
https://api.github.com/repos/huggingface/transformers/issues/963/events
https://github.com/huggingface/transformers/pull/963
476,615,031
MDExOlB1bGxSZXF1ZXN0MzA0MTEwMTgy
963
Update modeling_bert.py
{ "login": "guotong1988", "id": 4702353, "node_id": "MDQ6VXNlcjQ3MDIzNTM=", "avatar_url": "https://avatars.githubusercontent.com/u/4702353?v=4", "gravatar_id": "", "url": "https://api.github.com/users/guotong1988", "html_url": "https://github.com/guotong1988", "followers_url": "https://api.github.com/us...
[]
closed
false
null
[]
[ "for win10 cpu", "Ok!" ]
1,564
1,565
1,565
CONTRIBUTOR
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/963/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/963/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/963", "html_url": "https://github.com/huggingface/transformers/pull/963", "diff_url": "https://github.com/huggingface/transformers/pull/963.diff", "patch_url": "https://github.com/huggingface/transformers/pull/963.patch", "merged_at": 15651...
https://api.github.com/repos/huggingface/transformers/issues/962
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/962/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/962/comments
https://api.github.com/repos/huggingface/transformers/issues/962/events
https://github.com/huggingface/transformers/pull/962
476,614,899
MDExOlB1bGxSZXF1ZXN0MzA0MTEwMDc5
962
Update modeling_xlnet.py
{ "login": "guotong1988", "id": 4702353, "node_id": "MDQ6VXNlcjQ3MDIzNTM=", "avatar_url": "https://avatars.githubusercontent.com/u/4702353?v=4", "gravatar_id": "", "url": "https://api.github.com/users/guotong1988", "html_url": "https://github.com/guotong1988", "followers_url": "https://api.github.com/us...
[]
closed
false
null
[]
[ "for win10 cpu", "LGTM!" ]
1,564
1,565
1,565
CONTRIBUTOR
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/962/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/962/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/962", "html_url": "https://github.com/huggingface/transformers/pull/962", "diff_url": "https://github.com/huggingface/transformers/pull/962.diff", "patch_url": "https://github.com/huggingface/transformers/pull/962.patch", "merged_at": 15651...
https://api.github.com/repos/huggingface/transformers/issues/961
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/961/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/961/comments
https://api.github.com/repos/huggingface/transformers/issues/961/events
https://github.com/huggingface/transformers/issues/961
476,574,046
MDU6SXNzdWU0NzY1NzQwNDY=
961
Deep learning NLP models for children's story understanding?
{ "login": "jeffxtang", "id": 535090, "node_id": "MDQ6VXNlcjUzNTA5MA==", "avatar_url": "https://avatars.githubusercontent.com/u/535090?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jeffxtang", "html_url": "https://github.com/jeffxtang", "followers_url": "https://api.github.com/users/jeff...
[]
closed
false
null
[]
[ "Hi! Your best bet is indeed to use the models that are state-of-the-art on question answering. It is currently a modified version of BERT (see SpanBERT). I cannot tell you what the accuracy would be on your dataset however, as unfortunately, these models are very sensitive to dataset changes. The SQuAD model (fine...
1,564
1,575
1,575
CONTRIBUTOR
null
I'm working on building NLP systems with common sense reasoning, starting with children's story understanding. I'm very interested in applying the latest pre-trained models here (and maybe Facebook's Roberta too) to a story (not one of the tested datasets like Squad 2.0 and GLUE) for QA, but am not sure how to approach...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/961/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/961/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/960
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/960/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/960/comments
https://api.github.com/repos/huggingface/transformers/issues/960/events
https://github.com/huggingface/transformers/pull/960
476,570,664
MDExOlB1bGxSZXF1ZXN0MzA0MDc5NTUw
960
Fixing unused weight_decay argument
{ "login": "ethanjperez", "id": 6402205, "node_id": "MDQ6VXNlcjY0MDIyMDU=", "avatar_url": "https://avatars.githubusercontent.com/u/6402205?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ethanjperez", "html_url": "https://github.com/ethanjperez", "followers_url": "https://api.github.com/us...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/pytorch-transformers/pull/960?src=pr&el=h1) Report\n> Merging [#960](https://codecov.io/gh/huggingface/pytorch-transformers/pull/960?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/pytorch-transformers/commit/44dd941efb602433b7edc29612cbdd0a03bf14dc?src...
1,564
1,565
1,565
CONTRIBUTOR
null
Currently the L2 regularization is hard-coded to "0.01", even though there is a --weight_decay flag implemented (that is unused). I'm making this flag control the weight decay used for fine-tuning in this script.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/960/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/960/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/960", "html_url": "https://github.com/huggingface/transformers/pull/960", "diff_url": "https://github.com/huggingface/transformers/pull/960.diff", "patch_url": "https://github.com/huggingface/transformers/pull/960.patch", "merged_at": 15651...
https://api.github.com/repos/huggingface/transformers/issues/959
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/959/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/959/comments
https://api.github.com/repos/huggingface/transformers/issues/959/events
https://github.com/huggingface/transformers/issues/959
476,556,396
MDU6SXNzdWU0NzY1NTYzOTY=
959
Use the fine-tuned model for another task
{ "login": "XuhuiZhou", "id": 20436061, "node_id": "MDQ6VXNlcjIwNDM2MDYx", "avatar_url": "https://avatars.githubusercontent.com/u/20436061?v=4", "gravatar_id": "", "url": "https://api.github.com/users/XuhuiZhou", "html_url": "https://github.com/XuhuiZhou", "followers_url": "https://api.github.com/users/...
[ { "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!\r\n\r\nIf you saved the model `BertForMultipleChoice` to a directory, you can then load the weights for the `BertForMaskedLM` by simply using the `from_pretrained(dir_name)` method. The transformer weights will be re-used by the `BertForMaskedLM` and the weights corresponding to the multiple-choice classifier ...
1,564
1,571
1,571
NONE
null
Hi, I am currently using this code to research the transferability of those pre-trained models and I wonder how could I apply the fine-tuned parameter of a model to another model. For example, I fine-tuned the **BertForMultipleChoice** and got the **pytorch_model.bin**, and what if I want to use the parameters weight a...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/959/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/959/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/958
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/958/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/958/comments
https://api.github.com/repos/huggingface/transformers/issues/958/events
https://github.com/huggingface/transformers/pull/958
476,519,030
MDExOlB1bGxSZXF1ZXN0MzA0MDQ0ODIx
958
Fixed small typo
{ "login": "saket404", "id": 26710708, "node_id": "MDQ6VXNlcjI2NzEwNzA4", "avatar_url": "https://avatars.githubusercontent.com/u/26710708?v=4", "gravatar_id": "", "url": "https://api.github.com/users/saket404", "html_url": "https://github.com/saket404", "followers_url": "https://api.github.com/users/sak...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/pytorch-transformers/pull/958?src=pr&el=h1) Report\n> Merging [#958](https://codecov.io/gh/huggingface/pytorch-transformers/pull/958?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/pytorch-transformers/commit/44dd941efb602433b7edc29612cbdd0a03bf14dc?src...
1,564
1,565
1,565
CONTRIBUTOR
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/958/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/958/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/958", "html_url": "https://github.com/huggingface/transformers/pull/958", "diff_url": "https://github.com/huggingface/transformers/pull/958.diff", "patch_url": "https://github.com/huggingface/transformers/pull/958.patch", "merged_at": 15651...
https://api.github.com/repos/huggingface/transformers/issues/957
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/957/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/957/comments
https://api.github.com/repos/huggingface/transformers/issues/957/events
https://github.com/huggingface/transformers/issues/957
476,473,596
MDU6SXNzdWU0NzY0NzM1OTY=
957
total training steps and tokenization in run_glue
{ "login": "xinsu626", "id": 30940128, "node_id": "MDQ6VXNlcjMwOTQwMTI4", "avatar_url": "https://avatars.githubusercontent.com/u/30940128?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xinsu626", "html_url": "https://github.com/xinsu626", "followers_url": "https://api.github.com/users/xin...
[]
closed
false
null
[]
[]
1,564
1,565
1,565
NONE
null
Question for total Training Steps: In run_glue line 78, the total number of training steps is calculated using `t_total = len(train_dataloader) // args.gradient_accumulation_steps * args.num_train_epochs`. I was wondering if we use gradient accumulation the num_train_epochs in the above code is not actual traini...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/957/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/957/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/956
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/956/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/956/comments
https://api.github.com/repos/huggingface/transformers/issues/956/events
https://github.com/huggingface/transformers/issues/956
476,430,848
MDU6SXNzdWU0NzY0MzA4NDg=
956
Tokenizer added special token attributes missing
{ "login": "Mrpatekful", "id": 26525586, "node_id": "MDQ6VXNlcjI2NTI1NTg2", "avatar_url": "https://avatars.githubusercontent.com/u/26525586?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Mrpatekful", "html_url": "https://github.com/Mrpatekful", "followers_url": "https://api.github.com/use...
[]
closed
false
null
[]
[ "The framework has been updated to store all additional special tokens in `additional_special_tokens` list and custom tokens are no longer available through class attributes." ]
1,564
1,565
1,565
NONE
null
It might not be a bug but I think it would be useful and more consitent behaviour if tokenizers could maintain the added special tokens as attributes after saving and loading a tokenizer. See the following example. ```python if 'added_tokens.json' in os.listdir('.'): # loading the saved extended tokenizer ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/956/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/956/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/955
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/955/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/955/comments
https://api.github.com/repos/huggingface/transformers/issues/955/events
https://github.com/huggingface/transformers/pull/955
476,413,925
MDExOlB1bGxSZXF1ZXN0MzAzOTc1MzM5
955
Fix comment typo
{ "login": "FeiWang96", "id": 19998174, "node_id": "MDQ6VXNlcjE5OTk4MTc0", "avatar_url": "https://avatars.githubusercontent.com/u/19998174?v=4", "gravatar_id": "", "url": "https://api.github.com/users/FeiWang96", "html_url": "https://github.com/FeiWang96", "followers_url": "https://api.github.com/users/...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/pytorch-transformers/pull/955?src=pr&el=h1) Report\n> Merging [#955](https://codecov.io/gh/huggingface/pytorch-transformers/pull/955?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/pytorch-transformers/commit/44dd941efb602433b7edc29612cbdd0a03bf14dc?src...
1,564
1,565
1,565
CONTRIBUTOR
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/955/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/955/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/955", "html_url": "https://github.com/huggingface/transformers/pull/955", "diff_url": "https://github.com/huggingface/transformers/pull/955.diff", "patch_url": "https://github.com/huggingface/transformers/pull/955.patch", "merged_at": 15651...
https://api.github.com/repos/huggingface/transformers/issues/954
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/954/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/954/comments
https://api.github.com/repos/huggingface/transformers/issues/954/events
https://github.com/huggingface/transformers/issues/954
476,409,732
MDU6SXNzdWU0NzY0MDk3MzI=
954
Bert model instantiated from BertForMaskedLM.from_pretrained('bert-base-uncased') and BertForMaskedLM(BertConfig.from_pretrained('bert-base-uncased')) give different results
{ "login": "christian-storm", "id": 17991708, "node_id": "MDQ6VXNlcjE3OTkxNzA4", "avatar_url": "https://avatars.githubusercontent.com/u/17991708?v=4", "gravatar_id": "", "url": "https://api.github.com/users/christian-storm", "html_url": "https://github.com/christian-storm", "followers_url": "https://api...
[ { "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, not only they give different results, but also BertModel(BertConfig.from_pretrained('bert-base-uncased')) will give a different result each time you run it. **Other bert models also have this problem**; I think this is a bug. @thomwolf \r\n\r\nFollowing code works well and produce the same result each time you...
1,564
1,570
1,570
NONE
null
The two different methods for instantiating a model produce different losses. `from pytorch_transformers import BertForMaskedLM, BertConfig, BertTokenizer import torch tokenizer = BertTokenizer.from_pretrained('bert-base-uncased') input_ids = torch.tensor(tokenizer.encode("Hello, my dog is cute")).unsqueeze(0) ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/954/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/954/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/953
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/953/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/953/comments
https://api.github.com/repos/huggingface/transformers/issues/953/events
https://github.com/huggingface/transformers/issues/953
476,278,948
MDU6SXNzdWU0NzYyNzg5NDg=
953
How to add some parameters in gpt-2 (in attention layer) and initialize the original gpt-2 parameters with pre-trained model and the new introduced parameters randomly?
{ "login": "fabrahman", "id": 22799593, "node_id": "MDQ6VXNlcjIyNzk5NTkz", "avatar_url": "https://avatars.githubusercontent.com/u/22799593?v=4", "gravatar_id": "", "url": "https://api.github.com/users/fabrahman", "html_url": "https://github.com/fabrahman", "followers_url": "https://api.github.com/users/...
[ { "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
[]
[ "You should make a class deriving from `GPT2Model` in which:\r\n- the `__init__` method\r\n * calls its super class `__init__` method (to add the original GPT2 modules),\r\n * you then add the new modules (with names differents from GPT2 original attributes so you don't overwrite over them).\r\n * you call `s...
1,564
1,573
1,573
NONE
null
Hi, I want to add some weight matrices inside attention layers of gpt-2 model. However, I want to initialize all original parameters with pre-trained gpt-2 and the newly added ones randomly. Can someone guide me how that's possible or point me to the right direction? Thanks
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/953/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/953/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/952
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/952/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/952/comments
https://api.github.com/repos/huggingface/transformers/issues/952/events
https://github.com/huggingface/transformers/pull/952
476,257,948
MDExOlB1bGxSZXF1ZXN0MzAzODUwNjQ1
952
Add 117M and 345M as aliases for pretrained models
{ "login": "yet-another-account", "id": 10374151, "node_id": "MDQ6VXNlcjEwMzc0MTUx", "avatar_url": "https://avatars.githubusercontent.com/u/10374151?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yet-another-account", "html_url": "https://github.com/yet-another-account", "followers_url": ...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/pytorch-transformers/pull/952?src=pr&el=h1) Report\n> Merging [#952](https://codecov.io/gh/huggingface/pytorch-transformers/pull/952?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/pytorch-transformers/commit/44dd941efb602433b7edc29612cbdd0a03bf14dc?src...
1,564
1,566
1,566
CONTRIBUTOR
null
This keeps better with the convention in the tensorflow repository.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/952/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/952/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/952", "html_url": "https://github.com/huggingface/transformers/pull/952", "diff_url": "https://github.com/huggingface/transformers/pull/952.diff", "patch_url": "https://github.com/huggingface/transformers/pull/952.patch", "merged_at": null ...
https://api.github.com/repos/huggingface/transformers/issues/951
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/951/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/951/comments
https://api.github.com/repos/huggingface/transformers/issues/951/events
https://github.com/huggingface/transformers/pull/951
476,223,043
MDExOlB1bGxSZXF1ZXN0MzAzODIyMzkz
951
run_swag.py should use AdamW
{ "login": "jeff-da", "id": 24738825, "node_id": "MDQ6VXNlcjI0NzM4ODI1", "avatar_url": "https://avatars.githubusercontent.com/u/24738825?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jeff-da", "html_url": "https://github.com/jeff-da", "followers_url": "https://api.github.com/users/jeff-d...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/pytorch-transformers/pull/951?src=pr&el=h1) Report\n> Merging [#951](https://codecov.io/gh/huggingface/pytorch-transformers/pull/951?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/pytorch-transformers/commit/44dd941efb602433b7edc29612cbdd0a03bf14dc?src...
1,564
1,567
1,567
NONE
null
run_swag.py doesn't compile currently, BertAdam is removed (per readme).
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/951/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/951/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/951", "html_url": "https://github.com/huggingface/transformers/pull/951", "diff_url": "https://github.com/huggingface/transformers/pull/951.diff", "patch_url": "https://github.com/huggingface/transformers/pull/951.patch", "merged_at": null ...
https://api.github.com/repos/huggingface/transformers/issues/950
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/950/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/950/comments
https://api.github.com/repos/huggingface/transformers/issues/950/events
https://github.com/huggingface/transformers/issues/950
476,194,359
MDU6SXNzdWU0NzYxOTQzNTk=
950
CONFIG_NAME and WEIGHTS_NAME are missing in modeling_transfo_xl.py
{ "login": "tomohideshibata", "id": 16042472, "node_id": "MDQ6VXNlcjE2MDQyNDcy", "avatar_url": "https://avatars.githubusercontent.com/u/16042472?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tomohideshibata", "html_url": "https://github.com/tomohideshibata", "followers_url": "https://api...
[]
closed
false
null
[]
[ "Thanks!" ]
1,564
1,565
1,565
CONTRIBUTOR
null
When I run `convert_transfo_xl_checkpoint_to_pytorch.py`, the following error occurs. ``` Traceback (most recent call last): File "convert_transfo_xl_checkpoint_to_pytorch.py", line 27, in <module> from pytorch_transformers.modeling_transfo_xl import (CONFIG_NAME, ImportError: cannot import name 'CONFIG_NAME...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/950/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/950/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/949
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/949/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/949/comments
https://api.github.com/repos/huggingface/transformers/issues/949/events
https://github.com/huggingface/transformers/issues/949
476,174,085
MDU6SXNzdWU0NzYxNzQwODU=
949
<model>ForQuestionAnswering loading non-deterministic weights
{ "login": "aychang95", "id": 10554495, "node_id": "MDQ6VXNlcjEwNTU0NDk1", "avatar_url": "https://avatars.githubusercontent.com/u/10554495?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aychang95", "html_url": "https://github.com/aychang95", "followers_url": "https://api.github.com/users/...
[]
closed
false
null
[]
[ "These weights are not pretrained, they are added for fine-tuning the model on a downstream question answering task. You have to train the `qa_output` weights.\r\nThey are initialized randomly and so will be different at each run." ]
1,564
1,565
1,565
NONE
null
I was comparing the weight and bias parameters of two different pre-trained-loaded BertForQuestionAnswering model, and they seem to differ. This causes every instantiation of pre-trained models to have slightly different results. Compared to #695 where you set the model to eval mode to deactivate dropout layers, th...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/949/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/949/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/948
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/948/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/948/comments
https://api.github.com/repos/huggingface/transformers/issues/948/events
https://github.com/huggingface/transformers/issues/948
476,036,376
MDU6SXNzdWU0NzYwMzYzNzY=
948
How to train BertModel
{ "login": "akshayudnur", "id": 38490022, "node_id": "MDQ6VXNlcjM4NDkwMDIy", "avatar_url": "https://avatars.githubusercontent.com/u/38490022?v=4", "gravatar_id": "", "url": "https://api.github.com/users/akshayudnur", "html_url": "https://github.com/akshayudnur", "followers_url": "https://api.github.com/...
[]
closed
false
null
[]
[ "Hi, there are examples in the \"examples\" folder on finetuning language models. Please take a look at [the scripts available here](https://github.com/huggingface/pytorch-transformers/tree/master/examples/lm_finetuning)." ]
1,564
1,565
1,565
NONE
null
Hi, I am trying to train BertModel on my domain-based dataset. Please let me know how to train the BertModel.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/948/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/948/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/947
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/947/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/947/comments
https://api.github.com/repos/huggingface/transformers/issues/947/events
https://github.com/huggingface/transformers/issues/947
476,001,056
MDU6SXNzdWU0NzYwMDEwNTY=
947
[XLNet] Parameters to reproduce SQuAD scores
{ "login": "astariul", "id": 43774355, "node_id": "MDQ6VXNlcjQzNzc0MzU1", "avatar_url": "https://avatars.githubusercontent.com/u/43774355?v=4", "gravatar_id": "", "url": "https://api.github.com/users/astariul", "html_url": "https://github.com/astariul", "followers_url": "https://api.github.com/users/ast...
[ { "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
[]
[ "Maybe we can use the same issue so the people following #822 can learn from your experiments as well?", "I'm using xlnet-large-cased.\r\nAt first I got \r\n{\r\n \"exact\": 75.91296121097446,\r\n \"f1\": 83.19559419987176,\r\n \"total\": 10570,\r\n \"HasAns_exact\": 75.91296121097446,\r\n \"HasAns_f1\": 83....
1,564
1,580
1,580
CONTRIBUTOR
null
I'm trying to reproduce the results of XLNet-base on SQuAD 2.0. From the [README of XLNet](https://github.com/zihangdai/xlnet#results) : Model | [RACE accuracy](http://www.qizhexie.com/data/RACE_leaderboard.html) | SQuAD1.1 EM | SQuAD2.0 EM --- | --- | --- | --- BERT-Large | 72.0 | 84.1 | 78.98 XLNet-Base | |...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/947/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/947/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/946
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/946/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/946/comments
https://api.github.com/repos/huggingface/transformers/issues/946/events
https://github.com/huggingface/transformers/issues/946
475,847,994
MDU6SXNzdWU0NzU4NDc5OTQ=
946
Using memory states with XLNet / TransfoXL
{ "login": "chris-boson", "id": 6893229, "node_id": "MDQ6VXNlcjY4OTMyMjk=", "avatar_url": "https://avatars.githubusercontent.com/u/6893229?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chris-boson", "html_url": "https://github.com/chris-boson", "followers_url": "https://api.github.com/us...
[ { "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
[]
[ "Which command did you use to \"naively\" feed in the memory states?\r\nYou can just feed the mems that you get from the previous forward pass, but the inputs need to be the continuation of the previous input. So the batch_size, in particular, should stay the same.", "I found this post that talks about how to org...
1,564
1,570
1,570
NONE
null
I would like to fine-tune XLNet / TransfoXL for a classification task where I classify each sentence in the context of a large document. Is there an example for how to use the memory states in XLNet and TransfoXL? This example only uses memory states for inference but there is no example for training: https://github...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/946/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/946/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/945
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/945/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/945/comments
https://api.github.com/repos/huggingface/transformers/issues/945/events
https://github.com/huggingface/transformers/issues/945
475,844,593
MDU6SXNzdWU0NzU4NDQ1OTM=
945
_convert_id_to_tokens for XLNet not working
{ "login": "chris-boson", "id": 6893229, "node_id": "MDQ6VXNlcjY4OTMyMjk=", "avatar_url": "https://avatars.githubusercontent.com/u/6893229?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chris-boson", "html_url": "https://github.com/chris-boson", "followers_url": "https://api.github.com/us...
[ { "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
[]
[ "Which command can we use to reproduce the behavior?", "Upon further testing, looks like this tokenizer doesn't like numpy arrays, the other ones seem to be fine\r\n```\r\nimport numpy as np\r\nfrom pytorch_transformers import XLNetTokenizer, TransfoXLTokenizer, BertTokenizer\r\n\r\ntokenizer = BertTokenizer.from...
1,564
1,570
1,570
NONE
null
``` text = self.tokenizer.convert_ids_to_tokens(token_list) File "/home/lambda/repos/pytorch-transformers/pytorch_transformers/tokenization_utils.py", line 444, in convert_ids_to_tokens tokens.append(self._convert_id_to_token(index)) File "/home/lambda/repos/pytorch-transformers/pytorch_transformers/tokeniz...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/945/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/945/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/944
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/944/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/944/comments
https://api.github.com/repos/huggingface/transformers/issues/944/events
https://github.com/huggingface/transformers/issues/944
475,744,982
MDU6SXNzdWU0NzU3NDQ5ODI=
944
Missing lines in Readme examples?
{ "login": "nicolas-ivanov", "id": 2272790, "node_id": "MDQ6VXNlcjIyNzI3OTA=", "avatar_url": "https://avatars.githubusercontent.com/u/2272790?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nicolas-ivanov", "html_url": "https://github.com/nicolas-ivanov", "followers_url": "https://api.gith...
[]
closed
false
null
[]
[ "Thanks", "@thomwolf please, note: the first example hasn't been fixed by the commit.", "Yes, doesn't look like a problem to me. Usually, people put the model in training mode inside the train function (and even inside the training loop I would recommend).", "Ok, got it!" ]
1,564
1,565
1,565
NONE
null
1. In the [example](https://github.com/huggingface/pytorch-transformers#serialization) ``` ... ### Do some stuff to our model and tokenizer # Ex: add new tokens to the vocabulary and embeddings of our model tokenizer.add_tokens(['[SPECIAL_TOKEN_1]', '[SPECIAL_TOKEN_2]']) model.resize_token_embeddings(len(tokenize...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/944/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/944/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/943
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/943/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/943/comments
https://api.github.com/repos/huggingface/transformers/issues/943/events
https://github.com/huggingface/transformers/issues/943
475,684,471
MDU6SXNzdWU0NzU2ODQ0NzE=
943
Is pytorch-transformers useful for training from scratch on a custom dataset?
{ "login": "Caselles", "id": 19774802, "node_id": "MDQ6VXNlcjE5Nzc0ODAy", "avatar_url": "https://avatars.githubusercontent.com/u/19774802?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Caselles", "html_url": "https://github.com/Caselles", "followers_url": "https://api.github.com/users/Cas...
[ { "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 depends on the model you're interested in. For GPT2, for example, there's a class called `GPT2LMHeadModel` that you could use for pretraining with minimal modifications. For XLNet, the implementation in this repo is missing some key functionality (the permutation generation function and an analogue of the dat...
1,564
1,573
1,572
NONE
null
Hello, I'm looking into the great repo, and I'm wondering if there is a feature that could allow me to train a, let's say, gpt2 model on a custom dataset of sequences. Is it already provided in your codebase and features ? Otherwise I'll tinker with code on my own. Thanks in advance and again, great job for...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/943/reactions", "total_count": 9, "+1": 6, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 3, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/943/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/942
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/942/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/942/comments
https://api.github.com/repos/huggingface/transformers/issues/942/events
https://github.com/huggingface/transformers/issues/942
475,597,223
MDU6SXNzdWU0NzU1OTcyMjM=
942
Using BERT for predicting masked token
{ "login": "chinmay5", "id": 16525717, "node_id": "MDQ6VXNlcjE2NTI1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/16525717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chinmay5", "html_url": "https://github.com/chinmay5", "followers_url": "https://api.github.com/users/chi...
[ { "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, no need to mask, just input your sequence and keep the hidden-states of the top tokens that correspond to your ingredients.\r\n\r\nIf your ingredients are not in the vocabulary, they will be split by the tokenizer in sub-word units (totally fine). Then, just use as a representation the mean or the max of the r...
1,564
1,579
1,570
NONE
null
I have a task where I want to obtain better word embeddings for food ingredients. Since I am a bit new to the field of NLP, I have certain fundamental doubts as well which I would love to be corrected upon. 1. I want to get word embeddings so started with Word2Vec. Now, I want to get more contextual representation so ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/942/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/942/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/941
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/941/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/941/comments
https://api.github.com/repos/huggingface/transformers/issues/941/events
https://github.com/huggingface/transformers/pull/941
475,595,787
MDExOlB1bGxSZXF1ZXN0MzAzMzE0Njg3
941
Updated model token sizing to replace removed parameter `num_special_…
{ "login": "jroakes", "id": 10191545, "node_id": "MDQ6VXNlcjEwMTkxNTQ1", "avatar_url": "https://avatars.githubusercontent.com/u/10191545?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jroakes", "html_url": "https://github.com/jroakes", "followers_url": "https://api.github.com/users/jroake...
[ { "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
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/pytorch-transformers/pull/941?src=pr&el=h1) Report\n> Merging [#941](https://codecov.io/gh/huggingface/pytorch-transformers/pull/941?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/pytorch-transformers/commit/f2a3eb987e1fc2c85320fc3849c67811f5736b50?src...
1,564
1,575
1,575
NONE
null
…tokens` `num_special_tokens` seems to no longer be implemented. Replaced with `model.resize_token_embeddings(new_num_tokens=len(tokenizer))` which resizes (non-destructively, I think) the embeddings to include the new tokens.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/941/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/941/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/941", "html_url": "https://github.com/huggingface/transformers/pull/941", "diff_url": "https://github.com/huggingface/transformers/pull/941.diff", "patch_url": "https://github.com/huggingface/transformers/pull/941.patch", "merged_at": null ...
https://api.github.com/repos/huggingface/transformers/issues/940
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/940/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/940/comments
https://api.github.com/repos/huggingface/transformers/issues/940/events
https://github.com/huggingface/transformers/issues/940
475,553,801
MDU6SXNzdWU0NzU1NTM4MDE=
940
Unexpectedly preprocess when multi-gpu using
{ "login": "Liangtaiwan", "id": 20909894, "node_id": "MDQ6VXNlcjIwOTA5ODk0", "avatar_url": "https://avatars.githubusercontent.com/u/20909894?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Liangtaiwan", "html_url": "https://github.com/Liangtaiwan", "followers_url": "https://api.github.com/...
[ { "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
[]
[ "Why do you think the unique_id is not serial?\r\nEach process should convert ALL the dataset.\r\nOnly the PyTorch dataset should be split among processes.\r\n\r\nBy the way it would be cleaner if the other processes wait for the first process to pre-process the dataset before using the cache so the dataset is only...
1,564
1,600
1,578
CONTRIBUTOR
null
When run example/run_squad with more than one gpu, the preprocessor cannot work as expected. For example, the unique_id will not be a serial numbers, then keyerror occurs when writing the result to json file. https://github.com/huggingface/pytorch-transformers/blob/f2a3eb987e1fc2c85320fc3849c67811f5736b50/examples/u...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/940/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/940/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/939
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/939/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/939/comments
https://api.github.com/repos/huggingface/transformers/issues/939/events
https://github.com/huggingface/transformers/issues/939
475,551,085
MDU6SXNzdWU0NzU1NTEwODU=
939
Chinese BERT broken
{ "login": "Liangtaiwan", "id": 20909894, "node_id": "MDQ6VXNlcjIwOTA5ODk0", "avatar_url": "https://avatars.githubusercontent.com/u/20909894?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Liangtaiwan", "html_url": "https://github.com/Liangtaiwan", "followers_url": "https://api.github.com/...
[ { "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
[]
[ "Yes you need to install from master for now. We have not yet done a new release with the fix of #860.", "@thomwolf Not related to this specific issue here, but do you think it makes sense to add the following policy to the newly introduced issue templates: all bug reports should be filed against latest `master` ...
1,564
1,570
1,570
CONTRIBUTOR
null
There are still some bug after #860 The same issue is also mention in #903 I'm running on Chinese-Style SQuAD dataset (DRCD). I can train Chinese-Bert successfully about half year ago. However, I could not train the model successfully but I can train Multi-Bert successfully. I'm not able to find out the reaso...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/939/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/939/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/938
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/938/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/938/comments
https://api.github.com/repos/huggingface/transformers/issues/938/events
https://github.com/huggingface/transformers/issues/938
475,549,739
MDU6SXNzdWU0NzU1NDk3Mzk=
938
Performance dramatically drops down after replacing pytorch-pretrained-bert with pytorch-transformers
{ "login": "YuxiXie", "id": 48198209, "node_id": "MDQ6VXNlcjQ4MTk4MjA5", "avatar_url": "https://avatars.githubusercontent.com/u/48198209?v=4", "gravatar_id": "", "url": "https://api.github.com/users/YuxiXie", "html_url": "https://github.com/YuxiXie", "followers_url": "https://api.github.com/users/YuxiXi...
[]
closed
false
null
[]
[ "Same here. I am finetuning language models on new dataset. Once I change from `pytorch-pretrained-bert` to `pytorch-transformers`, generation quality dramatically drops. ", "I have the same problem. I refer to a example of Named Entity Recognition which used pytorch-pretrained-bert. I changed it to pytorch-tra...
1,564
1,578
1,565
NONE
null
I am trying to run a baseline model, whose encoder is the pretrained BERT ('bert-base-uncased'). I have tried both versions of this package and found that the performance of the pytorch-transformers-BERT is much worse than pytorch-pretrained-bert-BERT, i.e. the BLeU-4 has dropped from 8. to 2. Below is my codes, I wan...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/938/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/938/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/937
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/937/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/937/comments
https://api.github.com/repos/huggingface/transformers/issues/937/events
https://github.com/huggingface/transformers/issues/937
475,538,381
MDU6SXNzdWU0NzU1MzgzODE=
937
Wrong refactoring of mandatory parameters for run_squad.py
{ "login": "mathiasburger", "id": 15790457, "node_id": "MDQ6VXNlcjE1NzkwNDU3", "avatar_url": "https://avatars.githubusercontent.com/u/15790457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mathiasburger", "html_url": "https://github.com/mathiasburger", "followers_url": "https://api.githu...
[ { "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
[]
[ "indeed, we could remove this", "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,564
1,570
1,570
NONE
null
When only running evaluation on a squad dev set, it should *not* be mandatory to add a --train_file because only the --predict_file is necessary. Current script invocation: ``` python run_squad \ --model_type bert \ --model_name_or_path xxx \ --output_dir xxx \ --train_file UNNECESSARY_BUT_MAND...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/937/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/937/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/936
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/936/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/936/comments
https://api.github.com/repos/huggingface/transformers/issues/936/events
https://github.com/huggingface/transformers/issues/936
475,484,693
MDU6SXNzdWU0NzU0ODQ2OTM=
936
XLNet large low accuracy
{ "login": "handsomezebra", "id": 5323637, "node_id": "MDQ6VXNlcjUzMjM2Mzc=", "avatar_url": "https://avatars.githubusercontent.com/u/5323637?v=4", "gravatar_id": "", "url": "https://api.github.com/users/handsomezebra", "html_url": "https://github.com/handsomezebra", "followers_url": "https://api.github....
[ { "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
[]
[ "The first thought could be that the learning rate is too high and you overfit.\r\nYou probably should try changing the batch size too.\r\nYou can have a look at #795 where we discussed similar questions for SST-2. ", "This issue has been automatically marked as stale because it has not had recent activity. It wi...
1,564
1,570
1,570
NONE
null
I was running run_glue.py on one of my classification problems. Using XLNet-base-cased, everything seems to be fine, the classification accuracy converge to around 92%. But using XLNet-large, the accuracy is 89% at the first checkpoint and then drop into 24.85% at the second checkpoint. The data should be ok because I ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/936/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/936/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/935
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/935/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/935/comments
https://api.github.com/repos/huggingface/transformers/issues/935/events
https://github.com/huggingface/transformers/issues/935
475,481,230
MDU6SXNzdWU0NzU0ODEyMzA=
935
run_glue : Evaluating in every grad_accumulation_step if flag eval during training is true
{ "login": "pratyay-banerjee", "id": 9927777, "node_id": "MDQ6VXNlcjk5Mjc3Nzc=", "avatar_url": "https://avatars.githubusercontent.com/u/9927777?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pratyay-banerjee", "html_url": "https://github.com/pratyay-banerjee", "followers_url": "https://ap...
[]
closed
false
null
[]
[ "```\r\nif (step + 1) % args.gradient_accumulation_steps == 0:\r\n scheduler.step() # Update learning rate schedule\r\n optimizer.step()\r\n model.zero_grad()\r\n global_step += 1\r\n\r\n if args.local_rank in [-1, 0] and args.logging_steps...
1,564
1,564
1,564
NONE
null
https://github.com/huggingface/pytorch-transformers/blob/f2a3eb987e1fc2c85320fc3849c67811f5736b50/examples/run_glue.py#L154
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/935/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/935/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/934
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/934/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/934/comments
https://api.github.com/repos/huggingface/transformers/issues/934/events
https://github.com/huggingface/transformers/issues/934
475,441,055
MDU6SXNzdWU0NzU0NDEwNTU=
934
Feature Request : run_swag with XLNet and XLM
{ "login": "pratyay-banerjee", "id": 9927777, "node_id": "MDQ6VXNlcjk5Mjc3Nzc=", "avatar_url": "https://avatars.githubusercontent.com/u/9927777?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pratyay-banerjee", "html_url": "https://github.com/pratyay-banerjee", "followers_url": "https://ap...
[]
closed
false
null
[]
[ "Yes, don't have bandwith for that in the short term. If you want to give it a go feel free.\r\nClosing this issue in favor of the previous one #931 " ]
1,564
1,565
1,565
NONE
null
It would be great if the run_swag script too was updated with XLNet and XLM models. They should be similar to BertForMultipleChoice ?
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/934/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/934/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/933
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/933/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/933/comments
https://api.github.com/repos/huggingface/transformers/issues/933/events
https://github.com/huggingface/transformers/pull/933
475,422,182
MDExOlB1bGxSZXF1ZXN0MzAzMTc5MDE2
933
link to `swift-coreml-transformers`
{ "login": "julien-c", "id": 326577, "node_id": "MDQ6VXNlcjMyNjU3Nw==", "avatar_url": "https://avatars.githubusercontent.com/u/326577?v=4", "gravatar_id": "", "url": "https://api.github.com/users/julien-c", "html_url": "https://github.com/julien-c", "followers_url": "https://api.github.com/users/julien-...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/pytorch-transformers/pull/933?src=pr&el=h1) Report\n> Merging [#933](https://codecov.io/gh/huggingface/pytorch-transformers/pull/933?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/pytorch-transformers/commit/f2a3eb987e1fc2c85320fc3849c67811f5736b50?src...
1,564
1,564
1,564
MEMBER
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/933/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/933/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/933", "html_url": "https://github.com/huggingface/transformers/pull/933", "diff_url": "https://github.com/huggingface/transformers/pull/933.diff", "patch_url": "https://github.com/huggingface/transformers/pull/933.patch", "merged_at": 15646...
https://api.github.com/repos/huggingface/transformers/issues/932
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/932/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/932/comments
https://api.github.com/repos/huggingface/transformers/issues/932/events
https://github.com/huggingface/transformers/issues/932
475,410,078
MDU6SXNzdWU0NzU0MTAwNzg=
932
pip install error: "regex_3/_regex.c:48:10: fatal error: Python.h: No such file or directory"
{ "login": "seyuboglu", "id": 32822771, "node_id": "MDQ6VXNlcjMyODIyNzcx", "avatar_url": "https://avatars.githubusercontent.com/u/32822771?v=4", "gravatar_id": "", "url": "https://api.github.com/users/seyuboglu", "html_url": "https://github.com/seyuboglu", "followers_url": "https://api.github.com/users/...
[]
closed
false
null
[]
[ "Hi @seyuboglu I think you need to install the Python Dev package on your distribution. For Ubuntu >= 18.04 this should be possible with `apt install python3.7-dev` :)", "Thank you @stefan-it! That did the trick. Any idea why this is necessary to install pytorch-transformers in particular? ", "@stefan-it do you...
1,564
1,579
1,564
NONE
null
When pip installing pytorch-pretrained-bert on ubuntu and getting the following error: ``` 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 ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/932/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/932/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/931
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/931/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/931/comments
https://api.github.com/repos/huggingface/transformers/issues/931/events
https://github.com/huggingface/transformers/issues/931
475,377,720
MDU6SXNzdWU0NzUzNzc3MjA=
931
Updating run_swag script for new pytorch_transformers setup
{ "login": "yakazimir", "id": 1296330, "node_id": "MDQ6VXNlcjEyOTYzMzA=", "avatar_url": "https://avatars.githubusercontent.com/u/1296330?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yakazimir", "html_url": "https://github.com/yakazimir", "followers_url": "https://api.github.com/users/ya...
[ { "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
[]
[ "I found a few other issues: 1) the script uses the old BertAdam (instead of AdamW)\r\n\r\nhttps://github.com/huggingface/pytorch-transformers/blob/44dd941efb602433b7edc29612cbdd0a03bf14dc/examples/single_model_scripts/run_swag.py#L431\r\n\r\n2) the train and test loops still use the old version of forward, i.e., \...
1,564
1,570
1,570
NONE
null
https://github.com/huggingface/pytorch-transformers/blob/f2a3eb987e1fc2c85320fc3849c67811f5736b50/examples/single_model_scripts/run_swag.py#L35 It appears that WEIGHTS_NAME and CONFIG_NAME have moved out of {pytorch_transformers/pytorch_pretrained_bert}.file_utils (and instead can be imported directly from pytorch_t...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/931/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/931/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/930
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/930/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/930/comments
https://api.github.com/repos/huggingface/transformers/issues/930/events
https://github.com/huggingface/transformers/pull/930
475,173,073
MDExOlB1bGxSZXF1ZXN0MzAyOTc3Mzk1
930
Fixing a broken link in the README.md
{ "login": "rodgzilla", "id": 12107203, "node_id": "MDQ6VXNlcjEyMTA3MjAz", "avatar_url": "https://avatars.githubusercontent.com/u/12107203?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rodgzilla", "html_url": "https://github.com/rodgzilla", "followers_url": "https://api.github.com/users/...
[]
closed
false
null
[]
[ "Thanks Gregory :)", "# [Codecov](https://codecov.io/gh/huggingface/pytorch-transformers/pull/930?src=pr&el=h1) Report\n> Merging [#930](https://codecov.io/gh/huggingface/pytorch-transformers/pull/930?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/pytorch-transformers/commit/6b763d04a930e070e4096...
1,564
1,564
1,564
CONTRIBUTOR
null
Fixing the `Quick tour` link.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/930/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/930/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/930", "html_url": "https://github.com/huggingface/transformers/pull/930", "diff_url": "https://github.com/huggingface/transformers/pull/930.diff", "patch_url": "https://github.com/huggingface/transformers/pull/930.patch", "merged_at": 15645...
https://api.github.com/repos/huggingface/transformers/issues/929
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/929/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/929/comments
https://api.github.com/repos/huggingface/transformers/issues/929/events
https://github.com/huggingface/transformers/issues/929
475,041,766
MDU6SXNzdWU0NzUwNDE3NjY=
929
AttributeError: 'NoneType' object has no attribute 'split'
{ "login": "laonb", "id": 11531209, "node_id": "MDQ6VXNlcjExNTMxMjA5", "avatar_url": "https://avatars.githubusercontent.com/u/11531209?v=4", "gravatar_id": "", "url": "https://api.github.com/users/laonb", "html_url": "https://github.com/laonb", "followers_url": "https://api.github.com/users/laonb/follow...
[]
closed
false
null
[]
[ "conda 4.5.12\r\nPython 3.6.8 :: Anaconda, Inc.\r\ntorch 1.1.0", "Is it possible you installed the CPU-only version of PyTorch? Which command did you use to install it? Did you do it via conda or pip?", "Seems like a problem related to apex, you should open an issue on NVIDIA's repo.\r\nI'm closing this one for...
1,564
1,565
1,565
NONE
null
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-1-4393ada473d4> in <module> 1 import torch ----> 2 from pytorch_transformers import * ~/anaconda3/envs/python/lib/python3.6/site-packages/py...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/929/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/929/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/928
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/928/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/928/comments
https://api.github.com/repos/huggingface/transformers/issues/928/events
https://github.com/huggingface/transformers/issues/928
474,928,910
MDU6SXNzdWU0NzQ5Mjg5MTA=
928
ERNIE 2.0 ?
{ "login": "MuruganR96", "id": 35978784, "node_id": "MDQ6VXNlcjM1OTc4Nzg0", "avatar_url": "https://avatars.githubusercontent.com/u/35978784?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MuruganR96", "html_url": "https://github.com/MuruganR96", "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 is relevant.\r\nhttps://medium.com/syncedreview/baidus-ernie-2-0-beats-bert-and-xlnet-on-nlp-benchmarks-51a8c21aa433", "We don't have any plan to add ERNIE in the short-term but if someone wants to do a (clean) PR with this model, happy to have a look and add it to the library.", "This issue has been auto...
1,564
1,570
1,570
NONE
null
Latest NLP Language Model.:) [ERNIE 2.0](https://arxiv.org/pdf/1907.12412.pdf?source=post_page)
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/928/reactions", "total_count": 13, "+1": 13, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/928/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/927
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/927/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/927/comments
https://api.github.com/repos/huggingface/transformers/issues/927/events
https://github.com/huggingface/transformers/issues/927
474,875,299
MDU6SXNzdWU0NzQ4NzUyOTk=
927
`do_wordpiece_only` argument
{ "login": "bkj", "id": 6086781, "node_id": "MDQ6VXNlcjYwODY3ODE=", "avatar_url": "https://avatars.githubusercontent.com/u/6086781?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bkj", "html_url": "https://github.com/bkj", "followers_url": "https://api.github.com/users/bkj/followers", "f...
[ { "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
[]
[ "Use _additional_special_tokens_ instead.\r\n\r\n```\r\n>>> tokenizer = BertTokenizer.from_pretrained('bert-base-uncased', additional_special_tokens=['[unused0]'])\r\n>>> tokenizer.tokenize('[CLS] [unused0] this is a [SEP] test')\r\n['[CLS]', '[unused0]', 'this', 'is', 'a', '[SEP]', 'test']\r\n```\r\n", "This is...
1,564
1,570
1,570
CONTRIBUTOR
null
A `do_wordpiece_only` argument is referenced [here](https://github.com/huggingface/pytorch-transformers/blob/fec76a481d1ecfbf068d87735dd44ffc26158f6e/pytorch_transformers/tokenization_bert.py#L97) -- does that argument actually exist? I'm not able to find it in the repo anywhere. Related, is this expected behavior?...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/927/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/927/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/926
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/926/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/926/comments
https://api.github.com/repos/huggingface/transformers/issues/926/events
https://github.com/huggingface/transformers/issues/926
474,690,976
MDU6SXNzdWU0NzQ2OTA5NzY=
926
Feature request: roBERTa
{ "login": "chenyangh", "id": 8120212, "node_id": "MDQ6VXNlcjgxMjAyMTI=", "avatar_url": "https://avatars.githubusercontent.com/u/8120212?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chenyangh", "html_url": "https://github.com/chenyangh", "followers_url": "https://api.github.com/users/ch...
[]
closed
false
null
[]
[ "See #829 (and thanks for the kind words!)" ]
1,564
1,564
1,564
NONE
null
Hi, thanks for making a unified framework for all transformer-based models. Just out of curiosity, do you plan to add the roBERTa pre-trained models? Although FairSeq has provided the model, I still prefer using your framework. Thanks again, big fan. 🤗🤗🤗
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/926/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/926/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/925
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/925/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/925/comments
https://api.github.com/repos/huggingface/transformers/issues/925/events
https://github.com/huggingface/transformers/issues/925
474,619,833
MDU6SXNzdWU0NzQ2MTk4MzM=
925
Torchscipt mode for BertForPreTraining
{ "login": "loopdigga96", "id": 10596055, "node_id": "MDQ6VXNlcjEwNTk2MDU1", "avatar_url": "https://avatars.githubusercontent.com/u/10596055?v=4", "gravatar_id": "", "url": "https://api.github.com/users/loopdigga96", "html_url": "https://github.com/loopdigga96", "followers_url": "https://api.github.com/...
[]
closed
false
null
[]
[ "I realised what was the problem. There is an error in documentation.\r\n```from pytorch_pretrained_bert import BertModel, BertTokenizer, BertConfig```\r\nshould be\r\n```from pytorch_transformers import BertModel, BertTokenizer, BertConfig```\r\n\r\nAnd also [there](https://github.com/huggingface/pytorch-transform...
1,564
1,564
1,564
NONE
null
Hello, i used code from this tutorial https://huggingface.co/pytorch-transformers/torchscript.html pytorch-transformers==1.0.0 ``` from pytorch_pretrained_bert import BertModel, BertTokenizer, BertConfig import torch enc = BertTokenizer.from_pretrained("bert-base-uncased") # Tokenizing input text text = "[...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/925/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/925/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/924
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/924/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/924/comments
https://api.github.com/repos/huggingface/transformers/issues/924/events
https://github.com/huggingface/transformers/issues/924
474,521,857
MDU6SXNzdWU0NzQ1MjE4NTc=
924
[RuntimeError: sizes must be non-negative] in run_squad.py using xlnet large model
{ "login": "ShuGao0810", "id": 29175166, "node_id": "MDQ6VXNlcjI5MTc1MTY2", "avatar_url": "https://avatars.githubusercontent.com/u/29175166?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ShuGao0810", "html_url": "https://github.com/ShuGao0810", "followers_url": "https://api.github.com/use...
[]
closed
false
null
[]
[ "I have encountered a similar problem:\r\nJust copy the code\r\n`\r\nimport torch\r\n#from pytorch_pretrained_bert import BertTokenizer, BertModel, BertForMaskedLM\r\nfrom pytorch_transformers import XLNetLMHeadModel, XLNetTokenizer,XLNetConfig\r\nimport numpy as np\r\nimport math\r\n\r\nconfig = XLNetConfig.from_p...
1,564
1,565
1,565
NONE
null
[RuntimeError: sizes must be non-negative] run_squad.py in main global_step, tr_loss = train(args, train_dataset, model, tokenizer) run_squad.py in train outputs = model(**inputs) modeling_xlnet.py mems_mask = torch.zeros([data_mask.shape[0], mlen, bsz]).to(data_mask), in which mlen = 0 resulting from "mem...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/924/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/924/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/923
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/923/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/923/comments
https://api.github.com/repos/huggingface/transformers/issues/923/events
https://github.com/huggingface/transformers/pull/923
474,509,257
MDExOlB1bGxSZXF1ZXN0MzAyNDM3Mzcy
923
Don't save model without training (example/run_squad.py bug)
{ "login": "Liangtaiwan", "id": 20909894, "node_id": "MDQ6VXNlcjIwOTA5ODk0", "avatar_url": "https://avatars.githubusercontent.com/u/20909894?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Liangtaiwan", "html_url": "https://github.com/Liangtaiwan", "followers_url": "https://api.github.com/...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/pytorch-transformers/pull/923?src=pr&el=h1) Report\n> Merging [#923](https://codecov.io/gh/huggingface/pytorch-transformers/pull/923?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/pytorch-transformers/commit/a7b4cfe9194bf93c7044a42c9f1281260ce6279e?src...
1,564
1,566
1,566
CONTRIBUTOR
null
There is a mirror bug in run_squad.py. The model should not be saved if only do_predict.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/923/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/923/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/923", "html_url": "https://github.com/huggingface/transformers/pull/923", "diff_url": "https://github.com/huggingface/transformers/pull/923.diff", "patch_url": "https://github.com/huggingface/transformers/pull/923.patch", "merged_at": 15661...
https://api.github.com/repos/huggingface/transformers/issues/922
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/922/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/922/comments
https://api.github.com/repos/huggingface/transformers/issues/922/events
https://github.com/huggingface/transformers/issues/922
474,428,337
MDU6SXNzdWU0NzQ0MjgzMzc=
922
TypeError: 'NoneType' object is not callable
{ "login": "sw-ot-ashishpatel", "id": 35961613, "node_id": "MDQ6VXNlcjM1OTYxNjEz", "avatar_url": "https://avatars.githubusercontent.com/u/35961613?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sw-ot-ashishpatel", "html_url": "https://github.com/sw-ot-ashishpatel", "followers_url": "https...
[ { "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 is the code you are running to get this error?", "I assume it is when trying to run the \"quick tour\" from the readme. I'm getting the same error and found a similar issue in #712 where the feedback was \"usually, this comes from the library not being able to reach AWS S3 servers to download the pretrained...
1,564
1,570
1,570
NONE
null
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-7-d477193005ba> in <module> 12 output_attentions=True) 13 input_ids = torch.tensor([tokenizer.e...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/922/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/922/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/921
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/921/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/921/comments
https://api.github.com/repos/huggingface/transformers/issues/921/events
https://github.com/huggingface/transformers/issues/921
474,385,458
MDU6SXNzdWU0NzQzODU0NTg=
921
Issues in visualizing a fine tuned model
{ "login": "chikubee", "id": 25073753, "node_id": "MDQ6VXNlcjI1MDczNzUz", "avatar_url": "https://avatars.githubusercontent.com/u/25073753?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chikubee", "html_url": "https://github.com/chikubee", "followers_url": "https://api.github.com/users/chi...
[ { "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
[]
[ "\"But every word is attentive to every other word.\" --> I don't think that's an error, that's the general way how attention mechanism works. But definitely weights of these attentions to a particular word would vary and based on these weighted attentions and other contextual info. the downstream tasks (entailment...
1,564
1,570
1,570
NONE
null
BertModel finetuned for a sequence classification task does not give expected results on visualisation. Ideally, the pretrained model should be loaded into BertForSequenceClassification, but that model does not return attentions scores for visualisation. When loaded into BertModel (0 to 11 layers), I assume the 11th ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/921/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/921/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/920
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/920/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/920/comments
https://api.github.com/repos/huggingface/transformers/issues/920/events
https://github.com/huggingface/transformers/issues/920
474,350,383
MDU6SXNzdWU0NzQzNTAzODM=
920
Unigram frequencies in GPT-2 or XLnet?
{ "login": "jhlau", "id": 4261132, "node_id": "MDQ6VXNlcjQyNjExMzI=", "avatar_url": "https://avatars.githubusercontent.com/u/4261132?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jhlau", "html_url": "https://github.com/jhlau", "followers_url": "https://api.github.com/users/jhlau/follower...
[]
closed
false
null
[]
[ "XLnet tokenizer utilizes SentencePiece and you can use it's score for unigram as relative frequency with something like `math.exp(XLNetTokenizer.sp_model.GetScore(token_id))`.", "Ah perfect. So the raw score gives the unigram log probability, and the exp of it gives the normalised frequency.\r\n\r\nHow about GPT...
1,564
1,633
1,565
NONE
null
Question: does the GPT2 or XLnet tokenizer contain unigram frequencies? From the discussion here (https://github.com/huggingface/pytorch-transformers/issues/477), it looks like the tokenizer from TransformerXL has it, but I'm not sure if the same applies for GPT2 and XLnet. If they do contain unigram frequencies, can y...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/920/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/920/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/919
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/919/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/919/comments
https://api.github.com/repos/huggingface/transformers/issues/919/events
https://github.com/huggingface/transformers/issues/919
474,290,438
MDU6SXNzdWU0NzQyOTA0Mzg=
919
Code snippet on docs page using old import
{ "login": "andrewnc", "id": 7716402, "node_id": "MDQ6VXNlcjc3MTY0MDI=", "avatar_url": "https://avatars.githubusercontent.com/u/7716402?v=4", "gravatar_id": "", "url": "https://api.github.com/users/andrewnc", "html_url": "https://github.com/andrewnc", "followers_url": "https://api.github.com/users/andre...
[]
closed
false
null
[]
[ "Thanks!" ]
1,564
1,565
1,565
NONE
null
This is a documentation issue. I couldn't find where to edit the website source https://huggingface.co/pytorch-transformers/torchscript.html On that page the code snippet still uses `from pytorch_pretrained_bert import BertModel, BertTokenizer, BertConfig` The documentation in this repo under [https://github.com/...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/919/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/919/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/918
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/918/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/918/comments
https://api.github.com/repos/huggingface/transformers/issues/918/events
https://github.com/huggingface/transformers/issues/918
474,093,722
MDU6SXNzdWU0NzQwOTM3MjI=
918
Export to Tensorflow not properly implemented
{ "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
[]
[ "Thanks @dhpollack !" ]
1,564
1,565
1,565
CONTRIBUTOR
null
Apologies for going about this backwards. I created a pull request #907 to fix your implementation of converting pytorch weights to tensorflow weights. As explained in the PR, the current implementation puts the weights from the pytorch model into two places in the newly created tensorflow checkpoint. The fix not on...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/918/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/918/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/917
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/917/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/917/comments
https://api.github.com/repos/huggingface/transformers/issues/917/events
https://github.com/huggingface/transformers/issues/917
473,863,588
MDU6SXNzdWU0NzM4NjM1ODg=
917
XLNet: Sentence probability/perplexity
{ "login": "jhlau", "id": 4261132, "node_id": "MDQ6VXNlcjQyNjExMzI=", "avatar_url": "https://avatars.githubusercontent.com/u/4261132?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jhlau", "html_url": "https://github.com/jhlau", "followers_url": "https://api.github.com/users/jhlau/follower...
[]
closed
false
null
[]
[ "Hi, I want to ask that question too.\r\nBelow is my implementation\r\n```\r\ndef xlnet_score(text, model, tokenizer):\r\n #text = \"<cls>\" + text + \"<sep>\"\r\n # Tokenized input\r\n tokenized_text = tokenizer.tokenize(text)\r\n # text = \"[CLS] Stir the mixture until it is done [SEP]\"\r\n senten...
1,564
1,588
1,566
NONE
null
Based on my understanding, XLnet can compute sentence probability/perplexity. Is there a example that illustrates how we can do this? I saw one for GPT-2 (https://github.com/huggingface/pytorch-transformers/issues/473), but don't think it'll work exactly the same...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/917/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/917/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/916
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/916/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/916/comments
https://api.github.com/repos/huggingface/transformers/issues/916/events
https://github.com/huggingface/transformers/issues/916
473,733,841
MDU6SXNzdWU0NzM3MzM4NDE=
916
Avoid i/o in class __init__ methods
{ "login": "honnibal", "id": 8059750, "node_id": "MDQ6VXNlcjgwNTk3NTA=", "avatar_url": "https://avatars.githubusercontent.com/u/8059750?v=4", "gravatar_id": "", "url": "https://api.github.com/users/honnibal", "html_url": "https://github.com/honnibal", "followers_url": "https://api.github.com/users/honni...
[ { "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
[]
[ "Make sense to me. I'll include that in a coming PR.", "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,564
1,570
1,570
NONE
null
Working with model serialization and configs is pretty painful, and we went through a lot of design iterations on this for spaCy. I think one thing that's definitely unideal in `pytorch_transformers` is that the tokenizers often expect file names in the `__init__` methods. This means that if you're holding the data ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/916/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/916/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/915
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/915/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/915/comments
https://api.github.com/repos/huggingface/transformers/issues/915/events
https://github.com/huggingface/transformers/issues/915
473,727,096
MDU6SXNzdWU0NzM3MjcwOTY=
915
Wrong layer names for selecting parameters groups (run_openai_gpt.py)
{ "login": "saareliad", "id": 22762845, "node_id": "MDQ6VXNlcjIyNzYyODQ1", "avatar_url": "https://avatars.githubusercontent.com/u/22762845?v=4", "gravatar_id": "", "url": "https://api.github.com/users/saareliad", "html_url": "https://github.com/saareliad", "followers_url": "https://api.github.com/users/...
[ { "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,564
1,570
1,570
NONE
null
Hi, In this script [run_openai_gpt.py](https://github.com/huggingface/pytorch-transformers/blob/master/examples/single_model_scripts/run_openai_gpt.py) Parameter names for selecting param groups are wrong. Should be: ` no_decay = no_decay = ['bias', 'ln_1.bias', 'ln_1.weight', 'ln_2.bias', 'ln_2.weight']...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/915/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/915/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/914
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/914/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/914/comments
https://api.github.com/repos/huggingface/transformers/issues/914/events
https://github.com/huggingface/transformers/issues/914
473,695,718
MDU6SXNzdWU0NzM2OTU3MTg=
914
Using new pretrained model with it's own vocab.txt file.
{ "login": "Santosh-Gupta", "id": 5524261, "node_id": "MDQ6VXNlcjU1MjQyNjE=", "avatar_url": "https://avatars.githubusercontent.com/u/5524261?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Santosh-Gupta", "html_url": "https://github.com/Santosh-Gupta", "followers_url": "https://api.github....
[ { "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
[]
[ "Found the answer\r\n\r\nhttps://github.com/huggingface/pytorch-transformers/issues/69#issuecomment-443215315\r\n\r\nyou can just do a direct path to it", "Can it work? I tried the solution but didn't work. I put the vocab.txt file under a certain path.", "What error message did you get? Maybe try an absolute p...
1,564
1,573
1,573
CONTRIBUTOR
null
I am trying to use SciBert pretrained weights, which has its own vocab , so it's own 'vocab.txt', file. I think it's fairly straight forward to point the `pytorch_model.bin` but I do not see any options to introduce a new vocab.txt file.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/914/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/914/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/913
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/913/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/913/comments
https://api.github.com/repos/huggingface/transformers/issues/913/events
https://github.com/huggingface/transformers/issues/913
473,695,113
MDU6SXNzdWU0NzM2OTUxMTM=
913
Best practices for combining large pretrained models with smaller models?
{ "login": "dchang56", "id": 24575558, "node_id": "MDQ6VXNlcjI0NTc1NTU4", "avatar_url": "https://avatars.githubusercontent.com/u/24575558?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dchang56", "html_url": "https://github.com/dchang56", "followers_url": "https://api.github.com/users/dch...
[ { "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", "@dchang56 Any updates? I am looking to do this as well. ", "Hi! I see that you're also doing scientific/medical NLP :)\r\nI sent you ...
1,564
1,572
1,570
NONE
null
Hello, If I were to try to combine a large model (like BERT) with a smaller model (some variation of fully connected, convolutional network with significantly less params and pretraining) by jointly training them and concatenating their outputs for a final classifier, what would be some things I should consider? ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/913/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/913/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/912
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/912/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/912/comments
https://api.github.com/repos/huggingface/transformers/issues/912/events
https://github.com/huggingface/transformers/issues/912
473,612,336
MDU6SXNzdWU0NzM2MTIzMzY=
912
adding vocabulary in OpenAI GPT2 tokenizer issue
{ "login": "Linohong", "id": 19821168, "node_id": "MDQ6VXNlcjE5ODIxMTY4", "avatar_url": "https://avatars.githubusercontent.com/u/19821168?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Linohong", "html_url": "https://github.com/Linohong", "followers_url": "https://api.github.com/users/Lin...
[]
closed
false
null
[]
[ "What specifically did you change in `tokenization_utils.py`? \r\n\r\n> it works fine at the training stage, but the index mapping went totally different in the\r\n> evaluation phase.\r\n\r\nCan you elaborate on what you mean? Perhaps post some output? Is it hanging? Or are you just getting wildly poor performance ...
1,564
1,564
1,564
NONE
null
Hi, I am trying to add few vocabulary tokens to the gpt2 tokenizer but there seems few problems in adding vocab. Let's say I want to make sequence like > "__bos__" + sequence A + "__seperator__" + sequence B + "__seperator__" + sequence C + "__eos__" This means that I have to add "__bos__", "__seperator__"...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/912/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/912/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/911
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/911/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/911/comments
https://api.github.com/repos/huggingface/transformers/issues/911/events
https://github.com/huggingface/transformers/pull/911
473,503,781
MDExOlB1bGxSZXF1ZXN0MzAxNjU4OTE5
911
Small fixes
{ "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
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/pytorch-transformers/pull/911?src=pr&el=h1) Report\n> Merging [#911](https://codecov.io/gh/huggingface/pytorch-transformers/pull/911?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/pytorch-transformers/commit/c054b5ee64df1a180417c5e87816879c93f54e17?src...
1,564
1,578
1,564
MEMBER
null
Fix #908 and #901
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/911/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/911/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/911", "html_url": "https://github.com/huggingface/transformers/pull/911", "diff_url": "https://github.com/huggingface/transformers/pull/911.diff", "patch_url": "https://github.com/huggingface/transformers/pull/911.patch", "merged_at": 15641...
https://api.github.com/repos/huggingface/transformers/issues/910
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/910/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/910/comments
https://api.github.com/repos/huggingface/transformers/issues/910/events
https://github.com/huggingface/transformers/pull/910
473,460,663
MDExOlB1bGxSZXF1ZXN0MzAxNjIzNjQ5
910
Adding AutoTokenizer and AutoModel classes that automatically detect architecture - Clean up tokenizers
{ "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
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/pytorch-transformers/pull/910?src=pr&el=h1) Report\n> Merging [#910](https://codecov.io/gh/huggingface/pytorch-transformers/pull/910?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/pytorch-transformers/commit/46cc9dd2b51a152b2e262ec12e40dddd13235aba?src...
1,564
1,566
1,565
MEMBER
null
As discussed in #890 Classes that automatically detect the relevant model/config/tokenizer to instantiate based on the`pretrained_model_name_or_path` string provided to `AutoXXX.from_pretrained(pretrained_model_name_or_path)`. Right now: - `AutoConfig` - `AutoTokenizer` - `AutoModel` (bare models outputting h...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/910/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/910/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/910", "html_url": "https://github.com/huggingface/transformers/pull/910", "diff_url": "https://github.com/huggingface/transformers/pull/910.diff", "patch_url": "https://github.com/huggingface/transformers/pull/910.patch", "merged_at": 15650...