From f0438aebf940a78f0c6b4a1e343f55ba99180f2f Mon Sep 17 00:00:00 2001 From: regisss <15324346+regisss@users.noreply.github.com> Date: Wed, 25 Dec 2024 16:44:08 +0000 Subject: [PATCH] Release: v1.15.0 --- README.md | 4 ++-- docs/source/quickstart.mdx | 2 +- examples/audio-classification/run_audio_classification.py | 2 +- examples/contrastive-image-text/run_bridgetower.py | 2 +- examples/contrastive-image-text/run_clip.py | 2 +- examples/image-classification/run_image_classification.py | 2 +- examples/language-modeling/run_clm.py | 2 +- examples/language-modeling/run_lora_clm.py | 2 +- examples/language-modeling/run_mlm.py | 2 +- examples/language-modeling/run_multitask_prompt_tuning.py | 2 +- examples/language-modeling/run_prompt_tuning_clm.py | 2 +- examples/protein-folding/run_esmfold.py | 2 +- examples/protein-folding/run_sequence_classification.py | 2 +- examples/protein-folding/run_zero_shot_eval.py | 2 +- examples/question-answering/run_qa.py | 2 +- examples/question-answering/run_seq2seq_qa.py | 2 +- examples/speech-recognition/run_speech_recognition_ctc.py | 2 +- examples/speech-recognition/run_speech_recognition_seq2seq.py | 2 +- examples/stable-diffusion/depth_to_image_generation.py | 2 +- examples/stable-diffusion/image_to_image_generation.py | 2 +- examples/stable-diffusion/image_to_video_generation.py | 2 +- examples/stable-diffusion/text_to_image_generation.py | 2 +- examples/stable-diffusion/training/train_controlnet.py | 2 +- examples/stable-diffusion/unconditional_image_generation.py | 2 +- examples/summarization/run_summarization.py | 2 +- examples/text-classification/run_glue.py | 2 +- examples/text-to-video/text_to_video_generation.py | 2 +- examples/translation/run_translation.py | 2 +- optimum/habana/version.py | 2 +- setup.py | 2 +- 30 files changed, 31 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 817db304a2..e44ca5430c 100644 --- a/README.md +++ b/README.md @@ -59,9 +59,9 @@ The `--upgrade-strategy eager` option is needed to ensure `optimum-habana` is up To use the example associated with the latest stable release, run: > ``` > git clone https://github.com/huggingface/optimum-habana -> cd optimum-habana && git checkout v1.14.0 +> cd optimum-habana && git checkout v1.15.0 > ``` -> with `v1.14.0` the version number of this release. +> with `v1.15.0` the version number of this release. ### Option 2: Use the latest main branch under development diff --git a/docs/source/quickstart.mdx b/docs/source/quickstart.mdx index e69a6b98dc..c882de2629 100644 --- a/docs/source/quickstart.mdx +++ b/docs/source/quickstart.mdx @@ -69,7 +69,7 @@ At the time of writing this guide, latest Optimum for Intel Gaudi release versio version 1.19.0. Install Optimum for Intel Gaudi as follows: ```bash -git clone -b v1.14.0 https://github.com/huggingface/optimum-habana +git clone -b v1.15.0 https://github.com/huggingface/optimum-habana pip install ./optimum-habana ``` diff --git a/examples/audio-classification/run_audio_classification.py b/examples/audio-classification/run_audio_classification.py index 9a23428866..dfcd2d3488 100644 --- a/examples/audio-classification/run_audio_classification.py +++ b/examples/audio-classification/run_audio_classification.py @@ -47,7 +47,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Transformers and Optimum Habana are not installed. Remove at your own risks. check_min_version("4.45.0") -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") require_version("datasets>=1.14.0", "To fix: pip install -r examples/pytorch/audio-classification/requirements.txt") diff --git a/examples/contrastive-image-text/run_bridgetower.py b/examples/contrastive-image-text/run_bridgetower.py index b54ca8e7c0..402823b37e 100644 --- a/examples/contrastive-image-text/run_bridgetower.py +++ b/examples/contrastive-image-text/run_bridgetower.py @@ -59,7 +59,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Transformers and Optimum Habana are not installed. Remove at your own risks. check_min_version("4.45.0") -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/contrastive-image-text/requirements.txt") diff --git a/examples/contrastive-image-text/run_clip.py b/examples/contrastive-image-text/run_clip.py index 6a8ca235e1..c9b5932007 100644 --- a/examples/contrastive-image-text/run_clip.py +++ b/examples/contrastive-image-text/run_clip.py @@ -62,7 +62,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Transformers and Optimum Habana are not installed. Remove at your own risks. check_min_version("4.45.0") -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/contrastive-image-text/requirements.txt") diff --git a/examples/image-classification/run_image_classification.py b/examples/image-classification/run_image_classification.py index b2694665a3..680135da52 100644 --- a/examples/image-classification/run_image_classification.py +++ b/examples/image-classification/run_image_classification.py @@ -64,7 +64,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Transformers and Optimum Habana are not installed. Remove at your own risks. check_min_version("4.45.0") -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") require_version("datasets>=2.14.0", "To fix: pip install -r examples/pytorch/image-classification/requirements.txt") diff --git a/examples/language-modeling/run_clm.py b/examples/language-modeling/run_clm.py index b97b634941..003210a7d2 100644 --- a/examples/language-modeling/run_clm.py +++ b/examples/language-modeling/run_clm.py @@ -63,7 +63,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Transformers and Optimum Habana are not installed. Remove at your own risks. check_min_version("4.45.0") -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") require_version("datasets>=2.14.0", "To fix: pip install -r examples/pytorch/language-modeling/requirements.txt") diff --git a/examples/language-modeling/run_lora_clm.py b/examples/language-modeling/run_lora_clm.py index 4782ed58ae..1e451996d8 100644 --- a/examples/language-modeling/run_lora_clm.py +++ b/examples/language-modeling/run_lora_clm.py @@ -70,7 +70,7 @@ def check_optimum_habana_min_version(*a, **b): logger = logging.getLogger(__name__) # Will error if the minimal version of Optimum Habana is not installed. Remove at your own risks. -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") @dataclass diff --git a/examples/language-modeling/run_mlm.py b/examples/language-modeling/run_mlm.py index 30315bfc84..0e5c9adfa6 100644 --- a/examples/language-modeling/run_mlm.py +++ b/examples/language-modeling/run_mlm.py @@ -62,7 +62,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Transformers and Optimum Habana are not installed. Remove at your own risks. check_min_version("4.45.0") -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") require_version("datasets>=2.14.0", "To fix: pip install -r examples/pytorch/language-modeling/requirements.txt") diff --git a/examples/language-modeling/run_multitask_prompt_tuning.py b/examples/language-modeling/run_multitask_prompt_tuning.py index 1d81bcc496..a6839f0ba0 100644 --- a/examples/language-modeling/run_multitask_prompt_tuning.py +++ b/examples/language-modeling/run_multitask_prompt_tuning.py @@ -61,7 +61,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Transformers and Optimum Habana are not installed. Remove at your own risk. check_min_version("4.45.0") -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/language-modeling/requirements.txt") diff --git a/examples/language-modeling/run_prompt_tuning_clm.py b/examples/language-modeling/run_prompt_tuning_clm.py index e263c0c1b6..6ead15e437 100644 --- a/examples/language-modeling/run_prompt_tuning_clm.py +++ b/examples/language-modeling/run_prompt_tuning_clm.py @@ -63,7 +63,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Transformers and Optimum Habana are not installed. Remove at your own risks. check_min_version("4.45.0") -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/language-modeling/requirements.txt") diff --git a/examples/protein-folding/run_esmfold.py b/examples/protein-folding/run_esmfold.py index 6941e6e5c1..0466688c4f 100644 --- a/examples/protein-folding/run_esmfold.py +++ b/examples/protein-folding/run_esmfold.py @@ -40,7 +40,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Optimum Habana is not installed. Remove at your own risks. -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") def convert_outputs_to_pdb(outputs): diff --git a/examples/protein-folding/run_sequence_classification.py b/examples/protein-folding/run_sequence_classification.py index dde75a2564..eb7f2cadde 100644 --- a/examples/protein-folding/run_sequence_classification.py +++ b/examples/protein-folding/run_sequence_classification.py @@ -41,7 +41,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Optimum Habana is not installed. Remove at your own risks. -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) diff --git a/examples/protein-folding/run_zero_shot_eval.py b/examples/protein-folding/run_zero_shot_eval.py index 3b475883e8..f072f640cf 100644 --- a/examples/protein-folding/run_zero_shot_eval.py +++ b/examples/protein-folding/run_zero_shot_eval.py @@ -36,7 +36,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Optimum Habana is not installed. Remove at your own risks. -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") logging.basicConfig( diff --git a/examples/question-answering/run_qa.py b/examples/question-answering/run_qa.py index d22949c076..4411e30bde 100644 --- a/examples/question-answering/run_qa.py +++ b/examples/question-answering/run_qa.py @@ -61,7 +61,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Transformers and Optimum Habana are not installed. Remove at your own risks. check_min_version("4.45.0") -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/question-answering/requirements.txt") diff --git a/examples/question-answering/run_seq2seq_qa.py b/examples/question-answering/run_seq2seq_qa.py index 1f045552bd..fed71d2442 100644 --- a/examples/question-answering/run_seq2seq_qa.py +++ b/examples/question-answering/run_seq2seq_qa.py @@ -57,7 +57,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Transformers and Optimum Habana are not installed. Remove at your own risks. check_min_version("4.45.0") -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/question-answering/requirements.txt") diff --git a/examples/speech-recognition/run_speech_recognition_ctc.py b/examples/speech-recognition/run_speech_recognition_ctc.py index 83865556d1..27cddfad2c 100644 --- a/examples/speech-recognition/run_speech_recognition_ctc.py +++ b/examples/speech-recognition/run_speech_recognition_ctc.py @@ -60,7 +60,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Transformers and Optimum Habana are not installed. Remove at your own risks. check_min_version("4.45.0") -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") require_version("datasets>=1.18.0", "To fix: pip install -r examples/pytorch/speech-recognition/requirements.txt") diff --git a/examples/speech-recognition/run_speech_recognition_seq2seq.py b/examples/speech-recognition/run_speech_recognition_seq2seq.py index ff9702e80c..6ae91305f4 100755 --- a/examples/speech-recognition/run_speech_recognition_seq2seq.py +++ b/examples/speech-recognition/run_speech_recognition_seq2seq.py @@ -56,7 +56,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Transformers is not installed. Remove at your own risks. check_min_version("4.45.0") -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") require_version("datasets>=1.18.0", "To fix: pip install -r examples/pytorch/speech-recognition/requirements.txt") diff --git a/examples/stable-diffusion/depth_to_image_generation.py b/examples/stable-diffusion/depth_to_image_generation.py index a09c358a45..05e818d5e9 100755 --- a/examples/stable-diffusion/depth_to_image_generation.py +++ b/examples/stable-diffusion/depth_to_image_generation.py @@ -41,7 +41,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Optimum Habana is not installed. Remove at your own risks. -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") logger = logging.getLogger(__name__) diff --git a/examples/stable-diffusion/image_to_image_generation.py b/examples/stable-diffusion/image_to_image_generation.py index d4ea1053c7..3e49fec52e 100755 --- a/examples/stable-diffusion/image_to_image_generation.py +++ b/examples/stable-diffusion/image_to_image_generation.py @@ -41,7 +41,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Optimum Habana is not installed. Remove at your own risks. -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") logger = logging.getLogger(__name__) diff --git a/examples/stable-diffusion/image_to_video_generation.py b/examples/stable-diffusion/image_to_video_generation.py index 9a1a87b8d5..58eacc4772 100755 --- a/examples/stable-diffusion/image_to_video_generation.py +++ b/examples/stable-diffusion/image_to_video_generation.py @@ -34,7 +34,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Optimum Habana is not installed. Remove at your own risks. -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") logger = logging.getLogger(__name__) diff --git a/examples/stable-diffusion/text_to_image_generation.py b/examples/stable-diffusion/text_to_image_generation.py index 4303e7a038..ccb94e7f05 100755 --- a/examples/stable-diffusion/text_to_image_generation.py +++ b/examples/stable-diffusion/text_to_image_generation.py @@ -42,7 +42,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Optimum Habana is not installed. Remove at your own risks. -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") logger = logging.getLogger(__name__) diff --git a/examples/stable-diffusion/training/train_controlnet.py b/examples/stable-diffusion/training/train_controlnet.py index 5648952413..e385749c0d 100755 --- a/examples/stable-diffusion/training/train_controlnet.py +++ b/examples/stable-diffusion/training/train_controlnet.py @@ -68,7 +68,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Optimum Habana is not installed. Remove at your own risks. -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") if is_wandb_available(): import wandb diff --git a/examples/stable-diffusion/unconditional_image_generation.py b/examples/stable-diffusion/unconditional_image_generation.py index d6917aeede..e6478ebc1b 100755 --- a/examples/stable-diffusion/unconditional_image_generation.py +++ b/examples/stable-diffusion/unconditional_image_generation.py @@ -20,7 +20,7 @@ def check_optimum_habana_min_version(*a, **b): check_min_version("4.45.0") -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") # Setup logging logging.basicConfig( diff --git a/examples/summarization/run_summarization.py b/examples/summarization/run_summarization.py index 28498fc0a2..db44a56d00 100755 --- a/examples/summarization/run_summarization.py +++ b/examples/summarization/run_summarization.py @@ -66,7 +66,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Transformers and Optimum Habana are not installed. Remove at your own risks. check_min_version("4.45.0") -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/summarization/requirements.txt") diff --git a/examples/text-classification/run_glue.py b/examples/text-classification/run_glue.py index 57bf7cbb05..73d153ee51 100755 --- a/examples/text-classification/run_glue.py +++ b/examples/text-classification/run_glue.py @@ -58,7 +58,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Transformers and Optimum Habana are not installed. Remove at your own risks. check_min_version("4.45.0") -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/text-classification/requirements.txt") diff --git a/examples/text-to-video/text_to_video_generation.py b/examples/text-to-video/text_to_video_generation.py index 4a91359617..7f78db2045 100755 --- a/examples/text-to-video/text_to_video_generation.py +++ b/examples/text-to-video/text_to_video_generation.py @@ -37,7 +37,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Optimum Habana is not installed. Remove at your own risks. -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") logger = logging.getLogger(__name__) diff --git a/examples/translation/run_translation.py b/examples/translation/run_translation.py index c2def132a7..dcc3beac97 100644 --- a/examples/translation/run_translation.py +++ b/examples/translation/run_translation.py @@ -63,7 +63,7 @@ def check_optimum_habana_min_version(*a, **b): # Will error if the minimal version of Transformers and Optimum Habana are not installed. Remove at your own risks. check_min_version("4.45.0") -check_optimum_habana_min_version("1.14.0.dev0") +check_optimum_habana_min_version("1.15.0") require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/translation/requirements.txt") diff --git a/optimum/habana/version.py b/optimum/habana/version.py index 56cc966b00..20e8b62119 100644 --- a/optimum/habana/version.py +++ b/optimum/habana/version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = "1.15.0.dev0" +__version__ = "1.15.0" diff --git a/setup.py b/setup.py index 0bb36466ee..ede3170596 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ QUALITY_REQUIRES = [ "ruff", - "hf_doc_builder @ git+https://github.com/huggingface/doc-builder.git", + "hf_doc_builder", ] EXTRAS_REQUIRE = {