Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency keras_nlp to v0.15.1 #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate-bot
Copy link
Contributor

@renovate-bot renovate-bot commented Jun 27, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
keras_nlp ==0.12.1 -> ==0.15.1 age adoption passing confidence

Release Notes

keras-team/keras-nlp (keras_nlp)

v0.15.1

Compare Source

Summary

Bug fix patch release.

  • Always run tf preprocessing on CPU.
  • Fix running preprocessing outside the main python thread.
  • Fix loading classifiers with the "old name" of XXClasssifier as XXTextClassifier.
  • Restore support for bytestring to tokenizers and other preprocessing layers as strings.
What's Changed

Full Changelog: keras-team/keras-hub@v0.15.0...v0.15.1

v0.15.0

Compare Source

Summary

📢 KerasNLP is becoming KerasHub 📢, read more about it here.

This release contains a number of feature improvements:

  • Added int8 quantization support.
    • Use the quantize() method to quantize any model.
    • Llama 2 and Llama 3 pre-quantized presets are available.
  • PaliGemmaCausalLM will automatically resize input images during preprocessing.
  • Added more converters for hugginface/transformers checkpoints.
    • Gemma 2, PaliGemma, GPT2, Bert, Albert, DistilBert, Bart.
  • Class detection for huggingface/transformers checkpoints.
    • Call from_preset() on a base class, and we will find the correct subclass to create.
  • Added Vicuna presets.
  • Alias Classifier as TextClassifier, BertClassifier as BertTextClassifier.
  • Added tokenizer.special_tokens and tokenizer.special_token_ids as convenient properties to view all special tokens on a pretrained tokenizer.
##### Quantize an unquantized model.
lm = keras_nlp.models.CausalLM.from_preset(
    "gemma2_instruct_2b_en",
    dtype="bfloat16",
)
lm.quantize("int8")

##### Load a pre-quantized model.
lm = keras_nlp.models.CausalLM.from_preset(
    "llama3_instruct_8b_en_int8",
    dtype="bfloat16",
)

##### Convert a bert model in the huggingface/transformers format.
classifier = keras_nlp.models.TextClassifier.from_preset(
    "hf://google-bert/bert-base-uncased",
    num_classes=2,
)

##### View all special tokens.
print(classifier.preprocessor.tokenizer.special_tokens)
print(classifier.preprocessor.tokenizer.special_token_ids)
Breaking changes
  • On all backends, all strings and ragged output will be returned as python strings or python lists respectively.
    • This include preprocessing methods like tokenize() and detokenize().
    • This may break code that depended on tf.Tensor output on the tensorflow backend, but will lead to consistent output on all backends, which we believe will be an overall improvement.
    • Preprocessing layers can still always be included in a tf.data preprocessing pipeline, on any backend.
What's Changed
New Contributors

Full Changelog: keras-team/keras-hub@v0.14.4...v0.15.0

v0.14.4

Compare Source

Summary
  • Fix issues with Gemma 2 sliding window.
  • Fix TensorFlow backend Gemma 2 generation.
What's Changed

Full Changelog: keras-team/keras-hub@v0.14.3...v0.14.4

v0.14.3

Compare Source

Summary
  • Short names for shield gemma checkpoints.
keras_nlp.models.GemmaCausalLM.from_preset("shieldgemma_2b_en")
What's Changed

Full Changelog: keras-team/keras-hub@v0.14.2...v0.14.3

v0.14.2

Compare Source

Summary
  • Add Gemma 2 2b.
  • Fixes for logit softcapping.
What's Changed

Full Changelog: keras-team/keras-hub@v0.14.1...v0.14.2

v0.14.1

Compare Source

Summary
  • Update Gemma 2 9b to fix minor config error.
What's Changed

Full Changelog: keras-team/keras-hub@v0.14.0...v0.14.1

v0.14.0: 0.14.0

Compare Source

Summary
  • Add Gemma 2 model!
  • Support loading fine-tuned transformers checkpoints in KerasNLP. Loading Gemma and Llama3 models are supported for now and will convert on the fly.
  • KerasNLP no longer supports Keras 2. Read Getting started with Keras for more information on installing Keras 3 and compatibility with different frameworks. We recommend using KerasNLP with TensorFlow 2.16 or later, as TF 2.16 packages Keras 3 by default.
What's Changed

Full Changelog: keras-team/keras-hub@v0.12.1...r0.14


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate-bot renovate-bot changed the title Update dependency keras_nlp to v0.14.0 Update dependency keras_nlp to v0.14.1 Jul 27, 2024
@renovate-bot renovate-bot changed the title Update dependency keras_nlp to v0.14.1 Update dependency keras_nlp to v0.14.2 Jul 31, 2024
@renovate-bot renovate-bot force-pushed the renovate/keras_nlp-0.x branch 2 times, most recently from 7793672 to 373ee30 Compare August 2, 2024 20:03
@renovate-bot renovate-bot changed the title Update dependency keras_nlp to v0.14.2 Update dependency keras_nlp to v0.14.3 Aug 2, 2024
@renovate-bot renovate-bot changed the title Update dependency keras_nlp to v0.14.3 Update dependency keras_nlp to v0.14.4 Aug 6, 2024
@renovate-bot renovate-bot force-pushed the renovate/keras_nlp-0.x branch 2 times, most recently from b07e291 to 4a5efa7 Compare September 13, 2024 20:17
@renovate-bot renovate-bot changed the title Update dependency keras_nlp to v0.14.4 Update dependency keras_nlp to v0.15.0 Sep 13, 2024
@renovate-bot renovate-bot changed the title Update dependency keras_nlp to v0.15.0 Update dependency keras_nlp to v0.15.1 Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant