Skip to content

Releases: keras-team/keras-hub

v0.5.0

05 May 20:36
Compare
Choose a tag to compare

In this 0.5 release, we are bringing generative AI to KerasNLP!

Summary

  • Added text generation task model keras_nlp.models.GPT2CausalLM and keras_nlp.models.OPTCausalLM along with corresponding preprocessors. Both task models exposed a public generate() method for text generation.
  • Refactored text generation utils into sampler APIs in keras_nlp.samplers for better UX and scalability.
  • Added MaskedLM task models keras_nlp.models.XXXMaskedLM, e.g., keras_nlp.models.BertMaskedLM.

What's Changed

Read more

v0.4.1

24 Feb 21:23
eb320e3
Compare
Choose a tag to compare

The 0.4.1 release is a minor release with new model architectures and compilation defaults for task models. If you encounter any problems or have questions, please open an issue!

Summary

  • Added compilation defaults for all task models (e.g. keras_nlp.models.BertClassifier). No existing functionality is changed, but users of task models can now skip calling .compile() and use default learning rates and optimization strategies provided by the library.
  • Added keras_nlp.models.AlbertBackbone, keras_nlp.models.AlbertClassifier, preprocessor, and tokenizer layers for pre-trained ALBERT models.
  • Added keras_nlp.models.FNetBackbone, keras_nlp.models.FNetClassifier, preprocessor, and tokenizer layers for pre-trained FNet models.
  • Added keras_nlp.models.DebertaV3Backbone, keras_nlp.models.DebertaV3Classifier, preprocessor, and tokenizer layers for pre-trained DeBERTaV3 models.

What's Changed

New Contributors

Read more

r0.4.1.dev0

22 Feb 04:14
f267924
Compare
Choose a tag to compare
r0.4.1.dev0 Pre-release
Pre-release

Summary

  • Dev release to test out the upcoming 0.4.1.

What's Changed

New Contributors

Full Changelog: v0.4.0...v0.4.1.dev0

v0.4.0

28 Dec 00:10
729815b
Compare
Choose a tag to compare

The 0.4 release adds support for pretrained models to the library via keras_nlp.models. You can read an
introduction to the new API in our Getting Started Guide.

If you encounter any problems or have questions, please open an issue!

Breaking Changes

  • Renamed keras_nlp.layers.MLMHead -> keras_nlp.layers.MaskedLMHead.
  • Renamed keras_nlp.layers.MLMMaskGenerator -> keras_nlp.layers.MaskedLMMaskGenerator.
  • Renamed keras_nlp.layers.UnicodeCharacterTokenizer -> keras_nlp.layers.UnicodeCodepointTokenizer.
  • Switched the default of lowercase in keras_nlp.tokenizers.WordPieceTokenizer from True to False.
  • Renamed the token id output of MaskedLMMaskGenerator from "tokens" to "tokens_ids".

Summary

  • Added the keras_nlp.models API.
    • Added support for BERT, DistilBERT, RoBERTa, and XLM-RoBERTa models and pretrained checkpoints.
    • See our Getting Started Guide for more details.
  • Added new metrics.
    • keras_nlp.metrics.Bleu and keras_nlp.metrics.EditDistance.
  • Added new vocabulary training utilities.
    • keras_nlp.tokenizers.compute_word_piece_vocabulary and keras_nlp.tokenizers.compute_sentence_piece_proto.
  • Added new preprocessing layers.
    • keras_nlp.layers.RandomSwap and keras_nlp.layers.RandomDeletion.

What's Changed

Read more

v0.4.0.dev0

23 Dec 01:04
48ccbf1
Compare
Choose a tag to compare
v0.4.0.dev0 Pre-release
Pre-release

⚠️⚠️⚠️ This is a pre-release for testing purposes, documentation for this release has not yet shipped.

The KerasNLP 0.4 adds support for pretrained models to the API via keras_nlp.models. If you encounter any problems or have questions, please open an issue or discussion of the discussion tab!

Breaking Changes

  • Renamed keras_nlp.layers.MLMHead -> keras_nlp.layers.MaskedLMHead.
  • Renamed keras_nlp.layers.MLMMaskGenerator -> keras_nlp.layers.MaskedLMMaskGenerator.
  • Renamed keras_nlp.layers.UnicodeCharacterTokenizer -> keras_nlp.layers.UnicodeCodepointTokenizer.
  • Switched the default of lowercase in keras_nlp.tokenizers.WordPieceTokenizer from True to False.
  • Renamed the token id output of MaskedLMMaskGenerator from "tokens" to "tokens_ids".

Summary

  • Added the keras_nlp.models API.
    • Adds support for BERT, DistilBERT, RoBERTa, and XLM-RoBERTa models and pretrained checkpoints.
  • Added new metrics.
    • keras_nlp.metrics.Bleu and keras_nlp.metrics.EditDistance.
  • Added new vocabulary training utilities.
    • keras_nlp.tokenizers.compute_word_piece_vocabulary and keras_nlp.tokenizers.compute_sentence_piece_proto.

What's Changed

Read more

v0.3.1

11 Nov 22:05
Compare
Choose a tag to compare

Summary

  • Add keras_nlp.tokenizers.BytePairTokenizer with tf.data friendly support for the tokenization used by GPT-2, RoBERTa and other models.
  • Remove the hard dependency on tensorflow and tensorflow-text when pip installing on MacOS, to accommodate M1 chips. See this section of our contributor guide for more information on MacOS development.

What's Changed

Full Changelog: v0.3.0...v0.3.1

v0.3.0

30 Jun 00:55
f9abc8f
Compare
Choose a tag to compare

Summary

  • Added keras_nlp.tokenizers.SentencePieceTokenizer.
  • Added two token packing layers keras_nlp.layers.StartEndPacker and keras_nlp.layers.MultiSegmentPacker.
  • Added two metrics, keras_nlp.metrics.RougeL and keras_nlp.metrics.RougeN based on the rouge-score package.
  • Added five utilities for generating sequences, keras_nlp.utils.greedy_search, keras_nlp.utils.random_search, keras_nlp.utils.top_k_search, keras_nlp.utils.top_p_search, keras_nlp.utils.beam_search.

What's Changed

New Contributors

Full Changelog: v0.2.0...v0.3.0

v0.2.0

18 May 17:42
cb0fa02
Compare
Choose a tag to compare

Summary

  • Documentation live on keras.io.
  • Added two tokenizers: ByteTokenizer and UnicodeCharacterTokenizer.
  • Added a Perplexity metric.
  • Added three layers TokenAndPositionEmbedding, MLMMaskGenerator and MLMHead.
  • Contributing guides and roadmap.

What's Changed

New Contributors

Full Changelog: v0.1.1...v0.2.0

v0.2.0.dev2

03 May 21:39
8e45f67
Compare
Choose a tag to compare
v0.2.0.dev2 Pre-release
Pre-release

What's Changed

Full Changelog: v0.2.0-dev.1...v0.2.0.dev2

v0.2.0-dev.1

26 Apr 02:27
fb4a84d
Compare
Choose a tag to compare
v0.2.0-dev.1 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v0.1.1...v0.2.0-dev.1