Skip to content

v0.4.0.dev0

Pre-release
Pre-release
Compare
Choose a tag to compare
@mattdangerw mattdangerw released this 23 Dec 01:04
· 81 commits to r0.4 since this release
48ccbf1

⚠️⚠️⚠️ 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

New Contributors

Full Changelog: v0.3.0...v0.4.0.dev0