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/9229
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9229/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9229/comments
https://api.github.com/repos/huggingface/transformers/issues/9229/events
https://github.com/huggingface/transformers/issues/9229
771,927,000
MDU6SXNzdWU3NzE5MjcwMDA=
9,229
Generate function does not work with GPU
{ "login": "contribcode", "id": 24355946, "node_id": "MDQ6VXNlcjI0MzU1OTQ2", "avatar_url": "https://avatars.githubusercontent.com/u/24355946?v=4", "gravatar_id": "", "url": "https://api.github.com/users/contribcode", "html_url": "https://github.com/contribcode", "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
[]
[ "Hey @contribcode,\r\n\r\ncould you please provide a complete code snippet that would allow us to reproduce the error? Thanks!", "@patrickvonplaten thank you for your response. \r\n\r\n```python\r\nimport torch\r\ndevice = torch.device('cuda' if torch.cuda.is_available() else 'cpu')\r\nfrom transformers import GP...
1,608
1,622
1,614
NONE
null
Hello, I want to use generate function with single GPU. Specifically, I fine tuned a GPT-2 model (on GPU) and subsequently, I want to generate text with it. When I run this ``` input_ids.to(device) sample_output = model.generate( input_ids, do_sample=True, max_length=150, top_k=50, ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9229/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/9229/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9228
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9228/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9228/comments
https://api.github.com/repos/huggingface/transformers/issues/9228/events
https://github.com/huggingface/transformers/issues/9228
771,882,102
MDU6SXNzdWU3NzE4ODIxMDI=
9,228
Differences between original implementation and HuggingFace implementation
{ "login": "osabnis", "id": 38884346, "node_id": "MDQ6VXNlcjM4ODg0MzQ2", "avatar_url": "https://avatars.githubusercontent.com/u/38884346?v=4", "gravatar_id": "", "url": "https://api.github.com/users/osabnis", "html_url": "https://github.com/osabnis", "followers_url": "https://api.github.com/users/osabni...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null } ]
closed
false
null
[]
[ "Hi there,\r\n\r\nI made some [integration tests](https://github.com/NielsRogge/transformers/blob/e5431da34ab2d03d6114303f18fd70192c880913/tests/test_modeling_layoutlm.py#L318) for both the base model (`LayoutLM`) as well as the model with a token classification head on top (`LayoutLMForTokenClassification`). These...
1,608
1,614
1,614
NONE
null
## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: **4.0.0** - Platform: **Windows** - Python version: **3.6.5** - PyTorch version (GPU?): **1.6.0+cu101**...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9228/reactions", "total_count": 2, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/huggingface/transformers/issues/9228/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9227
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9227/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9227/comments
https://api.github.com/repos/huggingface/transformers/issues/9227/events
https://github.com/huggingface/transformers/issues/9227
771,880,443
MDU6SXNzdWU3NzE4ODA0NDM=
9,227
Can't lazy initialize BART model on GPU
{ "login": "jethrokuan", "id": 1667473, "node_id": "MDQ6VXNlcjE2Njc0NzM=", "avatar_url": "https://avatars.githubusercontent.com/u/1667473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jethrokuan", "html_url": "https://github.com/jethrokuan", "followers_url": "https://api.github.com/users...
[]
closed
false
null
[]
[ "@jethrokuan - Please try this on the transformers 4.1.0; issue looks to be fixed in this version", "Actually it looks like the problem is exasperated in newer HF. In a devbox with no CUDA:\r\n\r\n```\r\nPython 3.7.9 (default, Nov 18 2020, 11:18:33)\r\n[GCC 6.3.0 20170516] on linux\r\nType \"help\", \"copyright\"...
1,608
1,608
1,608
CONTRIBUTOR
null
## Environment info - `transformers` version: 3.5.1 - Platform: Linux-4.14.81.bm.15-amd64-x86_64-with-debian-9.11 - Python version: 3.7.9 - PyTorch version (GPU?): 1.7.0 (True) - Tensorflow version (GPU?): not installed (NA) - Using GPU in script?: Yes - Using distributed or parallel set-up in script?: Yes ##...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9227/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/9227/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9226
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9226/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9226/comments
https://api.github.com/repos/huggingface/transformers/issues/9226/events
https://github.com/huggingface/transformers/issues/9226
771,755,483
MDU6SXNzdWU3NzE3NTU0ODM=
9,226
n_gpus is set to 1 in case of distributed training on multiple gpus, how to access to the correct n_gpus
{ "login": "rabeehkarimimahabadi", "id": 73364383, "node_id": "MDQ6VXNlcjczMzY0Mzgz", "avatar_url": "https://avatars.githubusercontent.com/u/73364383?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rabeehkarimimahabadi", "html_url": "https://github.com/rabeehkarimimahabadi", "followers_url...
[]
closed
false
null
[]
[ "Please do not spam the issues: this is a duplicate of #9225. You can edit the title and the description, there is no need to send a new notification to everyone watching the repo.\r\nAlso, please use the [forum](https://discuss.huggingface.co/) for questions like this, we keep the issues for bugs and features requ...
1,608
1,608
1,608
NONE
null
Hi I am using transformer 4.1.1 on multiple gpus with distributed launch script below, the n_gpu set in this case is 1 instead of actual n_gpus, could you tell me how I can access to the total number of ranks calling the launcher with? Is there any variable in huggingface library which could show the number of gpus th...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9226/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/9226/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9225
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9225/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9225/comments
https://api.github.com/repos/huggingface/transformers/issues/9225/events
https://github.com/huggingface/transformers/issues/9225
771,755,274
MDU6SXNzdWU3NzE3NTUyNzQ=
9,225
n_gpu=1 in case of using distributed pytorch launcher
{ "login": "rabeehkarimimahabadi", "id": 73364383, "node_id": "MDQ6VXNlcjczMzY0Mzgz", "avatar_url": "https://avatars.githubusercontent.com/u/73364383?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rabeehkarimimahabadi", "html_url": "https://github.com/rabeehkarimimahabadi", "followers_url...
[]
closed
false
null
[]
[ "Duplicate of #9226" ]
1,608
1,608
1,608
NONE
null
Hi I am using transformer 4.1.1 on multiple gpus with distributed launch script below, the n_gpu set in this case is 1 instead of actual n_gpus, could you tell me how I can access to the total number of ranks calling the launcher with? Is there any variable in huggingface library which could show the number of gpus th...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9225/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/9225/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9224
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9224/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9224/comments
https://api.github.com/repos/huggingface/transformers/issues/9224/events
https://github.com/huggingface/transformers/issues/9224
771,698,366
MDU6SXNzdWU3NzE2OTgzNjY=
9,224
allowing the user to set booleans with HfArgumentParser
{ "login": "rabeehkarimimahabadi", "id": 73364383, "node_id": "MDQ6VXNlcjczMzY0Mzgz", "avatar_url": "https://avatars.githubusercontent.com/u/73364383?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rabeehkarimimahabadi", "html_url": "https://github.com/rabeehkarimimahabadi", "followers_url...
[]
closed
false
null
[]
[ "Hey @rabeehkarimimahabadi, \r\n\r\nOne should not call the `HfArgumentParser` with \r\n\r\n`--overwrite_output_dir True`, but just with `--overwrite_output_dir` to set the bool from `False` to `True`. If one wants to leave it as `False`, the arg should just not be passed. If the default field of this variable is a...
1,608
1,608
1,608
NONE
null
Hi this is more general issue, if the user defines some booleans as arguments like --flag false/true once calling the finetune_trainer.py one would get following error as below with HfArgumentParser, it would be great to allow users set explicit values for booleans too, currently this is only possible with config file...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9224/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/9224/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9223
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9223/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9223/comments
https://api.github.com/repos/huggingface/transformers/issues/9223/events
https://github.com/huggingface/transformers/issues/9223
771,689,498
MDU6SXNzdWU3NzE2ODk0OTg=
9,223
passing config file to train with on multiple gpus
{ "login": "rabeehkarimimahabadi", "id": 73364383, "node_id": "MDQ6VXNlcjczMzY0Mzgz", "avatar_url": "https://avatars.githubusercontent.com/u/73364383?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rabeehkarimimahabadi", "html_url": "https://github.com/rabeehkarimimahabadi", "followers_url...
[]
closed
false
null
[]
[ "this does not work since finetuner_trainer.py gets config as only one argument and local_rank is also passed with this command, is there an easy fix for this without parsing arguments from config? thanks ", "I solved it with updating finetune_trainer accepting --local_rank + config file" ]
1,608
1,608
1,608
NONE
null
## Environment info - transformers 3.5.1 - Python version: 3.7 - PyTorch version (GPU?): 1.6 - Tensorflow version (GPU?): - - Using GPU in script?: yes - Using distributed or parallel set-up in script?: yes ### Who can help Trainer: @sgugger T5: @patrickvonplaten FSMT: @stas00 examples/seq2seq: @pa...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9223/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/9223/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9222
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9222/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9222/comments
https://api.github.com/repos/huggingface/transformers/issues/9222/events
https://github.com/huggingface/transformers/issues/9222
771,512,991
MDU6SXNzdWU3NzE1MTI5OTE=
9,222
Does provide any scripts about how to convert mpnet pretrain model to transformers pretrain one?
{ "login": "RyanHuangNLP", "id": 49582480, "node_id": "MDQ6VXNlcjQ5NTgyNDgw", "avatar_url": "https://avatars.githubusercontent.com/u/49582480?v=4", "gravatar_id": "", "url": "https://api.github.com/users/RyanHuangNLP", "html_url": "https://github.com/RyanHuangNLP", "followers_url": "https://api.github.c...
[]
closed
false
null
[]
[ "Maybe the author of MPNet can help here, @StillKeepTry ", "@patrickvonplaten problem is fix" ]
1,608
1,608
1,608
NONE
null
# 🚀 Feature request <!-- A clear and concise description of the feature proposal. Please provide a link to the paper and code in case they exist. --> ## Motivation I want to convert my pretrain chinese mpnet with the fairseq format to transformers format <!-- Please outline the motivation for the pro...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9222/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/9222/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9221
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9221/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9221/comments
https://api.github.com/repos/huggingface/transformers/issues/9221/events
https://github.com/huggingface/transformers/issues/9221
771,511,217
MDU6SXNzdWU3NzE1MTEyMTc=
9,221
TAPAS: IndexError: index out of range in self
{ "login": "xiaopi-ouo", "id": 58041436, "node_id": "MDQ6VXNlcjU4MDQxNDM2", "avatar_url": "https://avatars.githubusercontent.com/u/58041436?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xiaopi-ouo", "html_url": "https://github.com/xiaopi-ouo", "followers_url": "https://api.github.com/use...
[]
closed
false
null
[]
[ "cc @NielsRogge ", "It doesn't work because `type_vocab_sizes=[3, 256, 256, 2, 256, 256, 10]` which means the default max size of a table is 256*256. However, the tokenizer doesn't check it. \r\nStrictly speaking, it's not a bug but I think in that kind of tasks, many tables' size can exceed the default value.\r\...
1,608
1,701
1,610
NONE
null
## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: 4.1.0.dev0 - Platform: Linux-4.15.0-122-generic-x86_64-with-debian-buster-sid - Python version: 3.7.9 -...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9221/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/9221/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9220
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9220/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9220/comments
https://api.github.com/repos/huggingface/transformers/issues/9220/events
https://github.com/huggingface/transformers/pull/9220
771,509,767
MDExOlB1bGxSZXF1ZXN0NTQzMDE0Nzk1
9,220
Proposed Fix : [RagSequenceForGeneration] generate "without" input_ids
{ "login": "ratthachat", "id": 56621342, "node_id": "MDQ6VXNlcjU2NjIxMzQy", "avatar_url": "https://avatars.githubusercontent.com/u/56621342?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ratthachat", "html_url": "https://github.com/ratthachat", "followers_url": "https://api.github.com/use...
[]
closed
false
null
[]
[ "@ratthachat - thanks a lot for your PR! I agree that option 2) is the better option and think the general approach is exactly right. I left a couple of statements making that improve readability a bit IMO. Also could we add one test here: \r\nhttps://github.com/huggingface/transformers/blob/f38c4ad302dd34faef1137b...
1,608
1,608
1,608
CONTRIBUTOR
null
# What does this PR do? Proposal of option (2) mentioned in the issue `RagSequenceForGeneration.generate()` without `input_ids` https://github.com/huggingface/transformers/issues/9184 ### Re-paste here: In `RagSequenceForGeneration` method `generate()` function, the doc said that both `input_ids` and `context_in...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9220/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/9220/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9220", "html_url": "https://github.com/huggingface/transformers/pull/9220", "diff_url": "https://github.com/huggingface/transformers/pull/9220.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9220.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9219
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9219/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9219/comments
https://api.github.com/repos/huggingface/transformers/issues/9219/events
https://github.com/huggingface/transformers/pull/9219
771,476,408
MDExOlB1bGxSZXF1ZXN0NTQyOTkyNjM0
9,219
Fix beam search generation for GPT2 and T5 on model parallelism
{ "login": "TobiasNorlund", "id": 2678217, "node_id": "MDQ6VXNlcjI2NzgyMTc=", "avatar_url": "https://avatars.githubusercontent.com/u/2678217?v=4", "gravatar_id": "", "url": "https://api.github.com/users/TobiasNorlund", "html_url": "https://github.com/TobiasNorlund", "followers_url": "https://api.github....
[]
closed
false
null
[]
[ "@sgugger can you maybe review as well and merge if ok?" ]
1,608
1,608
1,608
CONTRIBUTOR
null
# What does this PR do? This PR fixes beam search generation crash when the model layers are distributed on several devices (model parallelism). I have also added a test which showcase the bug on master and pass with the provided fix. Fixes issue #9200 This is my first contribution to Transformers, so please let...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9219/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/9219/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9219", "html_url": "https://github.com/huggingface/transformers/pull/9219", "diff_url": "https://github.com/huggingface/transformers/pull/9219.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9219.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9218
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9218/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9218/comments
https://api.github.com/repos/huggingface/transformers/issues/9218/events
https://github.com/huggingface/transformers/issues/9218
771,462,949
MDU6SXNzdWU3NzE0NjI5NDk=
9,218
run_clm.py AttributeError: 'NoneType' object has no attribute 'keys'
{ "login": "mukhtar-algezoli", "id": 38084259, "node_id": "MDQ6VXNlcjM4MDg0MjU5", "avatar_url": "https://avatars.githubusercontent.com/u/38084259?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mukhtar-algezoli", "html_url": "https://github.com/mukhtar-algezoli", "followers_url": "https://...
[]
closed
false
null
[]
[ "Hey @mukhtar-algezoli,\r\n\r\nIt seems like you are using tensorflow, but the script `run_clm.py` only works for PyTorch -> I'm afraid you have to use PyTorch in order to use `run_clm.py`.", "@patrickvonplaten thank you.", "hi @patrickvonplaten ,\r\nif i want use tensorflow to pretrain bert model with transfor...
1,608
1,632
1,608
NONE
null
## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: 4.2.0dev0 - Platform: Linux-4.19.0-13-cloud-amd64-x86_64-with-debian-10.7 - Python version: 3.7.8 - PyT...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9218/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/9218/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9217
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9217/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9217/comments
https://api.github.com/repos/huggingface/transformers/issues/9217/events
https://github.com/huggingface/transformers/pull/9217
771,433,755
MDExOlB1bGxSZXF1ZXN0NTQyOTYzOTU2
9,217
Fix documentation links always pointing to master.
{ "login": "sugeeth14", "id": 22686557, "node_id": "MDQ6VXNlcjIyNjg2NTU3", "avatar_url": "https://avatars.githubusercontent.com/u/22686557?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sugeeth14", "html_url": "https://github.com/sugeeth14", "followers_url": "https://api.github.com/users/...
[]
closed
false
null
[]
[ "Thanks for merging @LysandreJik but I want to know why the errors occurred when I ran `make style ` as I see in https://github.com/huggingface/transformers/pull/9217#discussion_r548898170" ]
1,608
1,609
1,609
CONTRIBUTOR
null
# What does this PR do? This PR fixes documentation issue. The issue is that hyperlinks pointing to code file in the docs always point to the master. Reference issue : https://github.com/huggingface/transformers/issues/7988 I found [extlinks](https://www.sphinx-doc.org/en/master/usage/extensions/extlinks.html) m...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9217/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/9217/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9217", "html_url": "https://github.com/huggingface/transformers/pull/9217", "diff_url": "https://github.com/huggingface/transformers/pull/9217.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9217.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9216
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9216/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9216/comments
https://api.github.com/repos/huggingface/transformers/issues/9216/events
https://github.com/huggingface/transformers/issues/9216
771,426,566
MDU6SXNzdWU3NzE0MjY1NjY=
9,216
checkpoint callbacks
{ "login": "rabeehk", "id": 6278280, "node_id": "MDQ6VXNlcjYyNzgyODA=", "avatar_url": "https://avatars.githubusercontent.com/u/6278280?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rabeehk", "html_url": "https://github.com/rabeehk", "followers_url": "https://api.github.com/users/rabeehk/...
[]
closed
false
null
[]
[ "In particular I need to define a callback with on_save function, for this I need to be able to acces \"is_world_process_zero\" and I am not sure how to do it. If I want to pass trainer to callback, how can I make sure this is passed? thanks", "solved with understanding is_world_process_zero is accessible via st...
1,608
1,608
1,608
NONE
null
Hi I need to save more things during checkpoint and I am using finetune_trainer.py not the pytorch lightening one, could you provide me with example on how I can modify the save part of the checkpoints? thanks
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9216/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/9216/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9215
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9215/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9215/comments
https://api.github.com/repos/huggingface/transformers/issues/9215/events
https://github.com/huggingface/transformers/issues/9215
771,415,258
MDU6SXNzdWU3NzE0MTUyNTg=
9,215
File "/opt/conda/envs/updated/lib/python3.7/site-packages/fairscale/nn/data_parallel/sharded_ddp.py", line 280, in _setup_backward_hooks assert p_tmp.grad_fn is not None
{ "login": "rabeehk", "id": 6278280, "node_id": "MDQ6VXNlcjYyNzgyODA=", "avatar_url": "https://avatars.githubusercontent.com/u/6278280?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rabeehk", "html_url": "https://github.com/rabeehk", "followers_url": "https://api.github.com/users/rabeehk/...
[]
closed
false
null
[]
[ "As I tried to explain earlier it's not ready yet for general consumption.\r\n\r\nIf you want it sooner see: https://github.com/huggingface/transformers/issues/9156#issuecomment-748501582" ]
1,608
1,608
1,608
NONE
null
Hi @stas00 @sgugger I am testing last version of finetune_trainer on multiple gpus, with this command `export BS=4; CUDA_VISIBLE_DEVICES=0,1 USE_TF=0 python -m torch.distributed.launch --nproc_per_node=2 --master_port=9910 finetune_trainer.py --model_name_or_path t5-small --output_dir output_dir --adam_eps 1e...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9215/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/9215/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9214
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9214/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9214/comments
https://api.github.com/repos/huggingface/transformers/issues/9214/events
https://github.com/huggingface/transformers/issues/9214
771,390,621
MDU6SXNzdWU3NzEzOTA2MjE=
9,214
Save underlying BertModel only
{ "login": "pugantsov", "id": 16597333, "node_id": "MDQ6VXNlcjE2NTk3MzMz", "avatar_url": "https://avatars.githubusercontent.com/u/16597333?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pugantsov", "html_url": "https://github.com/pugantsov", "followers_url": "https://api.github.com/users/...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null } ]
closed
false
null
[]
[ "If your bert model is an instance of `BertModel` then you should be able to save it using `self.your_model.bert.save_pretrained(path)` and load using `.from_pretrained`", "This issue has been automatically marked as stale and been closed because it has not had recent activity. Thank you for your contributions.\n...
1,608
1,614
1,614
NONE
null
I currently have a custom model on top of a pretrained BERT Model, which is effectively just dropout and a linear layer on top for classification. I want to be able to train this classifier, updating the underlying weights, but then to save the `BERTModel` underneath (w/o linear classification layer) so that I can load...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9214/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/9214/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9213
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9213/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9213/comments
https://api.github.com/repos/huggingface/transformers/issues/9213/events
https://github.com/huggingface/transformers/issues/9213
771,387,662
MDU6SXNzdWU3NzEzODc2NjI=
9,213
bert-mlm-converting from tensorflow to pytorch
{ "login": "ahmedkotb98", "id": 42472093, "node_id": "MDQ6VXNlcjQyNDcyMDkz", "avatar_url": "https://avatars.githubusercontent.com/u/42472093?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ahmedkotb98", "html_url": "https://github.com/ahmedkotb98", "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
[]
[ "hello, i convert bert model from tensorflow to pytorch to fine tune it and in train function specially in loss , pred_masks = model(inputs, labels) i got this error not enough values to unpack (expected 2, got 1) why model return one only it should return two one for loss and the second for pred_masks", "This is...
1,608
1,614
1,614
NONE
null
## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: - Platform: - Python version: - PyTorch version (GPU?): - Tensorflow version (GPU?): - Using GPU in s...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9213/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/9213/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9212
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9212/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9212/comments
https://api.github.com/repos/huggingface/transformers/issues/9212/events
https://github.com/huggingface/transformers/issues/9212
771,351,348
MDU6SXNzdWU3NzEzNTEzNDg=
9,212
LXMERT cross_modality_matching logits order in code vs. documentation
{ "login": "LetiP", "id": 16118202, "node_id": "MDQ6VXNlcjE2MTE4MjAy", "avatar_url": "https://avatars.githubusercontent.com/u/16118202?v=4", "gravatar_id": "", "url": "https://api.github.com/users/LetiP", "html_url": "https://github.com/LetiP", "followers_url": "https://api.github.com/users/LetiP/follow...
[ { "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 and been closed because it has not had recent activity. Thank you for your contributions.\n\nIf you think this still needs to be addressed please comment on this thread." ]
1,608
1,614
1,614
NONE
null
Issue #7266 evolved into an entirely different issue described below. # Possible documentation error Independently of considering #8333 or not, it is clear that the results of the cross-modality matching in LXMERT (for example in [this demo](https://colab.research.google.com/drive/18TyuMfZYlgQ_nXo-tr8LCnzUaoX0KS-h?...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9212/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/9212/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9211
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9211/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9211/comments
https://api.github.com/repos/huggingface/transformers/issues/9211/events
https://github.com/huggingface/transformers/pull/9211
771,325,824
MDExOlB1bGxSZXF1ZXN0NTQyODg5OTc4
9,211
[trainer] deepspeed integration
{ "login": "stas00", "id": 10676103, "node_id": "MDQ6VXNlcjEwNjc2MTAz", "avatar_url": "https://avatars.githubusercontent.com/u/10676103?v=4", "gravatar_id": "", "url": "https://api.github.com/users/stas00", "html_url": "https://github.com/stas00", "followers_url": "https://api.github.com/users/stas00/fo...
[ { "id": 2659267025, "node_id": "MDU6TGFiZWwyNjU5MjY3MDI1", "url": "https://api.github.com/repos/huggingface/transformers/labels/DeepSpeed", "name": "DeepSpeed", "color": "4D34F7", "default": false, "description": "" } ]
closed
false
null
[]
[ "Thanks @stas00 for putting this together! I think there might be a few things we can do on the deepspeed side to smooth a few pain points out. Most of us our out of office until the new year but will definitely be taking a close look at this soon and help where we can.", "Thank you, @jeffra! \r\n\r\nNew year sou...
1,608
1,610
1,610
CONTRIBUTOR
null
This PR adds experimental support for Deepspeed <https://github.com/microsoft/deepspeed>, whose main feature is ZeRO covered by the paper [ZeRO: Memory Optimizations Toward Training Trillion Parameter Models, by Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, Yuxiong He](https://arxiv.org/abs/1910.02054). Recentl...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9211/reactions", "total_count": 10, "+1": 1, "-1": 0, "laugh": 0, "hooray": 3, "confused": 0, "heart": 6, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/9211/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9211", "html_url": "https://github.com/huggingface/transformers/pull/9211", "diff_url": "https://github.com/huggingface/transformers/pull/9211.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9211.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9210
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9210/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9210/comments
https://api.github.com/repos/huggingface/transformers/issues/9210/events
https://github.com/huggingface/transformers/issues/9210
771,318,697
MDU6SXNzdWU3NzEzMTg2OTc=
9,210
MLFlow logger breaks training
{ "login": "david-waterworth", "id": 5028974, "node_id": "MDQ6VXNlcjUwMjg5NzQ=", "avatar_url": "https://avatars.githubusercontent.com/u/5028974?v=4", "gravatar_id": "", "url": "https://api.github.com/users/david-waterworth", "html_url": "https://github.com/david-waterworth", "followers_url": "https://ap...
[ { "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 and been closed because it has not had recent activity. Thank you for your contributions.\n\nIf you think this still needs to be addressed please comment on this thread." ]
1,608
1,614
1,614
NONE
null
I'm running into two issues when I try and train with mflow installed. The main one is transformers logs every single parameter and mlflow has restrictions on parameter size. So when I tried to train a `AutoModelForSequenceClassification` using the code below ``` num_labels=25 config = AutoConfig.from_pretraine...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9210/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/9210/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9209
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9209/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9209/comments
https://api.github.com/repos/huggingface/transformers/issues/9209/events
https://github.com/huggingface/transformers/issues/9209
771,314,862
MDU6SXNzdWU3NzEzMTQ4NjI=
9,209
Error while loading model file - .ckpt file :: Missing key(s) in state_dict
{ "login": "adithyaan-creator", "id": 54103522, "node_id": "MDQ6VXNlcjU0MTAzNTIy", "avatar_url": "https://avatars.githubusercontent.com/u/54103522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/adithyaan-creator", "html_url": "https://github.com/adithyaan-creator", "followers_url": "https...
[]
closed
false
null
[]
[ "Hi @adithyaan-creator \r\n\r\nSeems like you used `pytorch-lightning` for training, `pl` prefixes every `state_dict` key with `model.` so to load the `pl` checkpoint to hf format, remove the `model.` prefix from `state_dict` keys.\r\n\r\n```python3\r\ndef remove_prefix(text: str, prefix: str):\r\n if text.start...
1,608
1,616
1,608
NONE
null
@julien-c @patrickvonplaten @thomwolf transformers version == 4.0.0 I trained a T5 model for classification and I am trying to load the checkpoint model saved after 3 epochs. While trying to load the model, getting the below error. ![image](https://user-images.githubusercontent.com/54103522/102682082-a0281200-4...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9209/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/9209/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9208
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9208/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9208/comments
https://api.github.com/repos/huggingface/transformers/issues/9208/events
https://github.com/huggingface/transformers/pull/9208
771,312,144
MDExOlB1bGxSZXF1ZXN0NTQyODgwODE4
9,208
[docs] outline sharded ddp doc
{ "login": "stas00", "id": 10676103, "node_id": "MDQ6VXNlcjEwNjc2MTAz", "avatar_url": "https://avatars.githubusercontent.com/u/10676103?v=4", "gravatar_id": "", "url": "https://api.github.com/users/stas00", "html_url": "https://github.com/stas00", "followers_url": "https://api.github.com/users/stas00/fo...
[]
closed
false
null
[]
[]
1,608
1,609
1,609
CONTRIBUTOR
null
This PR provides an initial outline of HF Trainer integration starting with ZeRO. We have fairscale's Sharded optimizer/gradients supported already and deepspeed is coming We won't merge this until fairscale merged all the required fixes and released a new version, but I thought it'd be good to start the doc going ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9208/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/9208/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9208", "html_url": "https://github.com/huggingface/transformers/pull/9208", "diff_url": "https://github.com/huggingface/transformers/pull/9208.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9208.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9207
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9207/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9207/comments
https://api.github.com/repos/huggingface/transformers/issues/9207/events
https://github.com/huggingface/transformers/issues/9207
771,304,235
MDU6SXNzdWU3NzEzMDQyMzU=
9,207
Saving Pretrained Tokenizer
{ "login": "david-waterworth", "id": 5028974, "node_id": "MDQ6VXNlcjUwMjg5NzQ=", "avatar_url": "https://avatars.githubusercontent.com/u/5028974?v=4", "gravatar_id": "", "url": "https://api.github.com/users/david-waterworth", "html_url": "https://github.com/david-waterworth", "followers_url": "https://ap...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null } ]
closed
false
null
[]
[ "I realised that\r\n\r\n`tokenizer.model.save(\"./tokenizer\")`\r\n\r\nIs unnecessary. I've started saving only the `tokenizer.json` since this contains not only the merges and vocab but also the pipeline.\r\n\r\nAnd I noticed that `tokenizer.save_pretrained()` has a parameter `legacy_format` which defaults to Tru...
1,608
1,614
1,614
NONE
null
I created a custom `tokenizers.Tokenizer` and saved it as follows ``` tokenizer.model.save("./tokenizer") tokenizer.save("./tokenizer.json") ``` This produces 3 files, merges.txt, vocab.json and tokenizer.json Then I created a `transformers.RobertaTokenizerFast` and saved it to the same folder ``` toke...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9207/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/9207/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9206
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9206/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9206/comments
https://api.github.com/repos/huggingface/transformers/issues/9206/events
https://github.com/huggingface/transformers/issues/9206
771,290,740
MDU6SXNzdWU3NzEyOTA3NDA=
9,206
DataTrainingArguments: __init__() got an unexpected keyword argument 'evaluate_during_training'
{ "login": "githubrandomuser2017", "id": 25097908, "node_id": "MDQ6VXNlcjI1MDk3OTA4", "avatar_url": "https://avatars.githubusercontent.com/u/25097908?v=4", "gravatar_id": "", "url": "https://api.github.com/users/githubrandomuser2017", "html_url": "https://github.com/githubrandomuser2017", "followers_url...
[]
closed
false
null
[]
[ "Indeed, will fix that notebook on Monday. Thanks for reporting!", "Note that this notebook is quite old, so you might prefer the most recent one [here](https://github.com/huggingface/notebooks/blob/master/examples/text_classification.ipynb). I fixed the issue by pinning the transformers version inside it, we wil...
1,608
1,608
1,608
NONE
null
## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: 4.0 - Platform: Google Colab - Python version: 3.6.9 - PyTorch version (GPU?): 1.7 - Tensorflow versio...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9206/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/9206/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9205
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9205/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9205/comments
https://api.github.com/repos/huggingface/transformers/issues/9205/events
https://github.com/huggingface/transformers/issues/9205
771,286,176
MDU6SXNzdWU3NzEyODYxNzY=
9,205
[model_utils] very slow model instantiation
{ "login": "stas00", "id": 10676103, "node_id": "MDQ6VXNlcjEwNjc2MTAz", "avatar_url": "https://avatars.githubusercontent.com/u/10676103?v=4", "gravatar_id": "", "url": "https://api.github.com/users/stas00", "html_url": "https://github.com/stas00", "followers_url": "https://api.github.com/users/stas00/fo...
[ { "id": 2690307185, "node_id": "MDU6TGFiZWwyNjkwMzA3MTg1", "url": "https://api.github.com/repos/huggingface/transformers/labels/Performance", "name": "Performance", "color": "207F32", "default": false, "description": "" }, { "id": 2796628563, "node_id": "MDU6TGFiZWwyNzk2NjI4N...
closed
false
{ "login": "stas00", "id": 10676103, "node_id": "MDQ6VXNlcjEwNjc2MTAz", "avatar_url": "https://avatars.githubusercontent.com/u/10676103?v=4", "gravatar_id": "", "url": "https://api.github.com/users/stas00", "html_url": "https://github.com/stas00", "followers_url": "https://api.github.com/users/stas00/fo...
[ { "login": "stas00", "id": 10676103, "node_id": "MDQ6VXNlcjEwNjc2MTAz", "avatar_url": "https://avatars.githubusercontent.com/u/10676103?v=4", "gravatar_id": "", "url": "https://api.github.com/users/stas00", "html_url": "https://github.com/stas00", "followers_url": "https://api.github...
[ "Doesn't that script also loads and preprocess the data? From what you're reporting, I don't interpret this as \"transformers takes a long time to load the model\" (since the line that does that takes the same time as a torch load) but as \"stuff that happens in that script before the model loading takes a lot of t...
1,608
1,664
1,620
CONTRIBUTOR
null
For some reason I'm noticing a very slow model instantiation time. For example to load `shleifer/distill-mbart-en-ro-12-4` it takes * 21 secs to instantiate the model * 0.5sec to `torch.load` its weights. If I'm not changing how the model is created and want to quickly fast forward to the area of debug how cou...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9205/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/9205/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9204
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9204/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9204/comments
https://api.github.com/repos/huggingface/transformers/issues/9204/events
https://github.com/huggingface/transformers/issues/9204
771,264,897
MDU6SXNzdWU3NzEyNjQ4OTc=
9,204
Load saved Pytorch model into Tensorflow or convert from Pytorch model to TF
{ "login": "Jess0-0", "id": 29790071, "node_id": "MDQ6VXNlcjI5NzkwMDcx", "avatar_url": "https://avatars.githubusercontent.com/u/29790071?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Jess0-0", "html_url": "https://github.com/Jess0-0", "followers_url": "https://api.github.com/users/Jess0-...
[]
closed
false
null
[]
[ "Hey @Jess0-0,\r\n\r\nYou can load TF checkpoints into PT and vice-versa via:\r\n\r\n`XLMRoberta.from_pretrained(...., from_tf=True)`\r\n\r\nor \r\n\r\n`TFXLMRoberta.from_pretrained(...., from_pt=True)`.\r\n\r\nSince `XLMRobertaForSequenceClassification` is just an alias of `RobertaForSequenceClassification` there ...
1,608
1,610
1,610
NONE
null
Hi, Thanks for this awesome framework! I have trained and saved an XLMRoberta model in PyTorch and I'm wondering if there is any way I can load the model into TFRobertaForSequenceClassification class. Or if there are ways to convert the checkpoint to TensorFlow checkpoints so that it can be load by TF2. I came a...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9204/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/9204/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9203
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9203/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9203/comments
https://api.github.com/repos/huggingface/transformers/issues/9203/events
https://github.com/huggingface/transformers/pull/9203
771,260,315
MDExOlB1bGxSZXF1ZXN0NTQyODQ3MjUw
9,203
[finetune trainer] better logging and help
{ "login": "stas00", "id": 10676103, "node_id": "MDQ6VXNlcjEwNjc2MTAz", "avatar_url": "https://avatars.githubusercontent.com/u/10676103?v=4", "gravatar_id": "", "url": "https://api.github.com/users/stas00", "html_url": "https://github.com/stas00", "followers_url": "https://api.github.com/users/stas00/fo...
[]
closed
false
null
[]
[]
1,608
1,608
1,608
CONTRIBUTOR
null
As a follow up to this [thread](https://discuss.huggingface.co/t/summarization-is-finetune-trainer-py-accepting-length-arguments-correctly/2879/) this PR: * documents that `--val_max_target_length` is also used during `generate` * disambiguates `use_task_specific_params` logger so that it's clear that it dumps just...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9203/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/9203/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9203", "html_url": "https://github.com/huggingface/transformers/pull/9203", "diff_url": "https://github.com/huggingface/transformers/pull/9203.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9203.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9202
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9202/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9202/comments
https://api.github.com/repos/huggingface/transformers/issues/9202/events
https://github.com/huggingface/transformers/issues/9202
771,239,511
MDU6SXNzdWU3NzEyMzk1MTE=
9,202
[wanted] explicit docs for inherited methods
{ "login": "stas00", "id": 10676103, "node_id": "MDQ6VXNlcjEwNjc2MTAz", "avatar_url": "https://avatars.githubusercontent.com/u/10676103?v=4", "gravatar_id": "", "url": "https://api.github.com/users/stas00", "html_url": "https://github.com/stas00", "followers_url": "https://api.github.com/users/stas00/fo...
[ { "id": 2796628563, "node_id": "MDU6TGFiZWwyNzk2NjI4NTYz", "url": "https://api.github.com/repos/huggingface/transformers/labels/WIP", "name": "WIP", "color": "234C99", "default": false, "description": "Label your PR/Issue with WIP for some long outstanding Issues/PRs that are work in pro...
closed
false
null
[]
[ "I don't agree on an always-document-everything basis, as the documentation page of each model is already quite long (which may be the reason not a lot of people seem to be reading them...) In the case of generate, since there is no link to the part where the generate method is documented, we could add the document...
1,608
1,622
1,622
CONTRIBUTOR
null
# 🚀 Feature request The HF approach is to unroll most of the code for the ease of understanding, but somehow this is not the case with docs. If possible, could we explicitly add documentation for inherited methods in the specific model documentation page? e.g. why https://huggingface.co/transformers/model_do...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9202/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/9202/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9201
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9201/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9201/comments
https://api.github.com/repos/huggingface/transformers/issues/9201/events
https://github.com/huggingface/transformers/issues/9201
771,232,178
MDU6SXNzdWU3NzEyMzIxNzg=
9,201
when to use sortish sampler
{ "login": "rabeehkarimimahabadi", "id": 73364383, "node_id": "MDQ6VXNlcjczMzY0Mzgz", "avatar_url": "https://avatars.githubusercontent.com/u/73364383?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rabeehkarimimahabadi", "html_url": "https://github.com/rabeehkarimimahabadi", "followers_url...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null } ]
closed
false
null
[]
[ "Is there any update on this? \r\n\r\nSeems like it allows dynamic batching. ", "This issue has been automatically marked as stale and been closed because it has not had recent activity. Thank you for your contributions.\n\nIf you think this still needs to be addressed please comment on this thread." ]
1,608
1,614
1,614
NONE
null
Hi, I appreciate adding to the documentation on when to use sortish sampler and which platform this works/how much it impacts the speed, this is related to seq2seq folder of huggingface, for Seq2seqDataset. thanks
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9201/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/9201/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9200
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9200/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9200/comments
https://api.github.com/repos/huggingface/transformers/issues/9200/events
https://github.com/huggingface/transformers/issues/9200
771,227,462
MDU6SXNzdWU3NzEyMjc0NjI=
9,200
Beam search fails when using model parallelism
{ "login": "TobiasNorlund", "id": 2678217, "node_id": "MDQ6VXNlcjI2NzgyMTc=", "avatar_url": "https://avatars.githubusercontent.com/u/2678217?v=4", "gravatar_id": "", "url": "https://api.github.com/users/TobiasNorlund", "html_url": "https://github.com/TobiasNorlund", "followers_url": "https://api.github....
[]
closed
false
null
[]
[ "As the trace suggests, the error seem to come from the `_reorder_cache` method in `generation_utils.py`. Since the model is parallelized among multiple devices, it fails since the device of `beam_idx` and `layer_past` don't match for all layers.\r\n\r\nI just tried to modify line 229 in `generation_utils.py` to:\r...
1,608
1,620
1,608
CONTRIBUTOR
null
## Environment info - `transformers` version: 4.1.1 - Platform: Linux-4.4.0-194-generic-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyTorch version (GPU?): 1.7.1 (True) - Tensorflow version (GPU?): not installed (NA) - Using GPU in script?: Yes, two GTX 1080, on a single node - Using distributed or...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9200/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/9200/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9199
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9199/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9199/comments
https://api.github.com/repos/huggingface/transformers/issues/9199/events
https://github.com/huggingface/transformers/pull/9199
771,215,551
MDExOlB1bGxSZXF1ZXN0NTQyODEyMjg4
9,199
[t5 doc] typos
{ "login": "stas00", "id": 10676103, "node_id": "MDQ6VXNlcjEwNjc2MTAz", "avatar_url": "https://avatars.githubusercontent.com/u/10676103?v=4", "gravatar_id": "", "url": "https://api.github.com/users/stas00", "html_url": "https://github.com/stas00", "followers_url": "https://api.github.com/users/stas00/fo...
[]
closed
false
null
[]
[]
1,608
1,608
1,608
CONTRIBUTOR
null
This PR fixes a few run away backticks Sylvain, why do we not have documentation for `T5ForConditionalGeneration.generate`? This doc is trying to link to it, but there is no such entry in https://huggingface.co/transformers/model_doc/t5.html @sgugger
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9199/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/9199/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9199", "html_url": "https://github.com/huggingface/transformers/pull/9199", "diff_url": "https://github.com/huggingface/transformers/pull/9199.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9199.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9198
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9198/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9198/comments
https://api.github.com/repos/huggingface/transformers/issues/9198/events
https://github.com/huggingface/transformers/pull/9198
771,189,349
MDExOlB1bGxSZXF1ZXN0NTQyNzg5OTE2
9,198
[run_glue] add speed metrics
{ "login": "stas00", "id": 10676103, "node_id": "MDQ6VXNlcjEwNjc2MTAz", "avatar_url": "https://avatars.githubusercontent.com/u/10676103?v=4", "gravatar_id": "", "url": "https://api.github.com/users/stas00", "html_url": "https://github.com/stas00", "followers_url": "https://api.github.com/users/stas00/fo...
[]
closed
false
null
[]
[]
1,608
1,608
1,608
CONTRIBUTOR
null
This PR starts to sync with recent changes in trainer+finetune_trainer.py * train: (sync with finetune_trainer): - prints and saves train speed metrics - needed for benchmarking - saves the state, * eval: sorts metrics logging info @sgugger
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9198/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/9198/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9198", "html_url": "https://github.com/huggingface/transformers/pull/9198", "diff_url": "https://github.com/huggingface/transformers/pull/9198.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9198.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9197
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9197/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9197/comments
https://api.github.com/repos/huggingface/transformers/issues/9197/events
https://github.com/huggingface/transformers/pull/9197
771,123,018
MDExOlB1bGxSZXF1ZXN0NTQyNzM1ODkx
9,197
[RAG] Add Ray implementation for distributed retrieval
{ "login": "amogkam", "id": 8068268, "node_id": "MDQ6VXNlcjgwNjgyNjg=", "avatar_url": "https://avatars.githubusercontent.com/u/8068268?v=4", "gravatar_id": "", "url": "https://api.github.com/users/amogkam", "html_url": "https://github.com/amogkam", "followers_url": "https://api.github.com/users/amogkam/...
[]
closed
false
null
[]
[ "cc @sgugger @patrickvonplaten @LysandreJik @lhoestq ", "Nice, good to merge then!", "Awesome, thank you so much for the reviews @lhoestq @patrickvonplaten -- happy holidays!", "Thanks guys!", "@amogkam @patrickvonplaten I need some help to implement an end-to-end retrieval training feature for the rag wit...
1,608
1,613
1,608
COLLABORATOR
null
# What does this PR do? This PR adds a new distributed retriever implementation for RAG built on Ray, as an alternative to the current retriever implementation that uses torch.distributed. With Ray it's possible to load the index on multiple processes instead of just the rank 0 training worker, allowing fine tuning to...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9197/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/9197/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9197", "html_url": "https://github.com/huggingface/transformers/pull/9197", "diff_url": "https://github.com/huggingface/transformers/pull/9197.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9197.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9196
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9196/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9196/comments
https://api.github.com/repos/huggingface/transformers/issues/9196/events
https://github.com/huggingface/transformers/pull/9196
771,098,115
MDExOlB1bGxSZXF1ZXN0NTQyNzE2MDc4
9,196
Add timing inside Trainer
{ "login": "sgugger", "id": 35901082, "node_id": "MDQ6VXNlcjM1OTAxMDgy", "avatar_url": "https://avatars.githubusercontent.com/u/35901082?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sgugger", "html_url": "https://github.com/sgugger", "followers_url": "https://api.github.com/users/sgugge...
[]
closed
false
null
[]
[ "may I ask for one more bit, while you're at it - sorting the metrics before printing them out?\r\n\r\nI added this already into the final json file writing, but it'd make it easier to read the info logs.\r\n\r\nNow we have:\r\n\r\n```\r\n2020-12-18 11:51:55 | INFO | __main__ | val_loss = 368.4116\r\n2020-12-18 1...
1,608
1,608
1,608
COLLABORATOR
null
# What does this PR do? Add timing reports for training/evaluation and test inside the Trainer. Also, change the default repr of `TrainingArguments` to avoid printing the deprecated arguments. There is a breaking change in this PR: the output of `Trainer.train` gains a new field `metrics`, so the length of the na...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9196/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/9196/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9196", "html_url": "https://github.com/huggingface/transformers/pull/9196", "diff_url": "https://github.com/huggingface/transformers/pull/9196.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9196.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9195
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9195/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9195/comments
https://api.github.com/repos/huggingface/transformers/issues/9195/events
https://github.com/huggingface/transformers/issues/9195
771,066,100
MDU6SXNzdWU3NzEwNjYxMDA=
9,195
Error "if input.dim() == 2 and bias is not None"
{ "login": "renjiege", "id": 24770461, "node_id": "MDQ6VXNlcjI0NzcwNDYx", "avatar_url": "https://avatars.githubusercontent.com/u/24770461?v=4", "gravatar_id": "", "url": "https://api.github.com/users/renjiege", "html_url": "https://github.com/renjiege", "followers_url": "https://api.github.com/users/ren...
[]
closed
false
null
[]
[ "Please try\r\n`_, cls_hs = self.bert(sent_id, attention_mask=mask)`\r\nto\r\n`_, cls_hs = self.bert(sent_id, attention_mask=mask)[:2]`\r\nor\r\n`_, cls_hs = self.bert(sent_id, attention_mask=mask, return_dict=False)`", "It fixes the issue. Thanks!", "> Please try\r\n> `_, cls_hs = self.bert(sent_id, attention_...
1,608
1,612
1,608
NONE
null
Pytorch version: pytorch-1.7.1-py3.8_cuda11.0.221_cudnn8.0.5_0 Transformer version: 4.0.0 Code: ``` import torch import torch.nn as nn from torch.utils.data import TensorDataset, DataLoader, RandomSampler, SequentialSampler from transformers import AutoModel, BertTokenizerFast class BERT_Arch(nn.Module): ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9195/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/9195/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9194
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9194/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9194/comments
https://api.github.com/repos/huggingface/transformers/issues/9194/events
https://github.com/huggingface/transformers/issues/9194
771,042,301
MDU6SXNzdWU3NzEwNDIzMDE=
9,194
Loading MPNet from disc: ValueError: An instance of tokenizer class MPNetTokenizer cannot be converted in a Fast tokenizer instance.
{ "login": "nreimers", "id": 10706961, "node_id": "MDQ6VXNlcjEwNzA2OTYx", "avatar_url": "https://avatars.githubusercontent.com/u/10706961?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nreimers", "html_url": "https://github.com/nreimers", "followers_url": "https://api.github.com/users/nre...
[]
closed
false
null
[]
[ "Looking into it!\r\n\r\nAn easy fix for now would be the following:\r\n\r\n```python\r\nfrom transformers import AutoTokenizer, AutoModel\r\n\r\nlocal_dir = 'mpnet-model/'\r\n\r\nmodel = AutoModel.from_pretrained('microsoft/mpnet-base')\r\ntokenizer = AutoTokenizer.from_pretrained('microsoft/mpnet-base')\r\nmodel....
1,608
1,608
1,608
CONTRIBUTOR
null
## Environment info - `transformers` version: 4.1.1 (pip version) - Platform: Ubuntu 20.04 - Python version: 3.7 - PyTorch version (GPU?): Pytorch 1.7 GPU ## Information Hi, thanks for adding MPNet. I got quite promising results when using it for generating sentence embeddings. However, there is an is...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9194/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/9194/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9193
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9193/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9193/comments
https://api.github.com/repos/huggingface/transformers/issues/9193/events
https://github.com/huggingface/transformers/pull/9193
771,014,844
MDExOlB1bGxSZXF1ZXN0NTQyNjQ4OTMx
9,193
Full rework of the TF input/output embeddings and bias resizing
{ "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
[]
[ "I haven't reviewed in detail yet, but just looking at the API with the number of things to change for ALBERT (and in terms of line of code) is a hard pass for me. Overriding the resize method as was done before was way easier, this adds too much complexity.", "I understand that it is a big update. Nevertheless, ...
1,608
1,610
1,610
CONTRIBUTOR
null
# What does this PR do? This PR 100% reworks the entire process of input/output and bias resizing. Now the exceptions are better handled including the names that now are always similar. The corresponding tests have also been entirely reworked and now have a better coverage of this feature. This PR adds a small br...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9193/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/9193/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9193", "html_url": "https://github.com/huggingface/transformers/pull/9193", "diff_url": "https://github.com/huggingface/transformers/pull/9193.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9193.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9192
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9192/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9192/comments
https://api.github.com/repos/huggingface/transformers/issues/9192/events
https://github.com/huggingface/transformers/issues/9192
771,008,138
MDU6SXNzdWU3NzEwMDgxMzg=
9,192
example code for fine-tuning CLM does not work for GPT
{ "login": "TalitaAnthonio", "id": 25078987, "node_id": "MDQ6VXNlcjI1MDc4OTg3", "avatar_url": "https://avatars.githubusercontent.com/u/25078987?v=4", "gravatar_id": "", "url": "https://api.github.com/users/TalitaAnthonio", "html_url": "https://github.com/TalitaAnthonio", "followers_url": "https://api.gi...
[]
closed
false
null
[]
[ "Could you try putting `--block_size=512` in your command to see if it changes something?", "@LysandreJik Thank you it solved the issue! " ]
1,608
1,608
1,608
NONE
null
## Environment info - `transformers` version: 3.5.0 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.6 - PyTorch version (GPU?): 1.7.0 (False) - Tensorflow version (GPU?): not installed (NA) - Using GPU in script?: NO ### Who can help @patrickvonplaten @TevenLeScao ## Information Model...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9192/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/9192/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9191
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9191/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9191/comments
https://api.github.com/repos/huggingface/transformers/issues/9191/events
https://github.com/huggingface/transformers/issues/9191
770,965,175
MDU6SXNzdWU3NzA5NjUxNzU=
9,191
Segfault on python 3.9 exit
{ "login": "LoicGrobol", "id": 14248012, "node_id": "MDQ6VXNlcjE0MjQ4MDEy", "avatar_url": "https://avatars.githubusercontent.com/u/14248012?v=4", "gravatar_id": "", "url": "https://api.github.com/users/LoicGrobol", "html_url": "https://github.com/LoicGrobol", "followers_url": "https://api.github.com/use...
[]
closed
false
null
[]
[ "I encountered a similar issue, in a context where `transformers` was not imported. I've [reported](https://github.com/pytorch/pytorch/issues/50858) the issue to the PyTorch project.", "I too have similar problem when running unittests for a Python package on travis, using Python 3.9. Specifically, all unit tests...
1,608
1,639
1,611
NONE
null
Ok, that's a weird one ## Environment info - `transformers` version: 4.1.1 - Platform: Linux-5.8.0-34-generic-x86_64-with-glibc2.32 - Python version: 3.9.0+ - PyTorch version (GPU?): 1.7.1 (False) - Tensorflow version (GPU?): not installed (NA) - Using GPU in script?: no - Using distributed or parallel...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9191/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/9191/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9190
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9190/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9190/comments
https://api.github.com/repos/huggingface/transformers/issues/9190/events
https://github.com/huggingface/transformers/pull/9190
770,955,064
MDExOlB1bGxSZXF1ZXN0NTQyNTk5Njgz
9,190
Addition of MuRIL - BERT based model for 17 Indian Languages to the library
{ "login": "ravi03071991", "id": 12198101, "node_id": "MDQ6VXNlcjEyMTk4MTAx", "avatar_url": "https://avatars.githubusercontent.com/u/12198101?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ravi03071991", "html_url": "https://github.com/ravi03071991", "followers_url": "https://api.github.c...
[]
closed
false
null
[]
[ "Hello! Yes, feel free to. However, you seem to have based yourself off of a `tf` branch that is very old?", "@LysandreJik Yeah sorry. Should I raise a new issue so that it can be changed accordingly?", "If you want to contribute this model, I invite you to base yourself off of the `master` branch and create a ...
1,608
1,651
1,608
CONTRIBUTOR
null
Hi, This PR is regarding the addition of MuRIL, a BERT-based model trained specifically for 17 Indian Languages to the hugging face library. MuRIL is released on tfhub. Link to the repo: [https://tfhub.dev/google/MuRIL/1](https://tfhub.dev/google/MuRIL/1) I am interested to work on this contribution to the lib...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9190/reactions", "total_count": 4, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 4, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/9190/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9190", "html_url": "https://github.com/huggingface/transformers/pull/9190", "diff_url": "https://github.com/huggingface/transformers/pull/9190.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9190.patch", "merged_at": n...
https://api.github.com/repos/huggingface/transformers/issues/9189
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9189/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9189/comments
https://api.github.com/repos/huggingface/transformers/issues/9189/events
https://github.com/huggingface/transformers/pull/9189
770,953,440
MDExOlB1bGxSZXF1ZXN0NTQyNTk4MzY5
9,189
GPT-model attention heads pruning example
{ "login": "altsoph", "id": 2072749, "node_id": "MDQ6VXNlcjIwNzI3NDk=", "avatar_url": "https://avatars.githubusercontent.com/u/2072749?v=4", "gravatar_id": "", "url": "https://api.github.com/users/altsoph", "html_url": "https://github.com/altsoph", "followers_url": "https://api.github.com/users/altsoph/...
[]
closed
false
null
[]
[ "One last detail: could you run `make style` on your branch? There seems to be some bad formatting.", "> One last detail: could you run `make style` on your branch? There seems to be some bad formatting.\r\n\r\nI did, but let me recheck it" ]
1,608
1,608
1,608
CONTRIBUTOR
null
# What does this PR do? This script is adapted from the [BERT attention heads pruning code](https://github.com/huggingface/transformers/blob/master/examples/research_projects/bertology/run_bertology.py) AKA Bertology to make it possible to prune GPT-model heads as well. It basically works the same way as run_bert...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9189/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/9189/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9189", "html_url": "https://github.com/huggingface/transformers/pull/9189", "diff_url": "https://github.com/huggingface/transformers/pull/9189.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9189.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9188
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9188/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9188/comments
https://api.github.com/repos/huggingface/transformers/issues/9188/events
https://github.com/huggingface/transformers/issues/9188
770,859,577
MDU6SXNzdWU3NzA4NTk1Nzc=
9,188
MRPC Reproducibility with transformers-4.1.0
{ "login": "Linwenye", "id": 19305330, "node_id": "MDQ6VXNlcjE5MzA1MzMw", "avatar_url": "https://avatars.githubusercontent.com/u/19305330?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Linwenye", "html_url": "https://github.com/Linwenye", "followers_url": "https://api.github.com/users/Lin...
[]
closed
false
null
[]
[ "Hello, thanks for opening an issue! We try to keep the github issues for bugs/feature requests.\r\nCould you ask your question on the [forum](https://discusss.huggingface.co) instead?\r\n\r\nThanks!" ]
1,608
1,608
1,608
NONE
null
I always get lower precision following the MRPC example, what's the reason? ``` python run_glue.py \ --model_name_or_path bert-base-cased \ --task_name $TASK_NAME \ --do_train \ --do_eval \ --max_seq_length 128 \ --per_device_train_batch_size 32 \ --learning_rate 2e-5 \ --num_train_epochs 3.0 ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9188/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/9188/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9187
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9187/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9187/comments
https://api.github.com/repos/huggingface/transformers/issues/9187/events
https://github.com/huggingface/transformers/issues/9187
770,806,519
MDU6SXNzdWU3NzA4MDY1MTk=
9,187
Problem with pretraining GPT-2 on TPU with Pytorch/XLA
{ "login": "redrussianarmy", "id": 24498747, "node_id": "MDQ6VXNlcjI0NDk4NzQ3", "avatar_url": "https://avatars.githubusercontent.com/u/24498747?v=4", "gravatar_id": "", "url": "https://api.github.com/users/redrussianarmy", "html_url": "https://github.com/redrussianarmy", "followers_url": "https://api.gi...
[]
closed
false
null
[]
[ "I realized that I didn't follow [instructions](https://github.com/pytorch/xla/blob/master/README.md) properly.", "@redrussianarmy What`s the problem? I have the same issue but can not find a solution." ]
1,608
1,610
1,608
NONE
null
### **Environment info** transformers version: 4.0.1 Platform: Ubuntu 18.04.4 LTS Python version: 3.6.9 PyTorch version: 1.7.1 Torch-XLA version: 1.7 Tensorflow version: 2.3.1 ### **Information** Model I am intended to pretrain (Bert, XLNet ...): GPT2 The problem arises when using: - my own modified script...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9187/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/9187/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9186
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9186/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9186/comments
https://api.github.com/repos/huggingface/transformers/issues/9186/events
https://github.com/huggingface/transformers/pull/9186
770,739,076
MDExOlB1bGxSZXF1ZXN0NTQyNDI4MjM2
9,186
fixed not JSON serializable error in run_qa.py with fp16
{ "login": "WissamAntoun", "id": 44616226, "node_id": "MDQ6VXNlcjQ0NjE2MjI2", "avatar_url": "https://avatars.githubusercontent.com/u/44616226?v=4", "gravatar_id": "", "url": "https://api.github.com/users/WissamAntoun", "html_url": "https://github.com/WissamAntoun", "followers_url": "https://api.github.c...
[]
closed
false
null
[]
[]
1,608
1,608
1,608
CONTRIBUTOR
null
# What does this PR do? Fixed an issue where running the run_qa.py script in a Squad-like dataset with fp16 enabled, would lead to a JSON serialization error: ``` TypeError: Object of type 'float16' is not JSON serializable ``` The bug is caused by not converting `np.float16` to `float` on line 209 and 397 in th...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9186/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/9186/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9186", "html_url": "https://github.com/huggingface/transformers/pull/9186", "diff_url": "https://github.com/huggingface/transformers/pull/9186.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9186.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9185
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9185/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9185/comments
https://api.github.com/repos/huggingface/transformers/issues/9185/events
https://github.com/huggingface/transformers/issues/9185
770,717,055
MDU6SXNzdWU3NzA3MTcwNTU=
9,185
can we use ckpt model file generated after finetuning the pre-trained models on custom dataset
{ "login": "SagarPalyal", "id": 38795924, "node_id": "MDQ6VXNlcjM4Nzk1OTI0", "avatar_url": "https://avatars.githubusercontent.com/u/38795924?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SagarPalyal", "html_url": "https://github.com/SagarPalyal", "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
[]
[ "hi @SagarPalyal not sure what you mean here. by ckpt file do you mean a saved checkpoint ?", "Yes you are right. This is saved checkpoint file only.", "One thing to note: `pytorch_model.bin` is the name of the weights file, and every torch HF model will have that file.\r\n\r\nTo load the checkpoint simply pas...
1,608
1,685
1,614
NONE
null
Hi Team, I have fine tuned pegasus huggingface wikihow model with my own custom dataset and end up with below files: model.ckpt-1000.data-00000-of-00001 model.ckpt-1000.index model.ckpt-1000.meta events.out.tfevents.1608192436.ip-xxx-xx-x-xx events.out.tfevents.1608192510.ip-xxx-xx-x-xx.v2 When I am runnin...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9185/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/9185/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9184
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9184/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9184/comments
https://api.github.com/repos/huggingface/transformers/issues/9184/events
https://github.com/huggingface/transformers/issues/9184
770,707,837
MDU6SXNzdWU3NzA3MDc4Mzc=
9,184
[RagSequenceForGeneration] generate "without" input_ids
{ "login": "ratthachat", "id": 56621342, "node_id": "MDQ6VXNlcjU2NjIxMzQy", "avatar_url": "https://avatars.githubusercontent.com/u/56621342?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ratthachat", "html_url": "https://github.com/ratthachat", "followers_url": "https://api.github.com/use...
[]
closed
false
null
[]
[]
1,608
1,608
1,608
CONTRIBUTOR
null
Hi guys, In `RagSequenceForGeneration` method `generate()` function, the doc said that both `input_ids` and `context_input_ids` are optional (one of them must be specified) . However, in the code https://github.com/ratthachat/transformers/blob/ragseq_context_id/src/transformers/models/rag/modeling_rag.py#L907 I...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9184/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/9184/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9183
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9183/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9183/comments
https://api.github.com/repos/huggingface/transformers/issues/9183/events
https://github.com/huggingface/transformers/pull/9183
770,699,787
MDExOlB1bGxSZXF1ZXN0NTQyMzk3NTQ4
9,183
Add caching mechanism to BERT, RoBERTa
{ "login": "patil-suraj", "id": 27137566, "node_id": "MDQ6VXNlcjI3MTM3NTY2", "avatar_url": "https://avatars.githubusercontent.com/u/27137566?v=4", "gravatar_id": "", "url": "https://api.github.com/users/patil-suraj", "html_url": "https://github.com/patil-suraj", "followers_url": "https://api.github.com/...
[]
closed
false
null
[]
[ "`python utils/check_copies.py --fix_and_overwrite` should be run to make the `check_code_quality` test pass", "> `python utils/check_copies.py --fix_and_overwrite` should be run to make the `check_code_quality` test pass\r\n\r\nYeah, did that, for some reason, it's not working for `RobertaEmbeddings`, the code i...
1,608
1,608
1,608
MEMBER
null
# What does this PR do? - This PR adds past key/values caching mechanism to `BertLMHeadModel`, `BertGenerationDecoder`, and `RobertaForCausalLM` to speed up the generation of `EncoderDecoder` models - delete the `CausalLMOutputWithPastAndCrossAttentions` class and add `past_key_values` to `CausalLMOutputWithCross...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9183/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/9183/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9183", "html_url": "https://github.com/huggingface/transformers/pull/9183", "diff_url": "https://github.com/huggingface/transformers/pull/9183.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9183.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9182
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9182/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9182/comments
https://api.github.com/repos/huggingface/transformers/issues/9182/events
https://github.com/huggingface/transformers/pull/9182
770,466,926
MDExOlB1bGxSZXF1ZXN0NTQyMjA5MTA3
9,182
Fix link to old NER fine-tuning script
{ "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
[]
[]
1,608
1,608
1,608
CONTRIBUTOR
null
# What does this PR do? <!-- Congratulations! You've made it this far! You're not quite done yet though. Once merged, your PR is going to appear in the release notes with the title you set, so make sure it's a great title that fully reflects the extent of your awesome contribution. Then, please replace this w...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9182/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/9182/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9182", "html_url": "https://github.com/huggingface/transformers/pull/9182", "diff_url": "https://github.com/huggingface/transformers/pull/9182.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9182.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9181
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9181/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9181/comments
https://api.github.com/repos/huggingface/transformers/issues/9181/events
https://github.com/huggingface/transformers/pull/9181
770,461,400
MDExOlB1bGxSZXF1ZXN0NTQyMjA0NjU4
9,181
Fix link to old SQUAD fine-tuning script
{ "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
[]
[]
1,608
1,608
1,608
CONTRIBUTOR
null
# What does this PR do? <!-- Congratulations! You've made it this far! You're not quite done yet though. Once merged, your PR is going to appear in the release notes with the title you set, so make sure it's a great title that fully reflects the extent of your awesome contribution. Then, please replace this w...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9181/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/9181/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9181", "html_url": "https://github.com/huggingface/transformers/pull/9181", "diff_url": "https://github.com/huggingface/transformers/pull/9181.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9181.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9180
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9180/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9180/comments
https://api.github.com/repos/huggingface/transformers/issues/9180/events
https://github.com/huggingface/transformers/pull/9180
770,460,348
MDExOlB1bGxSZXF1ZXN0NTQyMjAzODE0
9,180
[trainer] apex fixes and tests
{ "login": "stas00", "id": 10676103, "node_id": "MDQ6VXNlcjEwNjc2MTAz", "avatar_url": "https://avatars.githubusercontent.com/u/10676103?v=4", "gravatar_id": "", "url": "https://api.github.com/users/stas00", "html_url": "https://github.com/stas00", "followers_url": "https://api.github.com/users/stas00/fo...
[]
closed
false
null
[]
[]
1,608
1,608
1,608
CONTRIBUTOR
null
This PR: * [x] fixes a bug in with `fp16_backend` apex (`is_apex_available` + `amp` weren't getting imported w/ pt>=1.6) * [x] adds test * [x] adds a logger info on which fp16 backend will be used @sgugger
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9180/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/9180/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9180", "html_url": "https://github.com/huggingface/transformers/pull/9180", "diff_url": "https://github.com/huggingface/transformers/pull/9180.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9180.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9179
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9179/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9179/comments
https://api.github.com/repos/huggingface/transformers/issues/9179/events
https://github.com/huggingface/transformers/issues/9179
770,429,173
MDU6SXNzdWU3NzA0MjkxNzM=
9,179
[trainer] speed issues: --fp16 doesn't improve speed, DP runs really slow
{ "login": "stas00", "id": 10676103, "node_id": "MDQ6VXNlcjEwNjc2MTAz", "avatar_url": "https://avatars.githubusercontent.com/u/10676103?v=4", "gravatar_id": "", "url": "https://api.github.com/users/stas00", "html_url": "https://github.com/stas00", "followers_url": "https://api.github.com/users/stas00/fo...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null } ]
closed
false
null
[]
[ "Could you run the other examples script to check? On my end they result in a roughly x2 speedup but I'm not on pytorch-nightly.", "Any recommendations and specific command lines that you use? \r\n\r\nI have been using the finetune and other scripts in seq2seq as a go-to scripts for testing, so I'm not quite expe...
1,608
1,614
1,614
CONTRIBUTOR
null
Splitting from https://github.com/huggingface/transformers/issues/9156#issuecomment-747636108 where while running benchmarks for fairscale's sharded ddp support I noticed that there was almost no difference between having or not having `--fp16` to the training runtime. Not sure whether this impacts trainer in genera...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9179/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/9179/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9178
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9178/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9178/comments
https://api.github.com/repos/huggingface/transformers/issues/9178/events
https://github.com/huggingface/transformers/issues/9178
770,421,607
MDU6SXNzdWU3NzA0MjE2MDc=
9,178
[ci] install fairscale on self-runner CIs
{ "login": "stas00", "id": 10676103, "node_id": "MDQ6VXNlcjEwNjc2MTAz", "avatar_url": "https://avatars.githubusercontent.com/u/10676103?v=4", "gravatar_id": "", "url": "https://api.github.com/users/stas00", "html_url": "https://github.com/stas00", "followers_url": "https://api.github.com/users/stas00/fo...
[]
closed
false
null
[]
[ "Probably should change CI to do:\r\n```\r\npip install fairscale --no-build-isolation\r\n```\r\nwhich is much faster then the new pip system, as it doesn't need to fetch dependent packages\r\n", "This issue has been automatically marked as stale because it has not had recent activity. If you think this still nee...
1,608
1,619
1,619
CONTRIBUTOR
null
The tests for the new sharded ddp fairscale integration are in place, https://github.com/huggingface/transformers/pull/9177 but CIs don't have `fairscale` installed so they won't run on CI. This is an issue to track this need so we will eventually run these tests. Blocking event: needing a more reliable/quick w...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9178/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/9178/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9177
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9177/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9177/comments
https://api.github.com/repos/huggingface/transformers/issues/9177/events
https://github.com/huggingface/transformers/pull/9177
770,412,546
MDExOlB1bGxSZXF1ZXN0NTQyMTY0NzQw
9,177
add tests for the new sharded ddp fairscale integration
{ "login": "stas00", "id": 10676103, "node_id": "MDQ6VXNlcjEwNjc2MTAz", "avatar_url": "https://avatars.githubusercontent.com/u/10676103?v=4", "gravatar_id": "", "url": "https://api.github.com/users/stas00", "html_url": "https://github.com/stas00", "followers_url": "https://api.github.com/users/stas00/fo...
[]
closed
false
null
[]
[ "I made a request for a quicker/simpler binary: https://github.com/facebookresearch/fairscale/issues/264\r\n\r\nAnd added an issue to track this so we won't forget: https://github.com/huggingface/transformers/issues/9178\r\n" ]
1,608
1,608
1,608
CONTRIBUTOR
null
This PR adds tests for the just added sharded ddp fairscale integration https://github.com/huggingface/transformers/pull/9139 Obviously these won't run on CIs w/o having fairscale installed... hope we will sort this out down the road. the problem is building fairscale - no binary wheel - I will ask them if they coul...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9177/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/9177/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9177", "html_url": "https://github.com/huggingface/transformers/pull/9177", "diff_url": "https://github.com/huggingface/transformers/pull/9177.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9177.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9176
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9176/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9176/comments
https://api.github.com/repos/huggingface/transformers/issues/9176/events
https://github.com/huggingface/transformers/pull/9176
770,409,555
MDExOlB1bGxSZXF1ZXN0NTQyMTYyMTMw
9,176
[setup] correct transformers version format
{ "login": "stas00", "id": 10676103, "node_id": "MDQ6VXNlcjEwNjc2MTAz", "avatar_url": "https://avatars.githubusercontent.com/u/10676103?v=4", "gravatar_id": "", "url": "https://api.github.com/users/stas00", "html_url": "https://github.com/stas00", "followers_url": "https://api.github.com/users/stas00/fo...
[]
closed
false
null
[]
[]
1,608
1,608
1,608
CONTRIBUTOR
null
setuptools has a pretty fixed expectation of version numbers. ``` x.y.z x.y.z.dev0 x.y.z.rc1 ``` This PR fixes the dev version number and adds a comment with correct formats for the future editors This fix removes this warning on `make fixup|style|etc` or any other time `setup.py` is being run. ``` setup...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9176/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/9176/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9176", "html_url": "https://github.com/huggingface/transformers/pull/9176", "diff_url": "https://github.com/huggingface/transformers/pull/9176.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9176.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9175
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9175/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9175/comments
https://api.github.com/repos/huggingface/transformers/issues/9175/events
https://github.com/huggingface/transformers/pull/9175
770,360,515
MDExOlB1bGxSZXF1ZXN0NTQyMTE5ODU1
9,175
Add new run_swag example
{ "login": "sgugger", "id": 35901082, "node_id": "MDQ6VXNlcjM1OTAxMDgy", "avatar_url": "https://avatars.githubusercontent.com/u/35901082?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sgugger", "html_url": "https://github.com/sgugger", "followers_url": "https://api.github.com/users/sgugge...
[]
closed
false
null
[]
[]
1,608
1,608
1,608
COLLABORATOR
null
# What does this PR do? This PR adds a new example for multiple-choice using Trainer and Datasets, and moves the older one to the legacy folder.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9175/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/9175/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9175", "html_url": "https://github.com/huggingface/transformers/pull/9175", "diff_url": "https://github.com/huggingface/transformers/pull/9175.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9175.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9174
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9174/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9174/comments
https://api.github.com/repos/huggingface/transformers/issues/9174/events
https://github.com/huggingface/transformers/pull/9174
770,323,063
MDExOlB1bGxSZXF1ZXN0NTQyMDg4OTY4
9,174
[WIP] Adapt Cookie Cutter For EncoderDecoder
{ "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
[]
[ "Cleaner version here: https://github.com/huggingface/transformers/pull/9251" ]
1,608
1,608
1,608
MEMBER
null
# What does this PR do? <!-- Congratulations! You've made it this far! You're not quite done yet though. Once merged, your PR is going to appear in the release notes with the title you set, so make sure it's a great title that fully reflects the extent of your awesome contribution. Then, please replace this w...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9174/reactions", "total_count": 3, "+1": 0, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 1, "rocket": 1, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/9174/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9174", "html_url": "https://github.com/huggingface/transformers/pull/9174", "diff_url": "https://github.com/huggingface/transformers/pull/9174.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9174.patch", "merged_at": n...
https://api.github.com/repos/huggingface/transformers/issues/9173
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9173/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9173/comments
https://api.github.com/repos/huggingface/transformers/issues/9173/events
https://github.com/huggingface/transformers/issues/9173
770,265,980
MDU6SXNzdWU3NzAyNjU5ODA=
9,173
GPT2 eval with attention_mask not returning expected result
{ "login": "dan-i", "id": 17403280, "node_id": "MDQ6VXNlcjE3NDAzMjgw", "avatar_url": "https://avatars.githubusercontent.com/u/17403280?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dan-i", "html_url": "https://github.com/dan-i", "followers_url": "https://api.github.com/users/dan-i/follow...
[]
closed
false
null
[]
[ "Hey @dan-i, \r\n\r\n1) You should mask the labels of the first token it's not enough to set the attention_mask to 0 -> `labels=torch.tensor([-100, ...])`\r\n2) You have to change the `position_ids` to ensure the expected behavior in GPT2, *i.e.* make sure that in the second case the position_ids are [0, 0, 1, 2] i...
1,608
1,608
1,608
NONE
null
is this not correct use of attention_mask with padding (trying to batch sentence eval) or is it a bug? Shouldn't the return result be the same in each case because of the mask? import torch from transformers import GPT2LMHeadModel model = GPT2LMHeadModel.from_pretrained('gpt2', return_dict=True) ``` with torch...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9173/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/9173/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9172
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9172/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9172/comments
https://api.github.com/repos/huggingface/transformers/issues/9172/events
https://github.com/huggingface/transformers/pull/9172
770,261,089
MDExOlB1bGxSZXF1ZXN0NTQyMDM4MDE3
9,172
[Flax] Implement FlaxElectraModel, FlaxElectraForMaskedLM, FlaxElectraForPreTraining
{ "login": "chris-tng", "id": 2324137, "node_id": "MDQ6VXNlcjIzMjQxMzc=", "avatar_url": "https://avatars.githubusercontent.com/u/2324137?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chris-tng", "html_url": "https://github.com/chris-tng", "followers_url": "https://api.github.com/users/ch...
[ { "id": 2796628563, "node_id": "MDU6TGFiZWwyNzk2NjI4NTYz", "url": "https://api.github.com/repos/huggingface/transformers/labels/WIP", "name": "WIP", "color": "234C99", "default": false, "description": "Label your PR/Issue with WIP for some long outstanding Issues/PRs that are work in pro...
open
false
null
[]
[ "Hi @chris-tng -- thanks for trying out Flax in HF Transformers!\r\n\r\nA quick comment on `nn.compact` and `setup` (I work on Flax) -- indeed if you want access to submodules such as for transfer learning then using `setup` is the way to go. I skimmed the PR and see that you use `setup` in some places and `nn.comp...
1,608
1,648
null
CONTRIBUTOR
null
# What does this PR do? 1. Implement Flax version of Electra model : `FlaxElectraModel`, `FlaxElectraForMaskedLM`, `FlaxElectraForPreTraining`. Most of the code taken from FlaxBert version with changes in parameters and forward pass. 2. Adjust `convert_to_pytorch` to load weights for Electra 3. Implement `FlaxElec...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9172/reactions", "total_count": 4, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 4, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/9172/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9172", "html_url": "https://github.com/huggingface/transformers/pull/9172", "diff_url": "https://github.com/huggingface/transformers/pull/9172.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9172.patch", "merged_at": n...
https://api.github.com/repos/huggingface/transformers/issues/9171
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9171/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9171/comments
https://api.github.com/repos/huggingface/transformers/issues/9171/events
https://github.com/huggingface/transformers/issues/9171
770,220,529
MDU6SXNzdWU3NzAyMjA1Mjk=
9,171
Trainer returns logits of only one sequence instead of entire evaluation dataset
{ "login": "MoritzLaurer", "id": 41862082, "node_id": "MDQ6VXNlcjQxODYyMDgy", "avatar_url": "https://avatars.githubusercontent.com/u/41862082?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MoritzLaurer", "html_url": "https://github.com/MoritzLaurer", "followers_url": "https://api.github.c...
[]
closed
false
null
[]
[ "**Update:** I slightly changed my script based on the [text_classification example notebook](https://github.com/huggingface/notebooks/blob/master/examples/text_classification.ipynb) and now it works. Don't know what made the difference, but in case someone else has a similar problem, I recommend following the step...
1,608
1,608
1,608
NONE
null
## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: 4.0.1 (also reproduced the same issue with 3.5.1) - Platform: Google Colab - Python version: 3.6 - PyT...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9171/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/9171/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9170
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9170/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9170/comments
https://api.github.com/repos/huggingface/transformers/issues/9170/events
https://github.com/huggingface/transformers/pull/9170
770,171,673
MDExOlB1bGxSZXF1ZXN0NTQxOTY1MDU3
9,170
Put all models in the constants
{ "login": "sgugger", "id": 35901082, "node_id": "MDQ6VXNlcjM1OTAxMDgy", "avatar_url": "https://avatars.githubusercontent.com/u/35901082?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sgugger", "html_url": "https://github.com/sgugger", "followers_url": "https://api.github.com/users/sgugge...
[]
closed
false
null
[]
[ "An alternative is to remove all content, but the previous state where one variable as some keys but the others not leads to failures.", "Yes, we really need to remove all of this @LysandreJik @thomwolf ", "We do, but right now we still use them in the tests", "It was a bit confusing to me which to add in the...
1,608
1,608
1,608
COLLABORATOR
null
# What does this PR do? It was impossible to use all pretrained checkpoints in the tapas tokenzier file because they were not in the constants of the file. This PR fixes that.
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9170/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/9170/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9170", "html_url": "https://github.com/huggingface/transformers/pull/9170", "diff_url": "https://github.com/huggingface/transformers/pull/9170.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9170.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9169
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9169/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9169/comments
https://api.github.com/repos/huggingface/transformers/issues/9169/events
https://github.com/huggingface/transformers/pull/9169
770,132,619
MDExOlB1bGxSZXF1ZXN0NTQxOTMzNDg4
9,169
Added TF TransfoXL Sequence Classification
{ "login": "spatil6", "id": 6419011, "node_id": "MDQ6VXNlcjY0MTkwMTE=", "avatar_url": "https://avatars.githubusercontent.com/u/6419011?v=4", "gravatar_id": "", "url": "https://api.github.com/users/spatil6", "html_url": "https://github.com/spatil6", "followers_url": "https://api.github.com/users/spatil6/...
[]
closed
false
null
[]
[]
1,608
1,608
1,608
CONTRIBUTOR
null
This PR implements Sequence classification for TF TransfoXL model. TFTransfoXLForSequenceClassification uses the last token in order to do the classification, as other causal models (e.g. GPT-1 ,GPT-2) do. Fixes #7623 ## Before submitting - [ ] This PR fixes a typo or improves the docs (you can dismiss the othe...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9169/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/9169/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9169", "html_url": "https://github.com/huggingface/transformers/pull/9169", "diff_url": "https://github.com/huggingface/transformers/pull/9169.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9169.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9168
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9168/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9168/comments
https://api.github.com/repos/huggingface/transformers/issues/9168/events
https://github.com/huggingface/transformers/pull/9168
770,091,454
MDExOlB1bGxSZXF1ZXN0NTQxOTAwODY4
9,168
Fix gradient clipping for Sharded DDP
{ "login": "sgugger", "id": 35901082, "node_id": "MDQ6VXNlcjM1OTAxMDgy", "avatar_url": "https://avatars.githubusercontent.com/u/35901082?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sgugger", "html_url": "https://github.com/sgugger", "followers_url": "https://api.github.com/users/sgugge...
[]
closed
false
null
[]
[]
1,608
1,608
1,608
COLLABORATOR
null
# What does this PR do? As mentioned in the discussion of #9156, `Trainer` does not do gradient clipping correctly when using a sharded optimizer. This PR fixes that, and also allows `Trainer` to not perform any gradient clipping (by passing `None` or `0` to the corresponding argument).
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9168/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/9168/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9168", "html_url": "https://github.com/huggingface/transformers/pull/9168", "diff_url": "https://github.com/huggingface/transformers/pull/9168.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9168.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9167
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9167/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9167/comments
https://api.github.com/repos/huggingface/transformers/issues/9167/events
https://github.com/huggingface/transformers/pull/9167
770,089,471
MDExOlB1bGxSZXF1ZXN0NTQxODk5MzYz
9,167
Add disclaimer to TAPAS rst file
{ "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,608
1,608
1,608
MEMBER
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9167/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/9167/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9167", "html_url": "https://github.com/huggingface/transformers/pull/9167", "diff_url": "https://github.com/huggingface/transformers/pull/9167.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9167.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9166
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9166/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9166/comments
https://api.github.com/repos/huggingface/transformers/issues/9166/events
https://github.com/huggingface/transformers/issues/9166
770,061,905
MDU6SXNzdWU3NzAwNjE5MDU=
9,166
Language modeling logging
{ "login": "Ganeshgit96", "id": 76167840, "node_id": "MDQ6VXNlcjc2MTY3ODQw", "avatar_url": "https://avatars.githubusercontent.com/u/76167840?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Ganeshgit96", "html_url": "https://github.com/Ganeshgit96", "followers_url": "https://api.github.com/...
[]
closed
false
null
[]
[ "I think @LysandreJik will know more what to do for the logging. Also, we usually ask questions like this on the [forum](https://discuss.huggingface.co/) and keep issues for bugs/feature requests.", "If you want to output everything to a file, you can redirect the standard output/standard error to a file. We use ...
1,608
1,608
1,608
NONE
null
## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version:4.0.0-rc-1 - Platform:Linux - Python version:Python 3.7.9 - PyTorch version (GPU?):1.4.0 - Tensorflow v...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9166/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/9166/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9165
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9165/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9165/comments
https://api.github.com/repos/huggingface/transformers/issues/9165/events
https://github.com/huggingface/transformers/issues/9165
770,051,701
MDU6SXNzdWU3NzAwNTE3MDE=
9,165
Roberta python Tokenizer encodes differently across transformers==2.11 and transformers==4.0.1
{ "login": "ypapanik", "id": 22024955, "node_id": "MDQ6VXNlcjIyMDI0OTU1", "avatar_url": "https://avatars.githubusercontent.com/u/22024955?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ypapanik", "html_url": "https://github.com/ypapanik", "followers_url": "https://api.github.com/users/ypa...
[]
closed
false
null
[]
[ "Hi, note that 'suicide' and ' suicide' are indeed different tokens with respect to SentencePieces, which is used by Roberta.\r\n\r\nSentencePieces keeps white space intact. So we expect different tokens from 'suicide' and ' suicide'. \r\n\r\nI assume in the old transformers 2.x, strip was applied in the tokenizer ...
1,608
1,608
1,608
NONE
null
## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: 2.11 vs 4.0.1 - Platform: Any - Python version: 3.8.3 - PyTorch version (GPU?): Any - Tensorflow versi...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9165/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/9165/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9164
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9164/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9164/comments
https://api.github.com/repos/huggingface/transformers/issues/9164/events
https://github.com/huggingface/transformers/pull/9164
770,032,503
MDExOlB1bGxSZXF1ZXN0NTQxODY2NzEx
9,164
Add clipping to relative positional embedding
{ "login": "hadaev8", "id": 20247085, "node_id": "MDQ6VXNlcjIwMjQ3MDg1", "avatar_url": "https://avatars.githubusercontent.com/u/20247085?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hadaev8", "html_url": "https://github.com/hadaev8", "followers_url": "https://api.github.com/users/hadaev...
[]
closed
false
null
[]
[ "@patrickvonplaten @LysandreJik @julien-c @zhiheng-huang", "Hey @hadaev8,\r\n\r\nThanks for your PR. It would be awesome if you could provide a code snippet to this PR that shows a case where the current implementation of BERT's relative positional embeddings would fail. Hope it's fine to tag the original author ...
1,608
1,622
1,622
CONTRIBUTOR
null
# What does this PR do? This PR adds clipping to distance embedding as described in the paper [Improve Transformer Models with Better Relative Position Embeddings](https://arxiv.org/abs/2009.13658) Without this addition, the model with relative positional embedding will return an error if the input length above max...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9164/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/9164/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9164", "html_url": "https://github.com/huggingface/transformers/pull/9164", "diff_url": "https://github.com/huggingface/transformers/pull/9164.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9164.patch", "merged_at": n...
https://api.github.com/repos/huggingface/transformers/issues/9163
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9163/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9163/comments
https://api.github.com/repos/huggingface/transformers/issues/9163/events
https://github.com/huggingface/transformers/pull/9163
769,990,931
MDExOlB1bGxSZXF1ZXN0NTQxODQ1Mjk2
9,163
Fix mixed precision in TF models
{ "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,608
1,611
1,611
CONTRIBUTOR
null
# What does this PR do? This PR aims to fix the mixed precision issues when `tf.keras.mixed_precision.experimental.set_policy()` is set to something else than `tf.float32`. In the same page, this PR aims to fix some TFLite quantization issues. Before to further continue this PR, the PR #9418 has to be merged. ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9163/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/9163/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9163", "html_url": "https://github.com/huggingface/transformers/pull/9163", "diff_url": "https://github.com/huggingface/transformers/pull/9163.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9163.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9162
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9162/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9162/comments
https://api.github.com/repos/huggingface/transformers/issues/9162/events
https://github.com/huggingface/transformers/issues/9162
769,695,682
MDU6SXNzdWU3Njk2OTU2ODI=
9,162
IndexError: index out of range in self while using longformers when i try to pass token_type_ids
{ "login": "yuvarajvc", "id": 7568817, "node_id": "MDQ6VXNlcjc1Njg4MTc=", "avatar_url": "https://avatars.githubusercontent.com/u/7568817?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yuvarajvc", "html_url": "https://github.com/yuvarajvc", "followers_url": "https://api.github.com/users/yu...
[ { "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 we assume that \"token_type_ids\" will not support in longformer?", "Yes, actually yesterday a PR (#9152) was merged to update the docs stating the LongFormer does not support token type ids. ", "@NielsRogge Thank you", "This issue has been automatically marked as stale and been closed because it has not...
1,608
1,614
1,614
NONE
null
- `transformers` version: 3.0.0 - Platform: windows - Python version: 3.6.10 :: Anaconda, Inc. - PyTorch version (GPU?): 1.7.0+cu101 - Tensorflow version (GPU?): - Using GPU in script?: - Using distributed or parallel set-up in script?: ### Who can help <!-- Your issue will be replied to more quickly i...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9162/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/9162/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9161
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9161/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9161/comments
https://api.github.com/repos/huggingface/transformers/issues/9161/events
https://github.com/huggingface/transformers/issues/9161
769,556,446
MDU6SXNzdWU3Njk1NTY0NDY=
9,161
Metric calculation across batches in seq2seq examples
{ "login": "ZhaofengWu", "id": 11954789, "node_id": "MDQ6VXNlcjExOTU0Nzg5", "avatar_url": "https://avatars.githubusercontent.com/u/11954789?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ZhaofengWu", "html_url": "https://github.com/ZhaofengWu", "followers_url": "https://api.github.com/use...
[]
closed
false
{ "login": "patil-suraj", "id": 27137566, "node_id": "MDQ6VXNlcjI3MTM3NTY2", "avatar_url": "https://avatars.githubusercontent.com/u/27137566?v=4", "gravatar_id": "", "url": "https://api.github.com/users/patil-suraj", "html_url": "https://github.com/patil-suraj", "followers_url": "https://api.github.com/...
[ { "login": "patil-suraj", "id": 27137566, "node_id": "MDQ6VXNlcjI3MTM3NTY2", "avatar_url": "https://avatars.githubusercontent.com/u/27137566?v=4", "gravatar_id": "", "url": "https://api.github.com/users/patil-suraj", "html_url": "https://github.com/patil-suraj", "followers_url": "htt...
[ "Definitely not correct. Additionally, the final batch might be much smaller (and still weighted evenly). To get \"perfect\" bleu scores use `run_distributed_eval.py`\r\n", "Right, that's what I thought as well. If we think saving all the intermediate output and computing the bleu score once at the end of each va...
1,608
1,614
1,614
CONTRIBUTOR
null
### Who can help @sshleifer, @patil-suraj ## Information Currently, the seq2seq finetune script calculates the final metrics (bleu or rouge) per batch, and then simply averages these numbers across batches. Is it correct? For example, I just took a brief look at sacrebleu (which the script uses), and it seems th...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9161/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/9161/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9160
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9160/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9160/comments
https://api.github.com/repos/huggingface/transformers/issues/9160/events
https://github.com/huggingface/transformers/issues/9160
769,358,412
MDU6SXNzdWU3NjkzNTg0MTI=
9,160
Trainer bug? Loss and logits are “nan” when fine-tuning NLI model (both RoBERTa/BART)
{ "login": "MoritzLaurer", "id": 41862082, "node_id": "MDQ6VXNlcjQxODYyMDgy", "avatar_url": "https://avatars.githubusercontent.com/u/41862082?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MoritzLaurer", "html_url": "https://github.com/MoritzLaurer", "followers_url": "https://api.github.c...
[]
closed
false
null
[]
[ "**Update:** \r\nI reran the training in native PyTorch with the following code and I did not get the same issue. This means that there is some issue with the trainer?\r\n\r\n```\r\nimport torch\r\n\r\nclass XDataset(torch.utils.data.Dataset):\r\n def __init__(self, encodings, labels):\r\n self.encodings ...
1,608
1,630
1,608
NONE
null
## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: 4.0.1 (also reproduced the same issue with 3.5.1) - Platform: Google Colab - Python version: 3.6 - PyT...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9160/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/9160/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9159
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9159/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9159/comments
https://api.github.com/repos/huggingface/transformers/issues/9159/events
https://github.com/huggingface/transformers/issues/9159
769,335,819
MDU6SXNzdWU3NjkzMzU4MTk=
9,159
Unified transformer interface
{ "login": "ZhaofengWu", "id": 11954789, "node_id": "MDQ6VXNlcjExOTU0Nzg5", "avatar_url": "https://avatars.githubusercontent.com/u/11954789?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ZhaofengWu", "html_url": "https://github.com/ZhaofengWu", "followers_url": "https://api.github.com/use...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null } ]
closed
false
null
[]
[ "Hi @ZhaofengWu, thank you for proposing this feature. \r\n\r\nYou're noting a decision that we've made very early on in the design of the `transformers` library, which is to have standalone model files, **without any abstraction**, including the `Transformer` abstraction you're noting here. We believe it's much ea...
1,608
1,614
1,614
CONTRIBUTOR
null
# 🚀 Feature request As we're called `transformers`, it would be nice if there's a `Transformer` class that is not associated with any pretrained model and that we can directly instantiate, like ```python from transformers import Transformer, Seq2SeqTransformer transformer = Transformer(n_layers=8, dim=512) seq...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9159/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/9159/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9158
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9158/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9158/comments
https://api.github.com/repos/huggingface/transformers/issues/9158/events
https://github.com/huggingface/transformers/issues/9158
769,247,862
MDU6SXNzdWU3NjkyNDc4NjI=
9,158
Getting a 404 error when loading 'model=facebook/bart-large-mnli' from pipeline('zero-shot-classification')
{ "login": "Sneg42", "id": 25573820, "node_id": "MDQ6VXNlcjI1NTczODIw", "avatar_url": "https://avatars.githubusercontent.com/u/25573820?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Sneg42", "html_url": "https://github.com/Sneg42", "followers_url": "https://api.github.com/users/Sneg42/fo...
[]
closed
false
null
[]
[ "After the full restart PC, works fine. " ]
1,608
1,608
1,608
NONE
null
Getting a 404 when trying to load the model. model='joeddav/bart-large-mnli-yahoo-answers' also not working. `404 Client Error: Not Found for url: https://huggingface.co/facebook/bart-large-mnli/resolve/main/tf_model.h5 --------------------------------------------------------------------------- HTTPError ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9158/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/9158/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9157
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9157/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9157/comments
https://api.github.com/repos/huggingface/transformers/issues/9157/events
https://github.com/huggingface/transformers/issues/9157
769,215,920
MDU6SXNzdWU3NjkyMTU5MjA=
9,157
T5 checkpoint contains weights missing on current model.
{ "login": "dscarmo", "id": 10614968, "node_id": "MDQ6VXNlcjEwNjE0OTY4", "avatar_url": "https://avatars.githubusercontent.com/u/10614968?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dscarmo", "html_url": "https://github.com/dscarmo", "followers_url": "https://api.github.com/users/dscarm...
[]
closed
false
null
[]
[ "Yes we should fix the warning. It's no problem that those weights are missing i.e.:\r\n#8933", "Thank you! " ]
1,608
1,608
1,608
NONE
null
## Environment info Colab (16 december 2020), transformers 4.0.1 ### Who can help T5: @patrickvonplaten ## Information When loading the pre-trained T5 weights, directy with .from_pretrained, with the newest version, it returns the following warning: > Some weights of the model checkpoint at t5-small were ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9157/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/9157/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9156
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9156/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9156/comments
https://api.github.com/repos/huggingface/transformers/issues/9156/events
https://github.com/huggingface/transformers/issues/9156
769,186,878
MDU6SXNzdWU3NjkxODY4Nzg=
9,156
Sharded DDP training fails with seq2seq models
{ "login": "sgugger", "id": 35901082, "node_id": "MDQ6VXNlcjM1OTAxMDgy", "avatar_url": "https://avatars.githubusercontent.com/u/35901082?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sgugger", "html_url": "https://github.com/sgugger", "followers_url": "https://api.github.com/users/sgugge...
[]
closed
false
null
[]
[ "This is just a brief log of the 2 distinct errors mentioned in OP:\r\n\r\nw/ `--fp16` the failure is:\r\n```\r\n File \"./finetune_trainer.py\", line 379, in <module>\r\n main()\r\n File \"./finetune_trainer.py\", line 315, in main\r\n trainer.train(\r\n File \"/mnt/nvme1/code/huggingface/transformers-mas...
1,608
1,633
1,609
COLLABORATOR
null
## Information Model I am using (Bert, XLNet ...): T5/BART/mBART/Marian The problem arises when using: * [x] the official example scripts: (give details below) * [ ] my own modified scripts: (give details below) The tasks I am working on is: * [x] an official GLUE/SQUaD task: seq2seq * [ ] my own task or d...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9156/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/9156/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9155
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9155/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9155/comments
https://api.github.com/repos/huggingface/transformers/issues/9155/events
https://github.com/huggingface/transformers/issues/9155
769,087,617
MDU6SXNzdWU3NjkwODc2MTc=
9,155
evaluate_during_training is not acceptable in newer version of the Transformer
{ "login": "meysamgh", "id": 34138742, "node_id": "MDQ6VXNlcjM0MTM4NzQy", "avatar_url": "https://avatars.githubusercontent.com/u/34138742?v=4", "gravatar_id": "", "url": "https://api.github.com/users/meysamgh", "html_url": "https://github.com/meysamgh", "followers_url": "https://api.github.com/users/mey...
[]
closed
false
null
[]
[ "This argument was deprecated in transformers version 3.5 and removed in version 4.0, as indicated in the [release notes](https://github.com/huggingface/transformers/releases/). It needs to be replaced by `evaluation_strategy=\"steps\"` or `evaluation_strategy=\"epoch\"`" ]
1,608
1,608
1,608
NONE
null
## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: 4.0.0 - Platform: Linux-3.10.0-1127.19.1.el7.x86_64-x86_64-with-centos-7.9.2009-Core - Python version: ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9155/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/9155/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9154
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9154/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9154/comments
https://api.github.com/repos/huggingface/transformers/issues/9154/events
https://github.com/huggingface/transformers/pull/9154
769,021,330
MDExOlB1bGxSZXF1ZXN0NTQxMjYxMTMz
9,154
AutoModelForTableQuestionAnswering
{ "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,608
1,608
1,608
MEMBER
null
Adds the `AutoModelForTableQuestionAnswering`
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9154/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/9154/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9154", "html_url": "https://github.com/huggingface/transformers/pull/9154", "diff_url": "https://github.com/huggingface/transformers/pull/9154.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9154.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9153
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9153/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9153/comments
https://api.github.com/repos/huggingface/transformers/issues/9153/events
https://github.com/huggingface/transformers/issues/9153
769,007,538
MDU6SXNzdWU3NjkwMDc1Mzg=
9,153
BertForSequenceClassification and DistilBertForSequenceClassification use pooler output in different ways
{ "login": "AndreaSottana", "id": 48888970, "node_id": "MDQ6VXNlcjQ4ODg4OTcw", "avatar_url": "https://avatars.githubusercontent.com/u/48888970?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AndreaSottana", "html_url": "https://github.com/AndreaSottana", "followers_url": "https://api.githu...
[]
closed
false
null
[]
[ "BERT and DistilBERT are different models. DistilBERT isn't simply a BERT model with fewer layers, but a BERT model without the pooling layer as you have seen, and with no token type embeddings.\r\n\r\nWe try to stay as close to the original implementations as possible, hence why BERT is done this way, and why Dist...
1,608
1,608
1,608
CONTRIBUTOR
null
Hi, The `BertForSequenceClassification` includes a forward pass of the BertModel, and it takes the second element (index 1) from its output before moving forward, as shown [here ](https://github.com/huggingface/transformers/blob/master/src/transformers/models/bert/modeling_bert.py#L1378 ) This is the return of `BertM...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9153/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/9153/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9152
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9152/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9152/comments
https://api.github.com/repos/huggingface/transformers/issues/9152/events
https://github.com/huggingface/transformers/pull/9152
768,989,315
MDExOlB1bGxSZXF1ZXN0NTQxMjM3ODAx
9,152
Add message to documentation that longformer doesn't support token_type_ids
{ "login": "HHousen", "id": 11785397, "node_id": "MDQ6VXNlcjExNzg1Mzk3", "avatar_url": "https://avatars.githubusercontent.com/u/11785397?v=4", "gravatar_id": "", "url": "https://api.github.com/users/HHousen", "html_url": "https://github.com/HHousen", "followers_url": "https://api.github.com/users/HHouse...
[]
closed
false
null
[]
[ "Thanks for your PR! It looks like you did not run the `make style` command to format properly your changes.", "@sgugger Sorry about that. It should be good now.", "Thanks a lot!" ]
1,608
1,608
1,608
CONTRIBUTOR
null
# What does this PR do? Fixes #9111. This pull request adds a notice to the Longformer model documentation that it does not have `token_type_ids`, similarly to the message on the [RoBERTa documentation](https://huggingface.co/transformers/model_doc/roberta.html). ## Before submitting - [x] This PR fixes a typo...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9152/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/9152/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9152", "html_url": "https://github.com/huggingface/transformers/pull/9152", "diff_url": "https://github.com/huggingface/transformers/pull/9152.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9152.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9151
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9151/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9151/comments
https://api.github.com/repos/huggingface/transformers/issues/9151/events
https://github.com/huggingface/transformers/pull/9151
768,853,586
MDExOlB1bGxSZXF1ZXN0NTQxMTU3MzM4
9,151
Added TF CTRL Sequence Classification
{ "login": "spatil6", "id": 6419011, "node_id": "MDQ6VXNlcjY0MTkwMTE=", "avatar_url": "https://avatars.githubusercontent.com/u/6419011?v=4", "gravatar_id": "", "url": "https://api.github.com/users/spatil6", "html_url": "https://github.com/spatil6", "followers_url": "https://api.github.com/users/spatil6/...
[]
closed
false
null
[]
[]
1,608
1,608
1,608
CONTRIBUTOR
null
This PR implements Sequence classification for TF CTRL model. TFCTRLForSequenceClassification uses the last token in order to do the classification, as other causal models (e.g. Transformer XL ,GPT-2) do. Fixes #7623 ## Before submitting - [ ] This PR fixes a typo or improves the docs (you can dismiss the other...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9151/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/9151/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9151", "html_url": "https://github.com/huggingface/transformers/pull/9151", "diff_url": "https://github.com/huggingface/transformers/pull/9151.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9151.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9150
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9150/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9150/comments
https://api.github.com/repos/huggingface/transformers/issues/9150/events
https://github.com/huggingface/transformers/pull/9150
768,836,641
MDExOlB1bGxSZXF1ZXN0NTQxMTQ2MzI2
9,150
Add flags to return scores, hidden states and / or attention weights in GenerationMixin
{ "login": "SBrandeis", "id": 33657802, "node_id": "MDQ6VXNlcjMzNjU3ODAy", "avatar_url": "https://avatars.githubusercontent.com/u/33657802?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SBrandeis", "html_url": "https://github.com/SBrandeis", "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": 18340590...
closed
false
null
[]
[ "@patrickvonplaten ready for a second review\r\nI guess the next steps are to implement GreedySearchOutput for TF and to update the pipelines using generation?", "Think it should now be relatively straight-forward to implement the outputs for the other generate methods. Seems like circle ci is in holiday...let's ...
1,608
1,610
1,609
CONTRIBUTOR
null
# What does this PR do? Add flags and logic to return attention scores, hidden states, and/or logits when using a model in generation mode. Fixes #9121 ## Before submitting - [ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case). - [x] Did you read the [contri...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9150/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/9150/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9150", "html_url": "https://github.com/huggingface/transformers/pull/9150", "diff_url": "https://github.com/huggingface/transformers/pull/9150.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9150.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9149
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9149/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9149/comments
https://api.github.com/repos/huggingface/transformers/issues/9149/events
https://github.com/huggingface/transformers/issues/9149
768,797,124
MDU6SXNzdWU3Njg3OTcxMjQ=
9,149
Log metrics along with hparams in TensorBoardCallback
{ "login": "howardlau1999", "id": 5250490, "node_id": "MDQ6VXNlcjUyNTA0OTA=", "avatar_url": "https://avatars.githubusercontent.com/u/5250490?v=4", "gravatar_id": "", "url": "https://api.github.com/users/howardlau1999", "html_url": "https://github.com/howardlau1999", "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
[]
[ "This issue has been automatically marked as stale and been closed because it has not had recent activity. Thank you for your contributions.\n\nIf you think this still needs to be addressed please comment on this thread." ]
1,608
1,614
1,614
NONE
null
# 🚀 Feature request <!-- A clear and concise description of the feature proposal. Please provide a link to the paper and code in case they exist. --> Log metrics along with hparams in TensorBoardCallback. ## Motivation <!-- Please outline the motivation for the proposal. Is your feature request ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9149/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/9149/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9148
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9148/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9148/comments
https://api.github.com/repos/huggingface/transformers/issues/9148/events
https://github.com/huggingface/transformers/pull/9148
768,687,237
MDExOlB1bGxSZXF1ZXN0NTQxMDU3NjIy
9,148
DistilBertForSequenceClassification
{ "login": "AndreaSottana", "id": 48888970, "node_id": "MDQ6VXNlcjQ4ODg4OTcw", "avatar_url": "https://avatars.githubusercontent.com/u/48888970?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AndreaSottana", "html_url": "https://github.com/AndreaSottana", "followers_url": "https://api.githu...
[]
closed
false
null
[]
[]
1,608
1,608
1,608
CONTRIBUTOR
null
DistilBertForSequenceClassification fix small shape error in comments
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9148/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/9148/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9148", "html_url": "https://github.com/huggingface/transformers/pull/9148", "diff_url": "https://github.com/huggingface/transformers/pull/9148.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9148.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9147
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9147/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9147/comments
https://api.github.com/repos/huggingface/transformers/issues/9147/events
https://github.com/huggingface/transformers/issues/9147
768,579,182
MDU6SXNzdWU3Njg1NzkxODI=
9,147
BertTokenizer.from_pretrained fails for local_files_only=True when added_tokens.json is missing
{ "login": "julianmichael", "id": 5375447, "node_id": "MDQ6VXNlcjUzNzU0NDc=", "avatar_url": "https://avatars.githubusercontent.com/u/5375447?v=4", "gravatar_id": "", "url": "https://api.github.com/users/julianmichael", "html_url": "https://github.com/julianmichael", "followers_url": "https://api.github....
[]
closed
false
null
[]
[ "Actually, all of the files 404 here except `vocab.txt`. I have `added_tokens.json`, `special_tokens_map.json`, `tokenizer_config.json`, and `tokenizer.json` all missing for this model.", "> Actually, all of the files 404 here except `vocab.txt`. I have `added_tokens.json`, `special_tokens_map.json`, `tokenizer_c...
1,608
1,611
1,611
NONE
null
## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: 4.0.1 - Platform: Linux-3.10.0-957.el7.x86_64-x86_64-with-centos-7.6.1810-Core - Python version: 3.7.6 ...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9147/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/9147/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9146
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9146/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9146/comments
https://api.github.com/repos/huggingface/transformers/issues/9146/events
https://github.com/huggingface/transformers/issues/9146
768,454,735
MDU6SXNzdWU3Njg0NTQ3MzU=
9,146
Ray tune hyperparameters search error
{ "login": "howardlau1999", "id": 5250490, "node_id": "MDQ6VXNlcjUyNTA0OTA=", "avatar_url": "https://avatars.githubusercontent.com/u/5250490?v=4", "gravatar_id": "", "url": "https://api.github.com/users/howardlau1999", "html_url": "https://github.com/howardlau1999", "followers_url": "https://api.github....
[]
closed
false
null
[]
[ "I googled for the error and it may be related to sending a large object to redis. Was it because the datasets are too large?", "Hi! Did you try to open an issue at ray directly? It seems to be linked to their library rather than `transformers`", "> Hi! Did you try to open an issue at ray directly? It seems to ...
1,608
1,611
1,611
NONE
null
## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: 4.1.0.dev0 - Platform: Linux-4.4.0-139-generic-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyTorch versi...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9146/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/9146/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9145
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9145/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9145/comments
https://api.github.com/repos/huggingface/transformers/issues/9145/events
https://github.com/huggingface/transformers/pull/9145
768,389,676
MDExOlB1bGxSZXF1ZXN0NTQwODQzMTY2
9,145
TableQuestionAnsweringPipeline
{ "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
[]
[ "@NielsRogge I can't ping you for review but I would love your input on this!", "Thanks for your comments @patrickvonplaten @sgugger, applied your changes. This PR includes the `AutoModelForTableQuestionAnswering` defined [here](https://github.com/huggingface/transformers/pull/9154), adds a check on `pandas` whic...
1,608
1,608
1,608
MEMBER
null
## TableQuestionAnsweringPipeline Introduces the `TableQuestionAnsweringPipeline` which will be used for the `TableQuestionAnswering` widget: <p align="center"> <img src="https://user-images.githubusercontent.com/30755778/102266591-a9606880-3ee6-11eb-9f16-7173a9a85b58.gif" width="500"> </p> There are exa...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9145/reactions", "total_count": 5, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 5, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/9145/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9145", "html_url": "https://github.com/huggingface/transformers/pull/9145", "diff_url": "https://github.com/huggingface/transformers/pull/9145.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9145.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9144
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9144/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9144/comments
https://api.github.com/repos/huggingface/transformers/issues/9144/events
https://github.com/huggingface/transformers/issues/9144
768,344,560
MDU6SXNzdWU3NjgzNDQ1NjA=
9,144
Saving model errors
{ "login": "cyfugr", "id": 13256398, "node_id": "MDQ6VXNlcjEzMjU2Mzk4", "avatar_url": "https://avatars.githubusercontent.com/u/13256398?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cyfugr", "html_url": "https://github.com/cyfugr", "followers_url": "https://api.github.com/users/cyfugr/fo...
[ { "id": 1314768611, "node_id": "MDU6TGFiZWwxMzE0NzY4NjEx", "url": "https://api.github.com/repos/huggingface/transformers/labels/wontfix", "name": "wontfix", "color": "ffffff", "default": true, "description": null } ]
closed
false
null
[]
[ "Hi, I'm sorry but I don't know spell.ml or how it works; if it works in a colab notebook and saves correctly, it seems the issue comes from spell.ml rather than transformers.", "This issue has been automatically marked as stale and been closed because it has not had recent activity. Thank you for your contributi...
1,608
1,614
1,614
NONE
null
I am trying to fine-tune distillbert for a multilabel task using a V100 gpu and latest transformers from pip. When i try to save the model i get this error: ``` Traceback (most recent call last): File "script/fine_tune_distillbert.py", line 51, in <module> model.save_pretrained(ROOT_DIR) File "/usr/local/...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9144/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/9144/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9143
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9143/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9143/comments
https://api.github.com/repos/huggingface/transformers/issues/9143/events
https://github.com/huggingface/transformers/pull/9143
768,271,532
MDExOlB1bGxSZXF1ZXN0NTQwNzY2NzAx
9,143
Pass kwargs to Pipeline's tokenizer call
{ "login": "guyrosin", "id": 1250162, "node_id": "MDQ6VXNlcjEyNTAxNjI=", "avatar_url": "https://avatars.githubusercontent.com/u/1250162?v=4", "gravatar_id": "", "url": "https://api.github.com/users/guyrosin", "html_url": "https://github.com/guyrosin", "followers_url": "https://api.github.com/users/guyro...
[]
closed
false
null
[]
[ "cc @Narsil who probably knows better.", "Hi @guyrosin , we actually don't want to enable that.\r\nThe problem is that kwargs are used both by `_parse_and_tokenize` and by `generate`/`forward`.\r\nSee discussion here: https://github.com/huggingface/transformers/pull/9432#discussion_r552550844\r\n\r\nI'm guessing ...
1,608
1,610
1,610
CONTRIBUTOR
null
# What does this PR do? When calling a Pipeline, the `kwargs` argument is not passed to the tokenizer (it is actually not used at all). I think the intended behavior is to pass it (as the base tokenizer's `__call__()` method already supports `kwargs`), and that's what this PR does. [Related to #8180] The call ord...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9143/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/9143/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9143", "html_url": "https://github.com/huggingface/transformers/pull/9143", "diff_url": "https://github.com/huggingface/transformers/pull/9143.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9143.patch", "merged_at": n...
https://api.github.com/repos/huggingface/transformers/issues/9142
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9142/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9142/comments
https://api.github.com/repos/huggingface/transformers/issues/9142/events
https://github.com/huggingface/transformers/issues/9142
768,249,379
MDU6SXNzdWU3NjgyNDkzNzk=
9,142
RAGRetriever loads dataset in the default cache dir even if a different one is specified
{ "login": "JamesDeAntonis", "id": 33379057, "node_id": "MDQ6VXNlcjMzMzc5MDU3", "avatar_url": "https://avatars.githubusercontent.com/u/33379057?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JamesDeAntonis", "html_url": "https://github.com/JamesDeAntonis", "followers_url": "https://api.gi...
[]
closed
false
null
[]
[ "Indeed! Would you like to open a PR with your fix?", "I am dealing with this issue too, would love to find a way around this. ", "This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.\n\nPlease note...
1,608
1,619
1,619
CONTRIBUTOR
null
## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: latest - Platform: any - Python version: 3.8 - PyTorch version (GPU?): any - Tensorflow version (GPU?)...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9142/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/9142/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9141
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9141/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9141/comments
https://api.github.com/repos/huggingface/transformers/issues/9141/events
https://github.com/huggingface/transformers/pull/9141
768,242,109
MDExOlB1bGxSZXF1ZXN0NTQwNzQ3MTM0
9,141
Support for private models from huggingface.co
{ "login": "julien-c", "id": 326577, "node_id": "MDQ6VXNlcjMyNjU3Nw==", "avatar_url": "https://avatars.githubusercontent.com/u/326577?v=4", "gravatar_id": "", "url": "https://api.github.com/users/julien-c", "html_url": "https://github.com/julien-c", "followers_url": "https://api.github.com/users/julien-...
[]
closed
false
null
[]
[ "@patrickvonplaten I don't follow here. In this PR we want to have a way to either pass a token directly, or to opt in to use the one that's store in `~/`. Don't see how I can do that with just an optional string?", "> @patrickvonplaten I don't follow here. In this PR we want to have a way to either pass a token ...
1,608
1,608
1,608
MEMBER
null
Add a `use_auth_token` flag (or string) to all `from_pretrained` entry points, to specify token to use as Bearer authorization for remote files. - if it's a string, use it - If it's true, will get token from `~/.huggingface/token` (will throw if no token there) You can test this with: ```python model = Auto...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9141/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/9141/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9141", "html_url": "https://github.com/huggingface/transformers/pull/9141", "diff_url": "https://github.com/huggingface/transformers/pull/9141.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9141.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9140
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9140/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9140/comments
https://api.github.com/repos/huggingface/transformers/issues/9140/events
https://github.com/huggingface/transformers/pull/9140
768,202,340
MDExOlB1bGxSZXF1ZXN0NTQwNzE4NDg0
9,140
Fix T5 Encoder model parallel tests
{ "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,608
1,608
1,608
MEMBER
null
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9140/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/9140/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9140", "html_url": "https://github.com/huggingface/transformers/pull/9140", "diff_url": "https://github.com/huggingface/transformers/pull/9140.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9140.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9139
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9139/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9139/comments
https://api.github.com/repos/huggingface/transformers/issues/9139/events
https://github.com/huggingface/transformers/pull/9139
768,183,956
MDExOlB1bGxSZXF1ZXN0NTQwNzAzOTc3
9,139
Experimental support for fairscale ShardedDDP
{ "login": "sgugger", "id": 35901082, "node_id": "MDQ6VXNlcjM1OTAxMDgy", "avatar_url": "https://avatars.githubusercontent.com/u/35901082?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sgugger", "html_url": "https://github.com/sgugger", "followers_url": "https://api.github.com/users/sgugge...
[]
closed
false
null
[]
[ "wrt your notes on GPU memory consumption improvements - from what I have seen checking GPU allocation often doesn't show the real difference, as pytorch tends to use more than it absolutely needs if there is spare memory - or rather it can go with less when the memory is tight - so to get the best improvements sta...
1,608
1,608
1,608
COLLABORATOR
null
# What does this PR do? This PR adds support for [FairScale](https://github.com/facebookresearch/fairscale)'s shared DDP training to save GPU memory when training distributed models. Initial tests see a nice reduction of GPU memory used indeed! This follows the steps of the [main example](https://github.com/faceb...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9139/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 2, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/9139/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9139", "html_url": "https://github.com/huggingface/transformers/pull/9139", "diff_url": "https://github.com/huggingface/transformers/pull/9139.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9139.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9138
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9138/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9138/comments
https://api.github.com/repos/huggingface/transformers/issues/9138/events
https://github.com/huggingface/transformers/issues/9138
768,085,875
MDU6SXNzdWU3NjgwODU4NzU=
9,138
adapting trainer.py for multiple optimizers
{ "login": "rabeehkarimimahabadi", "id": 73364383, "node_id": "MDQ6VXNlcjczMzY0Mzgz", "avatar_url": "https://avatars.githubusercontent.com/u/73364383?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rabeehkarimimahabadi", "html_url": "https://github.com/rabeehkarimimahabadi", "followers_url...
[]
closed
false
null
[]
[ "Hello, thanks for opening an issue! We try to keep the github issues for bugs/feature requests.\r\nCould you ask your question on the [forum](https://discusss.huggingface.co) instead?\r\n\r\nThanks!" ]
1,608
1,608
1,608
NONE
null
Hi I was wondering if there can be an easy way to adapt trainer.py for multiple optimizers, where each optimizer is responsible for updating a part of model. thanks
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9138/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/9138/timeline
completed
null
null
https://api.github.com/repos/huggingface/transformers/issues/9137
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9137/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9137/comments
https://api.github.com/repos/huggingface/transformers/issues/9137/events
https://github.com/huggingface/transformers/pull/9137
768,083,743
MDExOlB1bGxSZXF1ZXN0NTQwNjE3NDM4
9,137
Add possibility to switch between APEX and AMP in Trainer
{ "login": "sgugger", "id": 35901082, "node_id": "MDQ6VXNlcjM1OTAxMDgy", "avatar_url": "https://avatars.githubusercontent.com/u/35901082?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sgugger", "html_url": "https://github.com/sgugger", "followers_url": "https://api.github.com/users/sgugge...
[]
closed
false
null
[]
[ "This PR also removes `_use_ddp_no_sync` since presumably `transformers` no longer supports pytorch < 1.2", "There was one nit that you agreed with but didn't integrate - but I'm fine if it remains as merged - just a potential for divergence down the road...", "Oh, which one did I miss?", "https://github.com/...
1,608
1,608
1,608
COLLABORATOR
null
# What does this PR do? When PyTorch >= 1.6 is installed, Trainer is always using native AMP right now. This PR adds the option to switch between AMP and APEX, which can be useful: - because of the memory leak in AMP fixed (fixed in 1.7.1 but present in 1.6) - to benchmark APEX vs. AMP It also simplifies a litt...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9137/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/9137/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9137", "html_url": "https://github.com/huggingface/transformers/pull/9137", "diff_url": "https://github.com/huggingface/transformers/pull/9137.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9137.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9136
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9136/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9136/comments
https://api.github.com/repos/huggingface/transformers/issues/9136/events
https://github.com/huggingface/transformers/pull/9136
768,007,494
MDExOlB1bGxSZXF1ZXN0NTQwNTUyNTkx
9,136
Update notebook table and transformers intro notebook
{ "login": "sgugger", "id": 35901082, "node_id": "MDQ6VXNlcjM1OTAxMDgy", "avatar_url": "https://avatars.githubusercontent.com/u/35901082?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sgugger", "html_url": "https://github.com/sgugger", "followers_url": "https://api.github.com/users/sgugge...
[]
closed
false
null
[]
[ "Discussion on pinning/testing notebooks needs to be global on all notebooks (not just one) so merging this for now. We can think of a strategy and implement it in a follow-up PR." ]
1,608
1,608
1,608
COLLABORATOR
null
# What does this PR do? Update the examples table and the notebooks table to include all recent examples. Also fix the intro notebook to the transformers library, in particular, the image that was missing. Fixes #9083
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9136/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/9136/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9136", "html_url": "https://github.com/huggingface/transformers/pull/9136", "diff_url": "https://github.com/huggingface/transformers/pull/9136.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9136.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9135
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9135/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9135/comments
https://api.github.com/repos/huggingface/transformers/issues/9135/events
https://github.com/huggingface/transformers/pull/9135
767,900,569
MDExOlB1bGxSZXF1ZXN0NTQwNDcwNjY4
9,135
Fix Bart Shift
{ "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,608
1,608
1,608
MEMBER
null
# What does this PR do? <!-- Congratulations! You've made it this far! You're not quite done yet though. Once merged, your PR is going to appear in the release notes with the title you set, so make sure it's a great title that fully reflects the extent of your awesome contribution. Then, please replace this w...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9135/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/9135/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9135", "html_url": "https://github.com/huggingface/transformers/pull/9135", "diff_url": "https://github.com/huggingface/transformers/pull/9135.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9135.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9134
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9134/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9134/comments
https://api.github.com/repos/huggingface/transformers/issues/9134/events
https://github.com/huggingface/transformers/pull/9134
767,874,020
MDExOlB1bGxSZXF1ZXN0NTQwNDUwNjg0
9,134
[Bart] Correct wrong order in shift token to right in Bart
{ "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,608
1,608
1,608
MEMBER
null
# What does this PR do? <!-- Congratulations! You've made it this far! You're not quite done yet though. Once merged, your PR is going to appear in the release notes with the title you set, so make sure it's a great title that fully reflects the extent of your awesome contribution. Then, please replace this w...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9134/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/9134/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9134", "html_url": "https://github.com/huggingface/transformers/pull/9134", "diff_url": "https://github.com/huggingface/transformers/pull/9134.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9134.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9133
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9133/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9133/comments
https://api.github.com/repos/huggingface/transformers/issues/9133/events
https://github.com/huggingface/transformers/pull/9133
767,857,178
MDExOlB1bGxSZXF1ZXN0NTQwNDM3Nzc3
9,133
[Examples] Add automatic dataset splitting in language-modeling examples
{ "login": "TevenLeScao", "id": 26709476, "node_id": "MDQ6VXNlcjI2NzA5NDc2", "avatar_url": "https://avatars.githubusercontent.com/u/26709476?v=4", "gravatar_id": "", "url": "https://api.github.com/users/TevenLeScao", "html_url": "https://github.com/TevenLeScao", "followers_url": "https://api.github.com/...
[]
closed
false
null
[]
[ "Ah, the commit from #9127 seems to have snuck its way in there. Should I remove it?", "If you can do it easily, that would be best!", "> If you can do it easily, that would be best!\r\n\r\nI've tried for a bit but I think I just made things worse ! If that's OK I'll leave it there and I'll fix things at merge ...
1,608
1,608
1,608
CONTRIBUTOR
null
# What does this PR do? Currently, language-modeling examples support passing a HF-datasets dataset as training data. However, this dataset needs to have a `train` and `validation` split, which is not the case for many language-modeling datasets, which are just unstructured text. The updated scripts automatically pa...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9133/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 0, "rocket": 1, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/9133/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9133", "html_url": "https://github.com/huggingface/transformers/pull/9133", "diff_url": "https://github.com/huggingface/transformers/pull/9133.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9133.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9132
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9132/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9132/comments
https://api.github.com/repos/huggingface/transformers/issues/9132/events
https://github.com/huggingface/transformers/pull/9132
767,834,686
MDExOlB1bGxSZXF1ZXN0NTQwNDIwNDEx
9,132
Fix typo in trainer_tf.py
{ "login": "luckynozomi", "id": 14944822, "node_id": "MDQ6VXNlcjE0OTQ0ODIy", "avatar_url": "https://avatars.githubusercontent.com/u/14944822?v=4", "gravatar_id": "", "url": "https://api.github.com/users/luckynozomi", "html_url": "https://github.com/luckynozomi", "followers_url": "https://api.github.com/...
[]
closed
false
null
[]
[]
1,608
1,608
1,608
CONTRIBUTOR
null
# What does this PR do? Fixes a typo in trainer_tf.py Fixes #9053 @sgugger
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9132/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/9132/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9132", "html_url": "https://github.com/huggingface/transformers/pull/9132", "diff_url": "https://github.com/huggingface/transformers/pull/9132.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9132.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9131
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9131/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9131/comments
https://api.github.com/repos/huggingface/transformers/issues/9131/events
https://github.com/huggingface/transformers/pull/9131
767,813,276
MDExOlB1bGxSZXF1ZXN0NTQwNDAzNzgw
9,131
[Bart] fix bart loss masking
{ "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
[]
[ "cc @patil-suraj " ]
1,608
1,608
1,608
MEMBER
null
# What does this PR do? <!-- Congratulations! You've made it this far! You're not quite done yet though. Once merged, your PR is going to appear in the release notes with the title you set, so make sure it's a great title that fully reflects the extent of your awesome contribution. Then, please replace this w...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9131/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/9131/timeline
null
false
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/9131", "html_url": "https://github.com/huggingface/transformers/pull/9131", "diff_url": "https://github.com/huggingface/transformers/pull/9131.diff", "patch_url": "https://github.com/huggingface/transformers/pull/9131.patch", "merged_at": 1...
https://api.github.com/repos/huggingface/transformers/issues/9130
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9130/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9130/comments
https://api.github.com/repos/huggingface/transformers/issues/9130/events
https://github.com/huggingface/transformers/issues/9130
767,791,245
MDU6SXNzdWU3Njc3OTEyNDU=
9,130
Trainer: support iterable datasets for evaluation
{ "login": "marcelgwerder", "id": 4008557, "node_id": "MDQ6VXNlcjQwMDg1NTc=", "avatar_url": "https://avatars.githubusercontent.com/u/4008557?v=4", "gravatar_id": "", "url": "https://api.github.com/users/marcelgwerder", "html_url": "https://github.com/marcelgwerder", "followers_url": "https://api.github....
[]
closed
false
null
[]
[ "This is more complex than this as the `Trainer` needs to knows in advance the number of elements in your evaluation dataset, so you need to implement a `__len__` method in your evaluation dataset to have `Trainer` work on it.\r\n\r\nAn iterable dataset might make sense for training since you want to yield \"infini...
1,608
1,608
1,608
NONE
null
The trainer seems to support passing iterable datasets as the `train_dataset` (see #5829) but misses to support the same for the `eval_dataset`. I have implemented an iterable dataset for training and now I cannot use the same implementation for evaluation. This doesn't make much sense as evaluation could easily be do...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9130/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/9130/timeline
completed
null
null