Skip to main content
Browse Models

NousResearch

Nous Hermes Llama 2 70B

Released

2023-08-23

Family

Llama 2

Type

Fine-Tuned Model

Downloads

External Download

You are about to open a link to an external source. Verify the URL before continuing.

Download

4-bit GGUF (Q4_K_M)

GGUF · nous-hermes-llama2-70b.Q4_K_M.gguf

5-bit GGUF (Q5_K_M)

GGUF · nous-hermes-llama2-70b.Q5_K_M.gguf

Ollama Model (q4_K_M)

Ollama

Model Report

Overview

"Nous Hermes Llama 2 70B" is a large language model developed by Nous Research, incorporating contributions in fine-tuning and dataset curation from the developers Teknium and Emozilla, with compute sponsorship from PygmalionAI. This model is a fine-tuned variant of the Llama 2 70B architecture, building upon the methodology and dataset used in the earlier "Hermes on Llama-1" release to ensure continuity of style and performance. The emphasis in this iteration is on generating longer, more coherent responses, reducing the likelihood of hallucinations, and eliminating certain types of filtering present in contemporary language models.

Model Architecture and Fine-Tuning Approach

The foundation of "Nous Hermes Llama 2 70B" is the Llama 2 70B architecture, known for its scalability in large language model applications. The fine-tuning process for Hermes involved training on sequences of up to 4096 tokens, leveraging high-memory GPUs to manage computational demand.

During training, the team employed bitsandbytes quantization with settings tailored for efficient memory usage. Specifically, the configuration included 4-bit quantization using the nf4 algorithm, with double quantization enabled and computation in the bfloat16 format. The model was fine-tuned using PEFT version 0.5.0.dev0 to support Parameter-Efficient Fine-Tuning. This technical setup was chosen to balance swift inference and the retention of generative behavior.

Training Data and Curation Techniques

The dataset underpinning the fine-tuning of "Nous Hermes Llama 2 70B" is composed mainly of synthetic outputs generated by GPT-4, with an emphasis on curating for both quality and task diversity. The curation process intended to avoid low-quality, repetitive, or filtered samples, leading to a dataset capable of producing knowledge-rich and stylistically consistent outputs.

Key dataset sources integrated into the training regime included the GPTeacher set from Teknium, WizardLM, the Nous Research Instruct Dataset, GPT4-LLM, and Microsoft’s Unnatural Instructions, the Airoboros dataset, Camel-AI’s domain expert datasets, and CodeAlpaca. These sources contribute to the diversity of knowledge, styles, and instruction-following capability embedded in the final model.

Evaluation and Benchmark Performance

"Nous Hermes Llama 2 70B" has undergone evaluation across several prominent benchmark suites to assess its performance in knowledge recall, reasoning, task completion, and general instruction-following ability. Notable among these are the GPT4All benchmarks, the BigBench suite, and AGIEval.

On the GPT4All suite, the model demonstrated accuracy scores such as 0.57 on ARC Challenge, 0.84 on ARC Easy, 0.84 on BoolQ, 0.65 on HellaSwag, 0.38 on OpenBookQA, and 0.77 on Winogrande. The results reflect consistent performance across a diverse range of reasoning and comprehension tasks.

In the BigBench benchmark, Hermes exhibited strengths in reasoning about sports (0.74), date understanding (0.73), and causal judgment (0.66), while presenting results on complex logical deduction and geometric reasoning tasks. AGIEval evaluations show competence in SAT English (0.86) and SAT English without passage (0.53), further underlining the model’s proficiency in language understanding and test-style assessments.

Applications and Use Cases

The "Nous Hermes Llama 2 70B" model is designed for general-purpose natural language processing tasks, making it suitable for use in conversational AI, knowledge generation, instruction following, and creative text synthesis. Applications include chatbot deployments, virtual assistants, automated content generation, and specialized implementations like roleplaying bots, which benefit from the model’s response length capabilities and stylistic versatility.

For operation, the model expects prompts in the Alpaca formatting convention. For example, a standard interaction starts with "### Instruction:" followed by the query, optionally an "### Input:" section for additional context, and "### Response:" for the generated output. This prompt structure helps guide the model toward structured, coherent replies.

Model Limitations and Future Directions

While Hermes Llama 2 70B focuses on reducing hallucination rates and excludes some forms of synthetic data filtering, the model retains limitations typical of transformer-based large language models. These include potential knowledge gaps due to the predominance of synthetic data, variance in reasoning stability for multi-step or ambiguous queries, and difficulty with highly specialized domains absent from the training data.

Future development directions, as outlined by Nous Research, include the continued refinement of data sources and the application of advanced filtering techniques to further enhance dataset relevance and response reliability.

Release and Model Family

The update and release of this Hermes model as part of the Nous Research Flagship LLM Series was finalized in August 2024. By leveraging the same dataset used for the original "Hermes on Llama-1," continuity in behavior and application scope across versions is maintained.

Helpful Links

About Llama 2: The Llama 2 family, developed by Meta, comprises large language models ranging from 7 billion to 70 billion parameters, trained on 40% more data than their predecessors and featuring a doubled context length of 4,096 tokens.

More in the Llama 2 Family

Meta /

Llama 2 7B

7 billion parameter version of the 2nd iteration in Meta's Llama series of open source models.
codellama /

CodeLlama 7B

Fine-tuned version of Llama 7b, with training data optimized for code generation and completion tasks.
lmsys /

Vicuna 7B

Llama 7B fine-tuned on 125k GPT-4 conversations, with strong performance in chatbot and instruction following use-cases.
PygmalionAI /

Pygmalion 2 7B

Llama 7B fine-tuned for conversation, roleplaying, and storywriting.
openchat /

OpenChat 3.5 7B

Llama 2 7B fine-tuned using the C-RLFT strategy, with performance surpassing GPT 3.5 on some benchmarks.
Xwin-LM /

Xwin LM 7B

Llama 2 7B fine-tune using numerous emerging techniques including SFT, RM, and RLHF, achieving top results on AlpacaEval.
Meta /

Llama 2 13B

13 billion parameter version of the 2nd iteration in Meta's Llama series of open source models.
Meta /

CodeLlama 13B

Fine-tuned version of Llama 13b, with training data optimized for code generation and completion tasks.
NousResearch /

Nous Hermes 13b

Llama 13b fine-tuned on over 300k curated GPT-4 outputs, known long high-quality outputs.
lmsys /

Vicuna 13B

Llama 13B fine-tuned on 125k GPT-4 conversations, with strong performance in chatbot and instruction following use-cases.
Gryphe /

MythoMax L2

An improved variant of MythoMix (MythoLogic-L2 and Huginn merge) using an experimental tensor-type merge technique. Originally a merge of multiple popular Llama 2 fine-tunes, including Hermes, Chronos, and Airoboros. Very popular for rich descriptions, storywriting, and roleplay.
WizardLM /

WizardLM 13B

Llama 2 13B model fine-tuned to follow complex instructions using the WizardLM training methodology.
PygmalionAI /

Pygmalion 2 13B

Llama 13B fine-tuned for conversation, roleplaying, and storywriting.
PygmalionAI /

Mythalion 13B

Merge of two popular fine-tunes: Pygmalion and Mythomax L2, resulting in a model that is good at roleplaying and instruction-following.
Xwin-LM /

Xwin LM 13B

Llama 2 13B fine-tune using numerous emerging techniques including SFT, RM, and RLHF, achieving top results on AlpacaEval.
Meta /

CodeLlama 34B

Fine-tuned version of unreleased Llama 2 34b, with training data optimized for code generation and completion tasks.
Meta /

Llama 2 70B

70 billion parameter version of the 2nd iteration in Meta's Llama series of open source models.
Meta /

CodeLlama 70B

Fine-tuned version of Llama 70b, with training data optimized for code generation and completion tasks.
Xwin-LM /

Xwin 70B

Llama 2 70B fine-tune using numerous emerging techniques including SFT, RM, and RLHF, achieving top results on AlpacaEval.
WizardLM /

WizardLM 70B

Llama 2 70B model fine-tuned to follow complex instructions using the WizardLM training methodology.