Article complete

NVIDIA Launches Hymba, its New Hybrid Architecture for Small LLMs

Hymba outperforms other small LLMs, like Meta 3.2 or SmolLM v2, when trained on only 1.5T Tokens.

NVIDIA's CEO gestures while presenting, with a stylized graphic of a building and abstract shapes in the background.

Key takeaways

  • NVIDIA launches Hymba-1.5B-Base, a hybrid architecture for improved small language model performance.
  • Hymba outperforms competitors like Meta 3.2 and SmolLM v2 using only 1.5 trillion tokens.
  • Model integrates transformer attention with state space models for enhanced efficiency in NLP tasks.
  • Incorporates learnable meta-tokens and cross-layer key-value sharing for improved memory and computation.
  • Research paper details design, performance, and potential applications of Hymba's innovative architecture.

Takeaways drafted with AI from the article text.

The model uses a dual structure with attention heads for precise recall and SSM heads for efficient context summarisation. 

It adds learnable meta-tokens at the start of input sequences to store key information and reduce unnecessary attention demands. To improve memory and computation efficiency, it includes cross-layer key-value sharing and partial sliding window attention. 

The research paper “Hymba: A Hybrid-head Architecture for Small Language Models” explores the model’s design, performance, and applications in detail.

Hymba Outperforms Llama-3.2

In a controlled study comparing various architectures under identical settings, Hymba-1.5B-Base demonstrated significant advantages. 

It outperformed all publicly available models under 2 billion parameters and surpassed Llama-3.2-3B with a 1.32% higher average accuracy, an 11.67-fold reduction in cache size, and a 3.49-fold increase in throughput.

Molchanov commented, “I'm not sure if we should be proud of 1.5T training. The reason is we want to move quickly; in the next two weeks, somebody will be even better.”

NVIDIA has also provided a setup script to facilitate environment configuration, supporting CUDA versions 12.1 and 12.4. 

But, Caution!

NVIDIA acknowledges that the model was trained on internet data, which includes toxic language, unsafe content, and societal biases. As a result, the model may reflect these biases, generate toxic responses to toxic prompts, or produce inaccurate or irrelevant text even with neutral prompts.

Users should set the batch size to one during generation, as the current setup doesn’t fully support padding meta tokens with sliding window attention. However, any batch size works for training and pre-filling.

The company highlights the importance of shared responsibility in creating trustworthy AI and has set ethical guidelines for its development. Users are advised to use the model responsibly and at the same time, stay mindful of its limitations.

Published

Spotted an error? Tell our editors. Read our editorial standards and corrections.

Selling to AI teams? Put your brand in front of the 5M+ people who read AIM every month. Plan a campaign