KerasCV and KerasNLP: Multi-Framework Models
Abstract
We present the Keras domain packages KerasCV and KerasNLP, extensions of the Keras API for Computer Vision and Natural Language Processing workflows, capable of running on either JAX, TensorFlow, or PyTorch. These domain packages are designed to enable fast experimentation, with a focus on ease-of-use and performance. We adopt a modular, layered design: at the library's lowest level of abstraction, we provide building blocks for creating models and data preprocessing pipelines, and at the library's highest level of abstraction, we provide pretrained "task" models for popular architectures such as Stable Diffusion, YOLOv8, GPT2, BERT, Mistral, CLIP, Gemma, T5, etc. Task models have built-in preprocessing, pretrained weights, and can be fine-tuned on raw inputs. To enable efficient training, we support XLA compilation for all models, and run all preprocessing via a compiled graph of TensorFlow operations using the tf.data API. The libraries are fully open-source (Apache 2.0 license) and available on GitHub. Keywords: KerasCV, KerasNLP, Keras multi-backend, Deep learning, Generative AI
Cite
Text
Watson et al. "KerasCV and KerasNLP: Multi-Framework Models." Machine Learning Open Source Software, 2024.Markdown
[Watson et al. "KerasCV and KerasNLP: Multi-Framework Models." Machine Learning Open Source Software, 2024.](https://mlanthology.org/mloss/2024/watson2024jmlr-kerascv/)BibTeX
@article{watson2024jmlr-kerascv,
title = {{KerasCV and KerasNLP: Multi-Framework Models}},
author = {Watson, Matthew and Sreepathihalli, Divyashree Shivakumar and Chollet, François and Górner, Martin and Sodhia, Kiranbir and Sampath, Ramesh and Patel, Tirth and Jin, Haifeng and Kovelamudi, Neel and Rasskin, Gabriel and Saadat, Samaneh and Wood, Luke and Qian, Chen and Bischof, Jonathan and Stenbit, Ian and Sharma, Abheesht and Mishra, Anshuman},
journal = {Machine Learning Open Source Software},
year = {2024},
pages = {1-10},
volume = {25},
url = {https://mlanthology.org/mloss/2024/watson2024jmlr-kerascv/}
}