Skip to main content
QUICK REVIEW

[Paper Review] H2O-Danube-1.8B Technical Report

Philipp Singer, Pascal Pfeiffer|arXiv (Cornell University)|Jan 30, 2024
Industrial Gas Emission ControlEngineering3 citations
TL;DR

H2O-Danube-1.8B is a 1.8-billion-parameter decoder-only language model trained on 1T tokens from diverse non-coding sources, leveraging techniques from Llama 2 and Mistral, including grouped-query attention, rotary positional embeddings, and a sliding window attention mechanism. Despite training on fewer tokens than comparable models, it achieves state-of-the-art performance on multiple benchmarks, including strong results in commonsense reasoning and reading comprehension, and is released under the Apache 2.0 license for open commercial and research use.

ABSTRACT

We present H2O-Danube, a series of small 1.8B language models consisting of H2O-Danube-1.8B, trained on 1T tokens, and the incremental improved H2O-Danube2-1.8B trained on an additional 2T tokens. Our models exhibit highly competitive metrics across a multitude of benchmarks and, as of the time of this writing, H2O-Danube2-1.8B achieves the top ranking on Open LLM Leaderboard for all models below the 2B parameter range. The models follow core principles of LLama 2 and Mistral, and we leverage and refine various techniques for pre-training large language models. We additionally release chat models trained with supervised fine-tuning followed by direct preference optimization. We make all models openly available under Apache 2.0 license further democratizing LLMs to a wider audience economically.

Motivation & Objective

  • To develop a high-performing, open-source 1.8B-parameter language model that is economically accessible for deployment on consumer hardware.
  • To demonstrate that competitive performance can be achieved with fewer training tokens by refining training techniques and architecture choices.
  • To extend the ecosystem of permissively licensed foundation models by releasing both a base model and a fine-tuned chat variant.
  • To enable community-driven fine-tuning and commercial use through an Apache 2.0 license.
  • To evaluate the effectiveness of supervised fine-tuning and direct preference optimization (DPO) on a small-scale model for instruction following and multi-turn dialogue.

Proposed method

  • The model uses a decoder-only transformer architecture with 24 layers, hidden size 2,560, and intermediate size 6,912, based on Llama 2 and Mistral principles.
  • It employs grouped-query attention with 32 query heads and 8 key-value heads to reduce memory bandwidth and improve inference efficiency.
  • Rotary Positional Embeddings (RoPE) are used to model relative token positions, enhancing long-context modeling.
  • A sliding window attention mechanism with a fixed 4,096 context window is applied during training, enabling efficient long-sequence modeling.
  • Training is conducted on a single node with 8 H100 GPUs using mixed-precision FP8 for linear layers and bfloat16 for the lm_head, achieving 292.7k tokens/second throughput.
  • The model is fine-tuned via supervised fine-tuning (SFT) on instruction data followed by direct preference optimization (DPO) to produce a high-quality chat variant.

Experimental results

Research questions

  • RQ1Can a 1.8B-parameter language model achieve competitive performance on standard benchmarks when trained on only 1T tokens, despite fewer total tokens than larger reference models?
  • RQ2How does the combination of Mistral-inspired architectural choices (e.g., grouped-query attention, sliding window) impact performance and training efficiency in a smaller model?
  • RQ3To what extent does the exclusion of code data during pre-training affect performance on general language understanding tasks compared to models trained on code-rich corpora?
  • RQ4How does the SFT + DPO fine-tuning pipeline improve the chat model’s ability to handle multi-turn, instruction-following, and reasoning tasks?
  • RQ5Can a small, open-weight model outperform larger or more data-intensive models in specific benchmark categories like commonsense reasoning and reading comprehension?

Key findings

  • H2O-Danube-1.8B-Chat achieves 67.51% accuracy on the ARC-e benchmark, outperforming both TinyLlama-1.1B-Chat (54.34%) and Qwen-1.8B-Chat (49.28%) in zero-shot evaluation.
  • On the PIQA benchmark, H2O-Danube-1.8B-Chat achieves 76.71% accuracy, surpassing TinyLlama-1.1B-Chat (74.59%) and Qwen-1.8B-Chat (71.82%).
  • In the Open LLM Leaderboard, H2O-Danube-1.8B-Chat scores 43.96 average, outperforming TinyLlama-1.1B-Chat (37.18) and being comparable to Qwen-1.8B-Chat (42.94) and StableLM-2-Zephyr-1.6B (49.89).
  • The model achieves a training throughput of 292.7k tokens/second on a single 8xH100 node using FP8 precision and mixed-precision optimization.
  • On the MT-Bench evaluation, H2O-Danube-1.8B-Chat is the top-performing model in five out of seven categories for single-turn conversations and performs on par with StableLM 2 for turn-2 responses.
  • Despite strong performance in most areas, H2O-Danube-1.8B-Chat lags behind Qwen and StableLM 2 on MMLU and GSM8k, suggesting potential data distribution or fine-tuning strategy differences.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.