Thomas Wolf
3e5da38dae
Merge pull request #3132 from huggingface/hf_api_model_list
...
[hf_api] Get the public list of all the models on huggingface
2020-03-06 13:05:52 +01:00
Thomas Wolf
9499a3778e
Merge pull request #3103 from gthb/keras-serialization
...
Support keras JSON/HDF5 serialization of main layers
2020-03-06 12:59:13 +01:00
patrickvonplaten
9362eb4a07
refactored beam search according to torch implementation
2020-03-06 00:46:29 +01:00
Patrick von Platen
c8035e11e8
Merge pull request #3149 from patrickvonplaten/fix_renaming_error
...
fix missed BartForMaskedLM renaming
2020-03-06 00:45:08 +01:00
patrickvonplaten
58fc8f97a3
fix renaming problem
2020-03-06 00:35:47 +01:00
Sam Shleifer
857e0a0d3b
Rename BartForMaskedLM -> BartForConditionalGeneration ( #3114 )
...
* improved documentation
2020-03-05 17:41:18 -05:00
Lysandre Debut
fa2aa699da
Merge pull request #3011 from patrickvonplaten/add_models_special_tokens_to_specific_configs
...
Add models special tokens to its pretrained configs
2020-03-05 17:26:48 -05:00
Lysandre Debut
146c521235
Merge branch 'master' into add_models_special_tokens_to_specific_configs
2020-03-05 17:24:42 -05:00
Lysandre Debut
b623ddc000
Pass kwargs to configuration ( #3147 )
...
* Pass kwargs to configuration
* Setter
* test
2020-03-05 17:16:57 -05:00
Lysandre Debut
0001d05686
Correct missing keys + test ( #3143 )
2020-03-05 17:01:54 -05:00
Thomas Wolf
1741d740f2
Merge pull request #3145 from sshleifer/bartfp16
...
[Bart] FP16 Support
2020-03-05 22:14:35 +01:00
Thomas Wolf
bbabbc1613
Merge pull request #3135 from patrickvonplaten/refactor_beam_search_generate
...
Refactoring and bug fixing beam search generate
2020-03-05 22:12:56 +01:00
sshleifer
14d40584b2
remove newline
2020-03-05 13:06:35 -05:00
sshleifer
1360dacaa3
cleanup deltas
2020-03-05 12:57:42 -05:00
sshleifer
810079de1f
no ipdb
2020-03-05 12:48:14 -05:00
sshleifer
c203509d5b
undo chg
2020-03-05 12:34:08 -05:00
sshleifer
c36fdc88d4
tests pass
2020-03-05 12:33:08 -05:00
Morgan Funtowicz
7ac47bfe69
Updated notebook dependencies for Colab.
...
Signed-off-by: Morgan Funtowicz <morgan@huggingface.co>
2020-03-05 16:07:51 +01:00
Morgan Funtowicz
be02176a4b
Fixing sentiment pipeline in 03-pipelines notebook.
...
Signed-off-by: Morgan Funtowicz <morgan@huggingface.co>
2020-03-05 16:07:51 +01:00
Julien Chaumond
8a2d9bc9ef
Add model cards for DeepPavlov models ( #3138 )
...
* add empty model cards for every current DeepPavlov model
* fix: replace cyrillic `с` with `c`
* docs: add model cards for current DeepPavlov BERT models
* docs: add links for arXiv preprints
2020-03-05 09:34:43 -05:00
Morgan Funtowicz
012cbdb0f5
Updating colab links in notebooks README.
...
Signed-off-by: Morgan Funtowicz <morgan@huggingface.co>
2020-03-05 15:34:15 +01:00
Tom Hosking
31acb8dc52
Remove rogue .DS_Store
2020-03-05 13:51:30 +00:00
Tom Hosking
06a6cb6f36
Refactor BartModel so that input checks are handled within BartEncoder and BartDecoder
2020-03-05 13:45:41 +00:00
Patrick von Platen
e33ed12c3b
uncomment expression
2020-03-05 13:41:04 +01:00
Patrick von Platen
4220fd52b9
remove ipdb
2020-03-05 13:36:21 +01:00
Patrick von Platen
c47394b0c9
refactoring and bug fixing beam search generate
2020-03-05 13:12:50 +01:00
Gunnlaugur Thor Briem
4c91a3af94
Document keras_serializable decorator
2020-03-05 11:48:10 +00:00
Gunnlaugur Thor Briem
4be01e5cbf
Use name transformers_config in Keras serialization
...
Be explicit that this is config for the transformers package (as these
layers may coexist with other custom stuff in a Keras model, plus the
Keras container itself is called config, and config["config"] is not
great)
Add explicit error handling for initializer calls that have neither
the `config` nor the `transformers_config` argument, or have both.
2020-03-05 11:47:35 +00:00
Gunnlaugur Thor Briem
a355f4f0fc
Add functools.wraps for wrapper initializer
...
Preserve the original initializer function's metadata. See
https://docs.python.org/3/library/functools.html#functools.update_wrapper
2020-03-05 11:18:50 +00:00
Gunnlaugur Thor Briem
d262a5d48e
fix: remove unused import
2020-03-05 11:05:29 +00:00
Morgan Funtowicz
30624f7056
Fix Colab links + install dependencies first.
...
Signed-off-by: Morgan Funtowicz <morgan@huggingface.co>
2020-03-05 11:40:15 +01:00
Julien Chaumond
3f067f4409
[hf_api] slightly more doc
2020-03-04 23:55:46 -05:00
Julien Chaumond
f564f93c84
[hf_api] Get the public list of all the models on huggingface
2020-03-04 23:33:09 -05:00
Julien Chaumond
ff9e79ba3a
make style
2020-03-04 20:18:07 -05:00
Lysandre
07a79db505
Fix failing doc samples
2020-03-04 19:11:31 -05:00
Gunnlaugur Thor Briem
4f338ed407
Explicit config_class instead of module inspection
2020-03-04 23:45:29 +00:00
Gunnlaugur Thor Briem
6fe1cc0874
fix: clean up inadvertent change in tf_t5
...
This was the beginnings of an attempt to address the test failure on
this layer, and instead I backed out of making this layer
keras-serializable at all ... so it was a mistake to commit this.
2020-03-04 23:24:15 +00:00
Thomas Wolf
bdd3d0c76d
Merge pull request #3118 from patrickvonplaten/add_beam_search_to_generation_tf_2_0
...
Add beam search to generation tf 2 0
2020-03-04 23:28:00 +01:00
Julien Chaumond
c440030e99
[model_cards] Tag AR model languages
2020-03-04 16:33:10 -05:00
Thomas Wolf
3b7f95a506
Merge pull request #3115 from gthb/fix-bogus-param-to-layer-init
...
fix: passing config as Layer trainable param
2020-03-04 21:59:09 +01:00
Morgan Funtowicz
1bca97ec7f
Update notebook link and fix few working issues.
...
Signed-off-by: Morgan Funtowicz <morgan@huggingface.co>
2020-03-04 21:19:33 +01:00
Manuel Romero
189113d891
Create README.md
2020-03-04 13:57:23 -05:00
Julien Chaumond
76111a3d3a
[model_cards] Add card by @lvwerra
...
(the current way to submit a model card to have it displayed on the website is to open a PR on the `transformers` repo itself)
Thanks for sharing!
2020-03-04 12:55:20 -05:00
Julien Chaumond
a43c388abb
[model_cards] Add card by @djstrong
...
(the current way to submit a model card to have it displayed on the website is to open a PR on the `transformers` repo itself)
Thanks for sharing!
2020-03-04 12:53:02 -05:00
Manuel Romero
ec60e0ae7a
Create README.md
2020-03-04 12:06:05 -05:00
Wissam Antoun
6a143bf282
model cards for both aubmindlab/bert-base-arabert models ( #3113 )
...
* Added readme for AraBERTv0.1
* Added readme to AraBERT
2020-03-04 12:04:39 -05:00
Patrick von Platen
932eab943d
include tf gpt2 tests for attn mask and past variable ( #3122 )
2020-03-04 12:03:46 -05:00
Julien Chaumond
256cbbc4a2
[doc] Fix link to how-to-train Colab
2020-03-04 12:01:45 -05:00
Patrick von Platen
006097f8ad
rename variables named 'word' to 'token' in generate fn ( #3119 )
...
* fix conflits
* fixed naming bug
* make style
2020-03-04 12:01:17 -05:00
Gunnlaugur Thor Briem
18f4b9274f
fix: work with Tensorflow < 2.1.0
...
tf.keras.utils.register_keras_serializable was added in TF 2.1.0, so
don't rely on it being there; just decorate the class with it if it
exists.
2020-03-04 16:57:29 +00:00