Optimum

Latest version: v1.23.3

Safety actively analyzes 679296 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 22

1.21.3

* Deprecate ORTModel class by IlyasMoutawwakil in https://github.com/huggingface/optimum/pull/1939
* Remove warning by echarlaix in https://github.com/huggingface/optimum/pull/1945
* Fix optimizer's command line reading by idruker-cerence in https://github.com/huggingface/optimum/pull/1961
* Fix unmask_unattended_patched signature by fxmarty in https://github.com/huggingface/optimum/pull/1963
* Fix gpt bigcode ONNX export for transformers<4.39.0 by echarlaix in https://github.com/huggingface/optimum/pull/1973
* Support transformers 4.43 by IlyasMoutawwakil in https://github.com/huggingface/optimum/pull/1971

**Full Changelog**: https://github.com/huggingface/optimum/compare/v1.21.2...v1.21.3

1.21.2

* Remove inplace op in mistral patcher by IlyasMoutawwakil in 1938
* Fix ORTModelForFeatureExtraction modeling by moria97 in 1941

**Full Changelog**: https://github.com/huggingface/optimum/compare/v1.21.1...v1.21.2

1.21.1

* Fix sentence transformers model patching by echarlaix in https://github.com/huggingface/optimum/pull/1936
* Update Intel extra by echarlaix in https://github.com/huggingface/optimum/pull/1935
* Update Habana extra by regisss in https://github.com/huggingface/optimum/pull/1937



**Full Changelog**: https://github.com/huggingface/optimum/compare/v1.21.0...v1.21.1

1.21.0

What's Changed
* ORTOptimizer for the model type Segformer by zachmayer in https://github.com/huggingface/optimum/pull/1820
* fix: device consistence by Daya-Jin in https://github.com/huggingface/optimum/pull/1891
* Allow optimum to discover and load subpackages by dacorvo in https://github.com/huggingface/optimum/pull/1894
* feat(ci): add trufflehog secrets detector by McPatate in https://github.com/huggingface/optimum/pull/1899
* fix(ci): remove unnecessary permissions by McPatate in https://github.com/huggingface/optimum/pull/1904
* Remove read token by fxmarty in https://github.com/huggingface/optimum/pull/1903
* Remove dataset with restrictive license by echarlaix in https://github.com/huggingface/optimum/pull/1910
* Fix Windows and onnx dtype compatibility by IlyasMoutawwakil in https://github.com/huggingface/optimum/pull/1886
* Deprecated `use_auth_token` by IlyasMoutawwakil in https://github.com/huggingface/optimum/pull/1837
* Add redirection for optimum intel doc by echarlaix in https://github.com/huggingface/optimum/pull/1918
* Read use_external_data_format from ORTConfig file by idruker-cerence in https://github.com/huggingface/optimum/pull/1917
* Pin numpy v1 for onnxruntime by IlyasMoutawwakil in https://github.com/huggingface/optimum/pull/1921
* Fix GPTQ CI by IlyasMoutawwakil in https://github.com/huggingface/optimum/pull/1878
* Fix code quality by IlyasMoutawwakil in https://github.com/huggingface/optimum/pull/1928
* Fix incorrect names for usage blenderbot for causallm by eaidova in https://github.com/huggingface/optimum/pull/1887
* Fixed bug key error "last_hidden_state" by satishsilveri in https://github.com/huggingface/optimum/pull/1674
* Support transformers 4.42 by fxmarty in https://github.com/huggingface/optimum/pull/1929

New Contributors
* zachmayer made their first contribution in https://github.com/huggingface/optimum/pull/1820
* Daya-Jin made their first contribution in https://github.com/huggingface/optimum/pull/1891
* dacorvo made their first contribution in https://github.com/huggingface/optimum/pull/1894
* McPatate made their first contribution in https://github.com/huggingface/optimum/pull/1899
* idruker-cerence made their first contribution in https://github.com/huggingface/optimum/pull/1917
* satishsilveri made their first contribution in https://github.com/huggingface/optimum/pull/1674

**Full Changelog**: https://github.com/huggingface/optimum/compare/v1.20.0...v1.21.0

1.20.0

OpenVINO

Multi-modal models support

Adding `OVModelForVisionCausalLM` by eaidova in https://github.com/huggingface/optimum-intel/pull/883

OpenCLIP models support

Adding OpenCLIP models support by sbalandi in https://github.com/huggingface/optimum-intel/pull/857

python
from optimum.intel import OVModelCLIPVisual, OVModelCLIPText

visual_model = OVModelCLIPVisual.from_pretrained(model_name_or_path)
text_model = OVModelCLIPText.from_pretrained(model_name_or_path)
image = processor(image).unsqueeze(0)
text = tokenizer(["a diagram", "a dog", "a cat"])
image_features = visual_model(image).image_features
text_features = text_model(text).text_features


Diffusion pipeline

Adding `OVDiffusionPipeline` to simplify diffusers model loading by IlyasMoutawwakil in https://github.com/huggingface/optimum-intel/pull/889

diff
model_id = "stabilityai/stable-diffusion-xl-base-1.0"
- pipeline = OVStableDiffusionXLPipeline.from_pretrained(model_id)
+ pipeline = OVDiffusionPipeline.from_pretrained(model_id)
image = pipeline("sailing ship in storm by Leonardo da Vinci").images[0]

NNCF GPTQ support

GPTQ support by nikita-savelyevv in https://github.com/huggingface/optimum-intel/pull/912

1.19.2

- Update the Transformers dependency in the Habana extra 1851 regisss

**Full Changelog**: https://github.com/huggingface/optimum/compare/v1.19.1...v1.19.2

Page 3 of 22

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.