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/3013
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/3013/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/3013/comments
https://api.github.com/repos/huggingface/transformers/issues/3013/events
https://github.com/huggingface/transformers/issues/3013
570,709,317
MDU6SXNzdWU1NzA3MDkzMTc=
3,013
Generation with gpt-2
{ "login": "simonefrancia", "id": 7140210, "node_id": "MDQ6VXNlcjcxNDAyMTA=", "avatar_url": "https://avatars.githubusercontent.com/u/7140210?v=4", "gravatar_id": "", "url": "https://api.github.com/users/simonefrancia", "html_url": "https://github.com/simonefrancia", "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
[]
[ "There is an example: https://github.com/huggingface/transformers/blob/master/examples/run_generation.py", "Thanks!", "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,582
1,587
1,582
CONTRIBUTOR
null
# ❓ Questions & Help <!-- The GitHub issue tracker is primarly intended for bugs, feature requests, new models and benchmarks, and migration questions. For all other questions, we direct you to Stack Overflow (SO) where a whole community of PyTorch and Tensorflow enthusiast can help you out. Make s...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/3013/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/3013/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/3012
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/3012/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/3012/comments
https://api.github.com/repos/huggingface/transformers/issues/3012/events
https://github.com/huggingface/transformers/issues/3012
570,706,290
MDU6SXNzdWU1NzA3MDYyOTA=
3,012
batch_encode_plus with pad_to_max_length is not padding the output
{ "login": "dipanjannag", "id": 1206413, "node_id": "MDQ6VXNlcjEyMDY0MTM=", "avatar_url": "https://avatars.githubusercontent.com/u/1206413?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dipanjannag", "html_url": "https://github.com/dipanjannag", "followers_url": "https://api.github.com/us...
[ { "id": 1834056635, "node_id": "MDU6TGFiZWwxODM0MDU2NjM1", "url": "https://api.github.com/repos/huggingface/transformers/labels/Core:%20Tokenization", "name": "Core: Tokenization", "color": "FF4446", "default": false, "description": "Internals of the library; Tokenization." }, { ...
closed
false
null
[]
[ "The code snippet prints `True` for me.\r\nI have the versions:\r\ntransformers version: 2.5.1\r\nPlatform: Linux\r\nPython version: 3.6.9\r\nPyTorch version: 1.4.0+cpu\r\nCan you try `pip install --upgrade transformers` and see whether the error is still there?\r\n\r\n(Posted on behalf of @patrickvonplaten who's h...
1,582
1,582
1,582
NONE
null
# 🐛 Bug ## Information Model I am using (BertTokenizer,): Language I am using the model on: English The problem arises when using: * [ ] the official example scripts. The tasks I am working on is: * [ ] Simple batch tokenization task ## To reproduce ``` from transformers import BertTokenizer, Ber...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/3012/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/3012/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/3011
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/3011/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/3011/comments
https://api.github.com/repos/huggingface/transformers/issues/3011/events
https://github.com/huggingface/transformers/pull/3011
570,660,178
MDExOlB1bGxSZXF1ZXN0Mzc5NjU4MDYw
3,011
Add models special tokens to its pretrained configs
{ "login": "patrickvonplaten", "id": 23423619, "node_id": "MDQ6VXNlcjIzNDIzNjE5", "avatar_url": "https://avatars.githubusercontent.com/u/23423619?v=4", "gravatar_id": "", "url": "https://api.github.com/users/patrickvonplaten", "html_url": "https://github.com/patrickvonplaten", "followers_url": "https://...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/3011?src=pr&el=h1) Report\n> Merging [#3011](https://codecov.io/gh/huggingface/transformers/pull/3011?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/e693cd1e877aa191d3317faed33e87d1558c9406?src=pr&el=desc) will **d...
1,582
1,583
1,583
MEMBER
null
I think the token_ids for each specific model should also be added to their pretrain configs. This would also make the function generate() much easier to use for the user. If ok, I can also add these tokens for models not having a LMHead.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/3011/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/3011/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/3011", "html_url": "https://github.com/huggingface/transformers/pull/3011", "diff_url": "https://github.com/huggingface/transformers/pull/3011.diff", "patch_url": "https://github.com/huggingface/transformers/pull/3011.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/3010
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/3010/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/3010/comments
https://api.github.com/repos/huggingface/transformers/issues/3010/events
https://github.com/huggingface/transformers/pull/3010
570,647,752
MDExOlB1bGxSZXF1ZXN0Mzc5NjQ3NDcx
3,010
Possible improvement of padding logic in generate
{ "login": "patrickvonplaten", "id": 23423619, "node_id": "MDQ6VXNlcjIzNDIzNjE5", "avatar_url": "https://avatars.githubusercontent.com/u/23423619?v=4", "gravatar_id": "", "url": "https://api.github.com/users/patrickvonplaten", "html_url": "https://github.com/patrickvonplaten", "followers_url": "https://...
[]
closed
false
null
[]
[]
1,582
1,582
1,582
MEMBER
null
I wanted to try out a approach to the padding logic (previously discussed with @thomwolf and @mfuntowicz) which is **different** to what is currently done (see #2885 description). Instead of setting the `pad_token_id` to `eos_token_id` if `pad_token_id` is not defined and `eos_token_id` is defined, the following lo...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/3010/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/3010/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/3010", "html_url": "https://github.com/huggingface/transformers/pull/3010", "diff_url": "https://github.com/huggingface/transformers/pull/3010.diff", "patch_url": "https://github.com/huggingface/transformers/pull/3010.patch", "merged_at": n...
https://api.github.com/repos/huggingface/transformers/issues/3009
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/3009/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/3009/comments
https://api.github.com/repos/huggingface/transformers/issues/3009/events
https://github.com/huggingface/transformers/pull/3009
570,492,033
MDExOlB1bGxSZXF1ZXN0Mzc5NTE1NDQz
3,009
add crf layer to BERT, RoBERTa, XLMR
{ "login": "mezig351", "id": 10896185, "node_id": "MDQ6VXNlcjEwODk2MTg1", "avatar_url": "https://avatars.githubusercontent.com/u/10896185?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mezig351", "html_url": "https://github.com/mezig351", "followers_url": "https://api.github.com/users/mez...
[]
closed
false
null
[]
[ "What do you think about just using https://github.com/harvardnlp/pytorch-struct (I'm biased)? It should remove the need for most of this code. \r\n\r\nAlso we now have a pytorch-lightning NER example which should make this much simpler. \r\n\r\nWould also be helpful to know if any of this improves prediction accur...
1,582
1,584
1,584
NONE
null
Building on pull request [ bert(+lstm)+crf #2249 ], I make it more generic and similar to run_ner.py . There is a CRF layer adapted from https://github.com/jiesutd/LatticeLSTM , which does not have additional package requirements, and was published in ACL 2018.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/3009/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/3009/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/3009", "html_url": "https://github.com/huggingface/transformers/pull/3009", "diff_url": "https://github.com/huggingface/transformers/pull/3009.diff", "patch_url": "https://github.com/huggingface/transformers/pull/3009.patch", "merged_at": n...
https://api.github.com/repos/huggingface/transformers/issues/3008
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/3008/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/3008/comments
https://api.github.com/repos/huggingface/transformers/issues/3008/events
https://github.com/huggingface/transformers/pull/3008
570,474,899
MDExOlB1bGxSZXF1ZXN0Mzc5NTAwODUw
3,008
[WIP] Remove tokenizers dependency
{ "login": "BramVanroy", "id": 2779410, "node_id": "MDQ6VXNlcjI3Nzk0MTA=", "avatar_url": "https://avatars.githubusercontent.com/u/2779410?v=4", "gravatar_id": "", "url": "https://api.github.com/users/BramVanroy", "html_url": "https://github.com/BramVanroy", "followers_url": "https://api.github.com/users...
[]
closed
false
null
[]
[]
1,582
1,586
1,586
COLLABORATOR
null
In v2.5.1 the tokenizers don't default to the fast implementations (as introduced in v2.5.0), which I think is a good thing when looking at the issues that have arisen from it. Even though the performance of the new tokenizers is phenomenal (and I complement everyone who has been working on it!), it seems a bit prematu...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/3008/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/3008/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/3008", "html_url": "https://github.com/huggingface/transformers/pull/3008", "diff_url": "https://github.com/huggingface/transformers/pull/3008.diff", "patch_url": "https://github.com/huggingface/transformers/pull/3008.patch", "merged_at": n...
https://api.github.com/repos/huggingface/transformers/issues/3007
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/3007/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/3007/comments
https://api.github.com/repos/huggingface/transformers/issues/3007/events
https://github.com/huggingface/transformers/issues/3007
570,440,246
MDU6SXNzdWU1NzA0NDAyNDY=
3,007
[Benchmark] Pipeline for question answering
{ "login": "dipanjannag", "id": 1206413, "node_id": "MDQ6VXNlcjEyMDY0MTM=", "avatar_url": "https://avatars.githubusercontent.com/u/1206413?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dipanjannag", "html_url": "https://github.com/dipanjannag", "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 }, { "id": 1771187924, "node_id": "MDU6TGFiZWwxNzcxMTg3OTI0", ...
closed
false
null
[]
[ "same experience with a 2080TI. It s like it s not batched...", "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", "As @pommedeterresautee mentioned, the samples are not batched. I've m...
1,582
1,606
1,589
NONE
null
# 🖥 Benchmarking `transformers` ## Benchmark I'm trying to benchmark QA model with `bert-large-uncased-whole-word-masking-finetuned-squad`. But it seems it is extremely slow e.g. 3-4 sec for 1 question with 2 contexts. I feel there is something I'm missing in pipeline. ## Sample Code: ``` def answer(self...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/3007/reactions", "total_count": 4, "+1": 4, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/3007/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/3006
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/3006/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/3006/comments
https://api.github.com/repos/huggingface/transformers/issues/3006/events
https://github.com/huggingface/transformers/pull/3006
570,385,755
MDExOlB1bGxSZXF1ZXN0Mzc5NDI2ODYw
3,006
[FIX] not training when epoch is small
{ "login": "mataney", "id": 11559198, "node_id": "MDQ6VXNlcjExNTU5MTk4", "avatar_url": "https://avatars.githubusercontent.com/u/11559198?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mataney", "html_url": "https://github.com/mataney", "followers_url": "https://api.github.com/users/matane...
[]
closed
false
null
[]
[ "Cool, thanks @mataney! Do you mind running `make style` at the root of the repository to reformat the file according to `black` and `isort`, as indicated in our [contributing guidelines](https://github.com/huggingface/transformers/blob/master/CONTRIBUTING.md#start-contributing-pull-requests)?\r\n\r\nThis is so the...
1,582
1,584
1,584
CONTRIBUTOR
null
Closes https://github.com/huggingface/transformers/issues/2995 Solving bug where for small epochs and large gradient_accumulation_steps we never train. Explained further here: https://github.com/huggingface/transformers/issues/2995
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/3006/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/3006/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/3006", "html_url": "https://github.com/huggingface/transformers/pull/3006", "diff_url": "https://github.com/huggingface/transformers/pull/3006.diff", "patch_url": "https://github.com/huggingface/transformers/pull/3006.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/3005
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/3005/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/3005/comments
https://api.github.com/repos/huggingface/transformers/issues/3005/events
https://github.com/huggingface/transformers/issues/3005
570,371,044
MDU6SXNzdWU1NzAzNzEwNDQ=
3,005
Output of pipeline feature extraction
{ "login": "Stuffooh", "id": 50005268, "node_id": "MDQ6VXNlcjUwMDA1MjY4", "avatar_url": "https://avatars.githubusercontent.com/u/50005268?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Stuffooh", "html_url": "https://github.com/Stuffooh", "followers_url": "https://api.github.com/users/Stu...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null }, { "id": 1771187924, "node_id": "MDU6TGFiZWwxNzcxMTg3OTI0", ...
closed
false
{ "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://api.github.com/users...
[ { "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://...
[ "I cannot reproduce this. Can you post a verifiable example with full code that I can just copy and paste?\r\n\r\nHere you see that I just get 7 tokens back:\r\n\r\n```python\r\nimport numpy as np\r\nfrom transformers import AutoTokenizer, AutoModel, pipeline\r\n\r\n\r\nmodel = AutoModel.from_pretrained('distilbert...
1,582
1,588
1,588
NONE
null
Hi, I am using the new pipeline feature of transformers for feature extraction and I have to say it's amazing. However I would like to alter the output of the pipeline slightly but I am not sure how to and I was hoping some people of the community could point me into the right direction. I am using the following ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/3005/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/3005/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/3004
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/3004/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/3004/comments
https://api.github.com/repos/huggingface/transformers/issues/3004/events
https://github.com/huggingface/transformers/issues/3004
570,369,585
MDU6SXNzdWU1NzAzNjk1ODU=
3,004
BART : How can I train and evaluate BART on CNN/DM dataset
{ "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...
[]
closed
false
{ "login": "sshleifer", "id": 6045025, "node_id": "MDQ6VXNlcjYwNDUwMjU=", "avatar_url": "https://avatars.githubusercontent.com/u/6045025?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sshleifer", "html_url": "https://github.com/sshleifer", "followers_url": "https://api.github.com/users/ss...
[ { "login": "sshleifer", "id": 6045025, "node_id": "MDQ6VXNlcjYwNDUwMjU=", "avatar_url": "https://avatars.githubusercontent.com/u/6045025?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sshleifer", "html_url": "https://github.com/sshleifer", "followers_url": "https://api...
[ "BART has only just been implemented and is not part of release code yet. I'm sure that examples will be added later on, you just need a bit more patience.", "How is this going? I would like to train BART for text summarization with my own dataset and I have no idea of what preprocessing is needed or what inputs ...
1,582
1,614
1,585
CONTRIBUTOR
null
# ❓ Questions & Help @sshleifer I found examples for text summarization on CNN/DM dataset using BERT, but I couldn't find any example using BART. **Are you going to add it later, or update the existing example to add BART, or it's not scheduled ?**
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/3004/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/3004/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/3003
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/3003/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/3003/comments
https://api.github.com/repos/huggingface/transformers/issues/3003/events
https://github.com/huggingface/transformers/pull/3003
570,214,339
MDExOlB1bGxSZXF1ZXN0Mzc5Mjg2NzQ1
3,003
Test correct tokenizers after default switch
{ "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
[]
[]
1,582
1,582
1,582
MEMBER
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/3003/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/3003/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/3003", "html_url": "https://github.com/huggingface/transformers/pull/3003", "diff_url": "https://github.com/huggingface/transformers/pull/3003.diff", "patch_url": "https://github.com/huggingface/transformers/pull/3003.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/3002
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/3002/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/3002/comments
https://api.github.com/repos/huggingface/transformers/issues/3002/events
https://github.com/huggingface/transformers/pull/3002
570,210,993
MDExOlB1bGxSZXF1ZXN0Mzc5MjgzOTMx
3,002
Tokenizer Fast False by default
{ "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
[]
[]
1,582
1,582
1,582
MEMBER
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/3002/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/3002/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/3002", "html_url": "https://github.com/huggingface/transformers/pull/3002", "diff_url": "https://github.com/huggingface/transformers/pull/3002.diff", "patch_url": "https://github.com/huggingface/transformers/pull/3002.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/3001
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/3001/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/3001/comments
https://api.github.com/repos/huggingface/transformers/issues/3001/events
https://github.com/huggingface/transformers/issues/3001
570,163,848
MDU6SXNzdWU1NzAxNjM4NDg=
3,001
Changing the loss function in BERT
{ "login": "paul-you", "id": 23263212, "node_id": "MDQ6VXNlcjIzMjYzMjEy", "avatar_url": "https://avatars.githubusercontent.com/u/23263212?v=4", "gravatar_id": "", "url": "https://api.github.com/users/paul-you", "html_url": "https://github.com/paul-you", "followers_url": "https://api.github.com/users/pau...
[ { "id": 1834081910, "node_id": "MDU6TGFiZWwxODM0MDgxOTEw", "url": "https://api.github.com/repos/huggingface/transformers/labels/Usage", "name": "Usage", "color": "e28436", "default": false, "description": "General questions about the library" } ]
closed
false
null
[]
[ "This is a very general PyTorch question. Please post it on Stack Overflow. https://stackoverflow.com/\r\n\r\nAbout the BERT part: `outputs` is a tuple. `[0]` is the last hidden state (sequence output), `[1]` is the pooled output.\r\n\r\n" ]
1,582
1,582
1,582
NONE
null
# ❓ Questions & Help Hello, I'm trying to replace the _CrossEntropyLoss_ with the _KLDivLoss_ for a sentence classification task using some golden logits and the logits from the BERT model. ``` golden_logits = … outputs = model(**inputs) # the logits from BERT logits = outputs[1] loss_fct = KLDivLo...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/3001/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/3001/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/3000
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/3000/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/3000/comments
https://api.github.com/repos/huggingface/transformers/issues/3000/events
https://github.com/huggingface/transformers/issues/3000
570,157,506
MDU6SXNzdWU1NzAxNTc1MDY=
3,000
unk_token not set when loading TransformerXLTokenizer.from_pretrained() from a save_pretrained()
{ "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "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 }, { "id": 1834056635, "node_id": "MDU6TGFiZWwxODM0MDU2NjM1", ...
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,582
1,588
1,588
MEMBER
null
Using `TransfomerXLTokenizer.from_pretrained()` when loading from `.save_pretrained()` generated files. Python complains about missing <unknown> token: ``` line 175, in _build_from_file raise ValueError("No <unkown> token in vocabulary") ValueError: No <unkown> token in vocabulary ```
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/3000/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/3000/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2999
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2999/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2999/comments
https://api.github.com/repos/huggingface/transformers/issues/2999/events
https://github.com/huggingface/transformers/pull/2999
570,084,710
MDExOlB1bGxSZXF1ZXN0Mzc5MTc3NjQz
2,999
Create README.md for the new model fine tuned for Spanish POS tagging
{ "login": "mrm8488", "id": 3653789, "node_id": "MDQ6VXNlcjM2NTM3ODk=", "avatar_url": "https://avatars.githubusercontent.com/u/3653789?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mrm8488", "html_url": "https://github.com/mrm8488", "followers_url": "https://api.github.com/users/mrm8488/...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2999?src=pr&el=h1) Report\n> Merging [#2999](https://codecov.io/gh/huggingface/transformers/pull/2999?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/8194df8e0cff8e5866ec2bcbda34e3892f10eb39?src=pr&el=desc) will **d...
1,582
1,582
1,582
CONTRIBUTOR
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2999/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/2999/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2999", "html_url": "https://github.com/huggingface/transformers/pull/2999", "diff_url": "https://github.com/huggingface/transformers/pull/2999.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2999.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2998
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2998/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2998/comments
https://api.github.com/repos/huggingface/transformers/issues/2998/events
https://github.com/huggingface/transformers/pull/2998
570,075,765
MDExOlB1bGxSZXF1ZXN0Mzc5MTY5ODUw
2,998
kwargs are passed to both model and configuration in AutoModels
{ "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
[]
[]
1,582
1,651
1,582
MEMBER
null
AutoModel doc says it passes arguments to config, but it actually also passes them to the models which makes them crash.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2998/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/2998/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2998", "html_url": "https://github.com/huggingface/transformers/pull/2998", "diff_url": "https://github.com/huggingface/transformers/pull/2998.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2998.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2997
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2997/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2997/comments
https://api.github.com/repos/huggingface/transformers/issues/2997/events
https://github.com/huggingface/transformers/pull/2997
570,066,443
MDExOlB1bGxSZXF1ZXN0Mzc5MTYxOTEz
2,997
add explaining example to XLNet LM modeling
{ "login": "patrickvonplaten", "id": 23423619, "node_id": "MDQ6VXNlcjIzNDIzNjE5", "avatar_url": "https://avatars.githubusercontent.com/u/23423619?v=4", "gravatar_id": "", "url": "https://api.github.com/users/patrickvonplaten", "html_url": "https://github.com/patrickvonplaten", "followers_url": "https://...
[]
closed
false
null
[]
[ "> Cool! Indeed, if I remember the paper correctly there is no need to shift the labels. Maybe we could update the [associated docstring](https://github.com/huggingface/transformers/blob/master/src/transformers/modeling_xlnet.py#L980-L985) to make sure no one gets confused again?\r\n\r\nDone :-) ", "# [Codecov](h...
1,582
1,582
1,582
MEMBER
null
1) adds example explaining how XLNet could be used for standard auto-regressive modelling. 2) puts add_special_tokens=True for simple example to make sure no <sep> and <cls> are added to input. The are used for special training (similar to BERT) and might be confusing to user
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2997/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/2997/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2997", "html_url": "https://github.com/huggingface/transformers/pull/2997", "diff_url": "https://github.com/huggingface/transformers/pull/2997.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2997.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2996
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2996/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2996/comments
https://api.github.com/repos/huggingface/transformers/issues/2996/events
https://github.com/huggingface/transformers/issues/2996
570,040,360
MDU6SXNzdWU1NzAwNDAzNjA=
2,996
Trying to Use AlbertTokenizer With my own custom Vocab file
{ "login": "AES0007", "id": 61427339, "node_id": "MDQ6VXNlcjYxNDI3MzM5", "avatar_url": "https://avatars.githubusercontent.com/u/61427339?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AES0007", "html_url": "https://github.com/AES0007", "followers_url": "https://api.github.com/users/AES000...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null }, { "id": 1834056635, "node_id": "MDU6TGFiZWwxODM0MDU2NjM1", ...
closed
false
null
[]
[ "Hi, our Albert implementation only handles SentencePiece vocabulary.", "Thank you for your response. I tried generating a sentencepiece vocab model via ..**_spm.SentencePieceTrainer.Train('--input=ALBERT_PEP3V.txt\r\n--model_prefix=albertv1 --vocab_size=10000 --hard_vocab_limit=False')_**....and a model is succ...
1,582
1,594
1,594
NONE
null
# ❓ Questions & Help <!-- The GitHub issue tracker is primarly intended for bugs, feature requests, new models and benchmarks, and migration questions. For all other questions, we direct you to Stack Overflow (SO) where a whole community of PyTorch and Tensorflow enthusiast can help you out. Make s...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2996/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/2996/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2995
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2995/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2995/comments
https://api.github.com/repos/huggingface/transformers/issues/2995/events
https://github.com/huggingface/transformers/issues/2995
569,934,996
MDU6SXNzdWU1Njk5MzQ5OTY=
2,995
No optimizer steps when gradient_accumulation_steps smaller than epoch_iterator length
{ "login": "mataney", "id": 11559198, "node_id": "MDQ6VXNlcjExNTU5MTk4", "avatar_url": "https://avatars.githubusercontent.com/u/11559198?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mataney", "html_url": "https://github.com/mataney", "followers_url": "https://api.github.com/users/matane...
[ { "id": 1834052574, "node_id": "MDU6TGFiZWwxODM0MDUyNTc0", "url": "https://api.github.com/repos/huggingface/transformers/labels/Ex:%20Sequence%20Classification", "name": "Ex: Sequence Classification", "color": "46FFCF", "default": false, "description": "" } ]
closed
false
null
[]
[ "In this scenario, the user would do a single optimizer step over the whole batch?\r\n\r\nSure, we would welcome a PR! Could you add a comment as well, so that the purpose of this line may be clear for the user?", "After the change we would do a single optimizer step over each *epoch*.\r\nAdded a comment and crea...
1,582
1,584
1,584
CONTRIBUTOR
null
# 🐛 Bug ## Information Model I am using (Bert, XLNet ...): Doesn't matter. Language I am using the model on (English, Chinese ...): Doesn't matter. The problem arises when using: * [x] the official example scripts * [ ] my own modified scripts The tasks I am working on is: * [x] an official GLUE/SQUa...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2995/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/2995/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2994
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2994/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2994/comments
https://api.github.com/repos/huggingface/transformers/issues/2994/events
https://github.com/huggingface/transformers/pull/2994
569,920,896
MDExOlB1bGxSZXF1ZXN0Mzc5MDQzMTIw
2,994
Tf qa pipelines test
{ "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://api.github.com/users...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2994?src=pr&el=h1) Report\n> Merging [#2994](https://codecov.io/gh/huggingface/transformers/pull/2994?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/8194df8e0cff8e5866ec2bcbda34e3892f10eb39?src=pr&el=desc) will **i...
1,582
1,651
1,583
MEMBER
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2994/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/2994/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2994", "html_url": "https://github.com/huggingface/transformers/pull/2994", "diff_url": "https://github.com/huggingface/transformers/pull/2994.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2994.patch", "merged_at": n...
https://api.github.com/repos/huggingface/transformers/issues/2993
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2993/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2993/comments
https://api.github.com/repos/huggingface/transformers/issues/2993/events
https://github.com/huggingface/transformers/issues/2993
569,866,132
MDU6SXNzdWU1Njk4NjYxMzI=
2,993
Too many bugs in Version 2.5.0
{ "login": "erikchwang", "id": 16256959, "node_id": "MDQ6VXNlcjE2MjU2OTU5", "avatar_url": "https://avatars.githubusercontent.com/u/16256959?v=4", "gravatar_id": "", "url": "https://api.github.com/users/erikchwang", "html_url": "https://github.com/erikchwang", "followers_url": "https://api.github.com/use...
[ { "id": 1834056635, "node_id": "MDU6TGFiZWwxODM0MDU2NjM1", "url": "https://api.github.com/repos/huggingface/transformers/labels/Core:%20Tokenization", "name": "Core: Tokenization", "color": "FF4446", "default": false, "description": "Internals of the library; Tokenization." }, { ...
closed
false
null
[]
[ "Hi! Indeed, there have been a few issues as this was the first release incorporating `tokenizers` by default. A new version of `tokenizers` and `transformers` will be available either today or tomorrow and should fix most of these.", "For future reference, when you say that some code \"fails\", please also provi...
1,582
1,587
1,583
NONE
null
1. It cannot be installed on MacOS. By runing `pip install -U transformers`, I got the following errors: > Building wheels for collected packages: tokenizers > Building wheel for tokenizers (PEP 517) ... error > ERROR: Command errored out with exit status 1: > command: /anaconda/bin/python /anaconda/lib/py...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2993/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/2993/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2992
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2992/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2992/comments
https://api.github.com/repos/huggingface/transformers/issues/2992/events
https://github.com/huggingface/transformers/issues/2992
569,856,054
MDU6SXNzdWU1Njk4NTYwNTQ=
2,992
Train TFXLNetForSequenceClassification model failed.
{ "login": "qtzheng", "id": 12178769, "node_id": "MDQ6VXNlcjEyMTc4NzY5", "avatar_url": "https://avatars.githubusercontent.com/u/12178769?v=4", "gravatar_id": "", "url": "https://api.github.com/users/qtzheng", "html_url": "https://github.com/qtzheng", "followers_url": "https://api.github.com/users/qtzhen...
[]
closed
false
null
[]
[]
1,582
1,582
1,582
NONE
null
# ❓ Questions & Help Train TFXLNetForSequenceClassification model failed. ## Details **train_dataset,dev_dataset:** `<RepeatDataset shapes: ({input_ids: (None, None), attention_mask: (None, None), token_type_ids: (None, None)}, (None,)), types: ({input_ids: tf.int32, attention_mask: tf.int32, token_type_ids: tf...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2992/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/2992/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2991
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2991/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2991/comments
https://api.github.com/repos/huggingface/transformers/issues/2991/events
https://github.com/huggingface/transformers/pull/2991
569,834,572
MDExOlB1bGxSZXF1ZXN0Mzc4OTcyMDYx
2,991
run_ner.py / bert-base-multilingual-cased can output empty tokens
{ "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://api.github.com/users...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2991?src=pr&el=h1) Report\n> Merging [#2991](https://codecov.io/gh/huggingface/transformers/pull/2991?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/38f5fe9e0277df67a01db80a1c640ac072a2381e?src=pr&el=desc) will **d...
1,582
1,585
1,585
MEMBER
null
This can happen when using bert-base-multilingual-cased with an input containing an unique space. In this case, the tokenizer will output just an empty word_tokens thus leading to an non-consistent behavior over the labels_ids tokens adding one more tokens than tokens vector.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2991/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/2991/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2991", "html_url": "https://github.com/huggingface/transformers/pull/2991", "diff_url": "https://github.com/huggingface/transformers/pull/2991.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2991.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2990
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2990/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2990/comments
https://api.github.com/repos/huggingface/transformers/issues/2990/events
https://github.com/huggingface/transformers/issues/2990
569,711,675
MDU6SXNzdWU1Njk3MTE2NzU=
2,990
run_ner.py example
{ "login": "jmamou", "id": 19263306, "node_id": "MDQ6VXNlcjE5MjYzMzA2", "avatar_url": "https://avatars.githubusercontent.com/u/19263306?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jmamou", "html_url": "https://github.com/jmamou", "followers_url": "https://api.github.com/users/jmamou/fo...
[ { "id": 1834060867, "node_id": "MDU6TGFiZWwxODM0MDYwODY3", "url": "https://api.github.com/repos/huggingface/transformers/labels/Ex:%20Named%20Entity%20Recognition", "name": "Ex: Named Entity Recognition", "color": "06FFD8", "default": false, "description": "" } ]
closed
false
null
[]
[ "Are you looking for this? https://github.com/huggingface/transformers/blob/master/examples/ner/run_ner.py", "On a (somewhat) related note: the code might still be there but on huggingface's webpage the following link doesn't point to anything: https://huggingface.co/transformers/examples.html#named-entity-recogn...
1,582
1,589
1,582
CONTRIBUTOR
null
# ❓ Questions & Help ## Details It seem that examples/run_ner.py has been removed from github repo. Is there any issue with this code? Thanks
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2990/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/2990/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2989
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2989/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2989/comments
https://api.github.com/repos/huggingface/transformers/issues/2989/events
https://github.com/huggingface/transformers/pull/2989
569,605,554
MDExOlB1bGxSZXF1ZXN0Mzc4Nzg1NjY4
2,989
Documentation
{ "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/transformers/pull/2989?src=pr&el=h1) Report\n> Merging [#2989](https://codecov.io/gh/huggingface/transformers/pull/2989?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/c913eb9c3894b4031dc059d22b42e38a5fcef989?src=pr&el=desc) will **i...
1,582
1,651
1,582
MEMBER
null
Updating documentation for tokenizers. ~Still left to do:~ will do in a future PR
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2989/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/2989/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2989", "html_url": "https://github.com/huggingface/transformers/pull/2989", "diff_url": "https://github.com/huggingface/transformers/pull/2989.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2989.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2988
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2988/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2988/comments
https://api.github.com/repos/huggingface/transformers/issues/2988/events
https://github.com/huggingface/transformers/pull/2988
569,581,261
MDExOlB1bGxSZXF1ZXN0Mzc4NzY3Mjg4
2,988
Speed up GELU computation with torch.jit
{ "login": "mryab", "id": 16766985, "node_id": "MDQ6VXNlcjE2NzY2OTg1", "avatar_url": "https://avatars.githubusercontent.com/u/16766985?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mryab", "html_url": "https://github.com/mryab", "followers_url": "https://api.github.com/users/mryab/follow...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2988?src=pr&el=h1) Report\n> Merging [#2988](https://codecov.io/gh/huggingface/transformers/pull/2988?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/38f5fe9e0277df67a01db80a1c640ac072a2381e?src=pr&el=desc) will **d...
1,582
1,588
1,585
CONTRIBUTOR
null
Currently, the implementation of the GELU activation uses several unfused pointwise operations. In my experiments, computing this activation takes about 10% of forward time for GPT2-like networks for inputs of size similar to (32,128). This PR speeds up the execution of gelu_new during both forward (~3-5x) and backward...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2988/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 1, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/2988/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2988", "html_url": "https://github.com/huggingface/transformers/pull/2988", "diff_url": "https://github.com/huggingface/transformers/pull/2988.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2988.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2987
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2987/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2987/comments
https://api.github.com/repos/huggingface/transformers/issues/2987/events
https://github.com/huggingface/transformers/pull/2987
569,575,777
MDExOlB1bGxSZXF1ZXN0Mzc4NzYzMDQ3
2,987
Add preprocessing step for transfo-xl tokenization to avoid tokenizing words followed by punction to <unk>
{ "login": "patrickvonplaten", "id": 23423619, "node_id": "MDQ6VXNlcjIzNDIzNjE5", "avatar_url": "https://avatars.githubusercontent.com/u/23423619?v=4", "gravatar_id": "", "url": "https://api.github.com/users/patrickvonplaten", "html_url": "https://github.com/patrickvonplaten", "followers_url": "https://...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2987?src=pr&el=h1) Report\n> Merging [#2987](https://codecov.io/gh/huggingface/transformers/pull/2987?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/129f0604acb9e8b9cebd2897437324198fa37a0a?src=pr&el=desc) will **i...
1,582
1,584
1,582
MEMBER
null
The problem is well shown in Issue #2000 . This PR adds a preprocessing step to transfo-xl tokenization to better deal with the problem.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2987/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/2987/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2987", "html_url": "https://github.com/huggingface/transformers/pull/2987", "diff_url": "https://github.com/huggingface/transformers/pull/2987.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2987.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2986
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2986/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2986/comments
https://api.github.com/repos/huggingface/transformers/issues/2986/events
https://github.com/huggingface/transformers/issues/2986
569,569,745
MDU6SXNzdWU1Njk1Njk3NDU=
2,986
How to generate BERT/Roberta word/sentence embedding?
{ "login": "zjplab", "id": 16349466, "node_id": "MDQ6VXNlcjE2MzQ5NDY2", "avatar_url": "https://avatars.githubusercontent.com/u/16349466?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zjplab", "html_url": "https://github.com/zjplab", "followers_url": "https://api.github.com/users/zjplab/fo...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" },...
closed
false
null
[]
[ "Hi there. A few weeks or months ago, I wrote this notebook to introduce my colleagues to doing inference on LMs. In other words: how can I get a sentence representation out of them. You can have a look [here](https://github.com/BramVanroy/bert-for-inference/blob/master/introduction-to-bert.ipynb). It should be sel...
1,582
1,596
1,582
NONE
null
I know the stanford operation. ```python tokenizer = RobertaTokenizer.from_pretrained('roberta-large') model = RobertaModel.from_pretrained('roberta-large') input_ids = torch.tensor(tokenizer.encode("Hello, my <span class="highlighter highlight-on">dog</span> is cute", add_special_tokens=True)).unsqueeze(0) # B...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2986/reactions", "total_count": 6, "+1": 6, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/2986/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2985
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2985/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2985/comments
https://api.github.com/repos/huggingface/transformers/issues/2985/events
https://github.com/huggingface/transformers/issues/2985
569,562,120
MDU6SXNzdWU1Njk1NjIxMjA=
2,985
`AutoModel.from_pretrained` sends config kwargs to model
{ "login": "bryant1410", "id": 3905501, "node_id": "MDQ6VXNlcjM5MDU1MDE=", "avatar_url": "https://avatars.githubusercontent.com/u/3905501?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bryant1410", "html_url": "https://github.com/bryant1410", "followers_url": "https://api.github.com/users...
[ { "id": 1834056761, "node_id": "MDU6TGFiZWwxODM0MDU2NzYx", "url": "https://api.github.com/repos/huggingface/transformers/labels/Core:%20Modeling", "name": "Core: Modeling", "color": "FF8446", "default": false, "description": "Internals of the library; Models." }, { "id": 18626344...
closed
false
null
[]
[ "Seems related to #2694", "Indeed! I fixed the misleading documentation with #2998." ]
1,582
1,582
1,582
CONTRIBUTOR
null
# 🐛 Bug ## Information Model I am using (Bert, XLNet ...): Bert (may apply to more) Language I am using the model on (English, Chinese ...): English The problem arises when using: * [ ] the official example scripts: (give details below) * [x] my own modified scripts: (give details below) The tasks I a...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2985/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/2985/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2984
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2984/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2984/comments
https://api.github.com/repos/huggingface/transformers/issues/2984/events
https://github.com/huggingface/transformers/pull/2984
569,561,917
MDExOlB1bGxSZXF1ZXN0Mzc4NzUzNTMy
2,984
add_ctags_to_git_ignore
{ "login": "patrickvonplaten", "id": 23423619, "node_id": "MDQ6VXNlcjIzNDIzNjE5", "avatar_url": "https://avatars.githubusercontent.com/u/23423619?v=4", "gravatar_id": "", "url": "https://api.github.com/users/patrickvonplaten", "html_url": "https://github.com/patrickvonplaten", "followers_url": "https://...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2984?src=pr&el=h1) Report\n> Merging [#2984](https://codecov.io/gh/huggingface/transformers/pull/2984?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/129f0604acb9e8b9cebd2897437324198fa37a0a?src=pr&el=desc) will **n...
1,582
1,582
1,582
MEMBER
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2984/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/2984/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2984", "html_url": "https://github.com/huggingface/transformers/pull/2984", "diff_url": "https://github.com/huggingface/transformers/pull/2984.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2984.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2983
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2983/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2983/comments
https://api.github.com/repos/huggingface/transformers/issues/2983/events
https://github.com/huggingface/transformers/pull/2983
569,554,729
MDExOlB1bGxSZXF1ZXN0Mzc4NzQ4Mjgy
2,983
NER support for Albert in run_ner.py and NerPipeline
{ "login": "marma", "id": 144026, "node_id": "MDQ6VXNlcjE0NDAyNg==", "avatar_url": "https://avatars.githubusercontent.com/u/144026?v=4", "gravatar_id": "", "url": "https://api.github.com/users/marma", "html_url": "https://github.com/marma", "followers_url": "https://api.github.com/users/marma/followers"...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2983?src=pr&el=h1) Report\n> Merging [#2983](https://codecov.io/gh/huggingface/transformers/pull/2983?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/129f0604acb9e8b9cebd2897437324198fa37a0a?src=pr&el=desc) will **d...
1,582
1,582
1,582
CONTRIBUTOR
null
I have added a class, AlbertForTokenClassification, based on BertForTokenClassification and added it to lists used for checking NER capabilities in run_ner.py and NerPipeline. I tested NER fine-tuning on albert-base-v2, albert-large-v2 and albert-xlarge-v2 on the english CONLL 2003 dataset and they all get F1 of aro...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2983/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/2983/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2983", "html_url": "https://github.com/huggingface/transformers/pull/2983", "diff_url": "https://github.com/huggingface/transformers/pull/2983.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2983.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2982
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2982/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2982/comments
https://api.github.com/repos/huggingface/transformers/issues/2982/events
https://github.com/huggingface/transformers/pull/2982
569,545,742
MDExOlB1bGxSZXF1ZXN0Mzc4NzQxODIy
2,982
Change masking to direct labeling for TPU support.
{ "login": "srush", "id": 35882, "node_id": "MDQ6VXNlcjM1ODgy", "avatar_url": "https://avatars.githubusercontent.com/u/35882?v=4", "gravatar_id": "", "url": "https://api.github.com/users/srush", "html_url": "https://github.com/srush", "followers_url": "https://api.github.com/users/srush/followers", "f...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2982?src=pr&el=h1) Report\n> Merging [#2982](https://codecov.io/gh/huggingface/transformers/pull/2982?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/d1ab1fab1be7199e082129dfbe46eb52bca92799?src=pr&el=desc) will **i...
1,582
1,582
1,582
CONTRIBUTOR
null
Torch XLA conversion is very sensitive to certain core pytorch operations. These result in TPU being slower than CPU operation. The most obvious are binary masking and calls to item(). https://github.com/pytorch/xla/blob/master/TROUBLESHOOTING.md This PR replaces some of these calls that are in the example/NER p...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2982/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/2982/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2982", "html_url": "https://github.com/huggingface/transformers/pull/2982", "diff_url": "https://github.com/huggingface/transformers/pull/2982.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2982.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2981
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2981/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2981/comments
https://api.github.com/repos/huggingface/transformers/issues/2981/events
https://github.com/huggingface/transformers/issues/2981
569,525,918
MDU6SXNzdWU1Njk1MjU5MTg=
2,981
Strange bug when Finetuning own pretrained model (with an even stranger solution)
{ "login": "aditya-malte", "id": 20294625, "node_id": "MDQ6VXNlcjIwMjk0NjI1", "avatar_url": "https://avatars.githubusercontent.com/u/20294625?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aditya-malte", "html_url": "https://github.com/aditya-malte", "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 }, { "id": 1862634478, "node_id": "MDU6TGFiZWwxODYyNjM0NDc4", ...
closed
false
null
[]
[ "Hi! This is an interesting use-case, I think the error stems from the `run_glue` script trying to re-use the different attributes the `run_language_modeling` script had saved.\r\n\r\nThat includes:\r\n- the optimizer state\r\n- the scheduler state\r\n- the current global step, which is inferred from the name\r\n\r...
1,582
1,592
1,592
NONE
null
# 🐛 Bug ## Information Roberta Language I am using the model on (English, Chinese ...): Latin script(migh have a mix of languages) The problem arises when using: run_glue on model obtained from run_language_modeling The tasks I am working on is: Sequence Classification(single) Steps to reproduce th...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2981/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 2 }
https://api.github.com/repos/huggingface/transformers/issues/2981/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2980
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2980/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2980/comments
https://api.github.com/repos/huggingface/transformers/issues/2980/events
https://github.com/huggingface/transformers/issues/2980
569,518,803
MDU6SXNzdWU1Njk1MTg4MDM=
2,980
Cannot install Transformers version >2.3.0 with pip on CentOS
{ "login": "JohnGiorgi", "id": 8917831, "node_id": "MDQ6VXNlcjg5MTc4MzE=", "avatar_url": "https://avatars.githubusercontent.com/u/8917831?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JohnGiorgi", "html_url": "https://github.com/JohnGiorgi", "followers_url": "https://api.github.com/users...
[ { "id": 1834056635, "node_id": "MDU6TGFiZWwxODM0MDU2NjM1", "url": "https://api.github.com/repos/huggingface/transformers/labels/Core:%20Tokenization", "name": "Core: Tokenization", "color": "FF4446", "default": false, "description": "Internals of the library; Tokenization." }, { ...
closed
false
null
[]
[ "Which version of Rust are you on? Looking at the trace [PyO3 ](https://pyo3.rs/v0.9.0-alpha.1/)requires at least 1.37.0-nightly 2019-07-19.", "I am on version `1.41.0`", "Interestingly, their website says 1.37.x is the requirement, but [on GitHub](https://github.com/PyO3/pyo3#usage) they say you need 1.42.0-ni...
1,582
1,705
1,588
CONTRIBUTOR
null
# 🐛 Bug I cannot install `pip install transformers` for a release newer than `2.3.0`. The install errors out when trying to install `tokenizers`. This is similar to [another issue](https://github.com/huggingface/transformers/issues/2831), except I have a Rust Compiler in my environment so I do not see: `"error: can...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2980/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/2980/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2979
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2979/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2979/comments
https://api.github.com/repos/huggingface/transformers/issues/2979/events
https://github.com/huggingface/transformers/issues/2979
569,504,848
MDU6SXNzdWU1Njk1MDQ4NDg=
2,979
Question about output pipeline(feature-extraction)
{ "login": "Stuffooh", "id": 50005268, "node_id": "MDQ6VXNlcjUwMDA1MjY4", "avatar_url": "https://avatars.githubusercontent.com/u/50005268?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Stuffooh", "html_url": "https://github.com/Stuffooh", "followers_url": "https://api.github.com/users/Stu...
[]
closed
false
null
[]
[]
1,582
1,582
1,582
NONE
null
Hi, I'm new to python and transformers so please bare with me. I have the following code to use the pipeline wrapper of transformers. ``` from transformers import ( pipeline ) import h5py nlp = pipeline('feature-extraction', model='bert-base-cased', config='bert-base-cased', tokenizer='bert-base-cased'...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2979/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/2979/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2978
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2978/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2978/comments
https://api.github.com/repos/huggingface/transformers/issues/2978/events
https://github.com/huggingface/transformers/issues/2978
569,483,225
MDU6SXNzdWU1Njk0ODMyMjU=
2,978
unreadable codes in for utils_glue
{ "login": "ghost", "id": 10137, "node_id": "MDQ6VXNlcjEwMTM3", "avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ghost", "html_url": "https://github.com/ghost", "followers_url": "https://api.github.com/users/ghost/followers", "f...
[]
closed
false
null
[]
[ "Hi, thank you for your comment. Github allows you to look at older versions of the [code](https://github.com/huggingface/transformers/blob/v1.0.0/examples/utils_glue.py)." ]
1,582
1,582
1,582
NONE
null
Hi Previously the function "convert_examples_to_features" was implemented very nicely, and now this is implemented with so many nested function calls, which are all very hard to read and IMO unreadable codes. Could you return this implementation back to previous readable version? thanks
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2978/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/2978/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2977
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2977/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2977/comments
https://api.github.com/repos/huggingface/transformers/issues/2977/events
https://github.com/huggingface/transformers/pull/2977
569,462,503
MDExOlB1bGxSZXF1ZXN0Mzc4NjgyMTcz
2,977
Fix for case of multi-gpu
{ "login": "orena1", "id": 8983713, "node_id": "MDQ6VXNlcjg5ODM3MTM=", "avatar_url": "https://avatars.githubusercontent.com/u/8983713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/orena1", "html_url": "https://github.com/orena1", "followers_url": "https://api.github.com/users/orena1/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,582
1,588
1,588
CONTRIBUTOR
null
When loading the optimizer and the scheduler in a multi gpu, the loading will put the optimizer and scheduler in cuda:0, it might not have enough mem to temporary store them (until the to.device below).
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2977/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/2977/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2977", "html_url": "https://github.com/huggingface/transformers/pull/2977", "diff_url": "https://github.com/huggingface/transformers/pull/2977.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2977.patch", "merged_at": n...
https://api.github.com/repos/huggingface/transformers/issues/2976
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2976/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2976/comments
https://api.github.com/repos/huggingface/transformers/issues/2976/events
https://github.com/huggingface/transformers/issues/2976
569,441,565
MDU6SXNzdWU1Njk0NDE1NjU=
2,976
XLMRobertaTokenizer vocab size
{ "login": "ssdorsey", "id": 10930222, "node_id": "MDQ6VXNlcjEwOTMwMjIy", "avatar_url": "https://avatars.githubusercontent.com/u/10930222?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ssdorsey", "html_url": "https://github.com/ssdorsey", "followers_url": "https://api.github.com/users/ssd...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null }, { "id": 1834056635, "node_id": "MDU6TGFiZWwxODM0MDU2NjM1", ...
closed
false
null
[]
[ "Running the following code caused error for me: \r\n\r\n> import transformers\r\n> tokenizer = transformers.AutoTokenizer.from_pretrained(\"xlm-roberta-base\")\r\n> tokenizer.convert_ids_to_tokens(range(tokenizer.vocab_size))\r\n\r\nActually, the `tokenizer.vocab_size` is `250005`, the last id `250004` is `<mask>`...
1,582
1,593
1,593
NONE
null
I think the XLMRobertaTokenizer vocab_size is off. Currently double counts ```'<unk>' | '<s>' | '</s>'``` Maybe change it to ``` def vocab_size(self): return len(self.sp_model) + self.fairseq_offset ```
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2976/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/2976/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2975
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2975/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2975/comments
https://api.github.com/repos/huggingface/transformers/issues/2975/events
https://github.com/huggingface/transformers/issues/2975
569,441,134
MDU6SXNzdWU1Njk0NDExMzQ=
2,975
GPT2 always has largest attention on first token?
{ "login": "jzhoubu", "id": 20299401, "node_id": "MDQ6VXNlcjIwMjk5NDAx", "avatar_url": "https://avatars.githubusercontent.com/u/20299401?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jzhoubu", "html_url": "https://github.com/jzhoubu", "followers_url": "https://api.github.com/users/jzhoub...
[]
closed
false
null
[]
[ "Hi @sysu-zjw, this is indeed a very interesting observation that you made! \r\nOne thing to notice first is that GPT2 uses casual masking. So when looking at the attention weights ( corresponding to your variable `last_layer_attns_per_head` which I think should actually be called `last_layer_attns_avg_over_heads` ...
1,582
1,582
1,582
NONE
null
I am trying to print attentions from GPT2 model, and find something strange. ``` import torch from transformers import * device = torch.device("cuda") tokenizer = GPT2Tokenizer.from_pretrained("gpt2") config = GPT2Config.from_pretrained("gpt2", output_attentions=True) model = GPT2LMHeadModel.from_pretrained(...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2975/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/2975/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2974
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2974/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2974/comments
https://api.github.com/repos/huggingface/transformers/issues/2974/events
https://github.com/huggingface/transformers/pull/2974
569,409,127
MDExOlB1bGxSZXF1ZXN0Mzc4NjQyODI5
2,974
New CLI using Typer
{ "login": "kabirkhan", "id": 13891834, "node_id": "MDQ6VXNlcjEzODkxODM0", "avatar_url": "https://avatars.githubusercontent.com/u/13891834?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kabirkhan", "html_url": "https://github.com/kabirkhan", "followers_url": "https://api.github.com/users/...
[]
closed
false
null
[]
[ "Closing as discussed in https://github.com/huggingface/transformers/issues/2959#issuecomment-619214142" ]
1,582
1,587
1,587
NONE
null
## Summary First pass at a New CLI using [Typer](https://typer.tiangolo.com/) **745** total lines of code vs 917 for the old CLI, only adding one (optional) dependency (Typer) which is well documented/supported and has 99% test coverage. Currently, this mostly keeps the same option names for each command but I thi...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2974/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/2974/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2974", "html_url": "https://github.com/huggingface/transformers/pull/2974", "diff_url": "https://github.com/huggingface/transformers/pull/2974.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2974.patch", "merged_at": n...
https://api.github.com/repos/huggingface/transformers/issues/2973
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2973/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2973/comments
https://api.github.com/repos/huggingface/transformers/issues/2973/events
https://github.com/huggingface/transformers/pull/2973
569,403,858
MDExOlB1bGxSZXF1ZXN0Mzc4NjM5MDI5
2,973
Testing that batch_encode_plus is the same as encode_plus
{ "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/transformers/pull/2973?src=pr&el=h1) Report\n> Merging [#2973](https://codecov.io/gh/huggingface/transformers/pull/2973?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/c36416e53c29da8b6193f4a36d7b024c5f513495?src=pr&el=desc) will **i...
1,582
1,582
1,582
MEMBER
null
Spoiler alert: it wasn't. closes #2960 closes #2658 closes #2654
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2973/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/2973/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2973", "html_url": "https://github.com/huggingface/transformers/pull/2973", "diff_url": "https://github.com/huggingface/transformers/pull/2973.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2973.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2972
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2972/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2972/comments
https://api.github.com/repos/huggingface/transformers/issues/2972/events
https://github.com/huggingface/transformers/issues/2972
569,401,233
MDU6SXNzdWU1Njk0MDEyMzM=
2,972
Getting the output of the from the forward function of the GPT-2
{ "login": "h56cho", "id": 52889259, "node_id": "MDQ6VXNlcjUyODg5MjU5", "avatar_url": "https://avatars.githubusercontent.com/u/52889259?v=4", "gravatar_id": "", "url": "https://api.github.com/users/h56cho", "html_url": "https://github.com/h56cho", "followers_url": "https://api.github.com/users/h56cho/fo...
[ { "id": 1108649053, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDUz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Help%20wanted", "name": "Help wanted", "color": "008672", "default": false, "description": "Extra attention is needed, help appreciated" }, { "id": 1314...
closed
false
null
[]
[ "There isn't a way to retrieve that from the current API, but feel free to clone the repository and modify it to fit your needs.", "Hello,\r\n\r\nThank you for your reply. Can I make a request to the Hugging Face so that the code can be modified for users to extract ```self.merge_heads(a)``` and ```self.c_proj(a)...
1,582
1,588
1,588
NONE
null
Hello, Is there any way that I can extract the output of the ```self.merge_heads(a)``` and the ```self.c_proj(a)``` from the forward function for the Hugging Face GPT-2, which are found[ here](https://github.com/huggingface/transformers/blob/73028c5df0c28ca179fbe565482a9c2143787f61/src/transformers/modeling_gpt2.py#...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2972/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/2972/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2971
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2971/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2971/comments
https://api.github.com/repos/huggingface/transformers/issues/2971/events
https://github.com/huggingface/transformers/pull/2971
569,397,574
MDExOlB1bGxSZXF1ZXN0Mzc4NjM0NjYz
2,971
fix _update_memory fn call in transformer-xl
{ "login": "andompesta", "id": 6725612, "node_id": "MDQ6VXNlcjY3MjU2MTI=", "avatar_url": "https://avatars.githubusercontent.com/u/6725612?v=4", "gravatar_id": "", "url": "https://api.github.com/users/andompesta", "html_url": "https://github.com/andompesta", "followers_url": "https://api.github.com/users...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2971?src=pr&el=h1) Report\n> Merging [#2971](https://codecov.io/gh/huggingface/transformers/pull/2971?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/92487a1dc03c919afa8a961ed7d8ba78fafa21bd?src=pr&el=desc) will **i...
1,582
1,582
1,582
CONTRIBUTOR
null
Fix bug related to #2970
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2971/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/2971/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2971", "html_url": "https://github.com/huggingface/transformers/pull/2971", "diff_url": "https://github.com/huggingface/transformers/pull/2971.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2971.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2970
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2970/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2970/comments
https://api.github.com/repos/huggingface/transformers/issues/2970/events
https://github.com/huggingface/transformers/issues/2970
569,394,455
MDU6SXNzdWU1NjkzOTQ0NTU=
2,970
Bug in transfo_xl function call
{ "login": "andompesta", "id": 6725612, "node_id": "MDQ6VXNlcjY3MjU2MTI=", "avatar_url": "https://avatars.githubusercontent.com/u/6725612?v=4", "gravatar_id": "", "url": "https://api.github.com/users/andompesta", "html_url": "https://github.com/andompesta", "followers_url": "https://api.github.com/users...
[ { "id": 1834056761, "node_id": "MDU6TGFiZWwxODM0MDU2NzYx", "url": "https://api.github.com/repos/huggingface/transformers/labels/Core:%20Modeling", "name": "Core: Modeling", "color": "FF8446", "default": false, "description": "Internals of the library; Models." } ]
closed
false
null
[]
[]
1,582
1,582
1,582
CONTRIBUTOR
null
# 🐛 Bug Miss-order in the function call. In line 785 of modeling_transfo_xl.py you call the ``new_mems = self._update_mems(hids, mems, mlen, qlen)``. Yet, the function declaration is ``def _update_mems(self, hids, mems, qlen, mlen)`` Apparently you invert the order of ``qlen`` and ``mlen``. Yet the training p...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2970/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/2970/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2969
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2969/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2969/comments
https://api.github.com/repos/huggingface/transformers/issues/2969/events
https://github.com/huggingface/transformers/pull/2969
569,393,660
MDExOlB1bGxSZXF1ZXN0Mzc4NjMxODMw
2,969
Bart: fix layerdrop and caching shapes for generation
{ "login": "sshleifer", "id": 6045025, "node_id": "MDQ6VXNlcjYwNDUwMjU=", "avatar_url": "https://avatars.githubusercontent.com/u/6045025?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sshleifer", "html_url": "https://github.com/sshleifer", "followers_url": "https://api.github.com/users/ss...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2969?src=pr&el=h1) Report\n> Merging [#2969](https://codecov.io/gh/huggingface/transformers/pull/2969?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/c36416e53c29da8b6193f4a36d7b024c5f513495?src=pr&el=desc) will **d...
1,582
1,582
1,582
CONTRIBUTOR
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2969/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/2969/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2969", "html_url": "https://github.com/huggingface/transformers/pull/2969", "diff_url": "https://github.com/huggingface/transformers/pull/2969.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2969.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2968
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2968/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2968/comments
https://api.github.com/repos/huggingface/transformers/issues/2968/events
https://github.com/huggingface/transformers/pull/2968
569,388,933
MDExOlB1bGxSZXF1ZXN0Mzc4NjI4NDk2
2,968
Delete untested, broken Model2LSTM
{ "login": "sshleifer", "id": 6045025, "node_id": "MDQ6VXNlcjYwNDUwMjU=", "avatar_url": "https://avatars.githubusercontent.com/u/6045025?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sshleifer", "html_url": "https://github.com/sshleifer", "followers_url": "https://api.github.com/users/ss...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2968?src=pr&el=h1) Report\n> Merging [#2968](https://codecov.io/gh/huggingface/transformers/pull/2968?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/c36416e53c29da8b6193f4a36d7b024c5f513495?src=pr&el=desc) will **d...
1,582
1,582
1,582
CONTRIBUTOR
null
If you need it back `git checkout c36416e5`
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2968/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/2968/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2968", "html_url": "https://github.com/huggingface/transformers/pull/2968", "diff_url": "https://github.com/huggingface/transformers/pull/2968.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2968.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2967
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2967/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2967/comments
https://api.github.com/repos/huggingface/transformers/issues/2967/events
https://github.com/huggingface/transformers/pull/2967
569,385,987
MDExOlB1bGxSZXF1ZXN0Mzc4NjI2NDMx
2,967
missing name entity recognition link
{ "login": "autoih", "id": 41447049, "node_id": "MDQ6VXNlcjQxNDQ3MDQ5", "avatar_url": "https://avatars.githubusercontent.com/u/41447049?v=4", "gravatar_id": "", "url": "https://api.github.com/users/autoih", "html_url": "https://github.com/autoih", "followers_url": "https://api.github.com/users/autoih/fo...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2967?src=pr&el=h1) Report\n> Merging [#2967](https://codecov.io/gh/huggingface/transformers/pull/2967?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/94ff2d6ee8280c5595b92c1128c0f18e44925e56?src=pr&el=desc) will **i...
1,582
1,582
1,582
CONTRIBUTOR
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2967/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/2967/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2967", "html_url": "https://github.com/huggingface/transformers/pull/2967", "diff_url": "https://github.com/huggingface/transformers/pull/2967.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2967.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2966
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2966/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2966/comments
https://api.github.com/repos/huggingface/transformers/issues/2966/events
https://github.com/huggingface/transformers/pull/2966
569,346,756
MDExOlB1bGxSZXF1ZXN0Mzc4NTk4NjYx
2,966
Warning on `add_special_tokens`
{ "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/transformers/pull/2966?src=pr&el=h1) Report\n> Merging [#2966](https://codecov.io/gh/huggingface/transformers/pull/2966?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/cc6775cdf5b20ad382613d3bdbf0dd8364d23219?src=pr&el=desc) will **d...
1,582
1,651
1,582
MEMBER
null
Warning on `add_special_tokens` when passed to `encode`, `encode_plus` and `batch_encode_plus`
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2966/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/2966/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2966", "html_url": "https://github.com/huggingface/transformers/pull/2966", "diff_url": "https://github.com/huggingface/transformers/pull/2966.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2966.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2965
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2965/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2965/comments
https://api.github.com/repos/huggingface/transformers/issues/2965/events
https://github.com/huggingface/transformers/pull/2965
569,346,648
MDExOlB1bGxSZXF1ZXN0Mzc4NTk4NTkx
2,965
Correct `special_tokens_mask` when `add_special_tokens=False`
{ "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/transformers/pull/2965?src=pr&el=h1) Report\n> Merging [#2965](https://codecov.io/gh/huggingface/transformers/pull/2965?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/cc6775cdf5b20ad382613d3bdbf0dd8364d23219?src=pr&el=desc) will **d...
1,582
1,582
1,582
MEMBER
null
Don't know of a use case where that would be useful, but this is more consistent
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2965/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/2965/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2965", "html_url": "https://github.com/huggingface/transformers/pull/2965", "diff_url": "https://github.com/huggingface/transformers/pull/2965.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2965.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2964
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2964/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2964/comments
https://api.github.com/repos/huggingface/transformers/issues/2964/events
https://github.com/huggingface/transformers/pull/2964
569,329,287
MDExOlB1bGxSZXF1ZXN0Mzc4NTg2MDg4
2,964
[DOCS] fix hardcoded path in examples readme
{ "login": "saippuakauppias", "id": 945306, "node_id": "MDQ6VXNlcjk0NTMwNg==", "avatar_url": "https://avatars.githubusercontent.com/u/945306?v=4", "gravatar_id": "", "url": "https://api.github.com/users/saippuakauppias", "html_url": "https://github.com/saippuakauppias", "followers_url": "https://api.git...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2964?src=pr&el=h1) Report\n> Merging [#2964](https://codecov.io/gh/huggingface/transformers/pull/2964?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/94ff2d6ee8280c5595b92c1128c0f18e44925e56?src=pr&el=desc) will **d...
1,582
1,582
1,582
CONTRIBUTOR
null
I think, after merge this PR - need to rebuild docs, right?
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2964/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/2964/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2964", "html_url": "https://github.com/huggingface/transformers/pull/2964", "diff_url": "https://github.com/huggingface/transformers/pull/2964.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2964.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2963
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2963/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2963/comments
https://api.github.com/repos/huggingface/transformers/issues/2963/events
https://github.com/huggingface/transformers/issues/2963
569,258,295
MDU6SXNzdWU1NjkyNTgyOTU=
2,963
Length of special_tokens_mask doesn't align with the input_ids
{ "login": "hinthornw", "id": 13333726, "node_id": "MDQ6VXNlcjEzMzMzNzI2", "avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hinthornw", "html_url": "https://github.com/hinthornw", "followers_url": "https://api.github.com/users/...
[ { "id": 1834056635, "node_id": "MDU6TGFiZWwxODM0MDU2NjM1", "url": "https://api.github.com/repos/huggingface/transformers/labels/Core:%20Tokenization", "name": "Core: Tokenization", "color": "FF4446", "default": false, "description": "Internals of the library; Tokenization." }, { ...
closed
false
{ "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/...
[ { "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": "htt...
[]
1,582
1,582
1,582
NONE
null
# 🐛 Bug ## Information Model I am using (Bert, XLNet ...): Bert Language I am using the model on (English, Chinese ...): English The problem arises when using: * [ ] the official example scripts: (give details below) * [X ] my own modified scripts: (give details below) The tasks I am working on is: *...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2963/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/2963/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2962
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2962/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2962/comments
https://api.github.com/repos/huggingface/transformers/issues/2962/events
https://github.com/huggingface/transformers/pull/2962
569,248,316
MDExOlB1bGxSZXF1ZXN0Mzc4NTI1NTUw
2,962
[WIP] Proposal for Migrating to Typer for CLI and Examples
{ "login": "kabirkhan", "id": 13891834, "node_id": "MDQ6VXNlcjEzODkxODM0", "avatar_url": "https://avatars.githubusercontent.com/u/13891834?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kabirkhan", "html_url": "https://github.com/kabirkhan", "followers_url": "https://api.github.com/users/...
[]
closed
false
null
[]
[ "Closing as discussed in https://github.com/huggingface/transformers/issues/2959#issuecomment-619214142" ]
1,582
1,587
1,587
NONE
null
This doesn't update dependencies on purpose. This is just meant to demonstrate migrating an example from using argparse to using Typer.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2962/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/2962/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2962", "html_url": "https://github.com/huggingface/transformers/pull/2962", "diff_url": "https://github.com/huggingface/transformers/pull/2962.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2962.patch", "merged_at": n...
https://api.github.com/repos/huggingface/transformers/issues/2961
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2961/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2961/comments
https://api.github.com/repos/huggingface/transformers/issues/2961/events
https://github.com/huggingface/transformers/pull/2961
569,242,251
MDExOlB1bGxSZXF1ZXN0Mzc4NTIwNDcz
2,961
Fix max_length not taken into account when using pad_to_max_length on fast tokenizers
{ "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://api.github.com/users...
[]
closed
false
null
[]
[ "Should fix #2950", "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2961?src=pr&el=h1) Report\n> Merging [#2961](https://codecov.io/gh/huggingface/transformers/pull/2961?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/94ff2d6ee8280c5595b92c1128c0f18e44925e56?sr...
1,582
1,582
1,582
MEMBER
null
On fast tokenizer calling encode/ encode_plus / batch_encode_plus was not taking into account max_length when setting the padding strategy.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2961/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/2961/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2961", "html_url": "https://github.com/huggingface/transformers/pull/2961", "diff_url": "https://github.com/huggingface/transformers/pull/2961.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2961.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2960
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2960/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2960/comments
https://api.github.com/repos/huggingface/transformers/issues/2960/events
https://github.com/huggingface/transformers/issues/2960
569,241,478
MDU6SXNzdWU1NjkyNDE0Nzg=
2,960
Python Tokenizer batch_encode_plus doesn't pad input if asked to do so.
{ "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://api.github.com/users...
[ { "id": 1834056635, "node_id": "MDU6TGFiZWwxODM0MDU2NjM1", "url": "https://api.github.com/repos/huggingface/transformers/labels/Core:%20Tokenization", "name": "Core: Tokenization", "color": "FF4446", "default": false, "description": "Internals of the library; Tokenization." }, { ...
closed
false
{ "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/...
[ { "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": "htt...
[]
1,582
1,582
1,582
MEMBER
null
```python input_p = tokenizer_p.batch_encode_plus( ["This is a simple input 1", "This is a simple input 2"], max_length=15, pad_to_max_length=True ) ``` Output is not padded
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2960/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/2960/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2959
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2959/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2959/comments
https://api.github.com/repos/huggingface/transformers/issues/2959/events
https://github.com/huggingface/transformers/issues/2959
569,224,311
MDU6SXNzdWU1NjkyMjQzMTE=
2,959
Switching from argparse to Typer
{ "login": "kabirkhan", "id": 13891834, "node_id": "MDQ6VXNlcjEzODkxODM0", "avatar_url": "https://avatars.githubusercontent.com/u/13891834?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kabirkhan", "html_url": "https://github.com/kabirkhan", "followers_url": "https://api.github.com/users/...
[ { "id": 1260952223, "node_id": "MDU6TGFiZWwxMjYwOTUyMjIz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Discussion", "name": "Discussion", "color": "22870e", "default": false, "description": "Discussion on a topic (keep it focused or open a new issue though)" } ...
closed
false
null
[]
[ "Looks like [sacremoses](https://github.com/alvations/sacremoses) already uses [Click](https://click.palletsprojects.com/en/7.x/) as a dependency so using Typer would be ideal as it's only dependency is Click and it provides a much nicer interface than Click using Python 3.6+ Type Hints", "Also, since Typer is us...
1,582
1,587
1,587
NONE
null
# 🚀 Feature request I'm pretty new to transformers and I'm finding the examples a bit hard to read. Mainly I think this is due to argparse being so verbose. Is there any interest in migrating to something like [Plac](https://micheles.github.io/plac/) or even better [Typer](https://typer.tiangolo.com/)? I think it ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2959/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/2959/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2958
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2958/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2958/comments
https://api.github.com/repos/huggingface/transformers/issues/2958/events
https://github.com/huggingface/transformers/pull/2958
569,209,795
MDExOlB1bGxSZXF1ZXN0Mzc4NDkzODc2
2,958
Remove double bias
{ "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
[]
[]
1,582
1,582
1,582
MEMBER
null
Bias is currently applied twice in BERT, RoBERTa and ALBERT.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2958/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 1, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/2958/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2958", "html_url": "https://github.com/huggingface/transformers/pull/2958", "diff_url": "https://github.com/huggingface/transformers/pull/2958.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2958.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2957
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2957/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2957/comments
https://api.github.com/repos/huggingface/transformers/issues/2957/events
https://github.com/huggingface/transformers/issues/2957
569,200,027
MDU6SXNzdWU1NjkyMDAwMjc=
2,957
Bias in `BertLMPredictionHead ` is added twice
{ "login": "jzbjyb", "id": 5134761, "node_id": "MDQ6VXNlcjUxMzQ3NjE=", "avatar_url": "https://avatars.githubusercontent.com/u/5134761?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jzbjyb", "html_url": "https://github.com/jzbjyb", "followers_url": "https://api.github.com/users/jzbjyb/foll...
[]
closed
false
null
[]
[ "This is a known issue (cf. https://github.com/huggingface/transformers/pull/2928). It will be fixed in another (cleaner) PR, though." ]
1,582
1,582
1,582
NONE
null
# 🐛 Bug According to this PR #2521, a link is created between the linear layer bias and the model attribute bias in `BertLMPredictionHead`. In the `__init__`: ```python self.decoder = nn.Linear(config.hidden_size, config.vocab_size, bias=False) self.bias = nn.Parameter(torch.zeros(config.vocab_size)) self.decod...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2957/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/2957/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2956
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2956/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2956/comments
https://api.github.com/repos/huggingface/transformers/issues/2956/events
https://github.com/huggingface/transformers/pull/2956
569,188,312
MDExOlB1bGxSZXF1ZXN0Mzc4NDc2MDA5
2,956
adding support for commonsense qa for multiple choice question answering
{ "login": "nrjvarshney", "id": 19836137, "node_id": "MDQ6VXNlcjE5ODM2MTM3", "avatar_url": "https://avatars.githubusercontent.com/u/19836137?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nrjvarshney", "html_url": "https://github.com/nrjvarshney", "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
[]
[ "Can somebody help me in fixing the failed test?", "Hi, thanks for your addition, that's really cool! Did you check the [contributions guidelines](https://github.com/huggingface/transformers/blob/master/CONTRIBUTING.md#start-contributing-pull-requests)?\r\n\r\nYou should make sure you have the correct versions of...
1,582
1,588
1,588
NONE
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2956/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/2956/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2956", "html_url": "https://github.com/huggingface/transformers/pull/2956", "diff_url": "https://github.com/huggingface/transformers/pull/2956.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2956.patch", "merged_at": n...
https://api.github.com/repos/huggingface/transformers/issues/2955
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2955/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2955/comments
https://api.github.com/repos/huggingface/transformers/issues/2955/events
https://github.com/huggingface/transformers/pull/2955
569,181,977
MDExOlB1bGxSZXF1ZXN0Mzc4NDcwNjg4
2,955
Only use F.gelu for torch >=1.4.0
{ "login": "sshleifer", "id": 6045025, "node_id": "MDQ6VXNlcjYwNDUwMjU=", "avatar_url": "https://avatars.githubusercontent.com/u/6045025?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sshleifer", "html_url": "https://github.com/sshleifer", "followers_url": "https://api.github.com/users/ss...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2955?src=pr&el=h1) Report\n> Merging [#2955](https://codecov.io/gh/huggingface/transformers/pull/2955?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/3e98f27e4a9bb0ac3d0fe24b94d30da42cdae8a7?src=pr&el=desc) will **d...
1,582
1,583
1,582
CONTRIBUTOR
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2955/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/2955/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2955", "html_url": "https://github.com/huggingface/transformers/pull/2955", "diff_url": "https://github.com/huggingface/transformers/pull/2955.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2955.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2954
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2954/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2954/comments
https://api.github.com/repos/huggingface/transformers/issues/2954/events
https://github.com/huggingface/transformers/issues/2954
569,171,746
MDU6SXNzdWU1NjkxNzE3NDY=
2,954
Distillation throws CUDA out of memory even with available GPU memory
{ "login": "sultanovazamat", "id": 26954978, "node_id": "MDQ6VXNlcjI2OTU0OTc4", "avatar_url": "https://avatars.githubusercontent.com/u/26954978?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sultanovazamat", "html_url": "https://github.com/sultanovazamat", "followers_url": "https://api.gi...
[ { "id": 1108649070, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDcw", "url": "https://api.github.com/repos/huggingface/transformers/labels/Need%20more%20information", "name": "Need more information", "color": "d876e3", "default": false, "description": "Further information is requested" }, { ...
closed
false
null
[]
[ "An error trace would be useful.", "> An error trace would be useful.\r\n\r\nThis is an error trace:\r\n\r\nF.softmax(t_logits_slct / self.temperature, dim=-1),\r\n File \"/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py\", line 550, in __call__\r\n result = self.forward(*input, **kwargs)\r\n...
1,582
1,628
1,590
NONE
null
# ❓ Questions & Help ## Details <!-- Description of your issue --> Hi! I am trying to run the distillation of XLM-Roberta to Albert (also little XLM-Roberta) on 4 GPUs (RTX 2080 Ti) after a bit of correction of the distillation script, so the training process goes through little chunks of dataset due to the diffic...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2954/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/2954/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2953
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2953/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2953/comments
https://api.github.com/repos/huggingface/transformers/issues/2953/events
https://github.com/huggingface/transformers/issues/2953
569,170,680
MDU6SXNzdWU1NjkxNzA2ODA=
2,953
Migrating from `pytorch-pretrained-bert` to `pytorch-transformers` issue regarding model() output
{ "login": "ArashAskary", "id": 37027721, "node_id": "MDQ6VXNlcjM3MDI3NzIx", "avatar_url": "https://avatars.githubusercontent.com/u/37027721?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ArashAskary", "html_url": "https://github.com/ArashAskary", "followers_url": "https://api.github.com/...
[]
closed
false
null
[]
[ "You need to tell the model that you wish to get all the hidden states\r\n\r\n```python\r\nmodel = BertModel.from_pretrained('bert-base-uncased', output_hidden_states=True)\r\n```\r\n\r\nThen, you'll find your expected output as the third item in the output tuple:\r\n```python\r\n encoded_layers = model(tokens_tens...
1,582
1,582
1,582
NONE
null
I'm having trouble migrating my code from `pytorch_pretrained_bert` to `pytorch_transformers`. I'm attempting to run a cosine similarity exercise. I want to extract text embeddings values of the second-to-last of the 12 hidden embedding layer. ``` import torch from pytorch_pretrained_bert import BertTokenizer, ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2953/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/2953/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2952
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2952/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2952/comments
https://api.github.com/repos/huggingface/transformers/issues/2952/events
https://github.com/huggingface/transformers/issues/2952
569,065,993
MDU6SXNzdWU1NjkwNjU5OTM=
2,952
RuntimeError: Expected tensor for argument #1 'indices' to have scalar type Long; but got torch.cuda.IntTensor instead (while checking arguments for embedding)
{ "login": "Aidanlochbihler", "id": 18289342, "node_id": "MDQ6VXNlcjE4Mjg5MzQy", "avatar_url": "https://avatars.githubusercontent.com/u/18289342?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Aidanlochbihler", "html_url": "https://github.com/Aidanlochbihler", "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 }, { "id": 1834053813, "node_id": "MDU6TGFiZWwxODM0MDUzODEz", ...
closed
false
null
[]
[ "It is weird that there is a discrepancy between Windows and Linux.\r\n\r\nCould you try casting your variables `b_input_ids`, `b_input_mask` and `b_labels` to `torch.long`?\r\n\r\nAre you defining some of your variables on GPU? Does it fail if everything stays on CPU?", "I often prototype on Windows and push to ...
1,582
1,658
1,588
NONE
null
# 🐛 Bug ``` File "C:\Users\temp\Aida\aida\agents\bertbot\Bert\bert_intent_classifier_pytorch.py", line 298, in process logits = self.model(prediction_inputs, token_type_ids=None, attention_mask=prediction_masks) File "C:\Users\temp\Anaconda3\envs\fresh\lib\site-packages\torch\nn\modules\module.py", line 53...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2952/reactions", "total_count": 4, "+1": 4, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/2952/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2951
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2951/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2951/comments
https://api.github.com/repos/huggingface/transformers/issues/2951/events
https://github.com/huggingface/transformers/pull/2951
569,032,815
MDExOlB1bGxSZXF1ZXN0Mzc4MzQ2ODMx
2,951
Update modelcard of bert-base-german-cased
{ "login": "tholor", "id": 1563902, "node_id": "MDQ6VXNlcjE1NjM5MDI=", "avatar_url": "https://avatars.githubusercontent.com/u/1563902?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tholor", "html_url": "https://github.com/tholor", "followers_url": "https://api.github.com/users/tholor/foll...
[ { "id": 1838412367, "node_id": "MDU6TGFiZWwxODM4NDEyMzY3", "url": "https://api.github.com/repos/huggingface/transformers/labels/model%20card", "name": "model card", "color": "92d5f4", "default": false, "description": "Related to pretrained model cards" } ]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2951?src=pr&el=h1) Report\n> Merging [#2951](https://codecov.io/gh/huggingface/transformers/pull/2951?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/3e98f27e4a9bb0ac3d0fe24b94d30da42cdae8a7?src=pr&el=desc) will **n...
1,582
1,582
1,582
CONTRIBUTOR
null
Add image
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2951/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 1, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/2951/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2951", "html_url": "https://github.com/huggingface/transformers/pull/2951", "diff_url": "https://github.com/huggingface/transformers/pull/2951.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2951.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2950
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2950/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2950/comments
https://api.github.com/repos/huggingface/transformers/issues/2950/events
https://github.com/huggingface/transformers/issues/2950
569,016,025
MDU6SXNzdWU1NjkwMTYwMjU=
2,950
BertTokenizerFast ignores `pad_to_max_length`
{ "login": "ranamihir", "id": 8270471, "node_id": "MDQ6VXNlcjgyNzA0NzE=", "avatar_url": "https://avatars.githubusercontent.com/u/8270471?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ranamihir", "html_url": "https://github.com/ranamihir", "followers_url": "https://api.github.com/users/ra...
[ { "id": 1834056635, "node_id": "MDU6TGFiZWwxODM0MDU2NjM1", "url": "https://api.github.com/repos/huggingface/transformers/labels/Core:%20Tokenization", "name": "Core: Tokenization", "color": "FF4446", "default": false, "description": "Internals of the library; Tokenization." }, { ...
closed
false
{ "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://api.github.com/users...
[ { "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://...
[ "Duplicate of #2947", "Thanks @ranamihir @fte10kso, \r\n\r\nI'll have a look today. ", "Thanks @mfuntowicz!" ]
1,582
1,582
1,582
NONE
null
# 🐛 Bug Hi, I noticed some strange behavior with the fast tokenizers in `v2.5.0`, which I think is a bug: It seems `BertTokenizerFast` is ignoring the `pad_to_max_length` argument, as shown below: ```python >>> from transformers import AutoTokenizer, BertTokenizer >>> tok_auto = AutoTokenizer.from_pretrain...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2950/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/2950/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2949
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2949/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2949/comments
https://api.github.com/repos/huggingface/transformers/issues/2949/events
https://github.com/huggingface/transformers/issues/2949
568,992,083
MDU6SXNzdWU1Njg5OTIwODM=
2,949
Change the model type after fine-tuning?
{ "login": "jwallat", "id": 24674150, "node_id": "MDQ6VXNlcjI0Njc0MTUw", "avatar_url": "https://avatars.githubusercontent.com/u/24674150?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jwallat", "html_url": "https://github.com/jwallat", "followers_url": "https://api.github.com/users/jwalla...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null }, { "id": 1834056761, "node_id": "MDU6TGFiZWwxODM0MDU2NzYx", ...
closed
false
null
[]
[ "Yes, you should be able to just load the finetuned model into another architecture. The weights of overlapping parameter names will be loaded, and the others will be ignored.", "Awesome, thanks for the fast response ", "Okay, I came across a followup question: \r\nSo from what I can tell, the pre-trained mode...
1,582
1,611
1,588
NONE
null
# ❓ Questions & Help Is there a way in the transformer library to fine-tune a transformer on one downstream task and change to another model type (i.e. another downstream task architecture)? An example: We train a BertForQuestionAnswering model (with a linear layer for the span prediction in addition to the reg...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2949/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/2949/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2948
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2948/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2948/comments
https://api.github.com/repos/huggingface/transformers/issues/2948/events
https://github.com/huggingface/transformers/issues/2948
568,969,959
MDU6SXNzdWU1Njg5Njk5NTk=
2,948
Some questions about change the BertForSequenceClassification
{ "login": "WenTingTseng", "id": 32416416, "node_id": "MDQ6VXNlcjMyNDE2NDE2", "avatar_url": "https://avatars.githubusercontent.com/u/32416416?v=4", "gravatar_id": "", "url": "https://api.github.com/users/WenTingTseng", "html_url": "https://github.com/WenTingTseng", "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 }, { "id": 1834056761, "node_id": "MDU6TGFiZWwxODM0MDU2NzYx", ...
closed
false
null
[]
[ "Please don't post screenshots. Post your code instead. Use code blocks to do that: https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks", "sorry, I changed\r\n", "Could you give us the content of the `/share/nas165/Wendy/BERTYiChen2.0/trained_model/3371筆_word2Vec/config.jso...
1,582
1,588
1,588
NONE
null
# 🐛 Bug ## Information Model I am using Bert: Language I am using the model on (Chinese ): The problem arises when using BertForSequenceClassification: I want to Concatenation pooled_output and word2vec. I change the code of BertForSequenceClassification like this and successfully trained the model. I us...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2948/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/2948/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2947
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2947/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2947/comments
https://api.github.com/repos/huggingface/transformers/issues/2947/events
https://github.com/huggingface/transformers/issues/2947
568,939,750
MDU6SXNzdWU1Njg5Mzk3NTA=
2,947
Fast tokenizers padding and prefix space
{ "login": "updbqn", "id": 10659104, "node_id": "MDQ6VXNlcjEwNjU5MTA0", "avatar_url": "https://avatars.githubusercontent.com/u/10659104?v=4", "gravatar_id": "", "url": "https://api.github.com/users/updbqn", "html_url": "https://github.com/updbqn", "followers_url": "https://api.github.com/users/updbqn/fo...
[ { "id": 1834056635, "node_id": "MDU6TGFiZWwxODM0MDU2NjM1", "url": "https://api.github.com/repos/huggingface/transformers/labels/Core:%20Tokenization", "name": "Core: Tokenization", "color": "FF4446", "default": false, "description": "Internals of the library; Tokenization." }, { ...
closed
false
{ "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://api.github.com/users...
[ { "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://...
[ "This should be fixed in master on commit cc6775cdf5b20ad382613d3bdbf0dd8364d23219.\r\n\r\nIf you want to give it a try, otherwise the first maintenance release will soon be live.", "That fixed it for me, thank you!\r\n\r\nAlso figured out what i was doing wrong with `add_prefix_space`. Instead of passing it to e...
1,582
1,582
1,582
NONE
null
# 🐛 Bug `pad_to_max_length=True` Doesn't seem to do anything when using fast tokenizers. ```python tokenizer_roberta = RobertaTokenizer.from_pretrained('roberta-base') tokenizer_roberta_fast = RobertaTokenizerFast.from_pretrained('roberta-base') tokenizer_bert = BertTokenizer.from_pretrained('bert-base-uncase...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2947/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/2947/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2946
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2946/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2946/comments
https://api.github.com/repos/huggingface/transformers/issues/2946/events
https://github.com/huggingface/transformers/issues/2946
568,912,102
MDU6SXNzdWU1Njg5MTIxMDI=
2,946
On masked-lm labels and computing the loss
{ "login": "shashankMadan-designEsthetics", "id": 45225143, "node_id": "MDQ6VXNlcjQ1MjI1MTQz", "avatar_url": "https://avatars.githubusercontent.com/u/45225143?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shashankMadan-designEsthetics", "html_url": "https://github.com/shashankMadan-designE...
[]
closed
false
null
[]
[ "> `labels[~masked_indices] = -100 # We only compute loss on masked tokens`\r\n\r\n-100 is the default value that gets ignored by the PyTorch `CrossEntropyLoss` method. When doing masked language modeling, we only compute the loss on the masked tokens, as is said in the comment. \r\n\r\n> `Tokens with indices set t...
1,582
1,637
1,582
NONE
null
Recently I was using bert for my own project, and going through the function mask_tokens I found this line of code `labels[~masked_indices] = -100 # We only compute loss on masked tokens` I wonder why we do this? like i get the part where we do ``` indices_replaced = torch.bernoulli(torch.full(labels.shape, 0...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2946/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/2946/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2945
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2945/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2945/comments
https://api.github.com/repos/huggingface/transformers/issues/2945/events
https://github.com/huggingface/transformers/pull/2945
568,902,215
MDExOlB1bGxSZXF1ZXN0Mzc4MjM4NDkz
2,945
Labels are now added to model config under id2label and label2id
{ "login": "marma", "id": 144026, "node_id": "MDQ6VXNlcjE0NDAyNg==", "avatar_url": "https://avatars.githubusercontent.com/u/144026?v=4", "gravatar_id": "", "url": "https://api.github.com/users/marma", "html_url": "https://github.com/marma", "followers_url": "https://api.github.com/users/marma/followers"...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2945?src=pr&el=h1) Report\n> Merging [#2945](https://codecov.io/gh/huggingface/transformers/pull/2945?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/53ce3854a16ad2a715bc6ac8af3e30c18b5a1d11?src=pr&el=desc) will **n...
1,582
1,613
1,582
CONTRIBUTOR
null
Fixes huggingface/transformers#2487
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2945/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/2945/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2945", "html_url": "https://github.com/huggingface/transformers/pull/2945", "diff_url": "https://github.com/huggingface/transformers/pull/2945.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2945.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2944
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2944/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2944/comments
https://api.github.com/repos/huggingface/transformers/issues/2944/events
https://github.com/huggingface/transformers/issues/2944
568,882,544
MDU6SXNzdWU1Njg4ODI1NDQ=
2,944
output padding different to zero in embedding layer
{ "login": "akamnev", "id": 19535300, "node_id": "MDQ6VXNlcjE5NTM1MzAw", "avatar_url": "https://avatars.githubusercontent.com/u/19535300?v=4", "gravatar_id": "", "url": "https://api.github.com/users/akamnev", "html_url": "https://github.com/akamnev", "followers_url": "https://api.github.com/users/akamne...
[ { "id": 1834056761, "node_id": "MDU6TGFiZWwxODM0MDU2NzYx", "url": "https://api.github.com/repos/huggingface/transformers/labels/Core:%20Modeling", "name": "Core: Modeling", "color": "FF8446", "default": false, "description": "Internals of the library; Models." }, { "id": 18340819...
closed
false
null
[]
[ "Why? Typically, padding tokens are ignored in the model by the use of an attention mask. I don't understand why you want to only get the output of the embedding layer. (Perhaps you are confused with the good ol' word2vec embedding models, but you cannot/should not extract features from the embedding layer in a LM....
1,582
1,582
1,582
NONE
null
# 🐛 Bug On embedding layer, the token corresponding to the padding does not return 0. ## Information Model I am using (Bert): Language I am using the model on (English): The problem arises when using: * [ ] the official example scripts: (give details below) * [x] my own modified scripts: (give details bel...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2944/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/2944/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2943
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2943/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2943/comments
https://api.github.com/repos/huggingface/transformers/issues/2943/events
https://github.com/huggingface/transformers/issues/2943
568,720,888
MDU6SXNzdWU1Njg3MjA4ODg=
2,943
fp16 is not compatible with the current activation code when pytorch is less than 1.4.0
{ "login": "bcmi220", "id": 39052744, "node_id": "MDQ6VXNlcjM5MDUyNzQ0", "avatar_url": "https://avatars.githubusercontent.com/u/39052744?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bcmi220", "html_url": "https://github.com/bcmi220", "followers_url": "https://api.github.com/users/bcmi22...
[]
closed
false
null
[]
[ "This is a duplicate of https://github.com/huggingface/transformers/issues/2940" ]
1,582
1,582
1,582
NONE
null
[gelu = getattr(F, "gelu", _gelu_python)](https://github.com/huggingface/transformers/blob/53ce3854a16ad2a715bc6ac8af3e30c18b5a1d11/src/transformers/activations.py#L21) should be changed to: ```python if torch.__version__ < '1.4.0': gelu = _gelu_python else: gelu = getattr(F, "gelu", _gelu_python) ``...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2943/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/2943/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2942
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2942/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2942/comments
https://api.github.com/repos/huggingface/transformers/issues/2942/events
https://github.com/huggingface/transformers/pull/2942
568,703,254
MDExOlB1bGxSZXF1ZXN0Mzc4MDc3MTg1
2,942
Create README.md for xlnet_large_squad
{ "login": "ahotrod", "id": 44321615, "node_id": "MDQ6VXNlcjQ0MzIxNjE1", "avatar_url": "https://avatars.githubusercontent.com/u/44321615?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ahotrod", "html_url": "https://github.com/ahotrod", "followers_url": "https://api.github.com/users/ahotro...
[ { "id": 1838412367, "node_id": "MDU6TGFiZWwxODM4NDEyMzY3", "url": "https://api.github.com/repos/huggingface/transformers/labels/model%20card", "name": "model card", "color": "92d5f4", "default": false, "description": "Related to pretrained model cards" } ]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2942?src=pr&el=h1) Report\n> Merging [#2942](https://codecov.io/gh/huggingface/transformers/pull/2942?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/53ce3854a16ad2a715bc6ac8af3e30c18b5a1d11?src=pr&el=desc) will **n...
1,582
1,582
1,582
CONTRIBUTOR
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2942/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/2942/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2942", "html_url": "https://github.com/huggingface/transformers/pull/2942", "diff_url": "https://github.com/huggingface/transformers/pull/2942.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2942.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2941
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2941/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2941/comments
https://api.github.com/repos/huggingface/transformers/issues/2941/events
https://github.com/huggingface/transformers/issues/2941
568,653,260
MDU6SXNzdWU1Njg2NTMyNjA=
2,941
pipeline("sentiment-analysis")() can't handle more than 2 sentences
{ "login": "xxbidiao", "id": 1439638, "node_id": "MDQ6VXNlcjE0Mzk2Mzg=", "avatar_url": "https://avatars.githubusercontent.com/u/1439638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xxbidiao", "html_url": "https://github.com/xxbidiao", "followers_url": "https://api.github.com/users/xxbid...
[ { "id": 1771187924, "node_id": "MDU6TGFiZWwxNzcxMTg3OTI0", "url": "https://api.github.com/repos/huggingface/transformers/labels/Core:%20Pipeline", "name": "Core: Pipeline", "color": "FF7066", "default": false, "description": "Internals of the library; Pipeline." } ]
closed
false
null
[]
[ "`scores = np.exp(outputs) / np.exp(outputs).sum(-1).reshape(-1,1)` works for me, but I'm not sure whether it breaks other things.", "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,582
1,588
1,588
CONTRIBUTOR
null
# 🐛 Bug ## Information Model I am using (Bert, XLNet ...): pipeline("sentiment-analysis") Language I am using the model on (English, Chinese ...): English The problem arises when using: * [x] the official example scripts: (give details below) * [ ] my own modified scripts: (give details below) The tas...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2941/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/2941/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2940
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2940/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2940/comments
https://api.github.com/repos/huggingface/transformers/issues/2940/events
https://github.com/huggingface/transformers/issues/2940
568,624,741
MDU6SXNzdWU1Njg2MjQ3NDE=
2,940
BERT model breaks during FP16 Apex training on the latest update (2.5.0) - due to gelu function
{ "login": "Laksh1997", "id": 59830552, "node_id": "MDQ6VXNlcjU5ODMwNTUy", "avatar_url": "https://avatars.githubusercontent.com/u/59830552?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Laksh1997", "html_url": "https://github.com/Laksh1997", "followers_url": "https://api.github.com/users/...
[ { "id": 1834053813, "node_id": "MDU6TGFiZWwxODM0MDUzODEz", "url": "https://api.github.com/repos/huggingface/transformers/labels/PyTorch", "name": "PyTorch", "color": "a12bef", "default": false, "description": "Anything PyTorch" }, { "id": 1862634478, "node_id": "MDU6TGFiZWwxO...
closed
false
{ "login": "sshleifer", "id": 6045025, "node_id": "MDQ6VXNlcjYwNDUwMjU=", "avatar_url": "https://avatars.githubusercontent.com/u/6045025?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sshleifer", "html_url": "https://github.com/sshleifer", "followers_url": "https://api.github.com/users/ss...
[ { "login": "sshleifer", "id": 6045025, "node_id": "MDQ6VXNlcjYwNDUwMjU=", "avatar_url": "https://avatars.githubusercontent.com/u/6045025?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sshleifer", "html_url": "https://github.com/sshleifer", "followers_url": "https://api...
[]
1,582
1,582
1,582
NONE
null
# 🐛 Bug BERT breaks during FP16 training due to the gelu function. ``` File "/home/user/miniconda/envs/py36/lib/python3.6/site-packages/transformers/modeling_bert.py", line 407, in forward hidden_states, attention_mask, head_mask[i], encoder_hidden_states, encoder_attention_mask File "/home/user/miniconda...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2940/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/2940/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2939
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2939/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2939/comments
https://api.github.com/repos/huggingface/transformers/issues/2939/events
https://github.com/huggingface/transformers/pull/2939
568,558,438
MDExOlB1bGxSZXF1ZXN0Mzc3OTY0NDQ1
2,939
Add standardized get_vocab method to tokenizers
{ "login": "joeddav", "id": 9353833, "node_id": "MDQ6VXNlcjkzNTM4MzM=", "avatar_url": "https://avatars.githubusercontent.com/u/9353833?v=4", "gravatar_id": "", "url": "https://api.github.com/users/joeddav", "html_url": "https://github.com/joeddav", "followers_url": "https://api.github.com/users/joeddav/...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2939?src=pr&el=h1) Report\n> Merging [#2939](https://codecov.io/gh/huggingface/transformers/pull/2939?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/ea8eba35e2984882c3cd522ff669eb8060941a94?src=pr&el=desc) will **d...
1,582
1,598
1,582
CONTRIBUTOR
null
This PR adds a `get_vocab` method to the `PretrainedTokenizers` to standardize extracting vocabularies from tokenizers. Comments: - I didn't do anything with fast tokenizers. cc'ing @mfuntowicz for his thoughts there. - I opted to keep it a method rather than a `@property` in order to encourage users to primarily ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2939/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/2939/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2939", "html_url": "https://github.com/huggingface/transformers/pull/2939", "diff_url": "https://github.com/huggingface/transformers/pull/2939.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2939.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2938
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2938/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2938/comments
https://api.github.com/repos/huggingface/transformers/issues/2938/events
https://github.com/huggingface/transformers/issues/2938
568,557,334
MDU6SXNzdWU1Njg1NTczMzQ=
2,938
OpenAIGPTDoubleHeadsModel throws CUDA OOM with large number of candidates
{ "login": "g-karthik", "id": 3851993, "node_id": "MDQ6VXNlcjM4NTE5OTM=", "avatar_url": "https://avatars.githubusercontent.com/u/3851993?v=4", "gravatar_id": "", "url": "https://api.github.com/users/g-karthik", "html_url": "https://github.com/g-karthik", "followers_url": "https://api.github.com/users/g-...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null }, { "id": 1834056761, "node_id": "MDU6TGFiZWwxODM0MDU2NzYx", ...
closed
false
null
[]
[ "Isn't that to be expected? The large model just doesn't fit on your GPU's memory.", "@BramVanroy is that expected behavior with just 1 training example though?\r\n\r\nI initially suspected that this is a training-specific behavior (due to the need to store gradients, etc.), so I decided to fix the number of cand...
1,582
1,588
1,588
NONE
null
# 🐛 Bug I am trying to train the `OpenAIGPTDoubleHeadsModel`. I find that large number of candidates can cause CUDA OOM errors. Case 1 (single training example with 67 candidates): CUDA OOM ``` input_ids.shape: torch.Size([1, 67, 275]) mc_token_ids.shape: torch.Size([1, 67]) lm_labels.shape: torch.Size([1, 6...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2938/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/2938/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2937
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2937/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2937/comments
https://api.github.com/repos/huggingface/transformers/issues/2937/events
https://github.com/huggingface/transformers/pull/2937
568,546,409
MDExOlB1bGxSZXF1ZXN0Mzc3OTU0NTc5
2,937
Small fix: default args for torch-lightning
{ "login": "srush", "id": 35882, "node_id": "MDQ6VXNlcjM1ODgy", "avatar_url": "https://avatars.githubusercontent.com/u/35882?v=4", "gravatar_id": "", "url": "https://api.github.com/users/srush", "html_url": "https://github.com/srush", "followers_url": "https://api.github.com/users/srush/followers", "f...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2937?src=pr&el=h1) Report\n> Merging [#2937](https://codecov.io/gh/huggingface/transformers/pull/2937?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/e2a6445ebbc36121817c1f605d9a09a335f5fba5?src=pr&el=desc) will **d...
1,582
1,582
1,582
CONTRIBUTOR
null
Fix to the default argument passing to torch-lightning.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2937/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/2937/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2937", "html_url": "https://github.com/huggingface/transformers/pull/2937", "diff_url": "https://github.com/huggingface/transformers/pull/2937.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2937.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2936
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2936/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2936/comments
https://api.github.com/repos/huggingface/transformers/issues/2936/events
https://github.com/huggingface/transformers/issues/2936
568,530,878
MDU6SXNzdWU1Njg1MzA4Nzg=
2,936
New tokenizers issue in NER demo
{ "login": "srush", "id": 35882, "node_id": "MDQ6VXNlcjM1ODgy", "avatar_url": "https://avatars.githubusercontent.com/u/35882?v=4", "gravatar_id": "", "url": "https://api.github.com/users/srush", "html_url": "https://github.com/srush", "followers_url": "https://api.github.com/users/srush/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 }, { "id": 1834056635, "node_id": "MDU6TGFiZWwxODM0MDU2NjM1", ...
closed
false
null
[]
[ "This might be https://github.com/huggingface/transformers/issues/2917", "@srush I'm looking at it right now ", "I have the same issue while running run_tf_ner.py on the German NER dataset. I got the same AssertionError as below:\r\n> File \"run_tf_ner.py\", line 655, in <module>\r\n> app.run(main)\r\n> ...
1,582
1,592
1,592
CONTRIBUTOR
null
# 🐛 Bug When I use transformers 2.5 I get the following error when running the run_ner demo. It seems to work from when I use 2.4. I am guessing this is because of a slight difference in the tokenization script? It seems to fail even when running with the base German run.sh in the ner/ directory. ```Traceback (...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2936/reactions", "total_count": 4, "+1": 4, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/2936/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2935
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2935/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2935/comments
https://api.github.com/repos/huggingface/transformers/issues/2935/events
https://github.com/huggingface/transformers/pull/2935
568,482,750
MDExOlB1bGxSZXF1ZXN0Mzc3OTA0MTEx
2,935
Optimized squad.py multi-threading
{ "login": "birdmw", "id": 2925772, "node_id": "MDQ6VXNlcjI5MjU3NzI=", "avatar_url": "https://avatars.githubusercontent.com/u/2925772?v=4", "gravatar_id": "", "url": "https://api.github.com/users/birdmw", "html_url": "https://github.com/birdmw", "followers_url": "https://api.github.com/users/birdmw/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 was a big performance hiccup for us. We managed to take a `QuestionAnswerAnsweringPipeline` down from 12 seconds to 6 seconds (with CUDA) and then to ~1 second (with the serialization removal optimization).", "The code quality check is literally just that one line is too long.", "> The code quality check ...
1,582
1,595
1,588
NONE
null
If there are few examples, don't bother multi-threading . The base cost of multi-threading in Python is expensive. I can't upload a picture of the call-stack visual profile because of my stupid company firewall, but multi-threading in python depends on serializing each object before sending it off. That process has a 5...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2935/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/2935/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2935", "html_url": "https://github.com/huggingface/transformers/pull/2935", "diff_url": "https://github.com/huggingface/transformers/pull/2935.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2935.patch", "merged_at": n...
https://api.github.com/repos/huggingface/transformers/issues/2934
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2934/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2934/comments
https://api.github.com/repos/huggingface/transformers/issues/2934/events
https://github.com/huggingface/transformers/pull/2934
568,460,504
MDExOlB1bGxSZXF1ZXN0Mzc3ODg2NDM2
2,934
Update README.md
{ "login": "mrm8488", "id": 3653789, "node_id": "MDQ6VXNlcjM2NTM3ODk=", "avatar_url": "https://avatars.githubusercontent.com/u/3653789?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mrm8488", "html_url": "https://github.com/mrm8488", "followers_url": "https://api.github.com/users/mrm8488/...
[ { "id": 1838412367, "node_id": "MDU6TGFiZWwxODM4NDEyMzY3", "url": "https://api.github.com/repos/huggingface/transformers/labels/model%20card", "name": "model card", "color": "92d5f4", "default": false, "description": "Related to pretrained model cards" } ]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2934?src=pr&el=h1) Report\n> Merging [#2934](https://codecov.io/gh/huggingface/transformers/pull/2934?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/e2a6445ebbc36121817c1f605d9a09a335f5fba5?src=pr&el=desc) will **n...
1,582
1,582
1,582
CONTRIBUTOR
null
- I added an example using the model with pipelines to show that we have set```{"use_fast": False}``` in the tokenizer for Q&A as noticed in [issue](https://github.com/huggingface/transformers/issues/2920) - I added a Colab to play with the model and pipelines - I added a Colab to discover Huggingface pipelines at th...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2934/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/2934/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2934", "html_url": "https://github.com/huggingface/transformers/pull/2934", "diff_url": "https://github.com/huggingface/transformers/pull/2934.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2934.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2933
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2933/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2933/comments
https://api.github.com/repos/huggingface/transformers/issues/2933/events
https://github.com/huggingface/transformers/pull/2933
568,455,104
MDExOlB1bGxSZXF1ZXN0Mzc3ODgyMDA2
2,933
Fix for fast tokenizers save_pretrained compatibility with Python.
{ "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://api.github.com/users...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2933?src=pr&el=h1) Report\n> Merging [#2933](https://codecov.io/gh/huggingface/transformers/pull/2933?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/6a50d501ec54fd28eed57031ddbba6480768f9bc?src=pr&el=desc) will **d...
1,582
1,651
1,582
MEMBER
null
The name of generated file doesn't match between tokenizers and transformers tokenizers, so transformers is not able to load model saved with tokenizers models.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2933/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/2933/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2933", "html_url": "https://github.com/huggingface/transformers/pull/2933", "diff_url": "https://github.com/huggingface/transformers/pull/2933.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2933.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2932
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2932/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2932/comments
https://api.github.com/repos/huggingface/transformers/issues/2932/events
https://github.com/huggingface/transformers/pull/2932
568,388,811
MDExOlB1bGxSZXF1ZXN0Mzc3ODI3Nzc5
2,932
[WIP] Add a trainer tool class to make the TF2 model training easier
{ "login": "jplu", "id": 959590, "node_id": "MDQ6VXNlcjk1OTU5MA==", "avatar_url": "https://avatars.githubusercontent.com/u/959590?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jplu", "html_url": "https://github.com/jplu", "followers_url": "https://api.github.com/users/jplu/followers", ...
[]
closed
false
null
[]
[]
1,582
1,587
1,587
CONTRIBUTOR
null
Hello, I decided to open a cleaner PR because the other was a bit too messy in my opinion. Here the features that this Trainer class will be able to handle: - [x] Single / Multiple GPU training. Distributed is across GPUs in the same host. Distribution across multiple machines will be for a future version. - [ ]...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2932/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/2932/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2932", "html_url": "https://github.com/huggingface/transformers/pull/2932", "diff_url": "https://github.com/huggingface/transformers/pull/2932.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2932.patch", "merged_at": n...
https://api.github.com/repos/huggingface/transformers/issues/2931
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2931/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2931/comments
https://api.github.com/repos/huggingface/transformers/issues/2931/events
https://github.com/huggingface/transformers/pull/2931
568,317,784
MDExOlB1bGxSZXF1ZXN0Mzc3NzY5NzAx
2,931
Fix spell: EsperBERTo, not EspertBERTo
{ "login": "vochicong", "id": 123111, "node_id": "MDQ6VXNlcjEyMzExMQ==", "avatar_url": "https://avatars.githubusercontent.com/u/123111?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vochicong", "html_url": "https://github.com/vochicong", "followers_url": "https://api.github.com/users/voch...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2931?src=pr&el=h1) Report\n> Merging [#2931](https://codecov.io/gh/huggingface/transformers/pull/2931?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/d490b5d5003654f104af3abd0556e598335b5650?src=pr&el=desc) will **n...
1,582
1,582
1,582
CONTRIBUTOR
null
This misspelling almost drove me crazy :)
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2931/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/2931/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2931", "html_url": "https://github.com/huggingface/transformers/pull/2931", "diff_url": "https://github.com/huggingface/transformers/pull/2931.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2931.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2930
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2930/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2930/comments
https://api.github.com/repos/huggingface/transformers/issues/2930/events
https://github.com/huggingface/transformers/pull/2930
568,284,544
MDExOlB1bGxSZXF1ZXN0Mzc3NzQzMDc0
2,930
Add local_files_only parameter to pretrained items
{ "login": "BramVanroy", "id": 2779410, "node_id": "MDQ6VXNlcjI3Nzk0MTA=", "avatar_url": "https://avatars.githubusercontent.com/u/2779410?v=4", "gravatar_id": "", "url": "https://api.github.com/users/BramVanroy", "html_url": "https://github.com/BramVanroy", "followers_url": "https://api.github.com/users...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2930?src=pr&el=h1) Report\n> Merging [#2930](https://codecov.io/gh/huggingface/transformers/pull/2930?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/59c23ad9c931ac4fe719abeb3c3851df046ef3a6?src=pr&el=desc) will **d...
1,582
1,584
1,582
COLLABORATOR
null
closes https://github.com/huggingface/transformers/issues/2867 Setting local_files_only=True disables outgoing traffic: - etags are not looked up - files are not downloaded (config, tokenizer, model) An appropriate error is thrown when this argument may be the cause why a model cannot be loaded. ```python i...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2930/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/2930/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2930", "html_url": "https://github.com/huggingface/transformers/pull/2930", "diff_url": "https://github.com/huggingface/transformers/pull/2930.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2930.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2929
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2929/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2929/comments
https://api.github.com/repos/huggingface/transformers/issues/2929/events
https://github.com/huggingface/transformers/issues/2929
568,281,258
MDU6SXNzdWU1NjgyODEyNTg=
2,929
Getting the same results when evaluating Model2Model with different encoder inputs.
{ "login": "dimi1357", "id": 22443447, "node_id": "MDQ6VXNlcjIyNDQzNDQ3", "avatar_url": "https://avatars.githubusercontent.com/u/22443447?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dimi1357", "html_url": "https://github.com/dimi1357", "followers_url": "https://api.github.com/users/dim...
[ { "id": 1843738573, "node_id": "MDU6TGFiZWwxODQzNzM4NTcz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Core:%20Encoder-Decoder", "name": "Core: Encoder-Decoder", "color": "ef536d", "default": false, "description": "" }, { "id": 1845609017, "node_id": ...
closed
false
null
[]
[ "It's in the forward pass of the EncoderDecoder:\r\n\r\nhttps://github.com/huggingface/transformers/blob/d490b5d5003654f104af3abd0556e598335b5650/src/transformers/modeling_encoder_decoder.py#L205-L237", "> It's in the forward pass of the EncoderDecoder:\r\n> \r\n> https://github.com/huggingface/transformers/blob/...
1,582
1,582
1,582
NONE
null
After fine-tuning the Model2Model with 'bert-base-uncased', I am getting the same losses values, no matter what is the encoder input. On the PreTrainedEncoderDecoder documentation, it's said that "During prediction, we perform one forward pass through the encoder, and then perform several forward passes with...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2929/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/2929/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2928
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2928/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2928/comments
https://api.github.com/repos/huggingface/transformers/issues/2928/events
https://github.com/huggingface/transformers/pull/2928
568,280,437
MDExOlB1bGxSZXF1ZXN0Mzc3NzM5ODMw
2,928
Make RobertaForMaskedLM implementation identical to fairseq
{ "login": "BramVanroy", "id": 2779410, "node_id": "MDQ6VXNlcjI3Nzk0MTA=", "avatar_url": "https://avatars.githubusercontent.com/u/2779410?v=4", "gravatar_id": "", "url": "https://api.github.com/users/BramVanroy", "html_url": "https://github.com/BramVanroy", "followers_url": "https://api.github.com/users...
[ { "id": 1834056761, "node_id": "MDU6TGFiZWwxODM0MDU2NzYx", "url": "https://api.github.com/repos/huggingface/transformers/labels/Core:%20Modeling", "name": "Core: Modeling", "color": "FF8446", "default": false, "description": "Internals of the library; Models." } ]
closed
false
null
[]
[ "TODO: https://github.com/huggingface/transformers/pull/2913#issuecomment-588508153", "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2928?src=pr&el=h1) Report\n> Merging [#2928](https://codecov.io/gh/huggingface/transformers/pull/2928?src=pr&el=desc) into [master](https://codecov.io/gh/huggingfa...
1,582
1,582
1,582
COLLABORATOR
null
closes https://github.com/huggingface/transformers/issues/1874 The implementation of RoBERTa in `transformers` differs from the original implementation in [fairseq](https://github.com/pytorch/fairseq/tree/master/fairseq/models/roberta), as results showed (cf. https://github.com/huggingface/transformers/issues/1874)....
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2928/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/2928/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2928", "html_url": "https://github.com/huggingface/transformers/pull/2928", "diff_url": "https://github.com/huggingface/transformers/pull/2928.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2928.patch", "merged_at": n...
https://api.github.com/repos/huggingface/transformers/issues/2927
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2927/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2927/comments
https://api.github.com/repos/huggingface/transformers/issues/2927/events
https://github.com/huggingface/transformers/issues/2927
568,225,778
MDU6SXNzdWU1NjgyMjU3Nzg=
2,927
What does ## mean in the bert vocab?
{ "login": "NapsterLong", "id": 17425788, "node_id": "MDQ6VXNlcjE3NDI1Nzg4", "avatar_url": "https://avatars.githubusercontent.com/u/17425788?v=4", "gravatar_id": "", "url": "https://api.github.com/users/NapsterLong", "html_url": "https://github.com/NapsterLong", "followers_url": "https://api.github.com/...
[ { "id": 1834056635, "node_id": "MDU6TGFiZWwxODM0MDU2NjM1", "url": "https://api.github.com/repos/huggingface/transformers/labels/Core:%20Tokenization", "name": "Core: Tokenization", "color": "FF4446", "default": false, "description": "Internals of the library; Tokenization." } ]
closed
false
null
[]
[ "This question is better suited for [Stack Overflow](https://stackoverflow.com/). Please ask similar questions there in the future.\r\n\r\nIt indicates that the token is a subword unit, i.e. part of a larger word. For instance, the word \"potatoes\" might be tokenised as \"po, ##ta, ##toes\". If you want to learn m...
1,582
1,582
1,582
NONE
null
What does ## mean in the bert vocab? some words are starts with ##, such as ##a ##m ##er ##h ,I don't quite understand。
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2927/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/2927/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2926
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2926/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2926/comments
https://api.github.com/repos/huggingface/transformers/issues/2926/events
https://github.com/huggingface/transformers/issues/2926
568,169,280
MDU6SXNzdWU1NjgxNjkyODA=
2,926
Masked LM implementation details
{ "login": "luozhouyang", "id": 34032031, "node_id": "MDQ6VXNlcjM0MDMyMDMx", "avatar_url": "https://avatars.githubusercontent.com/u/34032031?v=4", "gravatar_id": "", "url": "https://api.github.com/users/luozhouyang", "html_url": "https://github.com/luozhouyang", "followers_url": "https://api.github.com/...
[ { "id": 1834054694, "node_id": "MDU6TGFiZWwxODM0MDU0Njk0", "url": "https://api.github.com/repos/huggingface/transformers/labels/TensorFlow", "name": "TensorFlow", "color": "FF6F00", "default": false, "description": "Anything TensorFlow" }, { "id": 1834056761, "node_id": "MDU6...
closed
false
null
[]
[ "The method from google-research/bert you're showing returns the loss. We don't return the loss with `TFBertForMaskedLM`, we return the output distribution over the vocabulary. You can then use this output distribution to compute the loss, with a cross entropy loss for example.", "I see, thanks." ]
1,582
1,583
1,583
NONE
null
I read the source code of `TFBertMLMHead`, it seems that, this layer just predict the whole sequence, rather than predict the `MASKED` tokens. `TFBertMLMHead` just do these things: * transform the `hidden state` from the last encoder layer * `predictions = tf.matmul(hidden_state, input_embedding_matrix)`, with s...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2926/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/2926/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2925
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2925/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2925/comments
https://api.github.com/repos/huggingface/transformers/issues/2925/events
https://github.com/huggingface/transformers/issues/2925
568,156,444
MDU6SXNzdWU1NjgxNTY0NDQ=
2,925
DistilRoberta Model fine tuning on Squad dataset
{ "login": "graviraja", "id": 7556119, "node_id": "MDQ6VXNlcjc1NTYxMTk=", "avatar_url": "https://avatars.githubusercontent.com/u/7556119?v=4", "gravatar_id": "", "url": "https://api.github.com/users/graviraja", "html_url": "https://github.com/graviraja", "followers_url": "https://api.github.com/users/gr...
[ { "id": 1834053813, "node_id": "MDU6TGFiZWwxODM0MDUzODEz", "url": "https://api.github.com/repos/huggingface/transformers/labels/PyTorch", "name": "PyTorch", "color": "a12bef", "default": false, "description": "Anything PyTorch" }, { "id": 1838876023, "node_id": "MDU6TGFiZWwxO...
closed
false
null
[]
[ "Hello @graviraja \r\nYou don't need to remove the `token_type_ids` for RoBERTa models. There is one matrix of token type and it has only one type (a matrix of 0).\r\nYou can remove the `do_lower_case` flag for RoBERTa models. The vocabulary is case sensitive.\r\nHave you tried WITHOUT GPU? (`CUDA_VISIBLE_DEVICES=\...
1,582
1,588
1,588
NONE
null
# 🐛 Bug I am trying to train the **distilroberta-base** model on **SQuAD** dataset using distillation code. I have trained the Roberta model on SQuAD 2.0 dataset, so that I can use it as a teacher model. I am using the **distilroberta-base** model as student. ## Information Model I am using : Roberta Langu...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2925/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/2925/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2924
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2924/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2924/comments
https://api.github.com/repos/huggingface/transformers/issues/2924/events
https://github.com/huggingface/transformers/pull/2924
568,151,234
MDExOlB1bGxSZXF1ZXN0Mzc3NjMzMDkx
2,924
Update modeling_tf_utils.py
{ "login": "BramVanroy", "id": 2779410, "node_id": "MDQ6VXNlcjI3Nzk0MTA=", "avatar_url": "https://avatars.githubusercontent.com/u/2779410?v=4", "gravatar_id": "", "url": "https://api.github.com/users/BramVanroy", "html_url": "https://github.com/BramVanroy", "followers_url": "https://api.github.com/users...
[ { "id": 1834067346, "node_id": "MDU6TGFiZWwxODM0MDY3MzQ2", "url": "https://api.github.com/repos/huggingface/transformers/labels/Documentation", "name": "Documentation", "color": "77cc3b", "default": false, "description": "" } ]
closed
false
null
[]
[ "This is great, thanks @BramVanroy !!" ]
1,582
1,582
1,582
COLLABORATOR
null
Tensorflow does not use .eval() vs .train(). closes https://github.com/huggingface/transformers/issues/2906
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2924/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/2924/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2924", "html_url": "https://github.com/huggingface/transformers/pull/2924", "diff_url": "https://github.com/huggingface/transformers/pull/2924.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2924.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2923
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2923/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2923/comments
https://api.github.com/repos/huggingface/transformers/issues/2923/events
https://github.com/huggingface/transformers/issues/2923
568,139,724
MDU6SXNzdWU1NjgxMzk3MjQ=
2,923
Loading tensorflow first and then loading transformers errors
{ "login": "emillykkejensen", "id": 8842355, "node_id": "MDQ6VXNlcjg4NDIzNTU=", "avatar_url": "https://avatars.githubusercontent.com/u/8842355?v=4", "gravatar_id": "", "url": "https://api.github.com/users/emillykkejensen", "html_url": "https://github.com/emillykkejensen", "followers_url": "https://api.g...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null }, { "id": 1834054694, "node_id": "MDU6TGFiZWwxODM0MDU0Njk0", ...
closed
false
null
[]
[ "The import error seems to originate here:\r\n\r\n> tensorflow/stream_executor/cuda/cuda_blas.cc:238] failed to create cublas handle: CUBLAS_STATUS_NOT_INITIALIZED\r\n\r\nCan you try the answers provided here:\r\n\r\nhttps://stackoverflow.com/questions/38303974/tensorflow-running-error-with-cublas\r\n\r\nBy the way...
1,582
1,588
1,588
NONE
null
# 🐛 Bug ## Information Model I am using: Bert Language I am using the model on (English, Chinese ...): The problem arises when using: * [ ] the official example scripts: (give details below) * [X] my own modified scripts: (give details below) The tasks I am working on is: * [ ] an official GLUE/SQUaD...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2923/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/2923/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2922
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2922/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2922/comments
https://api.github.com/repos/huggingface/transformers/issues/2922/events
https://github.com/huggingface/transformers/pull/2922
568,138,533
MDExOlB1bGxSZXF1ZXN0Mzc3NjIyOTY2
2,922
Tokenizer fast warnings
{ "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://api.github.com/users...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2922?src=pr&el=h1) Report\n> Merging [#2922](https://codecov.io/gh/huggingface/transformers/pull/2922?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/d490b5d5003654f104af3abd0556e598335b5650?src=pr&el=desc) will **d...
1,582
1,582
1,582
MEMBER
null
- Warning abut padding should not trigger so often now, especially when no padding strategy is provided by the user. - RoberTa warning is now in RoberTaTokenizer, not GPT2 base class.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2922/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/2922/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2922", "html_url": "https://github.com/huggingface/transformers/pull/2922", "diff_url": "https://github.com/huggingface/transformers/pull/2922.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2922.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2921
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2921/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2921/comments
https://api.github.com/repos/huggingface/transformers/issues/2921/events
https://github.com/huggingface/transformers/pull/2921
568,123,135
MDExOlB1bGxSZXF1ZXN0Mzc3NjEwMzMw
2,921
Expose all constructor parameters for BertTokenizerFast
{ "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://api.github.com/users...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2921?src=pr&el=h1) Report\n> Merging [#2921](https://codecov.io/gh/huggingface/transformers/pull/2921?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/d490b5d5003654f104af3abd0556e598335b5650?src=pr&el=desc) will **n...
1,582
1,582
1,582
MEMBER
null
Signed-off-by: Morgan Funtowicz <morgan@huggingface.co>
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2921/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/2921/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2921", "html_url": "https://github.com/huggingface/transformers/pull/2921", "diff_url": "https://github.com/huggingface/transformers/pull/2921.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2921.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2920
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2920/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2920/comments
https://api.github.com/repos/huggingface/transformers/issues/2920/events
https://github.com/huggingface/transformers/issues/2920
568,040,921
MDU6SXNzdWU1NjgwNDA5MjE=
2,920
Error arises when using pipeline with community model
{ "login": "ankandrew", "id": 61120139, "node_id": "MDQ6VXNlcjYxMTIwMTM5", "avatar_url": "https://avatars.githubusercontent.com/u/61120139?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ankandrew", "html_url": "https://github.com/ankandrew", "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 }, { "id": 1834056635, "node_id": "MDU6TGFiZWwxODM0MDU2NjM1", ...
closed
false
{ "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://api.github.com/users...
[ { "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://...
[ "Hi @ankandrew, \r\n\r\nThanks for reporting the issue. Effectively, the QA pipeline is not compatible with fast tokenizers for technical reasons (and I'm currently working on a fix for this).\r\n\r\nAs a workaround for now, you can disable fast tokenizers when allocating the pipeline:\r\n\r\n```python\r\nnlp = pip...
1,582
1,588
1,588
NONE
null
# 🐛 Bug ## Information Model I am using is: `mrm8488/distill-bert-base-spanish-wwm-cased-finetuned-spa-squad2-es` Language I am using the model on: Spanish The problem arises when using: * [ ] the official example scripts: * [x] my own modified scripts: The tasks I am working on is: * [ ] an official...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2920/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/2920/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2919
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2919/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2919/comments
https://api.github.com/repos/huggingface/transformers/issues/2919/events
https://github.com/huggingface/transformers/issues/2919
567,947,425
MDU6SXNzdWU1Njc5NDc0MjU=
2,919
Fast tokenizers ignore `add_special_tokens=False`
{ "login": "bryant1410", "id": 3905501, "node_id": "MDQ6VXNlcjM5MDU1MDE=", "avatar_url": "https://avatars.githubusercontent.com/u/3905501?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bryant1410", "html_url": "https://github.com/bryant1410", "followers_url": "https://api.github.com/users...
[ { "id": 1834056635, "node_id": "MDU6TGFiZWwxODM0MDU2NjM1", "url": "https://api.github.com/repos/huggingface/transformers/labels/Core:%20Tokenization", "name": "Core: Tokenization", "color": "FF4446", "default": false, "description": "Internals of the library; Tokenization." } ]
closed
false
null
[]
[ "This works now (but I can't close the issue).", "I see now that it works with some changes:\r\n\r\n```python\r\nfrom transformers import AutoTokenizer\r\n\r\npretrained_model_name = \"bert-base-cased\"\r\n\r\nfast_tokenizer = AutoTokenizer.from_pretrained(pretrained_model_name,\r\n add_special_tokens=Fals...
1,582
1,587
1,587
CONTRIBUTOR
null
# 🐛 Bug ## Information Model I am using (Bert, XLNet ...): Bert Language I am using the model on (English, Chinese ...): English The problem arises when using: * [ ] the official example scripts: (give details below) * [x] my own modified scripts: (give details below) The tasks I am working on is: * ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2919/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/2919/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2918
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2918/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2918/comments
https://api.github.com/repos/huggingface/transformers/issues/2918/events
https://github.com/huggingface/transformers/pull/2918
567,931,063
MDExOlB1bGxSZXF1ZXN0Mzc3NDU0NTM4
2,918
Fast Tokenizers save pretrained should return the list of generated file paths.
{ "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://api.github.com/users...
[]
closed
false
{ "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://api.github.com/users...
[ { "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://...
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2918?src=pr&el=h1) Report\n> Merging [#2918](https://codecov.io/gh/huggingface/transformers/pull/2918?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/2708b44ee9c151a2cdb84620d295c997af6fa7f0?src=pr&el=desc) will **i...
1,582
1,582
1,582
MEMBER
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2918/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/2918/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2918", "html_url": "https://github.com/huggingface/transformers/pull/2918", "diff_url": "https://github.com/huggingface/transformers/pull/2918.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2918.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/2917
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2917/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2917/comments
https://api.github.com/repos/huggingface/transformers/issues/2917/events
https://github.com/huggingface/transformers/issues/2917
567,929,157
MDU6SXNzdWU1Njc5MjkxNTc=
2,917
Breaking-change behavior in BERT tokenizer when stripping accents
{ "login": "bryant1410", "id": 3905501, "node_id": "MDQ6VXNlcjM5MDU1MDE=", "avatar_url": "https://avatars.githubusercontent.com/u/3905501?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bryant1410", "html_url": "https://github.com/bryant1410", "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 }, { "id": 1834056635, "node_id": "MDU6TGFiZWwxODM0MDU2NjM1", ...
closed
false
{ "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://api.github.com/users...
[ { "login": "mfuntowicz", "id": 2241520, "node_id": "MDQ6VXNlcjIyNDE1MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/2241520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mfuntowicz", "html_url": "https://github.com/mfuntowicz", "followers_url": "https://...
[ "Yeah, I found the same problem in my code. The \"encode\" won't add padding even \"pad_to_max_length = True\".", "HI @bryant1410, \r\n\r\nThanks for reporting the issue. The parameter `strip_accents` was indeed enabled on `BertTokenizerFast`. \r\n\r\nI've a PR exposing the missing parameters https://github.com/h...
1,582
1,594
1,593
CONTRIBUTOR
null
# 🐛 Bug ## Information Model I am using (Bert, XLNet ...): Bert (could happen with other ones, don't know) Language I am using the model on (English, Chinese ...): English The problem arises when using: * [ ] the official example scripts: (give details below) * [x] my own modified scripts: (give details ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2917/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/2917/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2916
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2916/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2916/comments
https://api.github.com/repos/huggingface/transformers/issues/2916/events
https://github.com/huggingface/transformers/issues/2916
567,910,296
MDU6SXNzdWU1Njc5MTAyOTY=
2,916
How to train a LM with a custom Dataset?
{ "login": "ohmeow", "id": 14000, "node_id": "MDQ6VXNlcjE0MDAw", "avatar_url": "https://avatars.githubusercontent.com/u/14000?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ohmeow", "html_url": "https://github.com/ohmeow", "followers_url": "https://api.github.com/users/ohmeow/followers", ...
[ { "id": 1834053007, "node_id": "MDU6TGFiZWwxODM0MDUzMDA3", "url": "https://api.github.com/repos/huggingface/transformers/labels/Ex:%20LM%20(Pretraining)", "name": "Ex: LM (Pretraining)", "color": "76FFAF", "default": false, "description": "Related to language modeling pre-training" } ]
closed
false
null
[]
[ "This is in process of being addressed at huggingface/blog#3\r\n\r\n(You'll need to tweak the code of `run_language_modeling.py`, this is not – yet – a code-free tutorial) " ]
1,582
1,582
1,582
CONTRIBUTOR
null
# ❓ Questions & Help I'm attempting to build a LM following the tutorial here (https://huggingface.co/blog/how-to-train). Unfortunately, it is incomplete. It shows how to create a custom `Dataset` but not how to execute `run_language_modeling.py` so that it is used. **Any chance we can get the full script f...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2916/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/2916/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2915
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2915/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2915/comments
https://api.github.com/repos/huggingface/transformers/issues/2915/events
https://github.com/huggingface/transformers/issues/2915
567,887,664
MDU6SXNzdWU1Njc4ODc2NjQ=
2,915
How to train with variable number of candidates for multiple choice selection?
{ "login": "g-karthik", "id": 3851993, "node_id": "MDQ6VXNlcjM4NTE5OTM=", "avatar_url": "https://avatars.githubusercontent.com/u/3851993?v=4", "gravatar_id": "", "url": "https://api.github.com/users/g-karthik", "html_url": "https://github.com/g-karthik", "followers_url": "https://api.github.com/users/g-...
[ { "id": 1108649053, "node_id": "MDU6TGFiZWwxMTA4NjQ5MDUz", "url": "https://api.github.com/repos/huggingface/transformers/labels/Help%20wanted", "name": "Help wanted", "color": "008672", "default": false, "description": "Extra attention is needed, help appreciated" }, { "id": 1314...
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,582
1,588
1,588
NONE
null
# ❓ Questions ## Details I am trying to train `GPT2DoubleHeadsModel` for the tasks of generation and multiple-choice selection. My dataset has examples with variable number of candidates - some examples have 10 candidates, some have 15, etc. I wanted to be able to create a single `TensorDataset` object for my da...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2915/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/2915/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/2914
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2914/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2914/comments
https://api.github.com/repos/huggingface/transformers/issues/2914/events
https://github.com/huggingface/transformers/pull/2914
567,869,331
MDExOlB1bGxSZXF1ZXN0Mzc3NDE0Mzk1
2,914
Add syntax highlighting to the BibTeX in README
{ "login": "bryant1410", "id": 3905501, "node_id": "MDQ6VXNlcjM5MDU1MDE=", "avatar_url": "https://avatars.githubusercontent.com/u/3905501?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bryant1410", "html_url": "https://github.com/bryant1410", "followers_url": "https://api.github.com/users...
[]
closed
false
null
[]
[ "# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/2914?src=pr&el=h1) Report\n> Merging [#2914](https://codecov.io/gh/huggingface/transformers/pull/2914?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/e67676424191e5935362e5fe7e04b5c317d706a9?src=pr&el=desc) will **n...
1,582
1,582
1,582
CONTRIBUTOR
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2914/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/2914/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2914", "html_url": "https://github.com/huggingface/transformers/pull/2914", "diff_url": "https://github.com/huggingface/transformers/pull/2914.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2914.patch", "merged_at": 1...