Skip to main content
Browse Models

PygmalionAI

Pygmalion 2 7B

Released

2023-09-05

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 · pygmalion-2-7b.Q4_K_M.gguf

5-bit GGUF (Q5_K_M)

GGUF · pygmalion-2-7b.Q5_K_M.gguf

6-bit GGUF (Q6_K)

GGUF · pygmalion-2-7b.Q6_K.gguf

8-bit GGUF (Q8_0)

GGUF · pygmalion-2-7b.Q8_0.gguf

Model Report

Overview

Pygmalion 2 7B is an instruction-tuned generative language model developed by PygmalionAI with a primary focus on fiction writing, character-driven conversation, and roleplaying. Building on the Llama-2 7B architecture from Meta AI, the Pygmalion 2 7B model has been fine-tuned using custom datasets and methodologies to enhance its capacity for interactive storytelling and lifelike dialogue generation.

Model Architecture and Design

The foundation of Pygmalion 2 7B is the transformer-based Llama-2 7B model, which consists of approximately 6.74 billion parameters and employs the BF16 tensor type for efficient computation. Its architecture enables natural language understanding and generation, suitable for a range of conversational AI applications.

Pygmalion 2 7B distinguishes itself through instruction tuning performed via supervised fine-tuning strategies. The fine-tuning process utilized the open-source Axolotl framework, which supports scalable training of large language models. Modifications to the model’s prompting structure—particularly the adoption of the "Metharme" format—allow for nuanced control over conversational context. Special control tokens such as <|system|>, <|user|>, and <|model|> define speaker roles and enable the chaining of conversation turns, facilitating more dynamic and context-aware exchanges.

Training Data and Methodology

To optimize for roleplaying and imaginative narrative output, Pygmalion 2 7B was trained on a diverse array of datasets. The primary training set includes PIPPA, a large-scale, proprietary dataset curated by PygmalionAI, containing instruction-following samples, synthetic conversations, fictional stories, and content extracted from roleplay forums. Supplementary data was incorporated from general instruction datasets, enhancing the model’s flexibility in following varied prompts.

Fine-tuning relied on supervision to guide the model’s outputs toward creative, user-aligned content. Conversations with system-level directives set using the <|system|> token help establish scenario context and modify reply styles or verbosity. This training regimen ensures that Pygmalion 2 7B can handle both structured instructional exchanges and freeform, open-ended narrative tasks.

Prompting Format and Conversational Dynamics

The Metharme prompting format in Pygmalion 2 7B’s interface was developed to ease the construction of multi-turn dialogues and complex interactions. Unlike the classic Pygmalion format, Metharme leverages explicit role markers: <|system|> for contextual or behavioral instructions to the model, <|user|> for end user inputs, and <|model|> for the model’s replies. These tokens may be repeated and nested, thus preserving extended conversational state and enabling intricate roleplay or storytelling sessions.

Within this framework, prompt engineering becomes intuitive; for example, a <|system|> prompt can establish a narrative scenario or instruct the model to provide brief or elaborate answers. This structuring supports use cases involving back-and-forth character dialogues, collaborative fiction writing, or interactive storytelling.

Applications and Intended Use

Pygmalion 2 7B primarily serves as a tool for creative writing and entertainment. Its design is optimized for producing fiction, engaging in roleplaying scenarios, and holding character-driven conversations. The model is frequently employed in environments where maintaining narrative continuity and persona is paramount, such as in collaborative novels, text-based games, or chat-based interactive experiences. Through its instruction-following and context-sensitive mechanisms, the model accommodates both guided narrative creation and spontaneous dialogue.

Limitations and Ethical Considerations

While Pygmalion 2 7B is suited for creative applications, the model was not specifically fine-tuned for safety or factual reliability. Both the base Llama-2 model and the fine-tuned outputs may contain content that is profane, inappropriate, or otherwise socially unacceptable. The lack of dedicated safety alignment means that generated text may deviate from factual accuracy and may not be suitable for use cases outside of entertainment and fictional writing. Users are advised to employ the model within its intended scope and with appropriate oversight.

Licensing and Availability

Pygmalion 2 7B is available under terms compatible with the Llama-2 community license, allowing for both commercial and non-commercial use. The training and dissemination of the model received sponsorship from SpicyChat, facilitating open access to the resource for research and development purposes.

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

Nous Hermes Llama 2 70B

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