Skip to main content
Browse Models

Xwin-LM

Xwin 70B

Released

2023-09-19

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-70b-v0.1.Q4_K_M.gguf

5-bit GGUF (Q5_K_M)

GGUF · xwin-lm-70b-v0.1.Q5_K_M.gguf

6-bit GGUF (Q6_K)

GGUF · xwin-lm-70b-v0.1.Q6_K.gguf

8-bit GGUF (Q8_0)

GGUF · xwin-lm-70b-v0.1.Q8_0.gguf

Ollama Model (q4_K_M)

Ollama

Model Report

Overview

Xwin 70B is a large language model (LLM) developed as part of the broader Xwin-LM project, which focuses on advancing open-source alignment technologies for LLMs through techniques such as supervised fine-tuning, reward modeling, reject sampling, and reinforcement learning from human feedback. Released in September 2023, Xwin 70B is built upon the Llama 2 architecture and leverages reinforcement learning from human feedback (RLHF) as a central methodology for improving communicative effectiveness and safety.

The model and its family are released under the Llama 2 License and are intended to foster reproducible, transparent research in model alignment and scalable conversational systems.

Model Architecture and Alignment Techniques

Xwin 70B is based on the Llama 2 70B parameter model, which provides a foundation for extended context and generative capabilities. The Xwin-LM team specifically focuses on enhancing alignment through a multi-step process that includes supervised fine-tuning to guide base behaviors, reward modeling to assess desirable system outputs, and reinforcement learning from human feedback to iteratively adapt the model based on user preference data.

Core to Xwin 70B's alignment is its use of RLHF, whereby human annotators provide feedback on model outputs to create a reward function that further tunes the system. This process is designed to yield more helpful, precise, and polite responses consistent with user expectations. The model also employs a conversational prompt format pioneered by Vicuna and incorporated by FastChat, which structures multi-turn dialogues for improved interaction.

Technical Features and Inference

Xwin 70B emphasizes stable and reproducible conversational alignment while maintaining compatibility with widely adopted machine learning frameworks. The model utilizes a prompt format that begins with an introductory description of the chat, followed by alternating user and assistant turns, as exemplified below:

“A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user’s questions. USER: Hi! ASSISTANT: Hello.</s>USER: Who are you? ASSISTANT: I am Xwin-LM.</s>”

For inference, Xwin 70B is compatible with Hugging Face’s AutoModelForCausalLM and AutoTokenizer, and is optimized for high-speed inference using vllm due to its Llama 2-based implementation. Strict adherence to the prescribed conversational templates is recommended to ensure coherent and contextually relevant outputs. Suggested inference settings include a max_new_tokens value of 4096 and a temperature parameter set around 0.7 to balance creativity and determinism in responses.

Benchmark Performance

Following release, Xwin 70B achieved strong performance across a number of public benchmarks. In the AlpacaEval evaluation, Xwin 70B recorded a 95.57% win-rate against Text-Davinci-003. It also achieved a 60.61% win-rate versus GPT-4 and 87.50% versus ChatGPT in the same benchmark. The model generally exhibited higher relative scores in head-to-head comparisons against models such as Llama-2-70B-Chat and WizardLM-70B in several evaluations.

Xwin 70B also scored highly on NLP foundation tasks recorded in the Open LLM Leaderboard. The reported average score across core tasks was 71.8, with detailed results including a score of 69.6 on MMLU (5-shot), 70.5 on ARC (25-shot), 60.1 on TruthfulQA (0-shot), and 87.1 on HellaSwag (10-shot). These results provide insight into its performance across various question-answering and reasoning challenges.

Xwin-LM Model Family

The Xwin-LM project has released several models alongside Xwin 70B, notably the Xwin-LM-13B-V0.1 and Xwin-LM-7B-V0.1 models. These models are also based on the Llama 2 architecture and employ the same alignment strategies, including RLHF.

The 13B variant achieved a 91.76% win-rate on AlpacaEval against Text-Davinci-003 and recorded win-rates of 81.79% versus ChatGPT and 55.30% compared to GPT-4. Its average score on NLP foundation tasks was 61.9. The 7B variant recorded an 87.82% win-rate on AlpacaEval, with corresponding win-rates of 76.40% and 47.57% against ChatGPT and GPT-4, respectively, and an average NLP score of 58.4. Both models are distributed under the Llama 2 License, ensuring alignment with open-source principles.

Limitations and Future Directions

While Xwin 70B and its related models demonstrate strong results on automated benchmarks, the Xwin-LM project has outlined areas for continued development. One primary aim is to release more comprehensive source code to support greater scientific transparency and reproducibility. Furthermore, the project envisions enhancing capabilities in mathematics and reasoning to address domains that require more rigorous logic or step-wise solution generation.

Ongoing research is also anticipated to address any limitations in prompt flexibility, context retention, or specific use-case adaptation as highlighted in the broader LLM community.

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