1. 25 Aug, 2023 1 commit
  2. 21 Aug, 2023 1 commit
  3. 17 Aug, 2023 1 commit
    • Yoach Lacombe's avatar
      Add Text-To-Speech pipeline (#24952) · b8f69d0d
      Yoach Lacombe authored
      
      
      * add AutoModelForTextToSpeech class
      
      * add TTS pipeline and tessting
      
      * add docstrings to text_to_speech pipeline
      
      * fix torch dependency
      
      * corrector 'processor is None' case in Pipeline
      
      * correct repo id
      
      * modify text-to-speech -> text-to-audio
      
      * remove processor
      
      * rename text_to_speech pipelines files to text_audio
      
      * add textToWaveform and textToSpectrogram instead of textToAudio classes
      
      * update TTS pipeline to the bare minimum
      
      * update tests TTS pipeline
      
      * make style and erase useless import torch in TTS pipeline tests
      
      * modify how to check if generate or forward in TTS pipeline
      
      * remove unnecessary extra new lines
      
      * Apply suggestions from code review
      Co-authored-by: default avatarSanchit Gandhi <93869735+sanchit-gandhi@users.noreply.github.com>
      
      * refactor input_texts -> text_inputs
      
      * correct docstrings of TTS.__call__
      
      * correct the shape of generated waveform
      
      * take care of Bark tokenizer special case
      
      * correct run_pipeline_test TTS
      
      * make style
      
      * update TTS docstrings
      
      * address Sylvain nit refactors
      
      * make style
      
      * refactor into one liners
      
      * correct squeeze
      
      * correct way to test if forward or generate
      
      * Update output audio waveform shape
      
      * make style
      
      * correct import
      
      * modify how the TTS pipeline test if a model can generate
      
      * align shape output of TTS pipeline with consistent shape
      
      ---------
      Co-authored-by: default avatarSanchit Gandhi <93869735+sanchit-gandhi@users.noreply.github.com>
      b8f69d0d
  4. 14 Aug, 2023 1 commit
  5. 10 Aug, 2023 1 commit
  6. 02 Aug, 2023 1 commit
  7. 01 Aug, 2023 1 commit
  8. 31 Jul, 2023 1 commit
  9. 21 Jul, 2023 1 commit
  10. 18 Jul, 2023 1 commit
  11. 17 Jul, 2023 1 commit
  12. 13 Jul, 2023 1 commit
  13. 10 Jul, 2023 1 commit
  14. 20 Jun, 2023 1 commit
  15. 13 Jun, 2023 2 commits
  16. 12 Jun, 2023 1 commit
  17. 09 Jun, 2023 1 commit
    • Lysandre Debut's avatar
      Tool types (#24032) · deff5979
      Lysandre Debut authored
      * Tool types
      
      * Tests + fixes
      
      * Isolate types
      
      * Oops
      
      * Review comments + docs
      
      * Tests + docs
      
      * soundfile -> vision
      deff5979
  18. 07 Jun, 2023 1 commit
  19. 01 Jun, 2023 1 commit
  20. 30 May, 2023 1 commit
  21. 26 May, 2023 1 commit
  22. 24 May, 2023 1 commit
    • Tim Dettmers's avatar
      4-bit QLoRA via bitsandbytes (4-bit base model + LoRA) (#23479) · 9d73b922
      Tim Dettmers authored
      
      
      * Added lion and paged optimizers and made original tests pass.
      
      * Added tests for paged and lion optimizers.
      
      * Added and fixed optimizer tests.
      
      * Style and quality checks.
      
      * Initial draft. Some tests fail.
      
      * Fixed dtype bug.
      
      * Fixed bug caused by torch_dtype='auto'.
      
      * All test green for 8-bit and 4-bit layers.
      
      * Added fix for fp32 layer norms and bf16 compute in LLaMA.
      
      * Initial draft. Some tests fail.
      
      * Fixed dtype bug.
      
      * Fixed bug caused by torch_dtype='auto'.
      
      * All test green for 8-bit and 4-bit layers.
      
      * Added lion and paged optimizers and made original tests pass.
      
      * Added tests for paged and lion optimizers.
      
      * Added and fixed optimizer tests.
      
      * Style and quality checks.
      
      * Fixing issues for PR #23479.
      
      * Added fix for fp32 layer norms and bf16 compute in LLaMA.
      
      * Reverted variable name change.
      
      * Initial draft. Some tests fail.
      
      * Fixed dtype bug.
      
      * Fixed bug caused by torch_dtype='auto'.
      
      * All test green for 8-bit and 4-bit layers.
      
      * Added lion and paged optimizers and made original tests pass.
      
      * Added tests for paged and lion optimizers.
      
      * Added and fixed optimizer tests.
      
      * Style and quality checks.
      
      * Added missing tests.
      
      * Fixup changes.
      
      * Added fixup changes.
      
      * Missed some variables to rename.
      
      * revert trainer tests
      
      * revert test trainer
      
      * another revert
      
      * fix tests and safety checkers
      
      * protect import
      
      * simplify a bit
      
      * Update src/transformers/trainer.py
      
      * few fixes
      
      * add warning
      
      * replace with `load_in_kbit = load_in_4bit or load_in_8bit`
      
      * fix test
      
      * fix tests
      
      * this time fix tests
      
      * safety checker
      
      * add docs
      
      * revert torch_dtype
      
      * Apply suggestions from code review
      Co-authored-by: default avatarSylvain Gugger <35901082+sgugger@users.noreply.github.com>
      
      * multiple fixes
      
      * update docs
      
      * version checks and multiple fixes
      
      * replace `is_loaded_in_kbit`
      
      * replace `load_in_kbit`
      
      * change methods names
      
      * better checks
      
      * oops
      
      * oops
      
      * address final comments
      
      ---------
      Co-authored-by: default avataryounesbelkada <younesbelkada@gmail.com>
      Co-authored-by: default avatarYounes Belkada <49240599+younesbelkada@users.noreply.github.com>
      Co-authored-by: default avatarSylvain Gugger <35901082+sgugger@users.noreply.github.com>
      9d73b922
  23. 18 May, 2023 1 commit
  24. 11 May, 2023 1 commit
  25. 10 May, 2023 1 commit
    • Sylvain Gugger's avatar
      Test composition (#23214) · 33357243
      Sylvain Gugger authored
      
      
      * Remove nestedness in tool config
      
      * Really do it
      
      * Use remote tools descriptions
      
      * Work
      
      * Clean up eval
      
      * Changes
      
      * Tools
      
      * Tools
      
      * tool
      
      * Fix everything
      
      * Use last result/assign for evaluation
      
      * Prompt
      
      * Remove hardcoded selection
      
      * Evaluation for chat agents
      
      * correct some spelling
      
      * Small fixes
      
      * Change summarization model (#23172)
      
      * Fix link displayed
      
      * Update description of the tool
      
      * Fixes in chat prompt
      
      * Custom tools, custom prompt
      
      * Tool clean up
      
      * save_pretrained and push_to_hub for tool
      
      * Fix init
      
      * Tests
      
      * Fix tests
      
      * Tool save/from_hub/push_to_hub and tool->load_tool
      
      * Clean push_to_hub and add app file
      
      * Custom inference API for endpoints too
      
      * Clean up
      
      * old remote tool and new remote tool
      
      * Make a requirements
      
      * return_code adds tool creation
      
      * Avoid redundancy between global variables
      
      * Remote tools can be loaded
      
      * Tests
      
      * Text summarization tests
      
      * Quality
      
      * Properly mark tests
      
      * Test the python interpreter
      
      * And the CI shall be green.
      
      * fix loading of additional tools
      
      * Work on RemoteTool and fix tests
      
      * General clean up
      
      * Guard imports
      
      * Fix tools
      
      * docs: Fix broken link in 'How to add a model...'  (#23216)
      
      fix link
      
      * Get default endpoint from the Hub
      
      * Add guide
      
      * Simplify tool config
      
      * Docs
      
      * Some fixes
      
      * Docs
      
      * Docs
      
      * Docs
      
      * Fix code returned by agent
      
      * Try this
      
      * Match args with signature in remote tool
      
      * Should fix python interpreter for Python 3.8
      
      * Fix push_to_hub for tools
      
      * Other fixes to push_to_hub
      
      * Add API doc page
      
      * Docs
      
      * Docs
      
      * Custom tools
      
      * Pin tensorflow-probability (#23220)
      
      * Pin tensorflow-probability
      
      * [all-test]
      
      * [all-test] Fix syntax for bash
      
      * PoC for some chaining API
      
      * Text to speech
      
      * J'ai pris des libert茅s
      
      * Rename
      
      * Basic python interpreter
      
      * Add agents
      
      * Quality
      
      * Add translation tool
      
      * temp
      
      * GenQA + LID + S2T
      
      * Quality + word missing in translation
      
      * Add open assistance, support f-strings in evaluate
      
      * captioning + s2t fixes
      
      * Style
      
      * Refactor descriptions and remove chain
      
      * Support errors and rename OpenAssistantAgent
      
      * Add setup
      
      * Deal with typos + example of inference API
      
      * Some rename + README
      
      * Fixes
      
      * Update prompt
      
      * Unwanted change
      
      * Make sure everyone has a default
      
      * One prompt to rule them all.
      
      * SD
      
      * Description
      
      * Clean up remote tools
      
      * More remote tools
      
      * Add option to return code and update doc
      
      * Image segmentation
      
      * ControlNet
      
      * Gradio demo
      
      * Diffusers protection
      
      * Lib protection
      
      * ControlNet description
      
      * Cleanup
      
      * Style
      
      * Remove accelerate and try to be reproducible
      
      * No randomness
      
      * Male Basic optional in token
      
      * Clean description
      
      * Better prompts
      
      * Fix args eval in interpreter
      
      * Add tool wrapper
      
      * Tool on the Hub
      
      * Style post-rebase
      
      * Big refactor of descriptions, batch generation and evaluation for agents
      
      * Make problems easier - interface to debug
      
      * More problems, add python primitives
      
      * Back to one prompt
      
      * Remove dict for translation
      
      * Be consistent
      
      * Add prompts
      
      * New version of the agent
      
      * Evaluate new agents
      
      * New endpoints agents
      
      * Make all tools a dict variable
      
      * Typo
      
      * Add problems
      
      * Add to big prompt
      
      * Harmonize
      
      * Add tools
      
      * New evaluation
      
      * Add more tools
      
      * Build prompt with tools descriptions
      
      * Tools on the Hub
      
      * Let's chat!
      
      * Cleanup
      
      * Temporary bs4 safeguard
      
      * Cache agents and clean up
      
      * Blank init
      
      * Fix evaluation for agents
      
      * New format for tools on the Hub
      
      * Add method to reset state
      
      * Remove nestedness in tool config
      
      * Really do it
      
      * Use remote tools descriptions
      
      * Work
      
      * Clean up eval
      
      * Changes
      
      * Tools
      
      * Tools
      
      * tool
      
      * Fix everything
      
      * Use last result/assign for evaluation
      
      * Prompt
      
      * Remove hardcoded selection
      
      * Evaluation for chat agents
      
      * correct some spelling
      
      * Small fixes
      
      * Change summarization model (#23172)
      
      * Fix link displayed
      
      * Update description of the tool
      
      * Fixes in chat prompt
      
      * Custom tools, custom prompt
      
      * Tool clean up
      
      * save_pretrained and push_to_hub for tool
      
      * Fix init
      
      * Tests
      
      * Fix tests
      
      * Tool save/from_hub/push_to_hub and tool->load_tool
      
      * Clean push_to_hub and add app file
      
      * Custom inference API for endpoints too
      
      * Clean up
      
      * old remote tool and new remote tool
      
      * Make a requirements
      
      * return_code adds tool creation
      
      * Avoid redundancy between global variables
      
      * Remote tools can be loaded
      
      * Tests
      
      * Text summarization tests
      
      * Quality
      
      * Properly mark tests
      
      * Test the python interpreter
      
      * And the CI shall be green.
      
      * Work on RemoteTool and fix tests
      
      * fix loading of additional tools
      
      * General clean up
      
      * Guard imports
      
      * Fix tools
      
      * Get default endpoint from the Hub
      
      * Simplify tool config
      
      * Add guide
      
      * Docs
      
      * Some fixes
      
      * Docs
      
      * Docs
      
      * Fix code returned by agent
      
      * Try this
      
      * Docs
      
      * Match args with signature in remote tool
      
      * Should fix python interpreter for Python 3.8
      
      * Fix push_to_hub for tools
      
      * Other fixes to push_to_hub
      
      * Add API doc page
      
      * Fixes
      
      * Doc fixes
      
      * Docs
      
      * Fix audio
      
      * Custom tools
      
      * Audio fix
      
      * Improve custom tools docstring
      
      * Docstrings
      
      * Trigger CI
      
      * Mode docstrings
      
      * More docstrings
      
      * Improve custom tools
      
      * Fix for remote tools
      
      * Style
      
      * Fix repo consistency
      
      * Quality
      
      * Tip
      
      * Cleanup on doc
      
      * Cleanup toc
      
      * Add disclaimer for starcoder vs openai
      
      * Remove disclaimer
      
      * Small fixed in the prompts
      
      * 4.29
      
      * Update src/transformers/tools/agents.py
      Co-authored-by: default avatarLysandre Debut <lysandre.debut@reseau.eseo.fr>
      
      * Complete documentation
      
      * Small fixes
      
      * Agent evaluation
      
      * Note about gradio-tools & LC
      
      * Clean up agents and prompt
      
      * Apply suggestions from code review
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      
      * Apply suggestions from code review
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      
      * Note about gradio-tools & LC
      
      * Add copyrights and address review comments
      
      * Quality
      
      * Add all language codes
      
      * Add remote tool tests
      
      * Move custom prompts to other docs
      
      * Apply suggestions from code review
      Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>
      
      * TTS tests
      
      * Quality
      
      ---------
      Co-authored-by: default avatarLysandre <hi@lyand.re>
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      Co-authored-by: default avatarPhilipp Schmid <32632186+philschmid@users.noreply.github.com>
      Co-authored-by: default avatarConnor Henderson <connor.henderson@talkiatry.com>
      Co-authored-by: default avatarLysandre <lysandre.debut@reseau.eseo.fr>
      Co-authored-by: default avatarLysandre <lysandre@huggingface.co>
      Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>
      33357243
  26. 09 May, 2023 1 commit
  27. 12 Apr, 2023 1 commit
  28. 10 Apr, 2023 1 commit
  29. 30 Mar, 2023 1 commit
  30. 22 Mar, 2023 2 commits
  31. 13 Mar, 2023 1 commit
  32. 07 Mar, 2023 1 commit
    • Eli Simhayev's avatar
      [Time-Series] informer model (#21099) · 8abe4930
      Eli Simhayev authored
      * added informer to gitignore
      
      * added informer to gitignore
      
      * WIP informer2020
      
      * added checking that instantiate works
      
      * added config using gluonTS by kashif
      
      * WIP config
      
      * adding informeConfig. need to remove FeatureEmbedder
      
      * done InformerConfig, but need to change the names
      
      * Done informer model init. working on enc-dec
      
      * added things to address, after reading again enc-dec in the paper
      
      * done modeling - checking initialization work
      
      * added informer to gitignore
      
      * WIP informer2020
      
      * added checking that instantiate works
      
      * added config using gluonTS by kashif
      
      * WIP config
      
      * adding informeConfig. need to remove FeatureEmbedder
      
      * done InformerConfig, but need to change the names
      
      * Done informer model init. working on enc-dec
      
      * added things to address, after reading again enc-dec in the paper
      
      * done modeling - checking initialization work
      
      * moved enc-dec init to InformerEncoder/Decoder init
      
      * added 'init_std' to config, now model init works!
      
      * WIP conversion script, and added code sources
      
      * WIP conversion script: loading original informer pth works
      
      * WIP conversion script: change defaults in the config
      
      * WIP conversion script: supporting Informer input embedding
      
      * WIP conversion script: added parameters for the informer embed
      
      * WIP conversion script: change dim_feedforward=2048
      
      * WIP conversion script: remove unused args for loading checkpoint
      
      * just cleaning up
      
      * DataEmbedding removed, after thinking with Kashif
      
      * working on forward pass
      
      * WIP forward pass: trying to establish working batch for forward pass
      
      * cleaning and finalizing
      
      * adding HF names and docs
      
      * init after cleaning works
      
      * WIP in tests
      
      * added docs for the informer specific args
      
      * fix style
      
      * undo change
      
      * cleaning informer, now need to work only enc-dec
      
      * initial enc-dec classes
      
      * added encoder and decoder
      
      * added todo
      
      * add todos for conv_layers
      
      * added decoder docs from vanilla
      
      * added encoder docs from vanilla
      
      * remove encoder decoder from the original informer
      
      * removed AttentionLayer from the original paper
      
      * removed TriangularCausalMask, same as decoder_attention_mask
      
      * initial sparse attention
      
      * use conv_layers
      
      * fixed test_config test
      
      * fix parenthesis when itearting zip(layers, conv_layers)
      
      * error found in prob attention, added sizes as comments
      
      * fix sizes
      
      * added proposal for q_reduce indexing, and remove unused
      
      * WIP ProbMask, and changed factor=2 for testing
      
      * remove unused libs for this PR for creating the env
      
      * fix checking the attn_weights.size() after bmm
      
      * Q_reduce: changed from torch.gather to simple slicing
      
      * WIP calculate final attn_output
      
      * finish adding v_aggregated, attn_output ready
      
      * changed tgt_len to u in attention_mask, need to fix the size error
      
      * comment attention_mask for encoder, and fix if cond for v_agg
      
      * added ProbMask support (wip), removed old original code
      
      * finished ProbMask 馃槂
      
      
      
      * Revert "remove unused libs for this PR for creating the env"
      
      This reverts commit 11a081e09e92771e51a5d2758d53a9afb59547f0.
      
      * fixes
      
      * make style
      
      * fix initial tests
      
      * fix more tests
      
      * dry
      
      * make style
      
      * remove unused files
      
      * style
      
      * added integration tests
      
      * fix num_static_real_features
      
      * fix header
      
      * remove unused function
      
      * fix example
      
      * fix docs
      
      * Update src/transformers/models/informer/configuration_informer.py
      Co-authored-by: default avatarNielsRogge <48327001+NielsRogge@users.noreply.github.com>
      
      * Update src/transformers/models/informer/modeling_informer.py
      Co-authored-by: default avatarNielsRogge <48327001+NielsRogge@users.noreply.github.com>
      
      * Update src/transformers/models/informer/configuration_informer.py
      Co-authored-by: default avatarNielsRogge <48327001+NielsRogge@users.noreply.github.com>
      
      * Update src/transformers/models/informer/configuration_informer.py
      Co-authored-by: default avatarNielsRogge <48327001+NielsRogge@users.noreply.github.com>
      
      * Update src/transformers/models/informer/configuration_informer.py
      Co-authored-by: default avatarNielsRogge <48327001+NielsRogge@users.noreply.github.com>
      
      * Update src/transformers/models/informer/configuration_informer.py
      Co-authored-by: default avatarNielsRogge <48327001+NielsRogge@users.noreply.github.com>
      
      * fixes for reviewer
      
      * use prediction_length from model
      
      * fix style
      
      * fixed informer.mdx
      
      * added to index
      
      * updated readme
      
      * undo
      
      * make fix-copies
      
      * typo
      
      * fix copy
      
      * added Informer to toctree
      
      * in order
      
      * fixed comments
      
      * remove unneeded new lines in docs
      
      * make static real and cat optional
      
      * fix use of distil conv layers
      
      * fixed integration test
      
      * added checkpoint for convlayer
      
      * make fix-copies
      
      * updated from time series model
      
      * make fix-copies
      
      * copy decoder
      
      * fix unit tests
      
      * updated scaling config
      
      * fix integration tests
      
      * IGNORE_NON_TESTED
      
      * IGNORE_NON_AUTO_CONFIGURED
      
      * IGNORE_NON_AUTO_CONFIGURED
      
      * updated check configs
      
      * fix formatting
      
      * undo change from time series
      
      * prediction_length should not be None
      
      * aliign with the blog: prettify ProbSparse and change attention_factor  to sampling_factor
      
      * make style
      
      * make fix-copies
      
      * niels CR: update contributed by
      
      * niels CR: update configuration_informer.py
      Co-authored-by: default avatarNielsRogge <48327001+NielsRogge@users.noreply.github.com>
      
      * niels CR: update kashif -> huggingface
      Co-authored-by: default avatarNielsRogge <48327001+NielsRogge@users.noreply.github.com>
      
      * niels CR: `sampling_factor` only relevant when `attention_type`=prob
      
      * make style
      
      * fixed U_part: added multiplication by `L_Q`
      
      * fixed bug: remove `is not None` from `if config.distil`
      
      * fixed test: `decoder_seq_length` to `encoder_seq_length` in cross_attentions check
      
      * fix integration tests
      
      * updated model hub
      
      * do not shift as in training
      
      * undo
      
      * fix make-copies
      
      * make fix-copies
      
      * added `if prediction_length is None`
      
      * changed `ProbSparseAttention` to `InformerProbSparseAttention`
      
      * changed `V_sum` -> `v_mean_dim_time`
      
      * changed `ConvLayer` to `InformerConvLayer` and fixed `super()`
      
      * TimeSeriesTansformer->Informer in decoder's Copied from
      
      * more descriptive in ProbSparse
      
      * make style
      
      * fix coped from
      
      * Revert "added `if prediction_length is None`"
      
      This reverts commit b4cbddfa05e3bd739b79569cd3c3b89e316f2451.
      
      * fixed indent
      
      * use InformerSinusoidalPositionalEmbedding
      
      * make fix-style
      
      * fix from #21860
      
      * fix name
      
      * make fix-copies
      
      * use time series utils
      
      * fix dec num_heads
      
      * docstring
      
      * added time series util doc
      
      * _import_structure
      
      * formatting
      
      * changes from review
      
      * make style
      
      * fix docs
      
      * fix doc
      
      * removed NegativeLogLikelihood
      
      ---------
      Co-authored-by: default avatarKashif Rasul <kashif.rasul@gmail.com>
      Co-authored-by: default avatarNielsRogge <48327001+NielsRogge@users.noreply.github.com>
      8abe4930
  33. 01 Mar, 2023 2 commits
  34. 27 Feb, 2023 2 commits
  35. 17 Feb, 2023 1 commit
  36. 13 Feb, 2023 1 commit