"app/git@developer.sourcefind.cn:orangecat/ollama.git" did not exist on "8cc92447e311bff7fff9c417a42efc4ddd58f8bf"
  1. 23 Jun, 2021 12 commits
    • Lysandre Debut's avatar
      Conda build (#12323) · 4bdff2cd
      Lysandre Debut authored
      4bdff2cd
    • Sylvain Gugger's avatar
      Add all XxxPreTrainedModel to the main init (#12314) · 9eda6b52
      Sylvain Gugger authored
      * Add all XxxPreTrainedModel to the main init
      
      * Add to template
      
      * Add to template bis
      
      * Add FlaxT5
      9eda6b52
    • Sylvain Gugger's avatar
      Clean push to hub API (#12187) · 53c60bab
      Sylvain Gugger authored
      
      
      * Clean push to hub API
      
      * Create working dir if it does not exist
      
      * Different tweak
      
      * New API + all models + test Flax
      
      * Adds the Trainer clean up
      
      * Update src/transformers/file_utils.py
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      
      * Address review comments
      
      * (nit) output types
      
      * No need to set clone_from when folder exists
      
      * Update src/transformers/trainer.py
      Co-authored-by: default avatarJulien Chaumond <julien@huggingface.co>
      
      * Add generated_from_trainer tag
      
      * Update to new version
      
      * Fixes
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      Co-authored-by: default avatarJulien Chaumond <julien@huggingface.co>
      Co-authored-by: default avatarLysandre <lysandre.debut@reseau.eseo.fr>
      53c60bab
    • chenht2010's avatar
      [TFWav2Vec2] Fix docs (#12283) · 625f512d
      chenht2010 authored
      
      
      * fix error
      
      * make style check happy
      Co-authored-by: default avatarchenhaitao <chenhaitao@qiyi.com>
      625f512d
    • Patrick von Platen's avatar
      [Flax/JAX] Add how to propose projects markdown (#12311) · 44739c81
      Patrick von Platen authored
      * fix_torch_device_generate_test
      
      * remove @
      
      * finish
      
      * make style
      44739c81
    • Lysandre Debut's avatar
    • Vasudev Gupta's avatar
      Flax T5 (#12150) · e98233dd
      Vasudev Gupta authored
      
      
      * copy pytorch-t5
      
      * init
      
      * boom boom
      
      * forward pass same
      
      * make generation work
      
      * add more tests
      
      * make test work
      
      * finish normal tests
      
      * make fix-copies
      
      * finish quality
      
      * correct slow example
      
      * correct slow test
      
      * version table
      
      * upload models
      
      * Update tests/test_modeling_flax_t5.py
      
      * correct incorrectly deleted line
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      Co-authored-by: default avatarPatrick von Platen <patrick@huggingface.co>
      e98233dd
    • David Fan's avatar
      Rewrite ProphetNet to adapt converting ONNX friendly (#11981) · 7d4cfa3b
      David Fan authored
      * Rewrite
      
      * [ONNX] rewrite
      7d4cfa3b
    • Suraj Patil's avatar
      Flax summarization script (#12230) · c0fe3c9a
      Suraj Patil authored
      * add summrization script
      
      * fix arguments, preprocessing, metrics
      
      * add generation and metrics
      
      * auto model, prediction loop
      
      * prettify
      
      * label smoothing
      
      * adress Sylvain and Patricks suggestions
      
      * dynamically import shift_tokens_right
      
      * fix shift_tokens_right_fn call
      c0fe3c9a
    • Daniel Stancl's avatar
      Add output in a dictionary for TF `generate` method (#12139) · 26a2e365
      Daniel Stancl authored
      * Add output args to greedy search
      
      * Fix critical typo + make style quality
      
      * Handle generate_beam_search
      
      * Add dict_specific tests and fix the placement of encoder outputs
      
      * Add  specific outputs
      
      * Update doc
      
      * Fix typo
      
      * Adjust handling encoder_outputs + Fix generating for T5
      
      * Fix generate for RAG
      
      * Fix handling ouptut_attentions when target_mapping is not None
      
      Take care of situations when target_mapping is provided
      as there are 2-tuple of attentions
      
      Change from:
      if inputs["output_attentions"]:
          attentions = tuple(tf.transpose(t, perm(2, 3, 0, 1)) for t in attentions)
      
      to:
      if inputs["output_attentions"]:
          if inputs["target_mapping"] is not None:
              # when target_mapping is provided, there are 2-tuple of attentions
               attentions = tuple(
                   tuple(tf.transpose(attn_stream, perm=(2, 3, 0, 1)) for attn_stream in t) for t in attentions
              )
          else:
              attentions = tuple(tf.transpose(t, perm=(2, 3, 0, 1)) for t in attentions)
      
      * Rename kwargs to model_kwargs
      
      * make style quality
      
      * Move imports in test_modeling_tf_common.py
      
      Move ModelOutput-related imports in test_modeling_tf_common.py
      into the `is_tf_available():` statement.
      
      * Rewrite nested if-statements
      
      * Fix added tests
      26a2e365
    • Nicolas Patry's avatar
      Optimizing away the `fill-mask` pipeline. (#12113) · d4be4984
      Nicolas Patry authored
      
      
      * Optimizing away the `fill-mask` pipeline.
      
      - Don't send anything to the tokenizer unless needed. Vocab check is
      much faster
      - Keep BC by sending data to the tokenizer when needed. User handling warning messages will see performance benefits again
      - Make `targets` and `top_k` work together better `top_k` cannot be
      higher than `len(targets)` but can be smaller still.
      - Actually simplify the `target_ids` in case of duplicate (it can happen
      because we're parsing raw strings)
      - Removed useless code to fail on empty strings. It works only if empty
      string is in first position, moved to ignoring them instead.
      - Changed the related tests as only the tests would fail correctly
      (having incorrect value in first position)
      
      * Make tests compatible for 2 different vocabs... (at the price of a
      warning).
      
      Co-authored-by: @EtaoinWu
      
      * ValueError working globally
      
      * Update src/transformers/pipelines/fill_mask.py
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      
      * `tokenizer.vocab` -> `tokenizer.get_vocab()` for more compatiblity +
      fallback.
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      d4be4984
    • Kevin Canwen Xu's avatar
      Add CodeCarbon Integration (#12304) · 037e466b
      Kevin Canwen Xu authored
      * Add optional dependency
      
      * Add CodeCarbon integration
      
      * Add CodeCarbon integration
      
      * Add CodeCarbon integration
      
      * typo
      037e466b
  2. 22 Jun, 2021 10 commits
  3. 21 Jun, 2021 10 commits
  4. 18 Jun, 2021 4 commits
  5. 17 Jun, 2021 4 commits