url
large_stringlengths
62
66
repository_url
large_stringclasses
1 value
labels_url
large_stringlengths
76
80
comments_url
large_stringlengths
71
75
events_url
large_stringlengths
69
73
html_url
large_stringlengths
50
56
id
int64
377M
4.92B
node_id
large_stringlengths
18
32
number
int64
1
47.4k
title
large_stringlengths
1
487
user
dict
labels
listlengths
0
6
state
large_stringclasses
2 values
locked
bool
2 classes
assignees
listlengths
0
8
milestone
float64
comments
int64
0
163
created_at
timestamp[us, tz=UTC]date
2018-11-03 14:10:20
2026-07-19 13:54:26
updated_at
timestamp[us, tz=UTC]date
2018-11-04 00:35:08
2026-07-19 16:29:50
closed_at
timestamp[us, tz=UTC]date
2018-11-03 14:10:35
2026-07-19 08:47:10
assignee
dict
author_association
large_stringclasses
4 values
issue_field_values
listlengths
0
0
type
dict
active_lock_reason
large_stringclasses
2 values
draft
float64
0
1
pull_request
dict
body
large_stringlengths
0
234k
closed_by
dict
reactions
dict
timeline_url
large_stringlengths
71
75
performed_via_github_app
float64
state_reason
large_stringclasses
4 values
sub_issues_summary
dict
issue_dependencies_summary
dict
pinned_comment
float64
parent_issue_url
large_stringclasses
2 values
is_pull_request
bool
2 classes
comments_text
listlengths
0
100
https://api.github.com/repos/huggingface/transformers/issues/1
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/1/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/1/comments
https://api.github.com/repos/huggingface/transformers/issues/1/events
https://github.com/huggingface/transformers/pull/1
377,057,813
MDExOlB1bGxSZXF1ZXN0MjI4MTIwMzcx
1
Create DataParallel model if several GPUs
{ "login": "VictorSanh", "id": 16107619, "node_id": "MDQ6VXNlcjE2MTA3NjE5", "avatar_url": "https://avatars.githubusercontent.com/u/16107619?v=4", "gravatar_id": "", "url": "https://api.github.com/users/VictorSanh", "html_url": "https://github.com/VictorSanh", "followers_url": "https://api.github.com/use...
[]
closed
false
[]
null
0
2018-11-03T14:10:20Z
2018-11-04T00:35:08Z
2018-11-03T14:10:35Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/1", "html_url": "https://github.com/huggingface/transformers/pull/1", "diff_url": "https://github.com/huggingface/transformers/pull/1.diff", "patch_url": "https://github.com/huggingface/transformers/pull/1.patch", "merged_at": "2018-11-03T1...
{ "login": "VictorSanh", "id": 16107619, "node_id": "MDQ6VXNlcjE2MTA3NjE5", "avatar_url": "https://avatars.githubusercontent.com/u/16107619?v=4", "gravatar_id": "", "url": "https://api.github.com/users/VictorSanh", "html_url": "https://github.com/VictorSanh", "followers_url": "https://api.github.com/use...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/1/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/1/timeline
null
null
null
null
null
null
true
[]
https://api.github.com/repos/huggingface/transformers/issues/4
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/4/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/4/comments
https://api.github.com/repos/huggingface/transformers/issues/4/events
https://github.com/huggingface/transformers/pull/4
377,620,943
MDExOlB1bGxSZXF1ZXN0MjI4NTIxMjA3
4
Fix typo in subheader BertForQuestionAnswering
{ "login": "knutole", "id": 2197944, "node_id": "MDQ6VXNlcjIxOTc5NDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/2197944?v=4", "gravatar_id": "", "url": "https://api.github.com/users/knutole", "html_url": "https://github.com/knutole", "followers_url": "https://api.github.com/users/knutole/...
[]
closed
false
[]
null
1
2018-11-05T23:04:03Z
2018-11-05T23:34:30Z
2018-11-05T23:34:18Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/4", "html_url": "https://github.com/huggingface/transformers/pull/4", "diff_url": "https://github.com/huggingface/transformers/pull/4.diff", "patch_url": "https://github.com/huggingface/transformers/pull/4.patch", "merged_at": "2018-11-05T2...
Should say `BertForQuestionAnswering`, but says `BertForSequenceClassification`.
{ "login": "VictorSanh", "id": 16107619, "node_id": "MDQ6VXNlcjE2MTA3NjE5", "avatar_url": "https://avatars.githubusercontent.com/u/16107619?v=4", "gravatar_id": "", "url": "https://api.github.com/users/VictorSanh", "html_url": "https://github.com/VictorSanh", "followers_url": "https://api.github.com/use...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/4/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/4/timeline
null
null
null
null
null
null
true
[ "exact thanks !" ]
https://api.github.com/repos/huggingface/transformers/issues/6
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/6/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/6/comments
https://api.github.com/repos/huggingface/transformers/issues/6/events
https://github.com/huggingface/transformers/issues/6
377,736,844
MDU6SXNzdWUzNzc3MzY4NDQ=
6
Failure during pytest (and solution for python3)
{ "login": "dandelin", "id": 3676247, "node_id": "MDQ6VXNlcjM2NzYyNDc=", "avatar_url": "https://avatars.githubusercontent.com/u/3676247?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dandelin", "html_url": "https://github.com/dandelin", "followers_url": "https://api.github.com/users/dande...
[]
closed
false
[]
null
1
2018-11-06T08:23:29Z
2018-11-07T23:43:42Z
2018-11-07T23:43:42Z
null
CONTRIBUTOR
[]
null
null
null
null
``` foo@bar:~/foo/bar/pytorch-pretrained-BERT$ pytest -sv ./tests/ ===================================================================================================================== test session starts =================================================================================================================...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/6/reactions", "total_count": 4, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/6/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Thanks, I update the readme." ]
https://api.github.com/repos/huggingface/transformers/issues/5
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/5/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/5/comments
https://api.github.com/repos/huggingface/transformers/issues/5/events
https://github.com/huggingface/transformers/issues/5
377,698,378
MDU6SXNzdWUzNzc2OTgzNzg=
5
MRPC hyperparameters question
{ "login": "ethanjperez", "id": 6402205, "node_id": "MDQ6VXNlcjY0MDIyMDU=", "avatar_url": "https://avatars.githubusercontent.com/u/6402205?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ethanjperez", "html_url": "https://github.com/ethanjperez", "followers_url": "https://api.github.com/us...
[]
closed
false
[]
null
5
2018-11-06T05:30:36Z
2018-11-08T02:04:37Z
2018-11-07T23:42:51Z
null
CONTRIBUTOR
[]
null
null
null
null
When describing how you reproduced the MRPC results, you say: "Our test ran on a few seeds with the original implementation hyper-parameters gave evaluation results between 82 and 87." and you link to the SQuAD hyperparameters (https://github.com/google-research/bert#squad). Is the link a mistake? Or did you use t...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/5/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/5/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi Ethan,\r\nThanks we used the MRPC hyper-parameters indeed, I corrected the README.\r\nRegarding the dev set accuracy, I am not really surprised there is a slightly lower accuracy with the PyTorch version (even though the variance is high so it's hard to get something significant). That is something that is gene...
https://api.github.com/repos/huggingface/transformers/issues/8
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/8/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/8/comments
https://api.github.com/repos/huggingface/transformers/issues/8/events
https://github.com/huggingface/transformers/pull/8
378,859,647
MDExOlB1bGxSZXF1ZXN0MjI5NDY0MjQ5
8
fixed small typos in the README.md
{ "login": "gokriznastic", "id": 14166854, "node_id": "MDQ6VXNlcjE0MTY2ODU0", "avatar_url": "https://avatars.githubusercontent.com/u/14166854?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gokriznastic", "html_url": "https://github.com/gokriznastic", "followers_url": "https://api.github.c...
[]
closed
false
[]
null
1
2018-11-08T18:24:27Z
2018-11-08T20:00:10Z
2018-11-08T20:00:02Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/8", "html_url": "https://github.com/huggingface/transformers/pull/8", "diff_url": "https://github.com/huggingface/transformers/pull/8.diff", "patch_url": "https://github.com/huggingface/transformers/pull/8.patch", "merged_at": "2018-11-08T2...
{ "login": "VictorSanh", "id": 16107619, "node_id": "MDQ6VXNlcjE2MTA3NjE5", "avatar_url": "https://avatars.githubusercontent.com/u/16107619?v=4", "gravatar_id": "", "url": "https://api.github.com/users/VictorSanh", "html_url": "https://github.com/VictorSanh", "followers_url": "https://api.github.com/use...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/8/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/8/timeline
null
null
null
null
null
null
true
[ "Many thanks!" ]
https://api.github.com/repos/huggingface/transformers/issues/9
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/9/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/9/comments
https://api.github.com/repos/huggingface/transformers/issues/9/events
https://github.com/huggingface/transformers/issues/9
378,935,595
MDU6SXNzdWUzNzg5MzU1OTU=
9
Crash at the end of training
{ "login": "bkgoksel", "id": 6436274, "node_id": "MDQ6VXNlcjY0MzYyNzQ=", "avatar_url": "https://avatars.githubusercontent.com/u/6436274?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bkgoksel", "html_url": "https://github.com/bkgoksel", "followers_url": "https://api.github.com/users/bkgok...
[]
closed
false
[]
null
2
2018-11-08T22:01:57Z
2018-11-09T08:17:26Z
2018-11-09T08:17:26Z
null
NONE
[]
null
null
null
null
Hi, I tried running the Squad model this morning (on a single GPU with gradient accumulation over 3 steps) but after 3 hours of training, my job failed with the following output: I was running the code, unmodified, from commit 3bfbc21376af691b912f3b6256bbeaf8e0046ba8 Is this an issue you know about? ``` 11/08/2...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/9/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/9/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Here's the specific command I ran for more context: \r\n```\r\npython3.6 code/run_squad.py \\\r\n --bert_config_file bert/bert_config.json \\\r\n --vocab_file bert/vocab.txt \\\r\n --output_dir output \\\r\n --train_file data/original/train.json \\\r\n --predict_file data/original/dev.json \\\r\n --init_chec...
https://api.github.com/repos/huggingface/transformers/issues/12
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/12/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/12/comments
https://api.github.com/repos/huggingface/transformers/issues/12/events
https://github.com/huggingface/transformers/issues/12
379,422,090
MDU6SXNzdWUzNzk0MjIwOTA=
12
py2 code
{ "login": "antxiaojun", "id": 44923827, "node_id": "MDQ6VXNlcjQ0OTIzODI3", "avatar_url": "https://avatars.githubusercontent.com/u/44923827?v=4", "gravatar_id": "", "url": "https://api.github.com/users/antxiaojun", "html_url": "https://github.com/antxiaojun", "followers_url": "https://api.github.com/use...
[]
closed
false
[]
null
1
2018-11-10T13:23:31Z
2018-11-10T15:06:35Z
2018-11-10T15:06:35Z
null
NONE
[]
null
null
null
null
if I convert code to python2 version of code, it can't converage ; Would you present py2 code?
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/12/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/12/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi, we won't provide a python 2 version but if you want to do a python 2/3 compatible version feel free to open a PR." ]
https://api.github.com/repos/huggingface/transformers/issues/13
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/13/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/13/comments
https://api.github.com/repos/huggingface/transformers/issues/13/events
https://github.com/huggingface/transformers/issues/13
379,440,759
MDU6SXNzdWUzNzk0NDA3NTk=
13
Bug in run_classifier.py
{ "login": "rawatprateek", "id": 32642916, "node_id": "MDQ6VXNlcjMyNjQyOTE2", "avatar_url": "https://avatars.githubusercontent.com/u/32642916?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rawatprateek", "html_url": "https://github.com/rawatprateek", "followers_url": "https://api.github.c...
[]
closed
false
[]
null
0
2018-11-10T17:16:01Z
2018-11-10T17:49:15Z
2018-11-10T17:45:28Z
null
NONE
[]
null
null
null
null
If I am running only evaluation and not training, there are errors as tr_loss and nb_tr_steps are undefined.
{ "login": "rawatprateek", "id": 32642916, "node_id": "MDQ6VXNlcjMyNjQyOTE2", "avatar_url": "https://avatars.githubusercontent.com/u/32642916?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rawatprateek", "html_url": "https://github.com/rawatprateek", "followers_url": "https://api.github.c...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/13/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/13/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[]
https://api.github.com/repos/huggingface/transformers/issues/2
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/2/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/2/comments
https://api.github.com/repos/huggingface/transformers/issues/2/events
https://github.com/huggingface/transformers/pull/2
377,592,526
MDExOlB1bGxSZXF1ZXN0MjI4NDk5Mjc3
2
Port tokenization for the multilingual model
{ "login": "elyase", "id": 1175888, "node_id": "MDQ6VXNlcjExNzU4ODg=", "avatar_url": "https://avatars.githubusercontent.com/u/1175888?v=4", "gravatar_id": "", "url": "https://api.github.com/users/elyase", "html_url": "https://github.com/elyase", "followers_url": "https://api.github.com/users/elyase/foll...
[]
closed
false
[]
null
1
2018-11-05T21:35:36Z
2018-11-10T21:27:57Z
2018-11-10T21:27:46Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/2", "html_url": "https://github.com/huggingface/transformers/pull/2", "diff_url": "https://github.com/huggingface/transformers/pull/2.diff", "patch_url": "https://github.com/huggingface/transformers/pull/2.patch", "merged_at": "2018-11-10T2...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/2/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/2/timeline
null
null
null
null
null
null
true
[ "Thanks for that, sorry for the delay" ]
https://api.github.com/repos/huggingface/transformers/issues/14
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/14/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/14/comments
https://api.github.com/repos/huggingface/transformers/issues/14/events
https://github.com/huggingface/transformers/pull/14
379,587,417
MDExOlB1bGxSZXF1ZXN0MjI5OTk0NDY2
14
fixed typo
{ "login": "kornosk", "id": 15230011, "node_id": "MDQ6VXNlcjE1MjMwMDEx", "avatar_url": "https://avatars.githubusercontent.com/u/15230011?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kornosk", "html_url": "https://github.com/kornosk", "followers_url": "https://api.github.com/users/kornos...
[]
closed
false
[]
null
1
2018-11-12T01:18:24Z
2018-11-12T07:36:04Z
2018-11-12T07:36:04Z
null
NONE
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/14", "html_url": "https://github.com/huggingface/transformers/pull/14", "diff_url": "https://github.com/huggingface/transformers/pull/14.diff", "patch_url": "https://github.com/huggingface/transformers/pull/14.patch", "merged_at": null }
When test with SQuAD
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/14/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/14/timeline
null
null
null
null
null
null
true
[ "Hi,\r\nThanks for the PR, we don't want to add a shell script to the repo.\r\nI will correct the typo,\r\nBest,\r\nThom" ]
https://api.github.com/repos/huggingface/transformers/issues/3
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/3/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/3/comments
https://api.github.com/repos/huggingface/transformers/issues/3/events
https://github.com/huggingface/transformers/issues/3
377,592,631
MDU6SXNzdWUzNzc1OTI2MzE=
3
run_squad questions
{ "login": "ZhaoyueCheng", "id": 3590333, "node_id": "MDQ6VXNlcjM1OTAzMzM=", "avatar_url": "https://avatars.githubusercontent.com/u/3590333?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ZhaoyueCheng", "html_url": "https://github.com/ZhaoyueCheng", "followers_url": "https://api.github.com...
[]
closed
false
[ { "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.gi...
null
15
2018-11-05T21:35:51Z
2018-11-12T13:59:43Z
2018-11-07T22:37:09Z
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
NONE
[]
null
null
null
null
Thanks a lot for the port! I have some minor questions, for the run_squad file, I see two options for accumulating gradients, accumulate_gradients and gradient_accumulation_steps but it seems to me that it can be combined into one. The other one is for the global_step variable, seems we are only counting but not using ...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/3/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/3/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "It also seems to me that the SQuAD 1.1 can not reproduce the google tensorflow version performance.", "> It also seems to me that the SQuAD 1.1 can not reproduce the google tensorflow version performance.\r\n\r\nWhat batch size are you running?", "I'm running on 4 GPU with a batch size of 48, the result is {\"...
https://api.github.com/repos/huggingface/transformers/issues/15
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/15/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/15/comments
https://api.github.com/repos/huggingface/transformers/issues/15/events
https://github.com/huggingface/transformers/issues/15
380,271,134
MDU6SXNzdWUzODAyNzExMzQ=
15
activation function in BERTIntermediate
{ "login": "lukovnikov", "id": 1732910, "node_id": "MDQ6VXNlcjE3MzI5MTA=", "avatar_url": "https://avatars.githubusercontent.com/u/1732910?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lukovnikov", "html_url": "https://github.com/lukovnikov", "followers_url": "https://api.github.com/users...
[]
closed
false
[]
null
4
2018-11-13T15:09:33Z
2018-11-13T15:18:30Z
2018-11-13T15:17:39Z
null
CONTRIBUTOR
[]
null
null
null
null
BERTConfig is not used for `BERTIntermediate`'s activation function. `intermediate_act_fn` is always `gelu`. Is this normal? https://github.com/huggingface/pytorch-pretrained-BERT/blob/master/modeling.py#L240
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/15/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/15/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Yes, I hard coded that since the pre-trained models are all trained with gelu anyway.", "ok. but since config is there anyway, isn't it cleaner to use it (to avoid errors for people using configs that use a different activation for some reason) ?", "Yes we can, I'll change that in the coming first release (unl...
https://api.github.com/repos/huggingface/transformers/issues/16
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/16/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/16/comments
https://api.github.com/repos/huggingface/transformers/issues/16/events
https://github.com/huggingface/transformers/pull/16
380,272,853
MDExOlB1bGxSZXF1ZXN0MjMwNTEwOTY4
16
Excluding AdamWeightDecayOptimizer internal variables from restoring
{ "login": "donatasrep", "id": 19597219, "node_id": "MDQ6VXNlcjE5NTk3MjE5", "avatar_url": "https://avatars.githubusercontent.com/u/19597219?v=4", "gravatar_id": "", "url": "https://api.github.com/users/donatasrep", "html_url": "https://github.com/donatasrep", "followers_url": "https://api.github.com/use...
[]
closed
false
[]
null
3
2018-11-13T15:13:18Z
2018-11-13T15:19:35Z
2018-11-13T15:19:29Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/16", "html_url": "https://github.com/huggingface/transformers/pull/16", "diff_url": "https://github.com/huggingface/transformers/pull/16.diff", "patch_url": "https://github.com/huggingface/transformers/pull/16.patch", "merged_at": "2018-11-...
I tried to use convert_tf_checkpoint_to_pytorch.py script to convert my pretrained model, but in order to do so, I had to make some minor tweaks. I thought I would share in case you find it useful.
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/16/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/16/timeline
null
null
null
null
null
null
true
[ "Is your pre-trained model a TensorFlow model?", "Yes", "Nice, thanks for that!" ]
https://api.github.com/repos/huggingface/transformers/issues/17
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/17/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/17/comments
https://api.github.com/repos/huggingface/transformers/issues/17/events
https://github.com/huggingface/transformers/pull/17
380,292,054
MDExOlB1bGxSZXF1ZXN0MjMwNTI2MTY0
17
activation function in BERTIntermediate
{ "login": "lukovnikov", "id": 1732910, "node_id": "MDQ6VXNlcjE3MzI5MTA=", "avatar_url": "https://avatars.githubusercontent.com/u/1732910?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lukovnikov", "html_url": "https://github.com/lukovnikov", "followers_url": "https://api.github.com/users...
[]
closed
false
[]
null
1
2018-11-13T15:47:46Z
2018-11-13T16:00:25Z
2018-11-13T16:00:10Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/17", "html_url": "https://github.com/huggingface/transformers/pull/17", "diff_url": "https://github.com/huggingface/transformers/pull/17.diff", "patch_url": "https://github.com/huggingface/transformers/pull/17.patch", "merged_at": "2018-11-...
Was previously hardcoded to gelu because pretrained BERT models use gelu. Changed to make BERTIntermediate use functions and "gelu", "relu" or "swish" from `config`.
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/17/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/17/timeline
null
null
null
null
null
null
true
[ "Looks good, thanks for that!" ]
https://api.github.com/repos/huggingface/transformers/issues/29
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/29/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/29/comments
https://api.github.com/repos/huggingface/transformers/issues/29/events
https://github.com/huggingface/transformers/pull/29
381,853,838
MDExOlB1bGxSZXF1ZXN0MjMxNzIyMjU4
29
First release
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
[]
closed
false
[]
null
0
2018-11-17T11:19:41Z
2018-11-17T21:47:26Z
2018-11-17T11:21:49Z
null
MEMBER
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/29", "html_url": "https://github.com/huggingface/transformers/pull/29", "diff_url": "https://github.com/huggingface/transformers/pull/29.diff", "patch_url": "https://github.com/huggingface/transformers/pull/29.patch", "merged_at": "2018-11-...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/29/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/29/timeline
null
null
null
null
null
null
true
[]
https://api.github.com/repos/huggingface/transformers/issues/19
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/19/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/19/comments
https://api.github.com/repos/huggingface/transformers/issues/19/events
https://github.com/huggingface/transformers/issues/19
380,555,132
MDU6SXNzdWUzODA1NTUxMzI=
19
will you push the pytorch code for the pre-training process?
{ "login": "koukoulala", "id": 30341159, "node_id": "MDQ6VXNlcjMwMzQxMTU5", "avatar_url": "https://avatars.githubusercontent.com/u/30341159?v=4", "gravatar_id": "", "url": "https://api.github.com/users/koukoulala", "html_url": "https://github.com/koukoulala", "followers_url": "https://api.github.com/use...
[]
closed
false
[]
null
1
2018-11-14T06:30:59Z
2018-11-17T21:55:41Z
2018-11-17T21:55:41Z
null
NONE
[]
null
null
null
null
Can you push the pytorch code for the pre-training process,such as MLM task, please? I really want to study, but I can't understand tensorflow, it's so complex. thanks!!!
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/19/reactions", "total_count": 3, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/19/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi, I don't have plan for that in the near future." ]
https://api.github.com/repos/huggingface/transformers/issues/24
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/24/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/24/comments
https://api.github.com/repos/huggingface/transformers/issues/24/events
https://github.com/huggingface/transformers/issues/24
381,387,717
MDU6SXNzdWUzODEzODc3MTc=
24
[Feature request] Port SQuAD 2.0 support
{ "login": "elyase", "id": 1175888, "node_id": "MDQ6VXNlcjExNzU4ODg=", "avatar_url": "https://avatars.githubusercontent.com/u/1175888?v=4", "gravatar_id": "", "url": "https://api.github.com/users/elyase", "html_url": "https://github.com/elyase", "followers_url": "https://api.github.com/users/elyase/foll...
[]
closed
false
[]
null
1
2018-11-15T23:47:04Z
2018-11-17T21:57:08Z
2018-11-17T21:57:07Z
null
CONTRIBUTOR
[]
null
null
null
null
Recently the Google team added support for Squad 2.0: https://github.com/google-research/bert/commit/60454702590a6c69bd45c5d4258c7e17b8a3e1da Would be great to also have it available in the Pytorch version.
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/24/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/24/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi, I don't have plan for that in the near future but feel free to open a PR." ]
https://api.github.com/repos/huggingface/transformers/issues/25
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/25/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/25/comments
https://api.github.com/repos/huggingface/transformers/issues/25/events
https://github.com/huggingface/transformers/issues/25
381,490,584
MDU6SXNzdWUzODE0OTA1ODQ=
25
can you push the run-pretraining and create_pretraining_data codes?
{ "login": "koukoulala", "id": 30341159, "node_id": "MDQ6VXNlcjMwMzQxMTU5", "avatar_url": "https://avatars.githubusercontent.com/u/30341159?v=4", "gravatar_id": "", "url": "https://api.github.com/users/koukoulala", "html_url": "https://github.com/koukoulala", "followers_url": "https://api.github.com/use...
[]
closed
false
[]
null
1
2018-11-16T08:15:33Z
2018-11-17T21:57:19Z
2018-11-17T21:57:19Z
null
NONE
[]
null
null
null
null
just want to study codes, don't need to have same pre-train performance.
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/25/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/25/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi, I don't have plan for that in the near future." ]
https://api.github.com/repos/huggingface/transformers/issues/28
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/28/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/28/comments
https://api.github.com/repos/huggingface/transformers/issues/28/events
https://github.com/huggingface/transformers/issues/28
381,835,436
MDU6SXNzdWUzODE4MzU0MzY=
28
speed is very slow
{ "login": "susht3", "id": 12723964, "node_id": "MDQ6VXNlcjEyNzIzOTY0", "avatar_url": "https://avatars.githubusercontent.com/u/12723964?v=4", "gravatar_id": "", "url": "https://api.github.com/users/susht3", "html_url": "https://github.com/susht3", "followers_url": "https://api.github.com/users/susht3/fo...
[]
closed
false
[]
null
2
2018-11-17T06:51:54Z
2018-11-17T22:02:38Z
2018-11-17T22:02:38Z
null
NONE
[]
null
null
null
null
convert samples to features, is very slow
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/28/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/28/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Running on a GPU, I find that dumping extracted features takes up most time. So you may optimize it yourself. ", "Hi, these examples are provided as starting point to write your own training scripts using the package modules. I don't plan to update them any further." ]
https://api.github.com/repos/huggingface/transformers/issues/22
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/22/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/22/comments
https://api.github.com/repos/huggingface/transformers/issues/22/events
https://github.com/huggingface/transformers/pull/22
381,097,721
MDExOlB1bGxSZXF1ZXN0MjMxMTQ0MTAx
22
adding `no_cuda` flag
{ "login": "rahular", "id": 1104544, "node_id": "MDQ6VXNlcjExMDQ1NDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/1104544?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rahular", "html_url": "https://github.com/rahular", "followers_url": "https://api.github.com/users/rahular/...
[]
closed
false
[]
null
1
2018-11-15T10:33:03Z
2018-11-17T22:05:24Z
2018-11-17T22:05:24Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/22", "html_url": "https://github.com/huggingface/transformers/pull/22", "diff_url": "https://github.com/huggingface/transformers/pull/22.diff", "patch_url": "https://github.com/huggingface/transformers/pull/22.patch", "merged_at": null }
The `--no_cuda` flag is missing from the flagset in `extract_features.py`. On running the current code, the following error occurs. ``` (py3.5) [rahul pytorch-pretrained-BERT]$ python extract_features.py \ > --input_file=./input.txt \ > --output_file=./output.jsonl \ > --vocab_file=$BERT_BASE_DIR/vocab.txt...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/22/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/22/timeline
null
null
null
null
null
null
true
[ "Thanks, I've added that manually (the library organization has changed a bit with the first pip release)." ]
https://api.github.com/repos/huggingface/transformers/issues/21
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/21/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/21/comments
https://api.github.com/repos/huggingface/transformers/issues/21/events
https://github.com/huggingface/transformers/pull/21
381,038,724
MDExOlB1bGxSZXF1ZXN0MjMxMDk4MjMy
21
Fix some glitches in extract_features.py
{ "login": "cnrpman", "id": 9862022, "node_id": "MDQ6VXNlcjk4NjIwMjI=", "avatar_url": "https://avatars.githubusercontent.com/u/9862022?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cnrpman", "html_url": "https://github.com/cnrpman", "followers_url": "https://api.github.com/users/cnrpman/...
[]
closed
false
[]
null
1
2018-11-15T07:49:20Z
2018-11-17T22:07:20Z
2018-11-17T22:07:20Z
null
NONE
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/21", "html_url": "https://github.com/huggingface/transformers/pull/21", "diff_url": "https://github.com/huggingface/transformers/pull/21.diff", "patch_url": "https://github.com/huggingface/transformers/pull/21.patch", "merged_at": null }
Do the following fixing to make the extract_features.py runnable: 1. Add no_cuda argument 2. Fix the "not all arguments converted during string formatting" error thrown at line 230
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/21/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/21/timeline
null
null
null
null
null
null
true
[ "Thanks, I've pushed these fixes in the first release (the organization of the library changed quite a bit)." ]
https://api.github.com/repos/huggingface/transformers/issues/18
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/18/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/18/comments
https://api.github.com/repos/huggingface/transformers/issues/18/events
https://github.com/huggingface/transformers/pull/18
380,305,486
MDExOlB1bGxSZXF1ZXN0MjMwNTM2Mzg4
18
include the output layer in the model using the pretrained weights
{ "login": "fabiopetroni", "id": 12832592, "node_id": "MDQ6VXNlcjEyODMyNTky", "avatar_url": "https://avatars.githubusercontent.com/u/12832592?v=4", "gravatar_id": "", "url": "https://api.github.com/users/fabiopetroni", "html_url": "https://github.com/fabiopetroni", "followers_url": "https://api.github.c...
[]
closed
false
[]
null
1
2018-11-13T16:15:03Z
2018-11-17T22:08:09Z
2018-11-17T22:08:09Z
null
NONE
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/18", "html_url": "https://github.com/huggingface/transformers/pull/18", "diff_url": "https://github.com/huggingface/transformers/pull/18.diff", "patch_url": "https://github.com/huggingface/transformers/pull/18.patch", "merged_at": null }
This is to be able to load the final output layer (bert.output_layer) from the TensorFlow pre-trained model. In particular, it is a fully connected layer that is used to map the final hidden layer to the vocabulary size, to then apply the softmax, as follows: logits = bert.output_layer(sequence_output) log_softmax...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/18/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/18/timeline
null
null
null
null
null
null
true
[ "Thanks for that. I've ended up taking a more modular approach in the first pip release of the library." ]
https://api.github.com/repos/huggingface/transformers/issues/23
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/23/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/23/comments
https://api.github.com/repos/huggingface/transformers/issues/23/events
https://github.com/huggingface/transformers/issues/23
381,250,921
MDU6SXNzdWUzODEyNTA5MjE=
23
ValueError while using --optimize_on_cpu
{ "login": "rsanjaykamath", "id": 18527321, "node_id": "MDQ6VXNlcjE4NTI3MzIx", "avatar_url": "https://avatars.githubusercontent.com/u/18527321?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rsanjaykamath", "html_url": "https://github.com/rsanjaykamath", "followers_url": "https://api.githu...
[]
closed
false
[]
null
3
2018-11-15T16:53:12Z
2018-11-18T10:17:01Z
2018-11-17T21:56:46Z
null
NONE
[]
null
null
null
null
> Traceback (most recent call last): | 1/87970 [00:00<8:35:35, 2.84it/s] File "./run_squad.py", line 990, in <module> main() File "./run_squad.py", line 922, in main is_nan = set_optimizer_params_grad(param_optimizer, model.named_parameters(), test_nan=True) File "./run_squad.py", line 691, in set_optimizer_params...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/23/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/23/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Thanks! I pushed a fix for that, you can try it again. You should be able to increase a bit the batch size.\r\n\r\nBy the way, the real batch size that is used on the gpu is `train_batch_size / gradient_accumulation_steps` so `2` in your case. I think you should be able to go to `3` with `--optimize_on_cpu`\r\n\r\...
https://api.github.com/repos/huggingface/transformers/issues/35
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/35/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/35/comments
https://api.github.com/repos/huggingface/transformers/issues/35/events
https://github.com/huggingface/transformers/issues/35
381,998,040
MDU6SXNzdWUzODE5OTgwNDA=
35
issues with accents on convert_ids_to_tokens()
{ "login": "perezjln", "id": 5373778, "node_id": "MDQ6VXNlcjUzNzM3Nzg=", "avatar_url": "https://avatars.githubusercontent.com/u/5373778?v=4", "gravatar_id": "", "url": "https://api.github.com/users/perezjln", "html_url": "https://github.com/perezjln", "followers_url": "https://api.github.com/users/perez...
[]
closed
false
[]
null
2
2018-11-18T20:41:24Z
2018-11-19T08:39:56Z
2018-11-19T08:39:56Z
null
NONE
[]
null
null
null
null
Hello, the BertTokenizer seems loose accents when convert_ids_to_tokens() is used : Example: - original sentence: "great breakfasts in a nice furnished cafè, slightly bohemian." - corresponding list of token produced : ['great', 'breakfast', '##s', 'in', 'a', 'nice', 'fur', '##nis', '##hed', 'cafe', ',', 'slightly...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/35/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/35/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "This is expected behaviour and is how the multilingual and the uncased models were trained. From the [original repo](https://github.com/google-research/bert/blob/master/README.md):\r\n\r\n> We are releasing the BERT-Base and BERT-Large models from the paper. Uncased means that the text has been lowercased before W...
https://api.github.com/repos/huggingface/transformers/issues/34
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/34/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/34/comments
https://api.github.com/repos/huggingface/transformers/issues/34/events
https://github.com/huggingface/transformers/issues/34
381,965,833
MDU6SXNzdWUzODE5NjU4MzM=
34
Can not find vocabulary file for Chinese model
{ "login": "zlinao", "id": 33000929, "node_id": "MDQ6VXNlcjMzMDAwOTI5", "avatar_url": "https://avatars.githubusercontent.com/u/33000929?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zlinao", "html_url": "https://github.com/zlinao", "followers_url": "https://api.github.com/users/zlinao/fo...
[]
closed
false
[]
null
5
2018-11-18T14:33:58Z
2018-11-19T11:13:14Z
2018-11-19T03:17:31Z
null
NONE
[]
null
null
null
null
After I convert the TF model to pytorch model, I run a classification task on a new Chinese dataset, but get this: CUDA_VISIBLE_DEVICES=3 python run_classifier.py --task_name weibo --do_eval --do_train --bert_model chinese_L-12_H-768_A-12 --max_seq_length 128 --train_batch_size 32 --learning_rate 2e-5 --num_...
{ "login": "zlinao", "id": 33000929, "node_id": "MDQ6VXNlcjMzMDAwOTI5", "avatar_url": "https://avatars.githubusercontent.com/u/33000929?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zlinao", "html_url": "https://github.com/zlinao", "followers_url": "https://api.github.com/users/zlinao/fo...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/34/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/34/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "need to specify the path of vocab.txt for:\r\ntokenizer = BertTokenizer.from_pretrained(args.bert_model)", "@zlinao ,i try to load the vocab using the following code:\r\ntokenizer = BertTokenizer.from_pretrained(\"bert-base-chinese//vocab.txt\"\r\n\r\nhowever,get errors\r\n11/19/2018 15:33:13 - INFO - pytorch_pr...
https://api.github.com/repos/huggingface/transformers/issues/40
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/40/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/40/comments
https://api.github.com/repos/huggingface/transformers/issues/40/events
https://github.com/huggingface/transformers/pull/40
382,327,249
MDExOlB1bGxSZXF1ZXN0MjMyMDYwODU1
40
update pip package name
{ "login": "joelgrus", "id": 1308313, "node_id": "MDQ6VXNlcjEzMDgzMTM=", "avatar_url": "https://avatars.githubusercontent.com/u/1308313?v=4", "gravatar_id": "", "url": "https://api.github.com/users/joelgrus", "html_url": "https://github.com/joelgrus", "followers_url": "https://api.github.com/users/joelg...
[]
closed
false
[]
null
0
2018-11-19T17:50:54Z
2018-11-19T19:54:47Z
2018-11-19T19:54:47Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/40", "html_url": "https://github.com/huggingface/transformers/pull/40", "diff_url": "https://github.com/huggingface/transformers/pull/40.diff", "patch_url": "https://github.com/huggingface/transformers/pull/40.patch", "merged_at": "2018-11-...
dashes not underscores
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/40/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/40/timeline
null
null
null
null
null
null
true
[]
https://api.github.com/repos/huggingface/transformers/issues/41
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/41/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/41/comments
https://api.github.com/repos/huggingface/transformers/issues/41/events
https://github.com/huggingface/transformers/issues/41
382,489,751
MDU6SXNzdWUzODI0ODk3NTE=
41
Typo in README
{ "login": "weiyumou", "id": 9312916, "node_id": "MDQ6VXNlcjkzMTI5MTY=", "avatar_url": "https://avatars.githubusercontent.com/u/9312916?v=4", "gravatar_id": "", "url": "https://api.github.com/users/weiyumou", "html_url": "https://github.com/weiyumou", "followers_url": "https://api.github.com/users/weiyu...
[]
closed
false
[]
null
1
2018-11-20T03:52:35Z
2018-11-20T09:02:15Z
2018-11-20T09:02:15Z
null
CONTRIBUTOR
[]
null
null
null
null
I think I spotted a typo in the README file under the Usage header. There is a piece of code that uses `BertTokenizer` and the typo is on this line: `tokenized_text = "Who was Jim Henson ? Jim Henson was a puppeteer"` I think `tokenized_text` should be replaced with `text`, since the next line is `tokenized_text =...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/41/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/41/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Yes" ]
https://api.github.com/repos/huggingface/transformers/issues/39
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/39/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/39/comments
https://api.github.com/repos/huggingface/transformers/issues/39/events
https://github.com/huggingface/transformers/issues/39
382,300,869
MDU6SXNzdWUzODIzMDA4Njk=
39
Command-line interface Document Bug
{ "login": "delldu", "id": 31266222, "node_id": "MDQ6VXNlcjMxMjY2MjIy", "avatar_url": "https://avatars.githubusercontent.com/u/31266222?v=4", "gravatar_id": "", "url": "https://api.github.com/users/delldu", "html_url": "https://github.com/delldu", "followers_url": "https://api.github.com/users/delldu/fo...
[]
closed
false
[]
null
1
2018-11-19T16:42:56Z
2018-11-20T09:03:06Z
2018-11-20T09:03:06Z
null
NONE
[]
null
null
null
null
There is a bug in README.md about Command-line interface: `export BERT_BASE_DIR=chinese_L-12_H-768_A-12` **Wrong:** ``` pytorch_pretrained_bert convert_tf_checkpoint_to_pytorch \ --tf_checkpoint_path $BERT_BASE_DIR/bert_model.ckpt.index \ --bert_config_file $BERT_BASE_DIR/bert_config.json \ --pytorch_...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/39/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/39/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Thanks!" ]
https://api.github.com/repos/huggingface/transformers/issues/33
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/33/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/33/comments
https://api.github.com/repos/huggingface/transformers/issues/33/events
https://github.com/huggingface/transformers/issues/33
381,939,792
MDU6SXNzdWUzODE5Mzk3OTI=
33
[Bug report] Ineffective no_decay when using BERTAdam
{ "login": "xiaoda99", "id": 6015633, "node_id": "MDQ6VXNlcjYwMTU2MzM=", "avatar_url": "https://avatars.githubusercontent.com/u/6015633?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xiaoda99", "html_url": "https://github.com/xiaoda99", "followers_url": "https://api.github.com/users/xiaod...
[]
closed
false
[]
null
1
2018-11-18T08:28:52Z
2018-11-20T09:07:58Z
2018-11-20T09:07:58Z
null
CONTRIBUTOR
[]
null
null
null
null
https://github.com/huggingface/pytorch-pretrained-BERT/blob/master/examples/run_classifier.py#L505-L508 With this code, all parameters are decayed because the condition "parameter_name in no_decay" will never be satisfied. I've made a PR #32 to fix it.
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/33/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/33/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "You're right, thanks!" ]
https://api.github.com/repos/huggingface/transformers/issues/42
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/42/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/42/comments
https://api.github.com/repos/huggingface/transformers/issues/42/events
https://github.com/huggingface/transformers/pull/42
382,492,723
MDExOlB1bGxSZXF1ZXN0MjMyMTg2NjE0
42
Fixed UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2
{ "login": "weiyumou", "id": 9312916, "node_id": "MDQ6VXNlcjkzMTI5MTY=", "avatar_url": "https://avatars.githubusercontent.com/u/9312916?v=4", "gravatar_id": "", "url": "https://api.github.com/users/weiyumou", "html_url": "https://github.com/weiyumou", "followers_url": "https://api.github.com/users/weiyu...
[]
closed
false
[]
null
1
2018-11-20T04:09:44Z
2018-11-20T09:09:53Z
2018-11-20T09:09:50Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/42", "html_url": "https://github.com/huggingface/transformers/pull/42", "diff_url": "https://github.com/huggingface/transformers/pull/42.diff", "patch_url": "https://github.com/huggingface/transformers/pull/42.patch", "merged_at": "2018-11-...
I encountered `UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 3793: ordinal not in range(128)` when running the starter example shown under the Usage section. It turned out to be related to the `load_vocab` function in `tokenization.py`. Forcing `open` to use encoding `utf8` solved this issue on ...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/42/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/42/timeline
null
null
null
null
null
null
true
[ "Thanks!" ]
https://api.github.com/repos/huggingface/transformers/issues/45
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/45/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/45/comments
https://api.github.com/repos/huggingface/transformers/issues/45/events
https://github.com/huggingface/transformers/issues/45
382,579,717
MDU6SXNzdWUzODI1Nzk3MTc=
45
Issue of `bert_model` arg in `run_classify.py`
{ "login": "llidev", "id": 29957883, "node_id": "MDQ6VXNlcjI5OTU3ODgz", "avatar_url": "https://avatars.githubusercontent.com/u/29957883?v=4", "gravatar_id": "", "url": "https://api.github.com/users/llidev", "html_url": "https://github.com/llidev", "followers_url": "https://api.github.com/users/llidev/fo...
[]
closed
false
[]
null
1
2018-11-20T09:48:09Z
2018-11-20T13:07:14Z
2018-11-20T13:07:14Z
null
CONTRIBUTOR
[]
null
null
null
null
Hi, I am trying to understand the `bert_model` arg in `run_classify.py`. In the file, I can see ``` tokenizer = BertTokenizer.from_pretrained(args.bert_model) ``` where `bert_model` is expected to be the vocab text file of the model However, I also see ``` model = BertForSequenceClassification.from_pretr...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/45/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/45/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi, please read [this section](https://github.com/huggingface/pytorch-pretrained-BERT#loading-google-ais-pre-trained-weigths-and-pytorch-dump) of the readme." ]
https://api.github.com/repos/huggingface/transformers/issues/43
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/43/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/43/comments
https://api.github.com/repos/huggingface/transformers/issues/43/events
https://github.com/huggingface/transformers/issues/43
382,553,589
MDU6SXNzdWUzODI1NTM1ODk=
43
grad is None in squad example
{ "login": "vpegasus", "id": 22723154, "node_id": "MDQ6VXNlcjIyNzIzMTU0", "avatar_url": "https://avatars.githubusercontent.com/u/22723154?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vpegasus", "html_url": "https://github.com/vpegasus", "followers_url": "https://api.github.com/users/vpe...
[]
closed
false
[]
null
2
2018-11-20T08:38:03Z
2018-11-20T23:04:28Z
2018-11-20T23:04:28Z
null
NONE
[]
null
null
null
null
Hi, guys, I try the `run_squad` example with ``` Traceback (most recent call last): | 0/7331 [00:00<?, ?it/s] File "examples/run_squad.py", line 973, in <m...
{ "login": "vpegasus", "id": 22723154, "node_id": "MDQ6VXNlcjIyNzIzMTU0", "avatar_url": "https://avatars.githubusercontent.com/u/22723154?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vpegasus", "html_url": "https://github.com/vpegasus", "followers_url": "https://api.github.com/users/vpe...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/43/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/43/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Oh you're right. I've just fixed that. you can try to pull the current master and test again.", "@thomwolf it works, thanks" ]
https://api.github.com/repos/huggingface/transformers/issues/49
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/49/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/49/comments
https://api.github.com/repos/huggingface/transformers/issues/49/events
https://github.com/huggingface/transformers/issues/49
383,028,844
MDU6SXNzdWUzODMwMjg4NDQ=
49
Multilingual Issue
{ "login": "hahmyg", "id": 3884429, "node_id": "MDQ6VXNlcjM4ODQ0Mjk=", "avatar_url": "https://avatars.githubusercontent.com/u/3884429?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hahmyg", "html_url": "https://github.com/hahmyg", "followers_url": "https://api.github.com/users/hahmyg/foll...
[]
closed
false
[]
null
1
2018-11-21T09:32:32Z
2018-11-21T09:39:42Z
2018-11-21T09:39:41Z
null
NONE
[]
null
null
null
null
Dear authors, I have two questions. First, how can I use multilingual pre-trained BERT in pytorch? Is it all download model to $BERT_BASE_DIR? Second is tokenization issue. For Chinese and Japanese, tokenizer may works, however, for Korean, it shows different result that I expected ``` import torch from p...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/49/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/49/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi, you can use the multilingual model as [indicated in the readme](https://github.com/huggingface/pytorch-pretrained-BERT#loading-google-ais-pre-trained-weigths-and-pytorch-dump) with the commands:\r\n```python\r\ntokenizer = BertTokenizer.from_pretrained('bert-base-multilingual')\r\nmodel = BertModel.from_pretra...
https://api.github.com/repos/huggingface/transformers/issues/52
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/52/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/52/comments
https://api.github.com/repos/huggingface/transformers/issues/52/events
https://github.com/huggingface/transformers/issues/52
383,586,156
MDU6SXNzdWUzODM1ODYxNTY=
52
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 3920: character maps to <undefined>
{ "login": "superchthonic", "id": 5455837, "node_id": "MDQ6VXNlcjU0NTU4Mzc=", "avatar_url": "https://avatars.githubusercontent.com/u/5455837?v=4", "gravatar_id": "", "url": "https://api.github.com/users/superchthonic", "html_url": "https://github.com/superchthonic", "followers_url": "https://api.github....
[]
closed
false
[]
null
2
2018-11-22T15:42:08Z
2018-11-23T11:21:57Z
2018-11-23T11:21:56Z
null
NONE
[]
null
null
null
null
Installed pytorch-pretrained-BERT from source, Python 3.7, Windows 10 When I run the following snippet: import torch from pytorch_pretrained_bert import BertTokenizer, BertModel, BertForMaskedLM # Load pre-trained model tokenizer (vocabulary) tokenizer = BertTokenizer.from_pretrained('bert-base-uncased') ...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/52/reactions", "total_count": 4, "+1": 4, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/52/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "I am facing the same problem.\r\n\r\nFixed it with \"with open(vocab_file, \"r\"**, encoding=\"utf-8\"**) as reader:\" in line 68 of tokenization.py", "Thanks, it's fixed on master and will be included in the next release." ]
https://api.github.com/repos/huggingface/transformers/issues/55
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/55/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/55/comments
https://api.github.com/repos/huggingface/transformers/issues/55/events
https://github.com/huggingface/transformers/issues/55
384,044,666
MDU6SXNzdWUzODQwNDQ2NjY=
55
Loss calculation error
{ "login": "jwang-lp", "id": 944876, "node_id": "MDQ6VXNlcjk0NDg3Ng==", "avatar_url": "https://avatars.githubusercontent.com/u/944876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jwang-lp", "html_url": "https://github.com/jwang-lp", "followers_url": "https://api.github.com/users/jwang-l...
[]
closed
false
[]
null
3
2018-11-25T03:48:17Z
2018-11-26T08:52:00Z
2018-11-26T08:52:00Z
null
NONE
[]
null
null
null
null
https://github.com/huggingface/pytorch-pretrained-BERT/blob/982339d82984466fde3b1466f657a03200aa2ffb/pytorch_pretrained_bert/modeling.py#L744 Got `ValueError: Expected target size (1, 30522), got torch.Size([1, 11])` at line 744 of `modeling.py`. I think the line should be changed to `masked_lm_loss = loss_fct(predi...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/55/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/55/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi Jian, can you give me a small (self-contained) example showing how to get this error?", "Hi Thomas! I modified the code in your `README.md` for an example:\r\n\r\n```python\r\nfrom pytorch_pretrained_bert.modeling import BertForMaskedLM, BertConfig\r\nfrom pytorch_pretrained_bert import BertTokenizer\r\nimpor...
https://api.github.com/repos/huggingface/transformers/issues/54
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/54/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/54/comments
https://api.github.com/repos/huggingface/transformers/issues/54/events
https://github.com/huggingface/transformers/issues/54
383,967,106
MDU6SXNzdWUzODM5NjcxMDY=
54
example in BertForSequenceClassification() conflicts with the api
{ "login": "labixiaoK", "id": 24908364, "node_id": "MDQ6VXNlcjI0OTA4MzY0", "avatar_url": "https://avatars.githubusercontent.com/u/24908364?v=4", "gravatar_id": "", "url": "https://api.github.com/users/labixiaoK", "html_url": "https://github.com/labixiaoK", "followers_url": "https://api.github.com/users/...
[]
closed
false
[]
null
1
2018-11-24T07:27:50Z
2018-11-26T08:54:47Z
2018-11-26T08:54:47Z
null
NONE
[]
null
null
null
null
Hi, firstly, admire u for the great job. but I encounter 2 problems when i use it: **1**. `UnicodeDecodeError: 'gbk' codec can't decode byte 0x85 in position 4527: illegal multibyte sequence`, same problem as ISSUE 52 when I excute the `BertTokenizer.from_pretrained('bert-base-uncased')`, but I successfully excute `...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/54/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/54/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi,\r\n(1) is solved on master. I will release a new release soon with the fixes on pip. In the mean time you can install from sources if you want.\r\nI fixed the typo in the docstring you mention in (2), thanks, it should be a `1` instead of a `2`." ]
https://api.github.com/repos/huggingface/transformers/issues/51
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/51/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/51/comments
https://api.github.com/repos/huggingface/transformers/issues/51/events
https://github.com/huggingface/transformers/issues/51
383,162,319
MDU6SXNzdWUzODMxNjIzMTk=
51
Missing options/arguments in run_squad.py for BERT Large
{ "login": "avisil", "id": 43005718, "node_id": "MDQ6VXNlcjQzMDA1NzE4", "avatar_url": "https://avatars.githubusercontent.com/u/43005718?v=4", "gravatar_id": "", "url": "https://api.github.com/users/avisil", "html_url": "https://github.com/avisil", "followers_url": "https://api.github.com/users/avisil/fo...
[]
closed
false
[]
null
1
2018-11-21T15:10:45Z
2018-11-26T08:57:23Z
2018-11-26T08:57:23Z
null
NONE
[]
null
null
null
null
Thanks for the great code..However, the `run_squad.py` for BERT Large seems to not have the `vocab_file` and `bert_config_file` (or other) options/arguments. Did you push the latest version? Also, it is looking for a pytorch model file (a bin file). Does it need to be there? I also had to add this line to the file...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/51/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/51/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Yes, the readme example was for an older version. I have updated them with the simplified parameters used in the current release. Thanks." ]
https://api.github.com/repos/huggingface/transformers/issues/38
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/38/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/38/comments
https://api.github.com/repos/huggingface/transformers/issues/38/events
https://github.com/huggingface/transformers/issues/38
382,297,444
MDU6SXNzdWUzODIyOTc0NDQ=
38
truncated normal initializer
{ "login": "ruotianluo", "id": 16023153, "node_id": "MDQ6VXNlcjE2MDIzMTUz", "avatar_url": "https://avatars.githubusercontent.com/u/16023153?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ruotianluo", "html_url": "https://github.com/ruotianluo", "followers_url": "https://api.github.com/use...
[]
closed
false
[]
null
2
2018-11-19T16:35:08Z
2018-11-26T09:42:42Z
2018-11-26T09:42:42Z
null
NONE
[]
null
null
null
null
I have a reasonable truncated normal approximation. (Actually that is what tf does). https://discuss.pytorch.org/t/implementing-truncated-normal-initializer/4778/16?u=ruotianluo
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/38/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/38/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "We could try that. Not sure how important it is though. Did you try it?", "Ok I think we will stick to the normal_initializer for now. Thanks for indicating this option!" ]
https://api.github.com/repos/huggingface/transformers/issues/57
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/57/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/57/comments
https://api.github.com/repos/huggingface/transformers/issues/57/events
https://github.com/huggingface/transformers/issues/57
384,525,339
MDU6SXNzdWUzODQ1MjUzMzk=
57
Missing function convert_to_unicode in tokenization.py
{ "login": "ptrichel", "id": 15148709, "node_id": "MDQ6VXNlcjE1MTQ4NzA5", "avatar_url": "https://avatars.githubusercontent.com/u/15148709?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ptrichel", "html_url": "https://github.com/ptrichel", "followers_url": "https://api.github.com/users/ptr...
[]
closed
false
[]
null
1
2018-11-26T21:50:15Z
2018-11-26T22:33:47Z
2018-11-26T22:33:47Z
null
NONE
[]
null
null
null
null
The function _convert_to_unicode_ is not in tokenization.py but used to be there in v0.1.2. When fine tuning with run_classifier.py, you get an ImportError: cannot import name 'convert_to_unicode'. https://github.com/huggingface/pytorch-pretrained-BERT/blob/ce37b8e4819142171b61558e64f7dcb0286e9937/examples/run_class...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/57/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/57/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Fixed in master, thanks!" ]
https://api.github.com/repos/huggingface/transformers/issues/44
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/44/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/44/comments
https://api.github.com/repos/huggingface/transformers/issues/44/events
https://github.com/huggingface/transformers/issues/44
382,576,559
MDU6SXNzdWUzODI1NzY1NTk=
44
Race condition when prepare pretrained model in distributed training
{ "login": "llidev", "id": 29957883, "node_id": "MDQ6VXNlcjI5OTU3ODgz", "avatar_url": "https://avatars.githubusercontent.com/u/29957883?v=4", "gravatar_id": "", "url": "https://api.github.com/users/llidev", "html_url": "https://github.com/llidev", "followers_url": "https://api.github.com/users/llidev/fo...
[]
closed
false
[]
null
4
2018-11-20T09:40:25Z
2018-11-27T09:16:02Z
2018-11-26T09:23:03Z
null
CONTRIBUTOR
[]
null
null
null
null
Hi, I launched two processes per node to run distributed run_classifier.py. However, I am occasionally get below error: ``` 11/20/2018 09:31:48 - INFO - pytorch_pretrained_bert.file_utils - copying /tmp/tmpa25_y4es to cache at /root/.pytorch_pretrained_bert/9c41111e2de84547a463fd39217199738d1e3deb72d4fec4399e6...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/44/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/44/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "My current workaround is to set the env var `PYTORCH_PRETRAINED_BERT_CACHE` to a different path per process before import `pytorch_pretrained_bert`. But I think the module itself should handle this properly", "I see, thanks for the feedback. I will find a way to make that better in the next release. Not sure we ...
https://api.github.com/repos/huggingface/transformers/issues/53
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/53/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/53/comments
https://api.github.com/repos/huggingface/transformers/issues/53/events
https://github.com/huggingface/transformers/issues/53
383,946,736
MDU6SXNzdWUzODM5NDY3MzY=
53
Multi-GPU training vs Distributed training
{ "login": "llidev", "id": 29957883, "node_id": "MDQ6VXNlcjI5OTU3ODgz", "avatar_url": "https://avatars.githubusercontent.com/u/29957883?v=4", "gravatar_id": "", "url": "https://api.github.com/users/llidev", "html_url": "https://github.com/llidev", "followers_url": "https://api.github.com/users/llidev/fo...
[]
closed
false
[]
null
2
2018-11-24T00:49:45Z
2018-11-27T09:22:06Z
2018-11-26T09:03:23Z
null
CONTRIBUTOR
[]
null
null
null
null
Hi, I have a question about Multi-GPU vs Distributed training, probably unrelated to BERT itself. I have a 4-GPU server, and was trying to run `run_classifier.py` in two ways: (a) run single-node distributed training with 4 processes and minibatch of 32 each (b) run Multi-GPU training with minibatch of 128, a...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/53/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/53/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi,\r\n\r\nThanks for the feedback, it's always interesting to compare the various possible ways to train the model indeed.\r\n\r\nThe most likely cause for (2) is that MRPC is a small dataset and the model shows a high variance in the results depending on the initialization of the weights for example (see the ori...
https://api.github.com/repos/huggingface/transformers/issues/58
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/58/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/58/comments
https://api.github.com/repos/huggingface/transformers/issues/58/events
https://github.com/huggingface/transformers/pull/58
384,691,312
MDExOlB1bGxSZXF1ZXN0MjMzODMwMzc1
58
Bug fix in examples;correct t_total for distributed training;run pred…
{ "login": "llidev", "id": 29957883, "node_id": "MDQ6VXNlcjI5OTU3ODgz", "avatar_url": "https://avatars.githubusercontent.com/u/29957883?v=4", "gravatar_id": "", "url": "https://api.github.com/users/llidev", "html_url": "https://github.com/llidev", "followers_url": "https://api.github.com/users/llidev/fo...
[]
closed
false
[]
null
1
2018-11-27T09:10:10Z
2018-11-28T11:39:46Z
2018-11-28T11:39:46Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/58", "html_url": "https://github.com/huggingface/transformers/pull/58", "diff_url": "https://github.com/huggingface/transformers/pull/58.diff", "patch_url": "https://github.com/huggingface/transformers/pull/58.patch", "merged_at": "2018-11-...
Bug fix in examples; correct t_total for distributed training; run prediction for full dataset
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/58/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/58/timeline
null
null
null
null
null
null
true
[ "Thanks @lliimsft!" ]
https://api.github.com/repos/huggingface/transformers/issues/60
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/60/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/60/comments
https://api.github.com/repos/huggingface/transformers/issues/60/events
https://github.com/huggingface/transformers/pull/60
385,278,339
MDExOlB1bGxSZXF1ZXN0MjM0Mjg0NDg3
60
Updated quick-start example with `BertForMaskedLM`
{ "login": "davidefiocco", "id": 4547987, "node_id": "MDQ6VXNlcjQ1NDc5ODc=", "avatar_url": "https://avatars.githubusercontent.com/u/4547987?v=4", "gravatar_id": "", "url": "https://api.github.com/users/davidefiocco", "html_url": "https://github.com/davidefiocco", "followers_url": "https://api.github.com...
[]
closed
false
[]
null
1
2018-11-28T13:54:01Z
2018-11-28T14:00:53Z
2018-11-28T13:59:09Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/60", "html_url": "https://github.com/huggingface/transformers/pull/60", "diff_url": "https://github.com/huggingface/transformers/pull/60.diff", "patch_url": "https://github.com/huggingface/transformers/pull/60.patch", "merged_at": "2018-11-...
As `convert_ids_to_tokens` returns a list, the code in the README currently throws an `AssertionError`, so I propose a quick fix.
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/60/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/60/timeline
null
null
null
null
null
null
true
[ "Nice, thanks @davidefiocco " ]
https://api.github.com/repos/huggingface/transformers/issues/67
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/67/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/67/comments
https://api.github.com/repos/huggingface/transformers/issues/67/events
https://github.com/huggingface/transformers/issues/67
386,047,173
MDU6SXNzdWUzODYwNDcxNzM=
67
`TypeError: object of type 'NoneType' has no len()` when tuning on squad
{ "login": "danyaljj", "id": 2441454, "node_id": "MDQ6VXNlcjI0NDE0NTQ=", "avatar_url": "https://avatars.githubusercontent.com/u/2441454?v=4", "gravatar_id": "", "url": "https://api.github.com/users/danyaljj", "html_url": "https://github.com/danyaljj", "followers_url": "https://api.github.com/users/danya...
[]
closed
false
[]
null
1
2018-11-30T05:48:04Z
2018-11-30T13:24:03Z
2018-11-30T13:24:02Z
null
CONTRIBUTOR
[]
null
null
null
null
When running the following command for tuning on squad, I am getting a petty error inside logger `TypeError: object of type 'NoneType' has no len()`. Any thoughts what could be the main cause of the problem? Full log: ``` python3.6 examples/run_squad.py \ > --bert_model bert-base-uncased \ > --do_train ...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/67/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/67/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Oh I see, this should be fixed in `master` by 257a35134a1bd378b16aa985ee76675289ff439c just update your repo please." ]
https://api.github.com/repos/huggingface/transformers/issues/66
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/66/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/66/comments
https://api.github.com/repos/huggingface/transformers/issues/66/events
https://github.com/huggingface/transformers/pull/66
385,774,972
MDExOlB1bGxSZXF1ZXN0MjM0NjY4MDQy
66
speedup by truncating unused part
{ "login": "artemisart", "id": 9201969, "node_id": "MDQ6VXNlcjkyMDE5Njk=", "avatar_url": "https://avatars.githubusercontent.com/u/9201969?v=4", "gravatar_id": "", "url": "https://api.github.com/users/artemisart", "html_url": "https://github.com/artemisart", "followers_url": "https://api.github.com/users...
[]
closed
false
[]
null
1
2018-11-29T14:56:39Z
2018-11-30T13:27:48Z
2018-11-30T13:27:48Z
null
NONE
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/66", "html_url": "https://github.com/huggingface/transformers/pull/66", "diff_url": "https://github.com/huggingface/transformers/pull/66.diff", "patch_url": "https://github.com/huggingface/transformers/pull/66.patch", "merged_at": null }
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/66/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/66/timeline
null
null
null
null
null
null
true
[ "Hi Mathis,\r\nThanks for that. I think it's better for the user to send inputs that they truncated themselves rather than doing that hidden inside the model.\r\nBest,\r\nThomas" ]
https://api.github.com/repos/huggingface/transformers/issues/70
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/70/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/70/comments
https://api.github.com/repos/huggingface/transformers/issues/70/events
https://github.com/huggingface/transformers/pull/70
386,245,181
MDExOlB1bGxSZXF1ZXN0MjM1MDMzMDI3
70
fix typo in input for masked lm loss function
{ "login": "ghost", "id": 10137, "node_id": "MDQ6VXNlcjEwMTM3", "avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ghost", "html_url": "https://github.com/ghost", "followers_url": "https://api.github.com/users/ghost/followers", "f...
[]
closed
false
[]
null
1
2018-11-30T15:56:00Z
2018-11-30T17:23:52Z
2018-11-30T17:23:47Z
null
NONE
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/70", "html_url": "https://github.com/huggingface/transformers/pull/70", "diff_url": "https://github.com/huggingface/transformers/pull/70.diff", "patch_url": "https://github.com/huggingface/transformers/pull/70.patch", "merged_at": "2018-11-...
Fixing #55 . There was still a typo.
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/70/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/70/timeline
null
null
null
null
null
null
true
[ "thanks" ]
https://api.github.com/repos/huggingface/transformers/issues/71
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/71/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/71/comments
https://api.github.com/repos/huggingface/transformers/issues/71/events
https://github.com/huggingface/transformers/issues/71
386,303,565
MDU6SXNzdWUzODYzMDM1NjU=
71
run_squad script gets stuck
{ "login": "samyam", "id": 3409344, "node_id": "MDQ6VXNlcjM0MDkzNDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/3409344?v=4", "gravatar_id": "", "url": "https://api.github.com/users/samyam", "html_url": "https://github.com/samyam", "followers_url": "https://api.github.com/users/samyam/foll...
[]
closed
false
[]
null
3
2018-11-30T18:39:54Z
2018-11-30T20:53:04Z
2018-11-30T19:47:07Z
null
NONE
[]
null
null
null
null
Hello, I am trying to run the squad fine tuning script, but it hangs after printing out a few predictions. I am attaching the log. Can you help take a look? I am running the script on a machine with 8 M40s. [bert_squad.log](https://github.com/huggingface/pytorch-pretrained-BERT/files/2634588/bert_squad.log) ...
{ "login": "samyam", "id": 3409344, "node_id": "MDQ6VXNlcjM0MDkzNDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/3409344?v=4", "gravatar_id": "", "url": "https://api.github.com/users/samyam", "html_url": "https://github.com/samyam", "followers_url": "https://api.github.com/users/samyam/foll...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/71/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/71/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Never mind, it just needed time to process the examples. It might be good to have the progress bar inside convert_examples_to_features.", "Maybe try distributed training? I don't think PyTorch `DataParallel` will be very efficient on 8 GPUs due to the python GIL.", "Thanks for the suggestion. I will try that. ...
https://api.github.com/repos/huggingface/transformers/issues/56
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/56/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/56/comments
https://api.github.com/repos/huggingface/transformers/issues/56/events
https://github.com/huggingface/transformers/issues/56
384,276,059
MDU6SXNzdWUzODQyNzYwNTk=
56
[Feature request ] Add support for the new cased version of the multilingual model
{ "login": "elyase", "id": 1175888, "node_id": "MDQ6VXNlcjExNzU4ODg=", "avatar_url": "https://avatars.githubusercontent.com/u/1175888?v=4", "gravatar_id": "", "url": "https://api.github.com/users/elyase", "html_url": "https://github.com/elyase", "followers_url": "https://api.github.com/users/elyase/foll...
[]
closed
false
[]
null
1
2018-11-26T10:56:18Z
2018-11-30T22:28:49Z
2018-11-30T22:28:32Z
null
CONTRIBUTOR
[]
null
null
null
null
https://github.com/google-research/bert/commit/332a68723c34062b8f58e5fec3e430db4563320a
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/56/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/56/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi @elyase, this model is now added in the new release 0.3.0.\r\nI also added the other new model by Google (`bert-large-cased`)" ]
https://api.github.com/repos/huggingface/transformers/issues/61
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/61/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/61/comments
https://api.github.com/repos/huggingface/transformers/issues/61/events
https://github.com/huggingface/transformers/issues/61
385,304,675
MDU6SXNzdWUzODUzMDQ2NzU=
61
BERTConfigs in example usages in `modeling.py` are not OK (?)
{ "login": "davidefiocco", "id": 4547987, "node_id": "MDQ6VXNlcjQ1NDc5ODc=", "avatar_url": "https://avatars.githubusercontent.com/u/4547987?v=4", "gravatar_id": "", "url": "https://api.github.com/users/davidefiocco", "html_url": "https://github.com/davidefiocco", "followers_url": "https://api.github.com...
[]
closed
false
[]
null
1
2018-11-28T14:53:01Z
2018-11-30T22:29:24Z
2018-11-30T22:29:24Z
null
CONTRIBUTOR
[]
null
null
null
null
Hi! In the `config` definition https://github.com/huggingface/pytorch-pretrained-BERT/blob/21f0196412115876da1c38652d22d1f7a14b36ff/pytorch_pretrained_bert/modeling.py#L848 in the Example usage of `BertForSequenceClassification` in `modeling.py`, there's things I don't understand: - `vocab_size` in not an accept...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/61/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/61/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi @davidefiocco, you are right, I updated the docstrings in the new release 0.3.0." ]
https://api.github.com/repos/huggingface/transformers/issues/62
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/62/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/62/comments
https://api.github.com/repos/huggingface/transformers/issues/62/events
https://github.com/huggingface/transformers/issues/62
385,368,286
MDU6SXNzdWUzODUzNjgyODY=
62
Specify a model from a specific directory for extract_features.py
{ "login": "johann-petrak", "id": 619106, "node_id": "MDQ6VXNlcjYxOTEwNg==", "avatar_url": "https://avatars.githubusercontent.com/u/619106?v=4", "gravatar_id": "", "url": "https://api.github.com/users/johann-petrak", "html_url": "https://github.com/johann-petrak", "followers_url": "https://api.github.co...
[]
closed
false
[]
null
4
2018-11-28T17:04:39Z
2018-11-30T22:30:12Z
2018-11-30T22:30:12Z
null
NONE
[]
null
null
null
null
I have downloaded the model and vocab files into a specific location, using their original file names, so my directory for bert-base-cased contains: ``` bert-base-cased-vocab.txt bert_config.json pytorch_model.bin ``` But when I try to specify the directory which contains these files for the `--bert_model` par...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/62/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/62/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "The last update broke this, but you can fix this in tokenization.py, you have to add this after `vocab_file = pretrained_model_name`:\r\n```\r\nif os.path.isdir(vocab_file):\r\n vocab_file = os.path.join(vocab_file, \"vocab.txt\")\r\n```\r\n", "Thank you, is it fair to assume that this will get accepted as an...
https://api.github.com/repos/huggingface/transformers/issues/72
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/72/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/72/comments
https://api.github.com/repos/huggingface/transformers/issues/72/events
https://github.com/huggingface/transformers/pull/72
386,352,239
MDExOlB1bGxSZXF1ZXN0MjM1MTE2ODY5
72
Fix internal hyperlink typo
{ "login": "NirantK", "id": 3250749, "node_id": "MDQ6VXNlcjMyNTA3NDk=", "avatar_url": "https://avatars.githubusercontent.com/u/3250749?v=4", "gravatar_id": "", "url": "https://api.github.com/users/NirantK", "html_url": "https://github.com/NirantK", "followers_url": "https://api.github.com/users/NirantK/...
[]
closed
false
[]
null
0
2018-11-30T21:13:47Z
2018-11-30T22:33:53Z
2018-11-30T22:33:53Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/72", "html_url": "https://github.com/huggingface/transformers/pull/72", "diff_url": "https://github.com/huggingface/transformers/pull/72.diff", "patch_url": "https://github.com/huggingface/transformers/pull/72.patch", "merged_at": "2018-11-...
Fix #tup to #tpu
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/72/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/72/timeline
null
null
null
null
null
null
true
[]
https://api.github.com/repos/huggingface/transformers/issues/73
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/73/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/73/comments
https://api.github.com/repos/huggingface/transformers/issues/73/events
https://github.com/huggingface/transformers/pull/73
386,369,366
MDExOlB1bGxSZXF1ZXN0MjM1MTMwMzgw
73
Third release
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
[]
closed
false
[]
null
0
2018-11-30T22:10:22Z
2018-11-30T22:54:43Z
2018-11-30T22:10:31Z
null
MEMBER
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/73", "html_url": "https://github.com/huggingface/transformers/pull/73", "diff_url": "https://github.com/huggingface/transformers/pull/73.diff", "patch_url": "https://github.com/huggingface/transformers/pull/73.patch", "merged_at": "2018-11-...
This third release comprise the following updates: - added the two new pre-trained model from Google: `bert-large-cased` and `bert-multilingual-cased`, - added a model for token-level classification: `BertForTokenClassification`, - added tests for every model class, with and without labels, - fixed tokenizer loadin...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/73/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 2, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/73/timeline
null
null
null
null
null
null
true
[]
https://api.github.com/repos/huggingface/transformers/issues/68
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/68/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/68/comments
https://api.github.com/repos/huggingface/transformers/issues/68/events
https://github.com/huggingface/transformers/issues/68
386,055,987
MDU6SXNzdWUzODYwNTU5ODc=
68
Accuracy on classification task is lower than the official tensorflow version
{ "login": "ejld", "id": 31990860, "node_id": "MDQ6VXNlcjMxOTkwODYw", "avatar_url": "https://avatars.githubusercontent.com/u/31990860?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ejld", "html_url": "https://github.com/ejld", "followers_url": "https://api.github.com/users/ejld/followers"...
[]
closed
false
[]
null
2
2018-11-30T06:30:56Z
2018-11-30T22:56:45Z
2018-11-30T22:56:45Z
null
NONE
[]
null
null
null
null
Hi, I am running the same task with the same hyper parameters as the official Google Tensorflow implementation of BERT, however, I am getting around 1.5% lower accuracy. Can you please give any hint about the possible cause? Thanks!
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/68/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/68/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi!\r\nCould it be different seeds?\r\nSee e.g. https://github.com/huggingface/pytorch-pretrained-BERT/issues/53#issuecomment-441565229", "Hi @ejld, yes BERT has a large variance on many fine-tuning tasks (see also the discussion in #64).\r\nYou should try a bunch of different seeds (like 10 seeds for example) a...
https://api.github.com/repos/huggingface/transformers/issues/75
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/75/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/75/comments
https://api.github.com/repos/huggingface/transformers/issues/75/events
https://github.com/huggingface/transformers/pull/75
386,394,416
MDExOlB1bGxSZXF1ZXN0MjM1MTUwMDc2
75
Point typo fix
{ "login": "davidefiocco", "id": 4547987, "node_id": "MDQ6VXNlcjQ1NDc5ODc=", "avatar_url": "https://avatars.githubusercontent.com/u/4547987?v=4", "gravatar_id": "", "url": "https://api.github.com/users/davidefiocco", "html_url": "https://github.com/davidefiocco", "followers_url": "https://api.github.com...
[]
closed
false
[]
null
0
2018-12-01T00:07:09Z
2018-12-01T00:35:00Z
2018-12-01T00:15:44Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/75", "html_url": "https://github.com/huggingface/transformers/pull/75", "diff_url": "https://github.com/huggingface/transformers/pull/75.diff", "patch_url": "https://github.com/huggingface/transformers/pull/75.patch", "merged_at": "2018-12-...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/75/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/75/timeline
null
null
null
null
null
null
true
[]
https://api.github.com/repos/huggingface/transformers/issues/74
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/74/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/74/comments
https://api.github.com/repos/huggingface/transformers/issues/74/events
https://github.com/huggingface/transformers/pull/74
386,394,375
MDExOlB1bGxSZXF1ZXN0MjM1MTUwMDQ0
74
Update finetuning example in README adding --do_lower_case
{ "login": "davidefiocco", "id": 4547987, "node_id": "MDQ6VXNlcjQ1NDc5ODc=", "avatar_url": "https://avatars.githubusercontent.com/u/4547987?v=4", "gravatar_id": "", "url": "https://api.github.com/users/davidefiocco", "html_url": "https://github.com/davidefiocco", "followers_url": "https://api.github.com...
[]
closed
false
[]
null
1
2018-12-01T00:06:52Z
2018-12-01T00:36:06Z
2018-12-01T00:15:31Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/74", "html_url": "https://github.com/huggingface/transformers/pull/74", "diff_url": "https://github.com/huggingface/transformers/pull/74.diff", "patch_url": "https://github.com/huggingface/transformers/pull/74.patch", "merged_at": "2018-12-...
Should be consistent with the fact that an uncased model is used
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/74/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/74/timeline
null
null
null
null
null
null
true
[ "Indeed" ]
https://api.github.com/repos/huggingface/transformers/issues/76
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/76/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/76/comments
https://api.github.com/repos/huggingface/transformers/issues/76/events
https://github.com/huggingface/transformers/issues/76
386,489,436
MDU6SXNzdWUzODY0ODk0MzY=
76
Wrong signature in model call in run_classifier.py example (?)
{ "login": "davidefiocco", "id": 4547987, "node_id": "MDQ6VXNlcjQ1NDc5ODc=", "avatar_url": "https://avatars.githubusercontent.com/u/4547987?v=4", "gravatar_id": "", "url": "https://api.github.com/users/davidefiocco", "html_url": "https://github.com/davidefiocco", "followers_url": "https://api.github.com...
[]
closed
false
[]
null
2
2018-12-01T19:34:40Z
2018-12-02T12:02:34Z
2018-12-02T12:02:34Z
null
CONTRIBUTOR
[]
null
null
null
null
I think that https://github.com/huggingface/pytorch-pretrained-BERT/blob/063be09b714bf4d2fbbc3de7f52c45b8bc6817eb/examples/run_classifier.py#L608 may well have a problem, as it's not consistent with https://github.com/huggingface/pytorch-pretrained-BERT/blob/063be09b714bf4d2fbbc3de7f52c45b8bc6817eb/examples/run_cl...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/76/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/76/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "You are right, I also encountered this small error.", "Thanks for noticing, fixed in #77." ]
https://api.github.com/repos/huggingface/transformers/issues/78
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/78/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/78/comments
https://api.github.com/repos/huggingface/transformers/issues/78/events
https://github.com/huggingface/transformers/issues/78
386,553,265
MDU6SXNzdWUzODY1NTMyNjU=
78
TypeError: object of type 'WindowsPath' has no len()
{ "login": "Deep1994", "id": 24366782, "node_id": "MDQ6VXNlcjI0MzY2Nzgy", "avatar_url": "https://avatars.githubusercontent.com/u/24366782?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Deep1994", "html_url": "https://github.com/Deep1994", "followers_url": "https://api.github.com/users/Dee...
[]
closed
false
[]
null
4
2018-12-02T12:03:51Z
2018-12-02T15:30:43Z
2018-12-02T15:30:43Z
null
NONE
[]
null
null
null
null
Hi, when I run "tokenizer = BertTokenizer.from_pretrained('bert-base-uncased')", the error "TypeError: object of type 'WindowsPath' has no len()" occurs, what is the problem? Thank you for your excellent code!
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/78/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/78/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Can you post a more detailed log?", "I install your PyTorch pretrained bert with pip like \"pip install pytorch-pretrained-bert\", then I run the code in Usage section like:\r\n\r\n`import torch`\r\n`from pytorch_pretrained_bert import BertTokenizer, BertModel, BertForMaskedLM`\r\n\r\n`# Load pre-trained model t...
https://api.github.com/repos/huggingface/transformers/issues/79
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/79/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/79/comments
https://api.github.com/repos/huggingface/transformers/issues/79/events
https://github.com/huggingface/transformers/issues/79
386,698,511
MDU6SXNzdWUzODY2OTg1MTE=
79
numpy.core._internal.AxisError: axis 1 is out of bounds for array of dimension 1
{ "login": "A-Rain", "id": 29532760, "node_id": "MDQ6VXNlcjI5NTMyNzYw", "avatar_url": "https://avatars.githubusercontent.com/u/29532760?v=4", "gravatar_id": "", "url": "https://api.github.com/users/A-Rain", "html_url": "https://github.com/A-Rain", "followers_url": "https://api.github.com/users/A-Rain/fo...
[]
closed
false
[]
null
1
2018-12-03T07:56:56Z
2018-12-03T08:37:11Z
2018-12-03T08:37:11Z
null
NONE
[]
null
null
null
null
hello, when I am running run_classifier.py with MRPC dataset, there seems to be an mistake. the mistake is as following: <img width="752" alt="default" src="https://user-images.githubusercontent.com/29532760/49360256-9de0e100-f713-11e8-9a5c-d9f2bc5331e6.PNG"> the mistake is happening when training is over and the mod...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/79/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/79/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi, just update the repo to the current master, this should have been fixed this weekend (re-open the issue of it's not)." ]
https://api.github.com/repos/huggingface/transformers/issues/84
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/84/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/84/comments
https://api.github.com/repos/huggingface/transformers/issues/84/events
https://github.com/huggingface/transformers/pull/84
387,059,110
MDExOlB1bGxSZXF1ZXN0MjM1NjM0MDky
84
elementwise_mean -> mean (thinking ahead to pytorch 1.0)
{ "login": "joelgrus", "id": 1308313, "node_id": "MDQ6VXNlcjEzMDgzMTM=", "avatar_url": "https://avatars.githubusercontent.com/u/1308313?v=4", "gravatar_id": "", "url": "https://api.github.com/users/joelgrus", "html_url": "https://github.com/joelgrus", "followers_url": "https://api.github.com/users/joelg...
[]
closed
false
[]
null
1
2018-12-03T23:59:40Z
2018-12-04T00:00:21Z
2018-12-04T00:00:07Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/84", "html_url": "https://github.com/huggingface/transformers/pull/84", "diff_url": "https://github.com/huggingface/transformers/pull/84.diff", "patch_url": "https://github.com/huggingface/transformers/pull/84.patch", "merged_at": null }
under the pytorch 1.0 nightly this test generates ``` UserWarning: reduction='elementwise_mean' is deprecated, please use reduction='mean' instead. ``` so this PR fixes that.
{ "login": "joelgrus", "id": 1308313, "node_id": "MDQ6VXNlcjEzMDgzMTM=", "avatar_url": "https://avatars.githubusercontent.com/u/1308313?v=4", "gravatar_id": "", "url": "https://api.github.com/users/joelgrus", "html_url": "https://github.com/joelgrus", "followers_url": "https://api.github.com/users/joelg...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/84/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/84/timeline
null
null
null
null
null
null
true
[ "oops, doesn't work under current pytorch, never mind" ]
https://api.github.com/repos/huggingface/transformers/issues/82
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/82/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/82/comments
https://api.github.com/repos/huggingface/transformers/issues/82/events
https://github.com/huggingface/transformers/issues/82
386,887,965
MDU6SXNzdWUzODY4ODc5NjU=
82
AttributeError: 'tuple' object has no attribute 'backward'
{ "login": "Qzsl123", "id": 23257340, "node_id": "MDQ6VXNlcjIzMjU3MzQw", "avatar_url": "https://avatars.githubusercontent.com/u/23257340?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Qzsl123", "html_url": "https://github.com/Qzsl123", "followers_url": "https://api.github.com/users/Qzsl12...
[]
closed
false
[]
null
2
2018-12-03T16:06:20Z
2018-12-04T07:27:06Z
2018-12-04T07:27:06Z
null
NONE
[]
null
null
null
null
Traceback (most recent call last): | 0/11 [00:00<?, ?it/s] File "examples/run_classifier.py", line 637, in <module> main() File "examples/run_classifier.py", line 558, in main ...
{ "login": "Qzsl123", "id": 23257340, "node_id": "MDQ6VXNlcjIzMjU3MzQw", "avatar_url": "https://avatars.githubusercontent.com/u/23257340?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Qzsl123", "html_url": "https://github.com/Qzsl123", "followers_url": "https://api.github.com/users/Qzsl12...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/82/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/82/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Looks like there was a code change which changed the forward method of the model involved here from returning a tensor to returning a tuple of tensors and the example hasn't been updated yet to reflect that change. There's probably a line in run_classifier.py like\r\n```Python\r\nloss = model(input...)\r\n```\r\nw...
https://api.github.com/repos/huggingface/transformers/issues/83
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/83/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/83/comments
https://api.github.com/repos/huggingface/transformers/issues/83/events
https://github.com/huggingface/transformers/issues/83
386,988,878
MDU6SXNzdWUzODY5ODg4Nzg=
83
Error while runing example
{ "login": "chledowski", "id": 24462884, "node_id": "MDQ6VXNlcjI0NDYyODg0", "avatar_url": "https://avatars.githubusercontent.com/u/24462884?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chledowski", "html_url": "https://github.com/chledowski", "followers_url": "https://api.github.com/use...
[]
closed
false
[]
null
2
2018-12-03T20:21:12Z
2018-12-05T00:12:48Z
2018-12-05T00:12:48Z
null
NONE
[]
null
null
null
null
Hi! I have a problem when running the example, could you please give me a hint on what may I be doing wrong? I use: `PYTHONPATH=. python examples/run_classifier.py --task_name MNLI --do_train --do_eval --do_lower_case --data_dir ../GLUE-baselines/glue_data/MNLI/ --bert_model bert-base-uncased --max_seq_len 40 -...
{ "login": "chledowski", "id": 24462884, "node_id": "MDQ6VXNlcjI0NDYyODg0", "avatar_url": "https://avatars.githubusercontent.com/u/24462884?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chledowski", "html_url": "https://github.com/chledowski", "followers_url": "https://api.github.com/use...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/83/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/83/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi!\r\n\r\nIn case you haven't already, modifying the source at https://github.com/huggingface/pytorch-pretrained-BERT/blob/e60e8a606837ff7f49e583de8492e55575155eb6/examples/run_classifier.py#L491 and turning it into\r\n\r\n`cache_dir=PYTORCH_PRETRAINED_BERT_CACHE / 'distributed_{}'.format(args.local_rank), num_la...
https://api.github.com/repos/huggingface/transformers/issues/88
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/88/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/88/comments
https://api.github.com/repos/huggingface/transformers/issues/88/events
https://github.com/huggingface/transformers/issues/88
387,286,653
MDU6SXNzdWUzODcyODY2NTM=
88
Error when calculating loss and running backward
{ "login": "zhongpeixiang", "id": 11826803, "node_id": "MDQ6VXNlcjExODI2ODAz", "avatar_url": "https://avatars.githubusercontent.com/u/11826803?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zhongpeixiang", "html_url": "https://github.com/zhongpeixiang", "followers_url": "https://api.githu...
[]
closed
false
[]
null
2
2018-12-04T13:30:58Z
2018-12-05T03:41:38Z
2018-12-05T03:41:38Z
null
NONE
[]
null
null
null
null
I'm using the sentence classification example. I used my own dataset for emotionclassification (4 classes). The hyper-parameters are as follows: <pre> args.max_seq_length = 100 args.do_train = True args.do_eval = True args.do_lower_case = True args.train_batch_size = 32 args.eval_batch_size = 8 args.learning...
{ "login": "zhongpeixiang", "id": 11826803, "node_id": "MDQ6VXNlcjExODI2ODAz", "avatar_url": "https://avatars.githubusercontent.com/u/11826803?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zhongpeixiang", "html_url": "https://github.com/zhongpeixiang", "followers_url": "https://api.githu...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/88/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/88/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "I probably know the bug. The final output layer is for binary classification but I use it for 4-class classification. I thought BERT can automatically decide between sigmoid and soft max. I will replace it with my own classifier tomorrow and see how it goes.", "The mismatched output size between BERT and our dat...
https://api.github.com/repos/huggingface/transformers/issues/87
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/87/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/87/comments
https://api.github.com/repos/huggingface/transformers/issues/87/events
https://github.com/huggingface/transformers/pull/87
387,269,400
MDExOlB1bGxSZXF1ZXN0MjM1Nzk1ODUx
87
Readme file links
{ "login": "rodgzilla", "id": 12107203, "node_id": "MDQ6VXNlcjEyMTA3MjAz", "avatar_url": "https://avatars.githubusercontent.com/u/12107203?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rodgzilla", "html_url": "https://github.com/rodgzilla", "followers_url": "https://api.github.com/users/...
[]
closed
false
[]
null
1
2018-12-04T12:46:36Z
2018-12-05T15:41:09Z
2018-12-05T15:41:05Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/87", "html_url": "https://github.com/huggingface/transformers/pull/87", "diff_url": "https://github.com/huggingface/transformers/pull/87.diff", "patch_url": "https://github.com/huggingface/transformers/pull/87.patch", "merged_at": "2018-12-...
Adding links to examples files in `README.md`.
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/87/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/87/timeline
null
null
null
null
null
null
true
[ "Thanks Grégory!" ]
https://api.github.com/repos/huggingface/transformers/issues/86
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/86/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/86/comments
https://api.github.com/repos/huggingface/transformers/issues/86/events
https://github.com/huggingface/transformers/issues/86
387,233,714
MDU6SXNzdWUzODcyMzM3MTQ=
86
code in run_squad.py line 263
{ "login": "xilinniao123", "id": 11830865, "node_id": "MDQ6VXNlcjExODMwODY1", "avatar_url": "https://avatars.githubusercontent.com/u/11830865?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xilinniao123", "html_url": "https://github.com/xilinniao123", "followers_url": "https://api.github.c...
[]
closed
false
[]
null
3
2018-12-04T11:08:09Z
2018-12-06T01:30:36Z
2018-12-06T01:30:36Z
null
NONE
[]
null
null
null
null
# Zero-pad up to the sequence length. while len(input_ids) < max_seq_length: input_ids.append(0) input_mask.append(0) segment_ids.append(0) in segment_ids array,1 indicates token from passage and 0 indicate token form query. when padding,why segment_ids filled with 0,which represents que...
{ "login": "xilinniao123", "id": 11830865, "node_id": "MDQ6VXNlcjExODMwODY1", "avatar_url": "https://avatars.githubusercontent.com/u/11830865?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xilinniao123", "html_url": "https://github.com/xilinniao123", "followers_url": "https://api.github.c...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/86/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/86/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "![image](https://user-images.githubusercontent.com/11830865/49438135-61d37c00-f7f8-11e8-8b2a-a7222bd30f0e.png)\r\n", "Hi, what is your question?", "Strictly speaking, the zero-padding in segment_ids leads to ambiguous tensor entries, because 0 can mean both \"first sentence\" (or query in another task?) and \"...
https://api.github.com/repos/huggingface/transformers/issues/93
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/93/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/93/comments
https://api.github.com/repos/huggingface/transformers/issues/93/events
https://github.com/huggingface/transformers/pull/93
388,026,951
MDExOlB1bGxSZXF1ZXN0MjM2Mzg2MDI5
93
Zoeliao/dev
{ "login": "ZoeLiao", "id": 29351339, "node_id": "MDQ6VXNlcjI5MzUxMzM5", "avatar_url": "https://avatars.githubusercontent.com/u/29351339?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ZoeLiao", "html_url": "https://github.com/ZoeLiao", "followers_url": "https://api.github.com/users/ZoeLia...
[]
closed
false
[]
null
0
2018-12-06T02:15:01Z
2018-12-06T02:56:19Z
2018-12-06T02:56:19Z
null
NONE
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/93", "html_url": "https://github.com/huggingface/transformers/pull/93", "diff_url": "https://github.com/huggingface/transformers/pull/93.diff", "patch_url": "https://github.com/huggingface/transformers/pull/93.patch", "merged_at": null }
RT
{ "login": "ZoeLiao", "id": 29351339, "node_id": "MDQ6VXNlcjI5MzUxMzM5", "avatar_url": "https://avatars.githubusercontent.com/u/29351339?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ZoeLiao", "html_url": "https://github.com/ZoeLiao", "followers_url": "https://api.github.com/users/ZoeLia...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/93/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/93/timeline
null
null
null
null
null
null
true
[]
https://api.github.com/repos/huggingface/transformers/issues/100
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/100/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/100/comments
https://api.github.com/repos/huggingface/transformers/issues/100/events
https://github.com/huggingface/transformers/issues/100
388,713,951
MDU6SXNzdWUzODg3MTM5NTE=
100
Squad dataset has multiple answers to a question.
{ "login": "nischalhp", "id": 1147533, "node_id": "MDQ6VXNlcjExNDc1MzM=", "avatar_url": "https://avatars.githubusercontent.com/u/1147533?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nischalhp", "html_url": "https://github.com/nischalhp", "followers_url": "https://api.github.com/users/ni...
[]
closed
false
[]
null
2
2018-12-07T16:02:00Z
2018-12-08T11:57:22Z
2018-12-08T11:57:22Z
null
NONE
[]
null
null
null
null
https://github.com/huggingface/pytorch-pretrained-BERT/blob/3ba5470eb85464df62f324bea88e20da234c423f/examples/run_squad.py#L143 The confusing part here is that in line 146, only the first answer is considered, so I am wondering why is there a check for multiple answers before. Also, SQuad dataset has multiple answe...
{ "login": "nischalhp", "id": 1147533, "node_id": "MDQ6VXNlcjExNDc1MzM=", "avatar_url": "https://avatars.githubusercontent.com/u/1147533?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nischalhp", "html_url": "https://github.com/nischalhp", "followers_url": "https://api.github.com/users/ni...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/100/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/100/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi,\r\nIn `train-v2.0.json`, there is only one answer for the question.\r\nIn `dev-v2.0.json` and hidden `test-v2.0.json`, there are several answers for a given question.\r\nI think the code that you mentioned is designed for not mistakenly using `dev-v2.0.json` for training. If you are going to use your own data ...
https://api.github.com/repos/huggingface/transformers/issues/104
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/104/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/104/comments
https://api.github.com/repos/huggingface/transformers/issues/104/events
https://github.com/huggingface/transformers/issues/104
388,930,579
MDU6SXNzdWUzODg5MzA1Nzk=
104
BERT for classification example training files
{ "login": "artemlos", "id": 6392760, "node_id": "MDQ6VXNlcjYzOTI3NjA=", "avatar_url": "https://avatars.githubusercontent.com/u/6392760?v=4", "gravatar_id": "", "url": "https://api.github.com/users/artemlos", "html_url": "https://github.com/artemlos", "followers_url": "https://api.github.com/users/artem...
[]
closed
false
[]
null
1
2018-12-08T15:16:50Z
2018-12-08T15:19:17Z
2018-12-08T15:19:17Z
null
NONE
[]
null
null
null
null
Are there any example training files for `run_classifier.py`?
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/104/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/104/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Please read the [example section in the readme](https://github.com/huggingface/pytorch-pretrained-BERT#fine-tuning-with-bert-running-the-examples)" ]
https://api.github.com/repos/huggingface/transformers/issues/94
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/94/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/94/comments
https://api.github.com/repos/huggingface/transformers/issues/94/events
https://github.com/huggingface/transformers/pull/94
388,188,357
MDExOlB1bGxSZXF1ZXN0MjM2NTA5NjIw
94
Fixing the commentary of the `SquadExample` class.
{ "login": "rodgzilla", "id": 12107203, "node_id": "MDQ6VXNlcjEyMTA3MjAz", "avatar_url": "https://avatars.githubusercontent.com/u/12107203?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rodgzilla", "html_url": "https://github.com/rodgzilla", "followers_url": "https://api.github.com/users/...
[]
closed
false
[]
null
0
2018-12-06T12:16:55Z
2018-12-09T20:27:31Z
2018-12-09T20:27:31Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/94", "html_url": "https://github.com/huggingface/transformers/pull/94", "diff_url": "https://github.com/huggingface/transformers/pull/94.diff", "patch_url": "https://github.com/huggingface/transformers/pull/94.patch", "merged_at": "2018-12-...
Fixing the commentary of `SquadExample` that have been copy-pasted from `InputExample`.
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/94/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/94/timeline
null
null
null
null
null
null
true
[]
https://api.github.com/repos/huggingface/transformers/issues/81
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/81/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/81/comments
https://api.github.com/repos/huggingface/transformers/issues/81/events
https://github.com/huggingface/transformers/issues/81
386,786,079
MDU6SXNzdWUzODY3ODYwNzk=
81
There is some problem in supporting continuously training
{ "login": "ZacharyWaseda", "id": 16608767, "node_id": "MDQ6VXNlcjE2NjA4NzY3", "avatar_url": "https://avatars.githubusercontent.com/u/16608767?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ZacharyWaseda", "html_url": "https://github.com/ZacharyWaseda", "followers_url": "https://api.githu...
[]
closed
false
[]
null
1
2018-12-03T12:00:09Z
2018-12-09T21:01:03Z
2018-12-09T21:01:02Z
null
NONE
[]
null
null
null
null
I change the run_classfifier.py in order to support continuously training. i save the model.state_dict() and the BertAdam optimizer.state_dict(), and I load them when start continuously training. However, After some epochs, the loss will increase little by little and finally end with a large loss value. I do not know t...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/81/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/81/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi @ZacharyWaseda, continuous training is an open-research problem. You should rather seek some solution in the papers/workshop/conference discussing researches in this field. This is not my personal field of expertise so I can only direct you to google and other search engine for more information." ]
https://api.github.com/repos/huggingface/transformers/issues/89
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/89/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/89/comments
https://api.github.com/repos/huggingface/transformers/issues/89/events
https://github.com/huggingface/transformers/issues/89
387,683,054
MDU6SXNzdWUzODc2ODMwNTQ=
89
bert-base-multilingual-cased - Text bigger than 512
{ "login": "agemagician", "id": 6087313, "node_id": "MDQ6VXNlcjYwODczMTM=", "avatar_url": "https://avatars.githubusercontent.com/u/6087313?v=4", "gravatar_id": "", "url": "https://api.github.com/users/agemagician", "html_url": "https://github.com/agemagician", "followers_url": "https://api.github.com/us...
[]
closed
false
[]
null
2
2018-12-05T10:11:21Z
2018-12-09T21:04:53Z
2018-12-09T21:04:53Z
null
CONTRIBUTOR
[]
null
null
null
null
Hello, I am trying to extract features from German text using bert-base-multilingual-cased. However, my text is bigger than 512 words. Is there any way to use the pertained Bert for text greater than 512 words
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/89/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/89/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hello,\r\n\r\nI do not think that it is possible out of the box. The article states the following:\r\n\r\n> We use learned positional embeddings with supported sequence lengths up to 512 tokens.\r\n\r\nThe positional embeddings are therefore limited to 512 tokens. You may be able to add positional embeddings for p...
https://api.github.com/repos/huggingface/transformers/issues/105
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/105/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/105/comments
https://api.github.com/repos/huggingface/transformers/issues/105/events
https://github.com/huggingface/transformers/issues/105
388,994,586
MDU6SXNzdWUzODg5OTQ1ODY=
105
weights initialized two times
{ "login": "friskit-china", "id": 2494883, "node_id": "MDQ6VXNlcjI0OTQ4ODM=", "avatar_url": "https://avatars.githubusercontent.com/u/2494883?v=4", "gravatar_id": "", "url": "https://api.github.com/users/friskit-china", "html_url": "https://github.com/friskit-china", "followers_url": "https://api.github....
[]
closed
false
[]
null
2
2018-12-09T07:06:52Z
2018-12-09T21:17:51Z
2018-12-09T21:17:51Z
null
NONE
[]
null
null
null
null
Hi, I found that you initilized all weights twice: The first one is in BertModel class: https://github.com/huggingface/pytorch-pretrained-BERT/blob/3ba5470eb85464df62f324bea88e20da234c423f/pytorch_pretrained_bert/modeling.py#L586 And the second one is in classes of each tasks such as in BertForSequenceClass...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/105/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/105/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "I think it required for both the places. Because both of them can be used individually. As it is mentioned in the README.md file, the model can be loaded with 7 classes. In fact if you check `BertForMaskedLM` and `BertForNextSentencePrediction` classes it also has the weights initialised.\r\n\r\nPlease correct me ...
https://api.github.com/repos/huggingface/transformers/issues/101
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/101/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/101/comments
https://api.github.com/repos/huggingface/transformers/issues/101/events
https://github.com/huggingface/transformers/pull/101
388,788,249
MDExOlB1bGxSZXF1ZXN0MjM2OTczMzA0
101
Adding --do_lower_case for all uncased BERTs examples
{ "login": "davidefiocco", "id": 4547987, "node_id": "MDQ6VXNlcjQ1NDc5ODc=", "avatar_url": "https://avatars.githubusercontent.com/u/4547987?v=4", "gravatar_id": "", "url": "https://api.github.com/users/davidefiocco", "html_url": "https://github.com/davidefiocco", "followers_url": "https://api.github.com...
[]
closed
false
[]
null
1
2018-12-07T19:41:50Z
2018-12-10T00:45:32Z
2018-12-09T20:29:32Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/101", "html_url": "https://github.com/huggingface/transformers/pull/101", "diff_url": "https://github.com/huggingface/transformers/pull/101.diff", "patch_url": "https://github.com/huggingface/transformers/pull/101.patch", "merged_at": "2018...
I had missed those, it should make sense to use them
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/101/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/101/timeline
null
null
null
null
null
null
true
[ "Indeed, thanks for that!" ]
https://api.github.com/repos/huggingface/transformers/issues/106
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/106/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/106/comments
https://api.github.com/repos/huggingface/transformers/issues/106/events
https://github.com/huggingface/transformers/issues/106
389,201,876
MDU6SXNzdWUzODkyMDE4NzY=
106
Picking max_sequence_length in run_classifier.py CoLA task
{ "login": "artemlos", "id": 6392760, "node_id": "MDQ6VXNlcjYzOTI3NjA=", "avatar_url": "https://avatars.githubusercontent.com/u/6392760?v=4", "gravatar_id": "", "url": "https://api.github.com/users/artemlos", "html_url": "https://github.com/artemlos", "followers_url": "https://api.github.com/users/artem...
[]
closed
false
[]
null
2
2018-12-10T09:04:47Z
2018-12-10T15:14:47Z
2018-12-10T15:14:47Z
null
NONE
[]
null
null
null
null
Is there an upper bound for the max_sequence_length parameter when using run_classifier.py with CoLA task? When I tested with the default max_sequence_length of 128, everything worked good, but once I changed it to something else, eg 1024, it started the training and failed on the first iteration with the error show...
{ "login": "artemlos", "id": 6392760, "node_id": "MDQ6VXNlcjYzOTI3NjA=", "avatar_url": "https://avatars.githubusercontent.com/u/6392760?v=4", "gravatar_id": "", "url": "https://api.github.com/users/artemlos", "html_url": "https://github.com/artemlos", "followers_url": "https://api.github.com/users/artem...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/106/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/106/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "As mentioned in #89, the maximum value of `max_sequence_length` is 512. ", "@rodgzilla thanks!" ]
https://api.github.com/repos/huggingface/transformers/issues/91
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/91/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/91/comments
https://api.github.com/repos/huggingface/transformers/issues/91/events
https://github.com/huggingface/transformers/pull/91
387,862,855
MDExOlB1bGxSZXF1ZXN0MjM2MjU4MzE3
91
run_classifier.py improvements
{ "login": "rodgzilla", "id": 12107203, "node_id": "MDQ6VXNlcjEyMTA3MjAz", "avatar_url": "https://avatars.githubusercontent.com/u/12107203?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rodgzilla", "html_url": "https://github.com/rodgzilla", "followers_url": "https://api.github.com/users/...
[]
closed
false
[]
null
1
2018-12-05T17:22:31Z
2018-12-11T10:12:15Z
2018-12-11T10:12:05Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/91", "html_url": "https://github.com/huggingface/transformers/pull/91", "diff_url": "https://github.com/huggingface/transformers/pull/91.diff", "patch_url": "https://github.com/huggingface/transformers/pull/91.patch", "merged_at": "2018-12-...
Hi ! This PR contains multiple improvements to the `run_classifier.py` file. The changes are: - removing trailing whitespaces ([PEP 8](https://www.python.org/dev/peps/pep-0008/)), - simplifying a bit the data processing code, in particular tensor formatting, - fixing issue #83 by adapting the value of the `nu...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/91/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/91/timeline
null
null
null
null
null
null
true
[ "Neat!" ]
https://api.github.com/repos/huggingface/transformers/issues/107
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/107/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/107/comments
https://api.github.com/repos/huggingface/transformers/issues/107/events
https://github.com/huggingface/transformers/pull/107
389,227,363
MDExOlB1bGxSZXF1ZXN0MjM3MjYyNzEy
107
Fix optimizer to work with horovod
{ "login": "llidev", "id": 29957883, "node_id": "MDQ6VXNlcjI5OTU3ODgz", "avatar_url": "https://avatars.githubusercontent.com/u/29957883?v=4", "gravatar_id": "", "url": "https://api.github.com/users/llidev", "html_url": "https://github.com/llidev", "followers_url": "https://api.github.com/users/llidev/fo...
[]
closed
false
[]
null
1
2018-12-10T10:10:34Z
2018-12-11T10:18:27Z
2018-12-11T10:18:01Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/107", "html_url": "https://github.com/huggingface/transformers/pull/107", "diff_url": "https://github.com/huggingface/transformers/pull/107.diff", "patch_url": "https://github.com/huggingface/transformers/pull/107.patch", "merged_at": "2018...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/107/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/107/timeline
null
null
null
null
null
null
true
[ "Great thanks!" ]
https://api.github.com/repos/huggingface/transformers/issues/103
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/103/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/103/comments
https://api.github.com/repos/huggingface/transformers/issues/103/events
https://github.com/huggingface/transformers/issues/103
388,915,407
MDU6SXNzdWUzODg5MTU0MDc=
103
Words after tokenization replaced with #
{ "login": "nischalhp", "id": 1147533, "node_id": "MDQ6VXNlcjExNDc1MzM=", "avatar_url": "https://avatars.githubusercontent.com/u/1147533?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nischalhp", "html_url": "https://github.com/nischalhp", "followers_url": "https://api.github.com/users/ni...
[]
closed
false
[]
null
6
2018-12-08T11:56:57Z
2018-12-11T13:32:37Z
2018-12-11T10:33:23Z
null
NONE
[]
null
null
null
null
Hello, When training the bert-base-multilingual-cased model for Question and Answering, I see that the tokens look like this : ```tokens: [CLS] what is the ins ##ured _ name ? [SEP] versi ##cherung ##ss ##che ##in erg ##o hau ##srat ##versi ##cherung hr - sv 927 ##26 ##49 ##2 ``` Any idea why words are gettin...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/103/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/103/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Because it uses WordPiece tokenization, and will introduce the `#` token.\r\nCheck: https://github.com/google-research/bert#tokenization", "@ymcui okay sweet, thank you. Will use the relevant one. ", "@ymcui How do I change this ? or is not possible to do so?", "1. If you are training completely from scratch...
https://api.github.com/repos/huggingface/transformers/issues/114
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/114/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/114/comments
https://api.github.com/repos/huggingface/transformers/issues/114/events
https://github.com/huggingface/transformers/issues/114
389,846,897
MDU6SXNzdWUzODk4NDY4OTc=
114
What is the best dataset structure for BERT?
{ "login": "wahlforss", "id": 73305, "node_id": "MDQ6VXNlcjczMzA1", "avatar_url": "https://avatars.githubusercontent.com/u/73305?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wahlforss", "html_url": "https://github.com/wahlforss", "followers_url": "https://api.github.com/users/wahlforss/...
[]
closed
false
[]
null
0
2018-12-11T16:28:00Z
2018-12-11T20:57:45Z
2018-12-11T20:57:45Z
null
NONE
[]
null
null
null
null
First I want to say thanks for setting up all this! I am using BertForSequenceClassification and am wondering what the optimal way is to structure my sequences. Right now my sequences are blog post which could be upwards to 400 words long. Would it be better to split my blog posts in sentences and use the se...
{ "login": "wahlforss", "id": 73305, "node_id": "MDQ6VXNlcjczMzA1", "avatar_url": "https://avatars.githubusercontent.com/u/73305?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wahlforss", "html_url": "https://github.com/wahlforss", "followers_url": "https://api.github.com/users/wahlforss/...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/114/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/114/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[]
https://api.github.com/repos/huggingface/transformers/issues/111
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/111/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/111/comments
https://api.github.com/repos/huggingface/transformers/issues/111/events
https://github.com/huggingface/transformers/pull/111
389,696,001
MDExOlB1bGxSZXF1ZXN0MjM3NjI2NDQw
111
update: add from_state_dict for PreTrainedBertModel
{ "login": "friskit-china", "id": 2494883, "node_id": "MDQ6VXNlcjI0OTQ4ODM=", "avatar_url": "https://avatars.githubusercontent.com/u/2494883?v=4", "gravatar_id": "", "url": "https://api.github.com/users/friskit-china", "html_url": "https://github.com/friskit-china", "followers_url": "https://api.github....
[]
closed
false
[]
null
2
2018-12-11T10:33:42Z
2018-12-12T02:04:42Z
2018-12-12T02:04:42Z
null
NONE
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/111", "html_url": "https://github.com/huggingface/transformers/pull/111", "diff_url": "https://github.com/huggingface/transformers/pull/111.diff", "patch_url": "https://github.com/huggingface/transformers/pull/111.patch", "merged_at": null ...
For restoring the training procedure. Now we can use torch.save to store their model and restore their model by e.g. `model = BertForSequenceClassification.from_state_dict('bert-large-uncased', state_dict=torch.load('xx.pth'))`
{ "login": "friskit-china", "id": 2494883, "node_id": "MDQ6VXNlcjI0OTQ4ODM=", "avatar_url": "https://avatars.githubusercontent.com/u/2494883?v=4", "gravatar_id": "", "url": "https://api.github.com/users/friskit-china", "html_url": "https://github.com/friskit-china", "followers_url": "https://api.github....
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/111/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/111/timeline
null
null
null
null
null
null
true
[ "Hi, I like the idea but I not a big fan of all the code duplication I'ld rather fuse the two loading functions in one.\r\nBasically we can just add a `state_dict` argument to `from_pretrained` and add a check in `from_pretrained` to handle the case.", "> Hi, I like the idea but I not a big fan of all the code du...
https://api.github.com/repos/huggingface/transformers/issues/113
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/113/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/113/comments
https://api.github.com/repos/huggingface/transformers/issues/113/events
https://github.com/huggingface/transformers/pull/113
389,741,749
MDExOlB1bGxSZXF1ZXN0MjM3NjYxMzY5
113
fix compatibility with python 3.5.2
{ "login": "hzhwcmhf", "id": 1344510, "node_id": "MDQ6VXNlcjEzNDQ1MTA=", "avatar_url": "https://avatars.githubusercontent.com/u/1344510?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hzhwcmhf", "html_url": "https://github.com/hzhwcmhf", "followers_url": "https://api.github.com/users/hzhwc...
[]
closed
false
[]
null
5
2018-12-11T12:29:26Z
2018-12-13T11:15:17Z
2018-12-13T11:15:15Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/113", "html_url": "https://github.com/huggingface/transformers/pull/113", "diff_url": "https://github.com/huggingface/transformers/pull/113.diff", "patch_url": "https://github.com/huggingface/transformers/pull/113.patch", "merged_at": "2018...
When I run the following command on python 3.5.2 ``` python3 extract_features.py --input_file input.txt --output_file output.txt --bert_model bert-base-uncased --do_lower_case ``` Get this error: ``` Traceback (most recent call last): File "extract_features.py", line 298, in <module> main() File ...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/113/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/113/timeline
null
null
null
null
null
null
true
[ "Thanks, it could be nice to keep Python 3.5 compatibility indeed (see #110) but I think this will break (at least) the other examples (`run_squad` and `run_classifier`) which uses the Pathlib syntax `PATH / 'string'`.", "I'm sorry for my previous stupid workaround, but now I modify some functions in ``file_utils...
https://api.github.com/repos/huggingface/transformers/issues/110
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/110/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/110/comments
https://api.github.com/repos/huggingface/transformers/issues/110/events
https://github.com/huggingface/transformers/issues/110
389,549,868
MDU6SXNzdWUzODk1NDk4Njg=
110
Pretrained Tokenizer Loading Fails: 'PosixPath' object has no attribute 'rfind'
{ "login": "decodyng", "id": 5902855, "node_id": "MDQ6VXNlcjU5MDI4NTU=", "avatar_url": "https://avatars.githubusercontent.com/u/5902855?v=4", "gravatar_id": "", "url": "https://api.github.com/users/decodyng", "html_url": "https://github.com/decodyng", "followers_url": "https://api.github.com/users/decod...
[]
closed
false
[]
null
2
2018-12-11T00:48:11Z
2018-12-13T11:16:27Z
2018-12-11T10:28:47Z
null
NONE
[]
null
null
null
null
I was trying to work through the toy tokenization example from the main README, and I hit an error on the step of loading in a pre-trained BERT tokenizer. ``` ~/bert_transfer$ python3 test_tokenizer.py Traceback (most recent call last): File "test_tokenizer.py",...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/110/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/110/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Oh you are right, the file caching utilities requires python 3.6.\r\n\r\nI don't intend to maintain a lot of backward compatibility in terms of Python versions (I already surrendered maintaining a Python 2 version) so I will bump up the requirements to python 3.6.\r\n\r\nIf you are limited to python 3.5 and find a...
https://api.github.com/repos/huggingface/transformers/issues/117
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/117/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/117/comments
https://api.github.com/repos/huggingface/transformers/issues/117/events
https://github.com/huggingface/transformers/issues/117
390,793,183
MDU6SXNzdWUzOTA3OTMxODM=
117
logging.basicConfig overrides user logging
{ "login": "asafamr", "id": 5182534, "node_id": "MDQ6VXNlcjUxODI1MzQ=", "avatar_url": "https://avatars.githubusercontent.com/u/5182534?v=4", "gravatar_id": "", "url": "https://api.github.com/users/asafamr", "html_url": "https://github.com/asafamr", "followers_url": "https://api.github.com/users/asafamr/...
[]
closed
false
[]
null
1
2018-12-13T17:58:02Z
2018-12-14T13:46:51Z
2018-12-14T13:46:51Z
null
NONE
[]
null
null
null
null
I think logging.basicConfig should not be called inside library code check out this SO thread https://stackoverflow.com/questions/27016870/how-should-logging-be-used-in-a-python-package
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/117/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/117/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "You're right. It's removed." ]
https://api.github.com/repos/huggingface/transformers/issues/85
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/85/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/85/comments
https://api.github.com/repos/huggingface/transformers/issues/85/events
https://github.com/huggingface/transformers/issues/85
387,100,844
MDU6SXNzdWUzODcxMDA4NDQ=
85
How to use pre-trained SQUAD model?
{ "login": "danyaljj", "id": 2441454, "node_id": "MDQ6VXNlcjI0NDE0NTQ=", "avatar_url": "https://avatars.githubusercontent.com/u/2441454?v=4", "gravatar_id": "", "url": "https://api.github.com/users/danyaljj", "html_url": "https://github.com/danyaljj", "followers_url": "https://api.github.com/users/danya...
[]
closed
false
[]
null
1
2018-12-04T03:13:30Z
2018-12-14T14:42:04Z
2018-12-14T14:42:04Z
null
CONTRIBUTOR
[]
null
null
null
null
After training squad, I have a model file in a local folder: ``` -rw-rw-r-- 1 khashab2 cs_danr 4.7M Nov 21 19:20 dev-v1.1.json -rw-rw-r-- 1 khashab2 cs_danr 3.4K Nov 29 22:52 evaluate-v1.1.py drwxrwsr-x 2 khashab2 cs_danr 10 Nov 30 14:57 out2 -rw-rw-r-- 1 khashab2 cs_danr 29M Nov 21 19:20 train-v1.1.json...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/85/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/85/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi there are now examples on how you can save and reload the models in the examples (`run_classifier`, `run_squad` and `run_swag`)" ]
https://api.github.com/repos/huggingface/transformers/issues/98
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/98/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/98/comments
https://api.github.com/repos/huggingface/transformers/issues/98/events
https://github.com/huggingface/transformers/issues/98
388,660,132
MDU6SXNzdWUzODg2NjAxMzI=
98
Problem about convert TF model and pretraining
{ "login": "zhezhaoa", "id": 10495098, "node_id": "MDQ6VXNlcjEwNDk1MDk4", "avatar_url": "https://avatars.githubusercontent.com/u/10495098?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zhezhaoa", "html_url": "https://github.com/zhezhaoa", "followers_url": "https://api.github.com/users/zhe...
[]
closed
false
[]
null
3
2018-12-07T13:42:59Z
2018-12-14T14:42:40Z
2018-12-14T14:42:40Z
null
CONTRIBUTOR
[]
null
null
null
null
First of all, Thank you for this great job. I use the official tensorflow implementation to pretrain on my corpus and then save the model. I want to convert this model to pytorch format and use it, but I got the error: Traceback (most recent call last): File "convert_tf_checkpoint_to_pytorch.py", line 105, in <mo...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/98/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/98/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi @zhezhaoa, I see, I will fix this in the next release.\r\n\r\nFor now you should be able to fix that by installing the repo from source (git clone the repo and `pip install -e .` and changing [line 53 of convert_tf_checkpoint_to_pytorch.py](https://github.com/huggingface/pytorch-pretrained-BERT/blob/master/pyto...
https://api.github.com/repos/huggingface/transformers/issues/115
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/115/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/115/comments
https://api.github.com/repos/huggingface/transformers/issues/115/events
https://github.com/huggingface/transformers/issues/115
389,950,888
MDU6SXNzdWUzODk5NTA4ODg=
115
How to run a saved model?
{ "login": "wahlforss", "id": 73305, "node_id": "MDQ6VXNlcjczMzA1", "avatar_url": "https://avatars.githubusercontent.com/u/73305?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wahlforss", "html_url": "https://github.com/wahlforss", "followers_url": "https://api.github.com/users/wahlforss/...
[]
closed
false
[]
null
2
2018-12-11T20:58:38Z
2018-12-14T14:43:43Z
2018-12-14T14:43:43Z
null
NONE
[]
null
null
null
null
How can you run the model without training the model? If we already trained a model with run_classifer?
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/115/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/115/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "It looks like @thomwolf is planning to illustrate this in the examples soon.\r\nYou find some useful code to do what you want to do in https://github.com/huggingface/pytorch-pretrained-BERT/pull/112/", "Hi this is now included in the new release 0.4.0 and there are examples on how you can save and reload the mod...
https://api.github.com/repos/huggingface/transformers/issues/119
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/119/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/119/comments
https://api.github.com/repos/huggingface/transformers/issues/119/events
https://github.com/huggingface/transformers/pull/119
391,231,432
MDExOlB1bGxSZXF1ZXN0MjM4ODE1NDQx
119
Minor README fix
{ "login": "danyaljj", "id": 2441454, "node_id": "MDQ6VXNlcjI0NDE0NTQ=", "avatar_url": "https://avatars.githubusercontent.com/u/2441454?v=4", "gravatar_id": "", "url": "https://api.github.com/users/danyaljj", "html_url": "https://github.com/danyaljj", "followers_url": "https://api.github.com/users/danya...
[]
closed
false
[]
null
1
2018-12-14T19:11:14Z
2018-12-14T22:29:53Z
2018-12-14T22:29:48Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/119", "html_url": "https://github.com/huggingface/transformers/pull/119", "diff_url": "https://github.com/huggingface/transformers/pull/119.diff", "patch_url": "https://github.com/huggingface/transformers/pull/119.patch", "merged_at": "2018...
I think `optimize_on_cpu` option was dropped in #112
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/119/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/119/timeline
null
null
null
null
null
null
true
[ "Indeed!" ]
https://api.github.com/repos/huggingface/transformers/issues/120
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/120/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/120/comments
https://api.github.com/repos/huggingface/transformers/issues/120/events
https://github.com/huggingface/transformers/issues/120
391,402,013
MDU6SXNzdWUzOTE0MDIwMTM=
120
RuntimeError: Expected object of type torch.LongTensor but found type torch.cuda.LongTensor for argument #3 'index'
{ "login": "danyaljj", "id": 2441454, "node_id": "MDQ6VXNlcjI0NDE0NTQ=", "avatar_url": "https://avatars.githubusercontent.com/u/2441454?v=4", "gravatar_id": "", "url": "https://api.github.com/users/danyaljj", "html_url": "https://github.com/danyaljj", "followers_url": "https://api.github.com/users/danya...
[]
closed
false
[]
null
1
2018-12-15T18:43:53Z
2018-12-15T20:45:37Z
2018-12-15T20:45:37Z
null
CONTRIBUTOR
[]
null
null
null
null
I am using part of your evaluation code, with slight modifications: https://github.com/danyaljj/pytorch-pretrained-BERT/blob/92e22d710287db1b4aa4fda951714887878fa728/examples/daniel_run.py#L582-L616 Wondering if you have encountered the following error: ``` (env3.6) khashab2@gissing:/shared/shelley/khashab2/...
{ "login": "danyaljj", "id": 2441454, "node_id": "MDQ6VXNlcjI0NDE0NTQ=", "avatar_url": "https://avatars.githubusercontent.com/u/2441454?v=4", "gravatar_id": "", "url": "https://api.github.com/users/danyaljj", "html_url": "https://github.com/danyaljj", "followers_url": "https://api.github.com/users/danya...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/120/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/120/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "The issue was, not properly loading the model file and moving it to GPU. " ]
https://api.github.com/repos/huggingface/transformers/issues/121
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/121/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/121/comments
https://api.github.com/repos/huggingface/transformers/issues/121/events
https://github.com/huggingface/transformers/issues/121
391,458,997
MDU6SXNzdWUzOTE0NTg5OTc=
121
High accuracy for CoLA task
{ "login": "pfecht", "id": 26819398, "node_id": "MDQ6VXNlcjI2ODE5Mzk4", "avatar_url": "https://avatars.githubusercontent.com/u/26819398?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pfecht", "html_url": "https://github.com/pfecht", "followers_url": "https://api.github.com/users/pfecht/fo...
[]
closed
false
[]
null
2
2018-12-16T11:39:56Z
2018-12-17T06:41:06Z
2018-12-17T06:41:06Z
null
NONE
[]
null
null
null
null
I try to reproduce the CoLA results from the BERT paper (BERTBase, Single GPU). Running the following command ``` python run_classifier.py \ --task_name cola \ --do_train \ --do_eval \ --do_lower_case \ --data_dir $GLUE_DIR/CoLA/ \ --bert_model bert-base-uncased \ --max_seq_length 128 \ -...
{ "login": "pfecht", "id": 26819398, "node_id": "MDQ6VXNlcjI2ODE5Mzk4", "avatar_url": "https://avatars.githubusercontent.com/u/26819398?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pfecht", "html_url": "https://github.com/pfecht", "followers_url": "https://api.github.com/users/pfecht/fo...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/121/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/121/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "The metric used for evaluation of CoLA in the GLUE benchmark is not accuracy but the https://en.wikipedia.org/wiki/Matthews_correlation_coefficient (see https://gluebenchmark.com/tasks).\r\nIndeed authors report in https://arxiv.org/abs/1810.04805 0.521 for Matthews correlation with BERT-base.", "Makes sense, lo...
https://api.github.com/repos/huggingface/transformers/issues/123
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/123/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/123/comments
https://api.github.com/repos/huggingface/transformers/issues/123/events
https://github.com/huggingface/transformers/issues/123
391,979,075
MDU6SXNzdWUzOTE5NzkwNzU=
123
big memory occupied
{ "login": "AIRobotZhang", "id": 20748608, "node_id": "MDQ6VXNlcjIwNzQ4NjA4", "avatar_url": "https://avatars.githubusercontent.com/u/20748608?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AIRobotZhang", "html_url": "https://github.com/AIRobotZhang", "followers_url": "https://api.github.c...
[]
closed
false
[]
null
1
2018-12-18T03:13:11Z
2018-12-18T08:04:38Z
2018-12-18T08:04:38Z
null
NONE
[]
null
null
null
null
When I run the examples for MRPC, my program was always killed becaused of big memory occupied. Anyone encounter with this issue?
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/123/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/123/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "You should lower the batch size probably" ]
https://api.github.com/repos/huggingface/transformers/issues/112
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/112/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/112/comments
https://api.github.com/repos/huggingface/transformers/issues/112/events
https://github.com/huggingface/transformers/pull/112
389,707,309
MDExOlB1bGxSZXF1ZXN0MjM3NjM1MDky
112
Fourth release
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
[]
closed
false
[]
null
0
2018-12-11T11:00:12Z
2018-12-18T20:41:01Z
2018-12-14T14:15:47Z
null
MEMBER
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/112", "html_url": "https://github.com/huggingface/transformers/pull/112", "diff_url": "https://github.com/huggingface/transformers/pull/112.diff", "patch_url": "https://github.com/huggingface/transformers/pull/112.patch", "merged_at": "2018...
New: - 3-4 times speed-up in fp16 thanks to NVIDIA's work on apex - SWAG (multiple-choice) model added + example fine-tuning on SWAG - bump up to PyTorch 1.0 - backward compatibility to python 3.5 - load fine-tuned model with `from_pretrained` - add examples on how to save and load fine-tuned models
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/112/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/112/timeline
null
null
null
null
null
null
true
[]
https://api.github.com/repos/huggingface/transformers/issues/127
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/127/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/127/comments
https://api.github.com/repos/huggingface/transformers/issues/127/events
https://github.com/huggingface/transformers/pull/127
392,191,069
MDExOlB1bGxSZXF1ZXN0MjM5NTE2NTc4
127
raises value error for bert tokenizer for long sequences
{ "login": "patrick-s-h-lewis", "id": 15031366, "node_id": "MDQ6VXNlcjE1MDMxMzY2", "avatar_url": "https://avatars.githubusercontent.com/u/15031366?v=4", "gravatar_id": "", "url": "https://api.github.com/users/patrick-s-h-lewis", "html_url": "https://github.com/patrick-s-h-lewis", "followers_url": "https...
[]
closed
false
[]
null
1
2018-12-18T14:51:40Z
2018-12-19T09:31:47Z
2018-12-19T09:29:18Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/127", "html_url": "https://github.com/huggingface/transformers/pull/127", "diff_url": "https://github.com/huggingface/transformers/pull/127.diff", "patch_url": "https://github.com/huggingface/transformers/pull/127.patch", "merged_at": "2018...
addesses #125 (all pre-trained bert models have a positional embedding matrix with 512 embeddings. Sequences longer than 512 tokens will cause indexing errors when you attempt to run a bert forward pass on them) added a max_len arg to bert tokenizer. the function convert_tokens_to_indices will raise a value erro...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/127/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/127/timeline
null
null
null
null
null
null
true
[ "Thanks @patrick-s-h-lewis, this is nice.\r\n\r\nThe max number of positional embeddings is also available in the pretrained models configuration files (as `max_position_embeddings`) but accessing this requires some change in the models stored on S3 (not storing them as tar.gz files) so I will take care of it in th...
https://api.github.com/repos/huggingface/transformers/issues/129
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/129/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/129/comments
https://api.github.com/repos/huggingface/transformers/issues/129/events
https://github.com/huggingface/transformers/issues/129
392,409,375
MDU6SXNzdWUzOTI0MDkzNzU=
129
BERT + CNN classifier doesn't work after migrating from 0.1.2 to 0.4.0
{ "login": "jwang-lp", "id": 944876, "node_id": "MDQ6VXNlcjk0NDg3Ng==", "avatar_url": "https://avatars.githubusercontent.com/u/944876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jwang-lp", "html_url": "https://github.com/jwang-lp", "followers_url": "https://api.github.com/users/jwang-l...
[]
closed
false
[]
null
2
2018-12-19T01:57:22Z
2018-12-20T00:20:48Z
2018-12-20T00:20:48Z
null
NONE
[]
null
null
null
null
I used BERT in a very simple sentence classification task: in `__init__` I have ```python3 self.bert = BertModel(config) self.cnn_classifier = CNNClassifier(self.config.hidden_size, intent_cls_num) ``` and in forward it's just ```python3 encoded_layers, _ = self.bert(input_ids, token_type_ids, attention_mask, o...
{ "login": "jwang-lp", "id": 944876, "node_id": "MDQ6VXNlcjk0NDg3Ng==", "avatar_url": "https://avatars.githubusercontent.com/u/944876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jwang-lp", "html_url": "https://github.com/jwang-lp", "followers_url": "https://api.github.com/users/jwang-l...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/129/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/129/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "I don't know...\r\nIf you can open-source a self contained example with data and code I can try to give it a deeper look.\r\nAre you using `apex`? That's the main change in 0.4.0.", "Hi Thomas! I've found the problem. I think It's because you modified your `from_pretrained` function and I'm still using a part of...
https://api.github.com/repos/huggingface/transformers/issues/10
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/10/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/10/comments
https://api.github.com/repos/huggingface/transformers/issues/10/events
https://github.com/huggingface/transformers/issues/10
378,996,831
MDU6SXNzdWUzNzg5OTY4MzE=
10
Is there a plan to have a FP16 for GPU so to have larger batch size or longer text documents support ?
{ "login": "howardhsu", "id": 10661375, "node_id": "MDQ6VXNlcjEwNjYxMzc1", "avatar_url": "https://avatars.githubusercontent.com/u/10661375?v=4", "gravatar_id": "", "url": "https://api.github.com/users/howardhsu", "html_url": "https://github.com/howardhsu", "followers_url": "https://api.github.com/users/...
[]
closed
false
[]
null
4
2018-11-09T02:23:34Z
2018-12-20T18:42:11Z
2018-11-12T16:06:47Z
null
CONTRIBUTOR
[]
null
null
null
null
Is there a plan to have an FP16 for GPU so to have a larger batch size or longer text documents support?
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/10/reactions", "total_count": 3, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/10/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Yes probably. I am testing fp16 right now. If it works well I will push it to the repo.", "Ok I've added FP16 support (see updated readme)", "Thanks for this quick updates.", "I'm not able to work with FP16 for pytorch BERT code. Particularly for BertForSequenceClassification, which I tried and got the issue...
https://api.github.com/repos/huggingface/transformers/issues/136
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/136/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/136/comments
https://api.github.com/repos/huggingface/transformers/issues/136/events
https://github.com/huggingface/transformers/issues/136
393,058,463
MDU6SXNzdWUzOTMwNTg0NjM=
136
It's possible to avoid download the pretrained model?
{ "login": "rxy1212", "id": 14829556, "node_id": "MDQ6VXNlcjE0ODI5NTU2", "avatar_url": "https://avatars.githubusercontent.com/u/14829556?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rxy1212", "html_url": "https://github.com/rxy1212", "followers_url": "https://api.github.com/users/rxy121...
[]
closed
false
[]
null
3
2018-12-20T14:00:03Z
2018-12-21T13:47:03Z
2018-12-20T14:08:10Z
null
NONE
[]
null
null
null
null
When I run this code `model = BertModel.from_pretrained('bert-base-uncased')` , it would download a big file and sometimes that's very slow. Now I have download the model from [https://github.com/google-research/bert](url). So, It's possible to avoid download the pretrained model when I use pytorch-pretrained-BERT at ...
{ "login": "rxy1212", "id": 14829556, "node_id": "MDQ6VXNlcjE0ODI5NTU2", "avatar_url": "https://avatars.githubusercontent.com/u/14829556?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rxy1212", "html_url": "https://github.com/rxy1212", "followers_url": "https://api.github.com/users/rxy121...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/136/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/136/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "I just find the way.", "@rxy1212 could you explain the method used ", "@makkunda \r\nIn `modeling.py`, you can find this codes\r\n```\r\nPRETRAINED_MODEL_ARCHIVE_MAP = {\r\n 'bert-base-uncased': \"https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-uncased.tar.gz\",\r\n 'bert-large-uncased': \...
https://api.github.com/repos/huggingface/transformers/issues/130
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/130/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/130/comments
https://api.github.com/repos/huggingface/transformers/issues/130/events
https://github.com/huggingface/transformers/pull/130
392,429,830
MDExOlB1bGxSZXF1ZXN0MjM5NzAzOTA0
130
Use entry-points instead of scripts
{ "login": "sodre", "id": 1043285, "node_id": "MDQ6VXNlcjEwNDMyODU=", "avatar_url": "https://avatars.githubusercontent.com/u/1043285?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sodre", "html_url": "https://github.com/sodre", "followers_url": "https://api.github.com/users/sodre/follower...
[]
closed
false
[]
null
1
2018-12-19T03:49:28Z
2018-12-21T19:56:02Z
2018-12-19T09:18:25Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/130", "html_url": "https://github.com/huggingface/transformers/pull/130", "diff_url": "https://github.com/huggingface/transformers/pull/130.diff", "patch_url": "https://github.com/huggingface/transformers/pull/130.patch", "merged_at": "2018...
The recommended approach to create launch scripts is to use entry_points and console_scripts. xref: https://packaging.python.org/guides/distributing-packages-using-setuptools/#scripts
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/130/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/130/timeline
null
null
null
null
null
null
true
[ "Looks great indeed, thanks for that!" ]
https://api.github.com/repos/huggingface/transformers/issues/128
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/128/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/128/comments
https://api.github.com/repos/huggingface/transformers/issues/128/events
https://github.com/huggingface/transformers/pull/128
392,406,933
MDExOlB1bGxSZXF1ZXN0MjM5Njg3MTMy
128
Add license to source distribution
{ "login": "sodre", "id": 1043285, "node_id": "MDQ6VXNlcjEwNDMyODU=", "avatar_url": "https://avatars.githubusercontent.com/u/1043285?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sodre", "html_url": "https://github.com/sodre", "followers_url": "https://api.github.com/users/sodre/follower...
[]
closed
false
[]
null
1
2018-12-19T01:43:46Z
2018-12-21T19:56:25Z
2018-12-19T09:15:54Z
null
CONTRIBUTOR
[]
null
null
0
{ "url": "https://api.github.com/repos/huggingface/transformers/pulls/128", "html_url": "https://github.com/huggingface/transformers/pull/128", "diff_url": "https://github.com/huggingface/transformers/pull/128.diff", "patch_url": "https://github.com/huggingface/transformers/pull/128.patch", "merged_at": "2018...
The `LICENSE` file in the git repository contains the Apache license text but it not included the source `.tar.gz` distribution. This PR adds a `MANIFEST.in` file with a directive to include the LICENSE.
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/128/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/128/timeline
null
null
null
null
null
null
true
[ "Thanks!" ]
https://api.github.com/repos/huggingface/transformers/issues/147
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/147/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/147/comments
https://api.github.com/repos/huggingface/transformers/issues/147/events
https://github.com/huggingface/transformers/issues/147
394,064,499
MDU6SXNzdWUzOTQwNjQ0OTk=
147
Does the final hidden state contains the <CLS> for Squad2.0
{ "login": "SparkJiao", "id": 16469472, "node_id": "MDQ6VXNlcjE2NDY5NDcy", "avatar_url": "https://avatars.githubusercontent.com/u/16469472?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SparkJiao", "html_url": "https://github.com/SparkJiao", "followers_url": "https://api.github.com/users/...
[]
closed
false
[]
null
1
2018-12-26T02:05:34Z
2018-12-26T02:48:04Z
2018-12-26T02:48:04Z
null
NONE
[]
null
null
null
null
Recently I'm modifying the `run_squad.py` to run on CoQA. In the implementation of TensorFlow from Google, they use the probability on the first token of a context segment, where is the location of `<CLS>` to as the that of the question is unanswerable. So I try to modified the `run_squad.py` in your implementation as ...
{ "login": "SparkJiao", "id": 16469472, "node_id": "MDQ6VXNlcjE2NDY5NDcy", "avatar_url": "https://avatars.githubusercontent.com/u/16469472?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SparkJiao", "html_url": "https://github.com/SparkJiao", "followers_url": "https://api.github.com/users/...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/147/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/147/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "I'm sorry that I have found a bug in my code. I have invalidly called a attribute of the `InputFeature` but it have run successfully. Now I have fixed it and re-run it. If I have more questions I will reopen this. Sorry to bother you!" ]
https://api.github.com/repos/huggingface/transformers/issues/148
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/148/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/148/comments
https://api.github.com/repos/huggingface/transformers/issues/148/events
https://github.com/huggingface/transformers/issues/148
394,310,682
MDU6SXNzdWUzOTQzMTA2ODI=
148
Embeddings from BERT for original tokens
{ "login": "nihalnayak", "id": 5679782, "node_id": "MDQ6VXNlcjU2Nzk3ODI=", "avatar_url": "https://avatars.githubusercontent.com/u/5679782?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nihalnayak", "html_url": "https://github.com/nihalnayak", "followers_url": "https://api.github.com/users...
[]
closed
false
[]
null
1
2018-12-27T06:48:23Z
2018-12-28T09:17:16Z
2018-12-28T09:17:16Z
null
NONE
[]
null
null
null
null
I am trying out the `extract_features.py` example program. I noticed that a sentence gets split into tokens and the embeddings are generated. For example, if you had the sentence “Definitely not”, and the corresponding workpieces can be [“Def”, “##in”, “##ite”, “##ly”, “not”]. It then generates the embeddings for thes...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/148/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/148/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "Hi, you should read the discussion in #64. I left this issue open for reference on these questions.\r\nDon't hesitate to participate there." ]
https://api.github.com/repos/huggingface/transformers/issues/146
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/146/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/146/comments
https://api.github.com/repos/huggingface/transformers/issues/146/events
https://github.com/huggingface/transformers/issues/146
393,876,320
MDU6SXNzdWUzOTM4NzYzMjA=
146
BertForQuestionAnswering: Predicting span on the question?
{ "login": "valsworthen", "id": 18659328, "node_id": "MDQ6VXNlcjE4NjU5MzI4", "avatar_url": "https://avatars.githubusercontent.com/u/18659328?v=4", "gravatar_id": "", "url": "https://api.github.com/users/valsworthen", "html_url": "https://github.com/valsworthen", "followers_url": "https://api.github.com/...
[]
closed
false
[]
null
1
2018-12-24T12:51:49Z
2018-12-28T09:20:49Z
2018-12-28T09:20:49Z
null
NONE
[]
null
null
null
null
Hello, I have a question regarding the `BertForQuestionAnswering` implementation. If I am not mistaken, for this model the sequence should be of the form `Question tokens [SEP] Passage tokens`. Therefore, the embedded representation computed by `BertModel` returns the states of both the question and the passage (a t...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/146/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/146/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[ "This is the original behavior from the TF implementation.\r\nThe predictions are filtered afterward (in `write_predictions`) so this is probably not a big issue.\r\nMaybe try with another behavior and see if it improve upon the results?" ]
https://api.github.com/repos/huggingface/transformers/issues/139
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/139/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/139/comments
https://api.github.com/repos/huggingface/transformers/issues/139/events
https://github.com/huggingface/transformers/issues/139
393,167,784
MDU6SXNzdWUzOTMxNjc3ODQ=
139
Not able to use FP16 in pytorch-pretrained-BERT
{ "login": "Ashish-Gupta03", "id": 7694700, "node_id": "MDQ6VXNlcjc2OTQ3MDA=", "avatar_url": "https://avatars.githubusercontent.com/u/7694700?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Ashish-Gupta03", "html_url": "https://github.com/Ashish-Gupta03", "followers_url": "https://api.gith...
[]
closed
false
[]
null
0
2018-12-20T18:46:14Z
2018-12-28T09:23:34Z
2018-12-28T09:23:34Z
null
NONE
[]
null
null
null
null
I'm not able to work with FP16 for pytorch BERT code. Particularly for BertForSequenceClassification, which I tried and got the issue **Runtime error: Expected scalar type object Half but got scalar type Float for argument #2 target** when I enabled fp16. Also when using `logits = logits.half() labels = labels.ha...
{ "login": "thomwolf", "id": 7353373, "node_id": "MDQ6VXNlcjczNTMzNzM=", "avatar_url": "https://avatars.githubusercontent.com/u/7353373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thomwolf", "html_url": "https://github.com/thomwolf", "followers_url": "https://api.github.com/users/thomw...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/139/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/huggingface/transformers/issues/139/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[]
https://api.github.com/repos/huggingface/transformers/issues/132
https://api.github.com/repos/huggingface/transformers
https://api.github.com/repos/huggingface/transformers/issues/132/labels{/name}
https://api.github.com/repos/huggingface/transformers/issues/132/comments
https://api.github.com/repos/huggingface/transformers/issues/132/events
https://github.com/huggingface/transformers/issues/132
392,898,311
MDU6SXNzdWUzOTI4OTgzMTE=
132
NONE
{ "login": "HuXiangkun", "id": 6700036, "node_id": "MDQ6VXNlcjY3MDAwMzY=", "avatar_url": "https://avatars.githubusercontent.com/u/6700036?v=4", "gravatar_id": "", "url": "https://api.github.com/users/HuXiangkun", "html_url": "https://github.com/HuXiangkun", "followers_url": "https://api.github.com/users...
[]
closed
false
[]
null
0
2018-12-20T05:42:29Z
2018-12-28T14:04:26Z
2018-12-28T13:56:36Z
null
NONE
[]
null
null
null
null
{ "login": "HuXiangkun", "id": 6700036, "node_id": "MDQ6VXNlcjY3MDAwMzY=", "avatar_url": "https://avatars.githubusercontent.com/u/6700036?v=4", "gravatar_id": "", "url": "https://api.github.com/users/HuXiangkun", "html_url": "https://github.com/HuXiangkun", "followers_url": "https://api.github.com/users...
{ "url": "https://api.github.com/repos/huggingface/transformers/issues/132/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/132/timeline
null
completed
{ "total": 0, "completed": 0, "percent_completed": 0 }
{ "blocked_by": 0, "total_blocked_by": 0, "blocking": 0, "total_blocking": 0 }
null
null
false
[]