Skip to main content
Browse Models

Xwin-LM

Xwin LM 7B

Released

2023-10-13

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 · xwin-lm-7b-v0.2.Q4_K_M.gguf

5-bit GGUF (Q5_K_M)

GGUF · xwin-lm-7b-v0.2.Q5_K_M.gguf

6-bit GGUF (Q6_K)

GGUF · xwin-lm-7b-v0.2.Q6_K.gguf

8-bit GGUF (Q8_0)

GGUF · xwin-lm-7b-v0.2.Q8_0.gguf

Ollama Model (q4_K_M)

Ollama

Model Report

Overview

Xwin-LM-7B is a member of the Xwin-LM family of large language models, developed with a focus on advancing open-source alignment techniques such as supervised fine-tuning, reward modeling, reject sampling, and reinforcement learning from human feedback (RLHF). Built upon the Llama 2 architecture, Xwin-LM-7B is designed to facilitate research in alignment technologies and provide an accessible, high-performance language model for a wide range of text generation and comprehension tasks. The model has garnered attention for its benchmark performance across several evaluation platforms, demonstrating competitive results against contemporary large language models.

Model Architecture and Training Methodology

Xwin-LM-7B is based on the Llama 2 transformer architecture, leveraging its structures while introducing alignment-focused training strategies. The development process is characterized by multi-stage training, beginning with supervised fine-tuning (SFT) to establish foundational abilities, followed by reward modeling (RM) to guide the model's preference learning through human-annotated comparison data. Reject sampling is then applied to improve output robustness, and reinforcement learning from human feedback, particularly via Proximal Policy Optimization (PPO), enhances the model's capacity to align responses with user intent and human values. The architecture supports multi-turn conversation formatting, utilizing the prompt format introduced by Vicuna, which structures dialogues for natural and context-aware interactions between users and the model.

Benchmark Performance and Evaluation

Xwin-LM-7B has been evaluated on leading benchmarks assessing instruction-following, factuality, and general-purpose linguistic skills. According to the AlpacaEval benchmark, Xwin-LM-7B-V0.2 achieves a win-rate of 89.31% versus Text-Davinci-003, 79.60% versus ChatGPT, and 59.83% versus GPT-4, indicating competitive performance relative to both open and closed models. On the Open LLM Leaderboard, Xwin-LM-7B-V0.2 demonstrates balanced results: MMLU (50.0 5-shot), ARC (56.4 25-shot), TruthfulQA (49.5 0-shot), and HellaSwag (78.9 10-shot), with an overall average score of 58.7. These results illustrate Xwin-LM-7B's capacity for broad language understanding and alignment with expected behavior on a diverse array of natural language tasks.

Training Data and Alignment Techniques

The training process for Xwin-LM-7B emphasizes alignment through incremental supervision and learning from curated human feedback. The supervised fine-tuning stage utilizes instruction data designed to foster coherent, contextually relevant outputs. Reward modeling assigns preferences based on human comparison judgments, making it possible to optimize for responses deemed helpful, detailed, and safe. Reject sampling introduces an iterative filtering mechanism, discarding undesirable generations before subsequent optimization. The backbone of alignment in Xwin-LM-7B comes from applying RLHF with PPO, enabling the model to iteratively improve based on human feedback and direct optimization of response quality. The combination of these methodologies places a strong emphasis on ensuring helpful, polite, and informative model behavior.

Applications and Use Cases

Xwin-LM-7B is intended as a general-purpose large language model, suitable for a range of applications requiring natural language understanding and generation. Benchmark performance suggests utility in assistant-oriented dialogue, question-answering, text summarization, and instruction synthesis. Additionally, the Xwin-LM project’s focus on open-sourcing alignment methodologies supports research into the effectiveness of various training strategies such as SFT, RM, reject sampling, and RLHF. Its conversational formatting also makes it well-suited for integration within multi-turn dialogue systems, enabling extended and context-aware user interactions for research prototypes and academic studies.

Known Limitations and Licensing

While Xwin-LM-7B demonstrates strong benchmark results, its technical report for version V0.2 is still forthcoming, and further improvements are anticipated in specialized domains such as mathematical reasoning and domain-specific expertise. The full model source code has not yet been released but is planned by the development team. Xwin-LM-7B and all models in its family are released under the Llama 2 License, aligning with standard practices for responsible open distribution and use of large language models.

Timeline and Model Versions

The initial release of Xwin-LM-7B-V0.1 occurred in September 2023, appearing in top rankings among similarly sized models on public benchmarks. Subsequent refinements led to the release of Xwin-LM-7B-V0.2 in October 2023, incorporating improved comparison data and Proximal Policy Optimization (PPO), and showing higher win-rates against leading proprietary systems. The Xwin-LM family is actively maintained, with larger model variants such as 13B and 70B versions also available for comparison and research purposes. Continued updates and model releases are planned, extending both the model’s capabilities and the breadth of alignment research supported.

Helpful Resources

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.
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.
NousResearch /

Nous Hermes Llama 2 70B

Llama 2 70B fine-tuned on over 300k curated GPT-4 outputs.