Keras-nlp

Latest version: v0.12.1

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

Scan your dependencies

Page 1 of 6

0.12.1

Summary

* ⚠️ PaliGemma include rescaling by default, so images are expected to be passed in the `[0, 255]` range. This is a backward incompatible change with the original release. Restore the original behavior as follows:
python
keras_nlp.models.PaliGemmaBackbone.from_preset(
"pali_gemma_3b_224",
include_rescaling=False,
)

* Released the Falcon model.

What's Changed
* Update version to 0.13.0 for the master branch by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1640
* Update llama3 preset versions by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1641
* extra argument in save_to_preset method by sineeli in https://github.com/keras-team/keras-nlp/pull/1634
* Fix a typo in an error handling message by SamanehSaadat in https://github.com/keras-team/keras-nlp/pull/1647
* Fix a typo in phi3 metadata by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1646
* Add `FalconCausalLM` by SamanehSaadat in https://github.com/keras-team/keras-nlp/pull/1635
* Add include rescaling to the pali gemma backbone by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1650
* PaliGemma docstring fix by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1651
* Version bump for 0.12.0.dev0 by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1652
* Version bump 0.12.1 by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1653

New Contributors
* sineeli made their first contribution in https://github.com/keras-team/keras-nlp/pull/1634

**Full Changelog**: https://github.com/keras-team/keras-nlp/compare/v0.12.0...v0.12.1

0.12.1.dev0

Summary

* ⚠️ PaliGemma include rescaling by default, so images are expected to be passed in the `[0, 255]` range. This is a backward incompatible change with the original release. Restore the original behavior as follows:
python
keras_nlp.models.PaliGemmaBackbone.from_preset(
"pali_gemma_3b_224",
include_rescaling=False,
)

* Release the Falcon model.

What's Changed
* Update version to 0.13.0 for the master branch by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1640
* Update llama3 preset versions by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1641
* extra argument in save_to_preset method by sineeli in https://github.com/keras-team/keras-nlp/pull/1634
* Fix a typo in an error handling message by SamanehSaadat in https://github.com/keras-team/keras-nlp/pull/1647
* Fix a typo in phi3 metadata by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1646
* Add `FalconCausalLM` by SamanehSaadat in https://github.com/keras-team/keras-nlp/pull/1635
* Add include rescaling to the pali gemma backbone by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1650
* PaliGemma docstring fix by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1651
* Version bump for 0.12.0.dev0 by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1652

New Contributors
* sineeli made their first contribution in https://github.com/keras-team/keras-nlp/pull/1634

**Full Changelog**: https://github.com/keras-team/keras-nlp/compare/v0.12.0...v0.12.1.dev0

0.12.0

Summary
Add [PaliGemma](https://www.kaggle.com/models/keras/paligemma), [Llama 3](https://www.kaggle.com/models/keras/llama3), and [Phi 3](https://www.kaggle.com/models/keras/phi3) models.

PaliGemma quickstart, see [a complete usage on Kaggle](https://www.kaggle.com/models/keras/paligemma/keras/pali_gemma_3b_224).
python
pali_gemma_lm = keras_nlp.models.PaliGemmaCausalLM.from_preset(
"pali_gemma_3b_224"
)
pali_gemma_lm.generate(
inputs={
"images": images,
"prompts": prompts,
}
)

What's Changed
* Add CodeGemma 1.1 presets by grasskin in https://github.com/keras-team/keras-nlp/pull/1617
* Fix rope scaling factor by abuelnasr0 in https://github.com/keras-team/keras-nlp/pull/1605
* Fix the issue of propagating `training` argument in subclasses by james77777778 in https://github.com/keras-team/keras-nlp/pull/1623
* Pass kwargs to tokenizer when creating preprocessor by SamanehSaadat in https://github.com/keras-team/keras-nlp/pull/1632
* Add phi3 by abuelnasr0 in https://github.com/keras-team/keras-nlp/pull/1597
* Add LLaMA 3 tokenizer and preset by tirthasheshpatel in https://github.com/keras-team/keras-nlp/pull/1584
* Export missing llama 3 symbol by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1633
* PaliGemma by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1636
* Update pali_gemma_presets.py by divyashreepathihalli in https://github.com/keras-team/keras-nlp/pull/1637
* Update version to 0.13.0 for the master branch by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1640
* Update llama3 preset versions by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1641


**Full Changelog**: https://github.com/keras-team/keras-nlp/compare/v0.11.1...v0.12.0

0.11.1

Summary
* Add new Code Gemma 1.1 presets, which improve on Code Gemma performance.

What's Changed
* Add CodeGemma 1.1 presets by grasskin in https://github.com/keras-team/keras-nlp/pull/1617
* Version bump 0.11.1.dev0 by grasskin in https://github.com/keras-team/keras-nlp/pull/1618
* Version bump 0.11.1 by grasskin in https://github.com/keras-team/keras-nlp/pull/1619


**Full Changelog**: https://github.com/keras-team/keras-nlp/compare/v0.11.0...v0.11.1

0.11.0

Summary
This release has no major feature updates, but changes the location our source code is help. Source code is split into a `src/` and `api/` directory with an explicit API surface similar to core Keras.

When adding or removing new API in a PR, use `./shell/api_gen.sh` to update the autogenerated `api/` files. See our [contributing guide](https://github.com/keras-team/keras-nlp/blob/master/CONTRIBUTING.md).

What's Changed
* Change the order of importing `keras` by james77777778 in https://github.com/keras-team/keras-nlp/pull/1596
* Add backend info to HF model card by SamanehSaadat in https://github.com/keras-team/keras-nlp/pull/1599
* Bump required kagglehub version to 0.2.4 by SamanehSaadat in https://github.com/keras-team/keras-nlp/pull/1600
* Bump `bert_tiny_en_uncased_sst2` classifier version by SamanehSaadat in https://github.com/keras-team/keras-nlp/pull/1602
* Allow a task preprocessor to be an argument in from_preset by SamanehSaadat in https://github.com/keras-team/keras-nlp/pull/1603
* API Generation by sampathweb in https://github.com/keras-team/keras-nlp/pull/1608
* Update readme with some recent changes by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1575
* Bump the python group with 2 updates by dependabot in https://github.com/keras-team/keras-nlp/pull/1611
* Version bump 0.11.0.dev0 by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1615
* Unexport models from the 0.11 release by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1614
* Version bump 0.11.0 by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1616

New Contributors
* james77777778 made their first contribution in https://github.com/keras-team/keras-nlp/pull/1596

**Full Changelog**: https://github.com/keras-team/keras-nlp/compare/v0.10.0...v0.11.0

0.10.0

Summary
* Added support for `Task` (`CausalLM` and `Classifier`) saving and loading which allows uploading `Task`s.
* Added basic Model Card for Hugging Face upload.
* Added support for a `positions` array in our `RotaryEmbedding` layer.

What's Changed
* 0.9 is out, nightly should be a preview of 0.10 now by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1570
* Do the reverse embedding in the same dtype as the input embedding by mattdangerw in https://github.com/keras-team/keras-nlp/pull/1548
* Add support for positions array in `keras_nlp.layers.RotaryEmbedding` layer by tirthasheshpatel in https://github.com/keras-team/keras-nlp/pull/1571
* Support Task Saving/Loading by SamanehSaadat in https://github.com/keras-team/keras-nlp/pull/1547
* Improve error handling for non-keras model loading attempts by SamanehSaadat in https://github.com/keras-team/keras-nlp/pull/1577
* Add Model Card for Hugging Face Upload by SamanehSaadat in https://github.com/keras-team/keras-nlp/pull/1578
* Add Saving Tests by SamanehSaadat in https://github.com/keras-team/keras-nlp/pull/1590
* Improve error handling for missing TensorFlow dependency in keras_nlp. by SamanehSaadat in https://github.com/keras-team/keras-nlp/pull/1585
* Fix Keras import by sampathweb in https://github.com/keras-team/keras-nlp/pull/1593
* Check kagglehub version before upload by SamanehSaadat in https://github.com/keras-team/keras-nlp/pull/1594
* Version bump to 0.10.0.dev0 by SamanehSaadat in https://github.com/keras-team/keras-nlp/pull/1595
* Version bump 0.10.0.dev1 by SamanehSaadat in https://github.com/keras-team/keras-nlp/pull/1601
* Version bump to 0.10.0.dev2 by SamanehSaadat in https://github.com/keras-team/keras-nlp/pull/1604
* Version bump to 0.10.0 by SamanehSaadat in https://github.com/keras-team/keras-nlp/pull/1606


**Full Changelog**: https://github.com/keras-team/keras-nlp/compare/v0.9.3...v0.10.0

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.