1. 08 Feb, 2022 3 commits
  2. 07 Feb, 2022 3 commits
    • Steven Liu's avatar
      Create a custom model guide (#15489) · 552f8d30
      Steven Liu authored
      * 馃摑 add config section
      
      * 馃摑 finish first draft
      
      * 馃摑 add feature extractor and processor
      
      * 馃枍 apply feedback from review
      
      * 馃摑 minor edits
      
      * last review
      552f8d30
    • lewtun's avatar
      6775b211
    • NielsRogge's avatar
      Add ConvNeXT (#15277) · 84eec9e6
      NielsRogge authored
      
      
      * First draft
      
      * Add conversion script
      
      * Improve conversion script
      
      * Improve docs and implement tests
      
      * Define model output class
      
      * Fix tests
      
      * Fix more tests
      
      * Add model to README
      
      * Apply suggestions from code review
      Co-authored-by: default avatarSylvain Gugger <35901082+sgugger@users.noreply.github.com>
      
      * Apply more suggestions from code review
      
      * Apply suggestions from code review
      
      * Rename dims to hidden_sizes
      
      * Fix equivalence test
      
      * Rename gamma to gamma_parameter
      
      * Clean up conversion script
      
      * Add ConvNextFeatureExtractor
      
      * Add corresponding tests
      
      * Implement feature extractor correctly
      
      * Make implementation cleaner
      
      * Add ConvNextStem class
      
      * Improve design
      
      * Update design to also include encoder
      
      * Fix gamma parameter
      
      * Use sample docstrings
      
      * Finish conversion, add center cropping
      
      * Replace nielsr by facebook, make feature extractor tests smaller
      
      * Fix integration test
      Co-authored-by: default avatarSylvain Gugger <35901082+sgugger@users.noreply.github.com>
      84eec9e6
  3. 04 Feb, 2022 3 commits
  4. 03 Feb, 2022 1 commit
  5. 02 Feb, 2022 3 commits
    • Sylvain Gugger's avatar
      Save code of registered custom models (#15379) · 44b21f11
      Sylvain Gugger authored
      
      
      * Allow dynamic modules to use relative imports
      
      * Work for configs
      
      * Fix last merge conflict
      
      * Save code of registered custom objects
      
      * Map strings to strings
      
      * Fix test
      
      * Add tokenizer
      
      * Rework tests
      
      * Tests
      
      * Ignore fixtures py files for tests
      
      * Tokenizer test + fix collection
      
      * With full path
      
      * Rework integration
      
      * Fix typo
      
      * Remove changes in conftest
      
      * Test for tokenizers
      
      * Add documentation
      
      * Update docs/source/custom_models.mdx
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      
      * Add file structure and file content
      
      * Add more doc
      
      * Style
      
      * Update docs/source/custom_models.mdx
      Co-authored-by: default avatarSuraj Patil <surajp815@gmail.com>
      
      * Address review comments
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      Co-authored-by: default avatarSuraj Patil <surajp815@gmail.com>
      44b21f11
    • Steven Liu's avatar
      Update tutorial docs (#15165) · b9418a1d
      Steven Liu authored
      * first draft of pipeline, autoclass, preprocess tutorials
      
      * apply review feedback
      
      * 馃枍 apply feedback from patrick/niels
      
      * 馃摑add output image to preprocessed image
      
      * 馃枍 apply feedback from patrick
      b9418a1d
    • Steven Liu's avatar
      Update fine-tune docs (#15259) · c157c7e3
      Steven Liu authored
      * add fine-tune tutorial
      
      * make edits, fix style
      
      * 馃摑 make edits
      
      * 馃枍 fix code format links to external libraries
      
      * 馃攧revert code formatting
      
      * 馃枍 use DefaultDataCollator instead of DataCollatorWithPadding
      c157c7e3
  6. 31 Jan, 2022 3 commits
  7. 29 Jan, 2022 3 commits
  8. 28 Jan, 2022 2 commits
  9. 27 Jan, 2022 3 commits
  10. 26 Jan, 2022 4 commits
  11. 25 Jan, 2022 2 commits
  12. 21 Jan, 2022 1 commit
  13. 20 Jan, 2022 2 commits
  14. 19 Jan, 2022 4 commits
    • NielsRogge's avatar
      Update Trainer code example (#15070) · 80f72960
      NielsRogge authored
      * Update code example
      
      * Fix code quality
      
      * Add comment
      80f72960
    • NielsRogge's avatar
      Add ViLT (#14895) · ac227093
      NielsRogge authored
      
      
      * First commit
      
      * Add conversion script
      
      * Make conversion script work for base model
      
      * More improvements
      
      * Update conversion script, works for vqa
      
      * Add indexing argument to meshgrid
      
      * Make conversion script work for ViltForPreTraining
      
      * Add ViltForPreTraining to docs
      
      * Fix device issue
      
      * Add processor
      
      * Add MinMaxResize to feature extractor
      
      * Implement call method of ViltProcessor
      
      * Fix tests
      
      * Add integration test
      
      * Add loss calculation for VQA
      
      * Improve tests
      
      * Improve some more tests
      
      * Debug tests
      
      * Small improvements
      
      * Add support for attention_mask
      
      * Remove mask_it
      
      * Add pixel_mask
      
      * Add tests for ViltFeatureExtractor
      
      * Improve tests
      
      * Add ViltForNaturalLanguageVisualReasoning
      
      * Add ViltForNaturalLanguageVisualReasoning to conversion script
      
      * Minor fixes
      
      * Add support for image_embeds, update docstrings to markdown
      
      * Update docs to markdown
      
      * Improve conversion script
      
      * Rename ViltForPreTraining to ViltForMaskedLM
      
      * Improve conversion script
      
      * Convert docstrings to markdown
      
      * Fix code example of retrieval model
      
      * Properly convert masked language model
      
      * Add integration test for nlvr
      
      * Fix code quality
      
      * Apply suggestions from code review
      
      * Add copied from statements
      
      * Fix pretrained_config_archive_map
      
      * Fix docs
      
      * Add model to README
      
      * Apply suggestions from code review
      Co-authored-by: default avatarSylvain Gugger <35901082+sgugger@users.noreply.github.com>
      
      * Apply more suggestions from code review
      
      * Make code more readable
      
      * Add ViltForNaturalLanguageVisualReasoning to the tests
      
      * Rename ViltForVisualQuestionAnswering to ViltForQuestionAnswering
      
      * Replace pixel_values_2 by single tensor
      
      * Add hidden_states and attentions
      
      * Fix one more test
      
      * Fix all tests
      
      * Update year
      
      * Fix rebase issues
      
      * Fix another rebase issue
      
      * Remove ViltForPreTraining from auto mapping
      
      * Rename ViltForImageRetrievalTextRetrieval to ViltForImageAndTextRetrieval
      
      * Make it possible to use BertTokenizerFast in the processor
      
      * Use BertTokenizerFast by default
      
      * Rename ViltForNaturalLanguageVisualReasoning, define custom model output
      Co-authored-by: default avatarSylvain Gugger <35901082+sgugger@users.noreply.github.com>
      ac227093
    • NielsRogge's avatar
      [ViTMAE] Various fixes (#15221) · 842298f8
      NielsRogge authored
      * Add MAE to AutoFeatureExtractor
      
      * Add link to notebook
      
      * Fix relative paths
      842298f8
    • Li-Huai (Allan) Lin's avatar
      Add FastTokenizer to REALM (#15211) · 841d9791
      Li-Huai (Allan) Lin authored
      * Remove BertTokenizer abstraction
      
      * Add FastTokenizer to REALM
      
      * Fix config archive map
      
      * Fix copies
      
      * Update realm.mdx
      
      * Apply suggestions from code review
      841d9791
  15. 18 Jan, 2022 3 commits
    • Sylvain Gugger's avatar
      Finish conversion of REALM doc to MDX · db350394
      Sylvain Gugger authored
      db350394
    • Jake Tae's avatar
      Enable tqdm toggling (#15167) · fe78fe98
      Jake Tae authored
      
      
      * feature: enable tqdm toggle
      
      * test: add tqdm unit test
      
      * style: run linter
      
      * Update tests/test_tqdm_utils.py
      Co-authored-by: default avatarStas Bekman <stas00@users.noreply.github.com>
      
      * refactor: use tiny model, run linter
      
      * docs: add tqdm to logging
      
      * docs: add tqdm reference to `http_get`
      
      * style: run linter
      
      * Update docs/source/main_classes/logging.mdx
      Co-authored-by: default avatarStas Bekman <stas00@users.noreply.github.com>
      
      * fix: use `AutoConfig` for framework agnostic testing
      
      * chore: mv tqdm test to `test_logging.py`
      
      * feature: implement enable/disable functions
      
      * docs: mv docstring to comment
      
      * chore: mv tqdm functions to `logging.py`
      
      * docs: update docs to reference `enable/disable` funcs
      
      * test: update test to use `enable/disable` func
      
      * chore: update function reference in comment
      Co-authored-by: default avatarStas Bekman <stas00@users.noreply.github.com>
      fe78fe98
    • NielsRogge's avatar
      Add MAE (#15120) · 74bec986
      NielsRogge authored
      * First draft
      
      * More improvements
      
      * More improvements
      
      * More improvements
      
      * Fix embeddings
      
      * Add conversion script
      
      * Finish conversion script
      
      * More improvements
      
      * Fix forward pass
      
      * Remove print statements
      
      * Add weights initialization
      
      * Add initialization of decoder weights
      
      * Add support for other models in the conversion script
      
      * Fix patch_size for huge model
      
      * Fix most of the tests
      
      * Fix integration test
      
      * Fix docs
      
      * Fix archive_list
      
      * Apply suggestions from code review
      
      * Improve documentation
      
      * Apply more suggestions
      
      * Skip some tests due to non-deterministic behaviour
      
      * Fix test_initialization
      
      * Remove unneccessary initialization of nn.Embedding
      
      * Improve docs
      
      * Fix dummies
      
      * Remove ViTMAEFeatureExtractor from docs
      
      * Add model to README and table of contents
      
      * Delete inference file
      74bec986