keras-hub

Modular Natural Language Processing workflows with Keras

APACHE-2.0 License

Downloads
4.7K
Stars
762

Bot releases are hidden (Show)

keras-hub - v0.6.0

Published by mattdangerw over 1 year ago

KerasNLP is adding experimental support for Jax and PyTorch backends on top of the Keras Core library. Read the anouncement, and browse the full library documentation, including how to specify the backend when running your code.

Support for both Jax and PyTorch is still experimental, expect some rough edges and please give us feedback!

Summary

  • This release should be equivalent to 0.5.2 with the addition of multi-backend support.
  • The following API symbols are currently restricted to the tensorflow backend:
    • keras_nlp.models.DebertaV3*
    • keras_nlp.models.FNet*
    • keras_nlp.metrics
    • keras_nlp.samplers.BeamSampler
    • keras_nlp.samplers.ContrastiveSampler
  • Note that there are two ways you can run on top of Tensorflow.
    • If you run your scripts/colab without any changes, KerasNLP will use tf.keras for all layer and modeling implementations. This should be a no-op from previous releases of the library.
    • If you run your scripts/colab with KERAS_BACKEND={jax, torch, tensorflow}, you will be trying the new Keras Core library, using the specified backend. This is a great way to test out the future of the library!
    • Full details on runtime specification is available along with the Keras Core documentation.

What's Changed

New Contributors

Full Changelog: https://github.com/keras-team/keras-nlp/compare/v0.5.2...v0.6.0

keras-hub - v0.6.0.dev0

Published by mattdangerw over 1 year ago

🚧 Dev release. 🚧

KerasNLP is adding experimental support for Jax and PyTorch backends on top of the Keras Core library. Read the anouncement, and browse the full library documentation, including how to specify the backend when running your code.

Support for both Jax and PyTorch is still experimental, expect some rough edges and please give us feedback!

Summary

  • This release should be equivalent to 0.5.2 with the addition of multi-backend support.
  • The following API symbols are currently restricted to the tensorflow backend:
    • keras_nlp.models.DebertaV3*
    • keras_nlp.models.FNet*
    • keras_nlp.metrics
    • keras_nlp.samplers.BeamSampler
    • keras_nlp.samplers.ContrastiveSampler
  • Note that there are two ways you can run on top of Tensorflow.
    • If you run your scripts/colab without any changes, KerasNLP will use tf.keras for all layer and modeling implementations. This should be a no-op from previous releases of the library.
    • If you run your scripts/colab with KERAS_BACKEND=tensorflow, you will be trying the new Keras Core library, using the tensorflow backend. This is a great way to test out the future of the library.
    • Full details on runtime specification is available along with the Keras Core documentation.

What's Changed

New Contributors

Full Changelog: https://github.com/keras-team/keras-nlp/compare/v0.4.0...v0.6.0.dev0

keras-hub - v0.5.2

Published by chenmoneygithub over 1 year ago

What's Changed

Full Changelog: https://github.com/keras-team/keras-nlp/compare/v0.5.1...v0.5.2

keras-hub - v0.5.1

Published by chenmoneygithub over 1 year ago

What's Changed

Full Changelog: https://github.com/keras-team/keras-nlp/compare/v0.5.0...v0.5.1

keras-hub - v0.5.0

Published by chenmoneygithub over 1 year ago

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

New Contributors

Full Changelog: https://github.com/keras-team/keras-nlp/compare/v0.4.0...v0.5.0

keras-hub - v0.4.1

Published by mattdangerw over 1 year ago

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

Full Changelog: https://github.com/keras-team/keras-nlp/compare/v0.4.0...v0.4.1

keras-hub - r0.4.1.dev0

Published by mattdangerw over 1 year ago

Summary

  • Dev release to test out the upcoming 0.4.1.

What's Changed

New Contributors

Full Changelog: https://github.com/keras-team/keras-nlp/compare/v0.4.0...v0.4.1.dev0

keras-hub - v0.4.0

Published by mattdangerw almost 2 years ago

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

New Contributors

Full Changelog: https://github.com/keras-team/keras-nlp/compare/v0.3.0...v0.4.0

keras-hub - v0.4.0.dev0

Published by mattdangerw almost 2 years ago

⚠️⚠️⚠️ 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: https://github.com/keras-team/keras-nlp/compare/v0.3.0...v0.4.0.dev0

keras-hub - v0.3.1

Published by mattdangerw almost 2 years ago

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: https://github.com/keras-team/keras-nlp/compare/v0.3.0...v0.3.1

keras-hub - v0.3.0

Published by mattdangerw over 2 years ago

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: https://github.com/keras-team/keras-nlp/compare/v0.2.0...v0.3.0

keras-hub - v0.2.0

Published by mattdangerw over 2 years ago

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: https://github.com/keras-team/keras-nlp/compare/v0.1.1...v0.2.0

keras-hub - v0.2.0.dev2

Published by mattdangerw over 2 years ago

What's Changed

Full Changelog: https://github.com/keras-team/keras-nlp/compare/v0.2.0-dev.1...v0.2.0.dev2

keras-hub - v0.2.0-dev.1

Published by mattdangerw over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/keras-team/keras-nlp/compare/v0.1.1...v0.2.0-dev.1

keras-hub - v0.1.1

Published by mattdangerw over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/keras-team/keras-nlp/compare/v0.1.0...v0.1.1

keras-hub -

Published by mattdangerw over 2 years ago

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

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