back
Get SIGNAL/NOISE in your inbox daily

Keras Llama 3.2 Integration: Keras now seamlessly supports Llama 3.2 models, offering immediate compatibility with Hugging Face checkpoints.

  • Users can easily load Llama 3.2 models using the Keras_hub library, with on-the-fly conversion if necessary.
  • A simple code snippet demonstrates how to import and use a Llama 3.2 model for text generation.

Keras Multi-Backend Flexibility: Keras provides versatile backend options for model execution.

  • Users can choose between JAX, PyTorch, or TensorFlow backends by setting an environment variable.
  • This flexibility allows for easy experimentation with different backends, including JAX’s XLA compilation for potential performance boosts.

Keras-Hub: A Comprehensive Model Repository: Keras-hub serves as a centralized collection of pre-trained models.

  • Previously known as KerasNLP and KerasCV, it offers popular pre-trained models like Llama3, Gemma, and StableDiffusion.
  • The repository provides canonical Keras implementations for these models.

User-Friendly LLM Integration: Keras simplifies working with large language models (LLMs).

  • Models come with integrated tokenizers, allowing direct string input for generation and training.
  • The framework supports easy implementation of turn-by-turn conversations with instruction-tuned LLMs.

Granular Model Access: For users requiring more control, Keras provides access to lower-level components.

  • Tokenizers and model backbones can be accessed and loaded separately.
  • This allows for more customized implementations when needed.

Preprocessing Pipeline: Keras introduces a comprehensive preprocessing concept for various data transformations.

  • The Preprocessor handles tasks like tokenization, padding, and mask generation for text models.
  • It also generates expected outputs for training and fine-tuning in causal language modeling tasks.

Built-in Training Capabilities: Keras offers a convenient built-in trainer for model fine-tuning.

  • The trainer is compatible with various advanced training options, including distributed training and mixed precision.
  • Users can also implement custom training loops if desired.

Model Sharing and Distribution: Keras facilitates easy model sharing and deployment.

  • Fine-tuned models can be directly uploaded to the Hugging Face Hub using Keras functions.
  • This streamlines the process of sharing and collaborating on model development.

Advanced Model Parallelism: Keras leverages JAX for efficient distributed model parallelism.

  • Large models can be sharded across multiple accelerators (GPUs or TPUs) for inference or training.
  • Users can utilize default weight sharding configurations or define custom layout maps for optimized performance.

Practical Applications: The article provides examples of fine-tuning Llama 3.2 for specific tasks.

  • A demonstration shows how to fine-tune the model to generate pirate-like speech.
  • Another example illustrates distributed training of a larger 8B parameter model across multiple TPU cores.

Analyzing deeper: While Keras offers significant advantages in terms of ease of use and flexibility, users should carefully consider their specific use cases and performance requirements when choosing between Keras and other frameworks like Hugging Face Transformers. The seamless integration with JAX for model parallelism is particularly noteworthy for those working with very large models or requiring high-performance distributed training.

Recent Stories

Oct 17, 2025

DOE fusion roadmap targets 2030s commercial deployment as AI drives $9B investment

The Department of Energy has released a new roadmap targeting commercial-scale fusion power deployment by the mid-2030s, though the plan lacks specific funding commitments and relies on scientific breakthroughs that have eluded researchers for decades. The strategy emphasizes public-private partnerships and positions AI as both a research tool and motivation for developing fusion energy to meet data centers' growing electricity demands. The big picture: The DOE's roadmap aims to "deliver the public infrastructure that supports the fusion private sector scale up in the 2030s," but acknowledges it cannot commit to specific funding levels and remains subject to Congressional appropriations. Why...

Oct 17, 2025

Tying it all together: Credo’s purple cables power the $4B AI data center boom

Credo, a Silicon Valley semiconductor company specializing in data center cables and chips, has seen its stock price more than double this year to $143.61, following a 245% surge in 2024. The company's signature purple cables, which cost between $300-$500 each, have become essential infrastructure for AI data centers, positioning Credo to capitalize on the trillion-dollar AI infrastructure expansion as hyperscalers like Amazon, Microsoft, and Elon Musk's xAI rapidly build out massive computing facilities. What you should know: Credo's active electrical cables (AECs) are becoming indispensable for connecting the massive GPU clusters required for AI training and inference. The company...

Oct 17, 2025

Vatican launches Latin American AI network for human development

The Vatican hosted a two-day conference bringing together 50 global experts to explore how artificial intelligence can advance peace, social justice, and human development. The event launched the Latin American AI Network for Integral Human Development and established principles for ethical AI governance that prioritize human dignity over technological advancement. What you should know: The Pontifical Academy of Social Sciences, the Vatican's research body for social issues, organized the "Digital Rerum Novarum" conference on October 16-17, combining academic research with practical AI applications. Participants included leading experts from MIT, Microsoft, Columbia University, the UN, and major European institutions. The conference...