Skip to content

Releases: keras-team/keras-hub

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

v0.1.1

05 Apr 20:57
94ac3ce
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.0...v0.1.1

v0.1.0

29 Mar 21:56
2e9ea8d
Compare
Choose a tag to compare

Initial release of keras-nlp with word piece tokenizer and transformer encoder/decoder blocks.

This is a v0 release, with no API compatibility guarantees.