search
HomeTechnology peripheralsAIKeras 3.0 officially released: available for TensorFlow, JAX and PyTorch

After 5 months of update iterations, Keras 3.0 is finally here.

"Big news: We just released version Keras 3.0!" François Chollet, the father of Keras, on X Expressed excitement. "Now you can run Keras on JAX, TensorFlow and PyTorch frameworks..."

Keras 3.0正式发布:可用于TensorFlow、JAX和PyTorch

Regarding this update, Keras officials stated that this version took them 5 years to complete. It took several months for the public beta to be completed. Keras 3.0 is a complete rewrite of Keras that allows you to run Keras workflows on top of JAX, TensorFlow, or PyTorch. The new version also has new large model training and deployment capabilities. You can choose the framework that suits you best, or switch from one framework to another based on your current goals.

Keras 3.0正式发布:可用于TensorFlow、JAX和PyTorch

Keras address: https://keras.io/keras_3/

has been used by more than 2.5 million Keras, used by developers, welcomes version 3.0

Keras API is available for JAX, TensorFlow and PyTorch. Existing tf.keras models using only built-in layers can be run in JAX and PyTorch!

Keras 3.0正式发布:可用于TensorFlow、JAX和PyTorch

Keras 3 works seamlessly with any JAX, TensorFlow and PyTorch workflow. Keras 3 is not only suitable for Keras-centric workflows such as defining Keras models, optimizers, losses and metrics, it is also designed to integrate seamlessly with JAX, TensorFlow and PyTorch low-level backend native workflows when training Keras models. , you can choose to use JAX training, TensorFlow training, PyTorch training, or use it as part of a JAX or PyTorch model. There is no problem with the above operations. Keras 3 provides the same degree of low-level implementation flexibility in JAX and PyTorch that tf.keras does in TensorFlow.

Keras 3.0正式发布:可用于TensorFlow、JAX和PyTorch

Pre-trained model. You can now use a variety of pretrained models in Keras 3. There are now 40 Keras application models available in the backend, in addition to a large number of pre-trained models existing in KerasCV and KerasNLP (such as BERT, T5, YOLOv8, Whisper, SAM etc) also applies to all backends.

Keras 3 is highly backwards compatible with Keras 2: Keras 3 now implements the public API interface of Keras 2. Most users can run Keras scripts on Keras 3 without changing any code. If you are not used to using Keras 3, you can choose to ignore the new version update and continue to use Keras 2 with TensorFlow.

Keras 3 supports cross-framework data pipeline for all backends. Multi-frame machine learning also means multi-frame data loading and preprocessing. Keras 3 models can be trained using a variety of data pipelines, whether you are using JAX, PyTorch or the TensorFlow backend:

  • tf.data. Dataset pipelines.
  • torch.utils.data.DataLoader object.
  • NumPy arrays and Pandas dataframes.
  • The keras.utils.PyDataset object for Keras.

A new distributed API for large-scale data parallelism and model parallelism. This update is currently only available for the JAX backend, with TensorFlow and PyTorch support coming soon.

As for why this change is being rolled out, the Keras team stated that in recent years, as the model size has become larger and larger, they want to shard the multi-device model ( sharding) problem provides Keras solution. The team designed the API to make model definition, training logic, and sharding configuration completely independent, which means that the model can be run as if it were on a single device. You can then add sharding configuration to any model while training the model.

Data parallelism (copying a small model identically on multiple devices) can be handled with just two lines:

Keras 3.0正式发布:可用于TensorFlow、JAX和PyTorch

Next is model parallelism. This API allows you to configure the layout of each variable and each output tensor via regular expressions. This makes it easy to quickly specify the same layout for an entire variable category.

Keras 3.0正式发布:可用于TensorFlow、JAX和PyTorch

Finally, the Keras team has collected many questions that everyone is concerned about and answered them. Interested readers can go to the Keras official website to learn more.

The above is the detailed content of Keras 3.0 officially released: available for TensorFlow, JAX and PyTorch. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:机器之心. If there is any infringement, please contact admin@php.cn delete
AI Therapists Are Here: 14 Groundbreaking Mental Health Tools You Need To KnowAI Therapists Are Here: 14 Groundbreaking Mental Health Tools You Need To KnowApr 30, 2025 am 11:17 AM

While it can’t provide the human connection and intuition of a trained therapist, research has shown that many people are comfortable sharing their worries and concerns with relatively faceless and anonymous AI bots. Whether this is always a good i

Calling AI To The Grocery AisleCalling AI To The Grocery AisleApr 30, 2025 am 11:16 AM

Artificial intelligence (AI), a technology decades in the making, is revolutionizing the food retail industry. From large-scale efficiency gains and cost reductions to streamlined processes across various business functions, AI's impact is undeniabl

Getting Pep Talks From Generative AI To Lift Your SpiritGetting Pep Talks From Generative AI To Lift Your SpiritApr 30, 2025 am 11:15 AM

Let’s talk about it. This analysis of an innovative AI breakthrough is part of my ongoing Forbes column coverage on the latest in AI including identifying and explaining various impactful AI complexities (see the link here). In addition, for my comp

Why AI-Powered Hyper-Personalization Is A Must For All BusinessesWhy AI-Powered Hyper-Personalization Is A Must For All BusinessesApr 30, 2025 am 11:14 AM

Maintaining a professional image requires occasional wardrobe updates. While online shopping is convenient, it lacks the certainty of in-person try-ons. My solution? AI-powered personalization. I envision an AI assistant curating clothing selecti

Forget Duolingo: Google Translate's New AI Feature Teaches LanguagesForget Duolingo: Google Translate's New AI Feature Teaches LanguagesApr 30, 2025 am 11:13 AM

Google Translate adds language learning function According to Android Authority, app expert AssembleDebug has found that the latest version of the Google Translate app contains a new "practice" mode of testing code designed to help users improve their language skills through personalized activities. This feature is currently invisible to users, but AssembleDebug is able to partially activate it and view some of its new user interface elements. When activated, the feature adds a new Graduation Cap icon at the bottom of the screen marked with a "Beta" badge indicating that the "Practice" feature will be released initially in experimental form. The related pop-up prompt shows "Practice the activities tailored for you!", which means Google will generate customized

They're Making TCP/IP For AI, And It's Called NANDAThey're Making TCP/IP For AI, And It's Called NANDAApr 30, 2025 am 11:12 AM

MIT researchers are developing NANDA, a groundbreaking web protocol designed for AI agents. Short for Networked Agents and Decentralized AI, NANDA builds upon Anthropic's Model Context Protocol (MCP) by adding internet capabilities, enabling AI agen

The Prompt: Deepfake Detection Is A Booming BusinessThe Prompt: Deepfake Detection Is A Booming BusinessApr 30, 2025 am 11:11 AM

Meta's Latest Venture: An AI App to Rival ChatGPT Meta, the parent company of Facebook, Instagram, WhatsApp, and Threads, is launching a new AI-powered application. This standalone app, Meta AI, aims to compete directly with OpenAI's ChatGPT. Lever

The Next Two Years In AI Cybersecurity For Business LeadersThe Next Two Years In AI Cybersecurity For Business LeadersApr 30, 2025 am 11:10 AM

Navigating the Rising Tide of AI Cyber Attacks Recently, Jason Clinton, CISO for Anthropic, underscored the emerging risks tied to non-human identities—as machine-to-machine communication proliferates, safeguarding these "identities" become

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)