Model Intelligence Sheet
richarderkhov/magpie-align_-_llama-3-8b-magpie-align-v0.3-gguf overview
Project Web: https://magpie-align.github.io/ Online Model Demo: https://huggingface.co/spaces/flydust/Chat-with-Magpie Arxiv Technical Report: https://arxiv.org/abs/2406.08464 Codes: https://github.com/magpie-align/magpie
Downloads
109
Likes
0
Pipeline
—
Library
—
Visibility
Public
Access
Open
Repository Files & Downloads
22 files detected
Direct downloads for all repository files
| File | Type | Quantization | Size | Link |
|---|---|---|---|---|
| Llama-3-8B-Magpie-Align-v0.3.IQ3_M.gguf | GGUF | IQ3_M | 3.52 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.IQ3_S.gguf | GGUF | IQ3_S | 3.43 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.IQ3_XS.gguf | GGUF | IQ3_XS | 3.28 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.IQ4_NL.gguf | GGUF | IQ4_NL | 4.38 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.IQ4_XS.gguf | GGUF | IQ4_XS | 4.18 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.Q2_K.gguf | GGUF | Q2_K | 2.96 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.Q3_K.gguf | GGUF | Q3_K | 3.74 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.Q3_K_L.gguf | GGUF | Q3_K_L | 4.03 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.Q3_K_M.gguf | GGUF | Q3_K_M | 3.74 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.Q3_K_S.gguf | GGUF | Q3_K_S | 3.41 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.Q4_0.gguf | GGUF | — | 4.34 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.Q4_1.gguf | GGUF | — | 4.78 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.Q4_K.gguf | GGUF | Q4_K | 4.58 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.Q4_K_M.gguf | GGUF | Q4_K_M | 4.58 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.Q4_K_S.gguf | GGUF | Q4_K_S | 4.37 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.Q5_0.gguf | GGUF | — | 5.21 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.Q5_1.gguf | GGUF | — | 5.65 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.Q5_K.gguf | GGUF | Q5_K | 5.34 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.Q5_K_M.gguf | GGUF | Q5_K_M | 5.34 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.Q5_K_S.gguf | GGUF | Q5_K_S | 5.21 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.Q6_K.gguf | GGUF | Q6_K | 6.14 GB | Download |
| Llama-3-8B-Magpie-Align-v0.3.Q8_0.gguf | GGUF | — | 7.95 GB | Download |
Model Details Live
Metadata Inspector
Normalized metadata (stored in metadata_json)
{
"metadata": {},
"card_data": {
"frontmatter": {},
"hero_image_url": "https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png",
"summary": "Project Web: https://magpie-align.github.io/ Online Model Demo: https://huggingface.co/spaces/flydust/Chat-with-Magpie Arxiv Technical Report: https://arxiv.org/abs/2406.08464 Codes: https://github.com/magpie-align/magpie",
"quick_links": [],
"benchmark_table_html": "",
"readme_markdown": "Quantization made by Richard Erkhov.\n\n[Github](https://github.com/RichardErkhov)\n\n[Discord](https://discord.gg/pvy7H8DZMG)\n\n[Request more models](https://github.com/RichardErkhov/quant_request)\n\n\nLlama-3-8B-Magpie-Align-v0.3 - GGUF\n- Model creator: https://huggingface.co/Magpie-Align/\n- Original model: https://huggingface.co/Magpie-Align/Llama-3-8B-Magpie-Align-v0.3/\n\n\n| Name | Quant method | Size |\n| ---- | ---- | ---- |\n| [Llama-3-8B-Magpie-Align-v0.3.Q2_K.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.Q2_K.gguf) | Q2_K | 2.96GB |\n| [Llama-3-8B-Magpie-Align-v0.3.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.IQ3_XS.gguf) | IQ3_XS | 3.28GB |\n| [Llama-3-8B-Magpie-Align-v0.3.IQ3_S.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.IQ3_S.gguf) | IQ3_S | 3.43GB |\n| [Llama-3-8B-Magpie-Align-v0.3.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.Q3_K_S.gguf) | Q3_K_S | 3.41GB |\n| [Llama-3-8B-Magpie-Align-v0.3.IQ3_M.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.IQ3_M.gguf) | IQ3_M | 3.52GB |\n| [Llama-3-8B-Magpie-Align-v0.3.Q3_K.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.Q3_K.gguf) | Q3_K | 3.74GB |\n| [Llama-3-8B-Magpie-Align-v0.3.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.Q3_K_M.gguf) | Q3_K_M | 3.74GB |\n| [Llama-3-8B-Magpie-Align-v0.3.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.Q3_K_L.gguf) | Q3_K_L | 4.03GB |\n| [Llama-3-8B-Magpie-Align-v0.3.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.IQ4_XS.gguf) | IQ4_XS | 4.18GB |\n| [Llama-3-8B-Magpie-Align-v0.3.Q4_0.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.Q4_0.gguf) | Q4_0 | 4.34GB |\n| [Llama-3-8B-Magpie-Align-v0.3.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.IQ4_NL.gguf) | IQ4_NL | 4.38GB |\n| [Llama-3-8B-Magpie-Align-v0.3.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.Q4_K_S.gguf) | Q4_K_S | 4.37GB |\n| [Llama-3-8B-Magpie-Align-v0.3.Q4_K.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.Q4_K.gguf) | Q4_K | 4.58GB |\n| [Llama-3-8B-Magpie-Align-v0.3.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.Q4_K_M.gguf) | Q4_K_M | 4.58GB |\n| [Llama-3-8B-Magpie-Align-v0.3.Q4_1.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.Q4_1.gguf) | Q4_1 | 4.78GB |\n| [Llama-3-8B-Magpie-Align-v0.3.Q5_0.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.Q5_0.gguf) | Q5_0 | 5.21GB |\n| [Llama-3-8B-Magpie-Align-v0.3.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.Q5_K_S.gguf) | Q5_K_S | 5.21GB |\n| [Llama-3-8B-Magpie-Align-v0.3.Q5_K.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.Q5_K.gguf) | Q5_K | 5.34GB |\n| [Llama-3-8B-Magpie-Align-v0.3.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.Q5_K_M.gguf) | Q5_K_M | 5.34GB |\n| [Llama-3-8B-Magpie-Align-v0.3.Q5_1.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.Q5_1.gguf) | Q5_1 | 5.65GB |\n| [Llama-3-8B-Magpie-Align-v0.3.Q6_K.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.Q6_K.gguf) | Q6_K | 6.14GB |\n| [Llama-3-8B-Magpie-Align-v0.3.Q8_0.gguf](https://huggingface.co/RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf/blob/main/Llama-3-8B-Magpie-Align-v0.3.Q8_0.gguf) | Q8_0 | 7.95GB |\n\n\n\n\nOriginal model description:\n---\nlicense: llama3\nbase_model: Magpie-Align/Llama-3-8B-Magpie-Align-SFT-v0.3\ntags:\n- alignment-handbook\n- axolotl\n- trl\n- dpo\n- sft\n- generated_from_trainer\ndatasets:\n- princeton-nlp/llama3-ultrafeedback-armorm\n- Magpie-Align/Magpie-Pro-MT-300K-v0.1\n- Magpie-Align/Magpie-Reasoning-150K\n- Magpie-Align/Magpie-Qwen2-Pro-200K-Chinese\nmodel-index:\n- name: Magpie-Align/Llama-3-8B-Magpie-Align-v0.3\n results: []\nlanguage:\n- en\n- zh\n---\n\n\n## 🔥 Chat with Magpie [Here](https://huggingface.co/spaces/flydust/Chat-with-Magpie)!\n\n# 🐦 Llama-3-8B-Magpie-Align-v0.3\n\nProject Web: [https://magpie-align.github.io/](https://magpie-align.github.io/)\n\nOnline Model Demo: [https://huggingface.co/spaces/flydust/Chat-with-Magpie](https://huggingface.co/spaces/flydust/Chat-with-Magpie)\n\nArxiv Technical Report: [https://arxiv.org/abs/2406.08464](https://arxiv.org/abs/2406.08464)\n\nCodes: [https://github.com/magpie-align/magpie](https://github.com/magpie-align/magpie)\n\n## 🧐 About This Model\n\nThis model is an aligned version of [meta-llama/Meta-Llama-3-8B](https://huggingface.co/meta-llama/Meta-Llama-3-8B). We apply the following pipeline:\n\nWe first perform SFT using:\n* [Magpie-Align/Magpie-Pro-MT-300K-v0.1](https://huggingface.co/datasets/Magpie-Align/Magpie-Pro-MT-300K-v0.1)\n* [Magpie-Align/Magpie-Reasoning-150K](https://huggingface.co/datasets/Magpie-Align/Magpie-Reasoning-150K)\n* [Magpie-Align/Magpie-Qwen2-Pro-200K-Chinese](https://huggingface.co/datasets/Magpie-Align/Magpie-Qwen2-Pro-200K-Chinese)\n* **SFT Model Checkpoint:** [Magpie-Align/Llama-3-8B-Magpie-Align-SFT-v0.3](https://huggingface.co/Magpie-Align/Llama-3-8B-Magpie-Align-SFT-v0.3)\n\nWe then perform DPO on the [princeton-nlp/llama3-ultrafeedback-armorm](https://huggingface.co/datasets/princeton-nlp/llama3-ultrafeedback-armorm) dataset.\n\nThe overall performance is much better than the official Llama-3-8B-Instruct Model! Plus, it can answer Chinese queries frequently, thanks to our new [Chinese instruction dataset](https://huggingface.co/datasets/Magpie-Align/Magpie-Qwen2-Pro-200K-Chinese)!\n\n- **Alpaca Eval 2 (vs GPT-4-Turbo-1106): 48.58 (LC), 50.36 (WR)**\n- **Alpaca Eval 2 (vs Llama-3-8B-Instruct): 73.65 (LC), 75.81 (WR)**\n- **Arena Hard: 42.2**\n- **WildBench WB-Score: 41.1**\n- **Zero-Eval GSM: 50.0**\n\n## 🔥 Model Performance\n\nWe compare our Llama-3-8B-Magpie-Align with official and other **open-aligned LLMs** that have been fine-tuned from base models and have publicly released their training datasets. The results are as follows:\n\n```\n+---------------------------------------------+----------+------+------+--------------------+-------+-----------------------+-------+------------+\n| Aligned Model ID | MT-Bench | | | Alpaca Eval 2 | | Alpaca Eval 2 | | Arena Hard |\n| | | | | (GPT-4-Turbo-1106) | | (Llama-3-8B-Instruct) | | |\n+---------------------------------------------+----------+------+------+--------------------+-------+-----------------------+-------+------------+\n| | R1 | R2 | AVG | LC WR | WR | LC WR | WR | Score |\n+---------------------------------------------+----------+------+------+--------------------+-------+-----------------------+-------+------------+\n| meta-llama/Meta-Llama-3-8B-Instruct | 8.31 | 7.65 | 7.98 | 22.92 | 22.57 | 50 | 50 | 20.6 |\n+---------------------------------------------+----------+------+------+--------------------+-------+-----------------------+-------+------------+\n| princeton-nlp/Llama-3-Base-8B-SFT-DPO | 8.12 | 7.23 | 7.67 | 17.71 | 15.34 | 43.73 | 38.80 | 14.8 |\n+---------------------------------------------+----------+------+------+--------------------+-------+-----------------------+-------+------------+\n| NousResearch/Hermes-2-Pro-Llama-3-8B | 8.05 | 7.35 | 7.70 | 15.60 | 12.86 | 36.37 | 30.52 | 11.5 |\n+---------------------------------------------+----------+------+------+--------------------+-------+-----------------------+-------+------------+\n| allenai/llama-3-tulu-2-dpo-8b | 7.71 | 7.15 | 7.43 | 14.89 | 14.8 | 35.43 | 35.42 | 11.7 |\n+---------------------------------------------+----------+------+------+--------------------+-------+-----------------------+-------+------------+\n| cognitivecomputations/dolphin-2.9-llama3-8b | 7.97 | 6.98 | 7.47 | 12.50 | 8.79 | 32.67 | 22.80 | 8.2 |\n+---------------------------------------------+----------+------+------+--------------------+-------+-----------------------+-------+------------+\n| openchat/openchat-3.6-8b-20240522 | 7.83 | 7.23 | 7.53 | 17.70 | 12.53 | 41.30 | 30.79 | 6.7 |\n+---------------------------------------------+----------+------+------+--------------------+-------+-----------------------+-------+------------+\n| Magpie-Align/Llama-3-8B-Magpie-Align-v0.1 | 8.01 | 7.63 | 7.82 | 38.52 | 38.47 | 69.37 | 70.05 | 32.4 |\n+---------------------------------------------+----------+------+------+--------------------+-------+-----------------------+-------+------------+\n| Magpie-Align/Llama-3-8B-Magpie-Align-v0.2 | 7.81 | 7.64 | 7.73 | 49.86 | 51.98 | 75.17 | 78.20 | 37.5 |\n+---------------------------------------------+----------+------+------+--------------------+-------+-----------------------+-------+------------+\n| Magpie-Align/Llama-3-8B-Magpie-Align-v0.3 | 7.82 | 7.51 | 7.67 | 48.58 | 50.36 | 73.65 | 75.81 | 42.2 |\n+---------------------------------------------+----------+------+------+--------------------+-------+-----------------------+-------+------------+\n```\n\n## 👀 Other Information\n\n**License**: Please follow [Meta Llama 3 Community License](https://llama.meta.com/llama3/license).\n\n**Conversation Template**: Please use Llama 3 **official chat template** for the best performance.\n\n**How to use it?** Please check the official [Llama 3 repository](https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct#how-to-use) for detailed instructions. Simply replace the original `model_id` with `Magpie-Align/Llama-3-8B-Magpie-Align-SFT-v1.0`.\n\n\nThe detailed training pipeline is as follows.\n\n## Stage 1: Supervised Fine-tuning\n\nWe use [Axolotl](https://github.com/OpenAccess-AI-Collective/axolotl) for SFT.\n\n### Training hyperparameters\n\nThe following hyperparameters were used during training:\n- learning_rate: 2e-05\n- train_batch_size: 1\n- eval_batch_size: 1\n- seed: 42\n- distributed_type: multi-GPU\n- num_devices: 4\n- gradient_accumulation_steps: 32\n- total_train_batch_size: 128\n- total_eval_batch_size: 4\n- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08\n- lr_scheduler_type: cosine\n- lr_scheduler_warmup_steps: 98\n- num_epochs: 2\n\n### Training results\n\n| Training Loss | Epoch | Step | Validation Loss |\n|:-------------:|:------:|:----:|:---------------:|\n| 0.8616 | 0.0019 | 1 | 0.8870 |\n| 0.5554 | 0.2013 | 106 | 0.5568 |\n| 0.5067 | 0.4027 | 212 | 0.5065 |\n| 0.4728 | 0.6040 | 318 | 0.4865 |\n| 0.4681 | 0.8054 | 424 | 0.4740 |\n| 0.4563 | 1.0067 | 530 | 0.4662 |\n| 0.4115 | 1.1944 | 636 | 0.4642 |\n| 0.3993 | 1.3957 | 742 | 0.4620 |\n| 0.4048 | 1.5971 | 848 | 0.4613 |\n| 0.4167 | 1.7984 | 954 | 0.4611 |\n\n\n### Framework versions\n\n- Transformers 4.42.3\n- Pytorch 2.3.1+cu121\n- Datasets 2.19.1\n- Tokenizers 0.19.1\n\n*Internal name for identification: Llama-3-8B-Magpie-Mix-RC*. Please change the model name in the below Axolotl config.\n\n[<img src=\"https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png\" alt=\"Built with Axolotl\" width=\"200\" height=\"32\"/>](https://github.com/axolotl-ai-cloud/axolotl)\n<details><summary>See axolotl config</summary>\n\naxolotl version: `0.4.1`\n```yaml\nbase_model: meta-llama/Meta-Llama-3-8B\nmodel_type: LlamaForCausalLM\ntokenizer_type: AutoTokenizer\n\nload_in_8bit: false\nload_in_4bit: false\nstrict: false\n\ndatasets:\n - path: Magpie-Align/Magpie-Reasoning-150K\n type: sharegpt\n conversation: llama3\n - path: Magpie-Align/Magpie-Qwen2-Pro-200K-Chinese\n type: sharegpt\n conversation: llama3\n - path: Magpie-Align/Magpie-Pro-MT-300K-v0.1\n type: sharegpt\n conversation: llama3\ndataset_prepared_path: last_run_prepared\nval_set_size: 0.001\noutput_dir: axolotl_out/Llama-3-8B-Magpie-Mix-RC\n\nsequence_len: 8192\nsample_packing: true\neval_sample_packing: false\npad_to_sequence_len: true\n\nwandb_project: SynDa\nwandb_entity:\nwandb_watch:\nwandb_name: Llama-3-8B-Magpie-Mix-RC\nwandb_log_model:\nhub_model_id: Magpie-Align/Llama-3-8B-Magpie-Mix-RC\n\ngradient_accumulation_steps: 32\nmicro_batch_size: 1\nnum_epochs: 2\noptimizer: paged_adamw_8bit\nlr_scheduler: cosine\nlearning_rate: 2e-5\n\ntrain_on_inputs: false\ngroup_by_length: false\nbf16: auto\nfp16:\ntf32: false\n\ngradient_checkpointing: true\ngradient_checkpointing_kwargs:\n use_reentrant: false\nearly_stopping_patience:\nresume_from_checkpoint:\nlogging_steps: 1\nxformers_attention:\nflash_attention: true\n\nwarmup_ratio: 0.1\nevals_per_epoch: 5\neval_table_size:\nsaves_per_epoch: 1\ndebug:\ndeepspeed:\nweight_decay: 0.0\nfsdp:\nfsdp_config:\nspecial_tokens:\n pad_token: <|end_of_text|>\n\n```\n\n</details><br>\n\n## Stage 2: Direct Preference Optimization\n\n### Training hyperparameters\n\nThe following hyperparameters were used during training:\n- learning_rate: 7e-07\n- train_batch_size: 2\n- eval_batch_size: 4\n- seed: 42\n- distributed_type: multi-GPU\n- num_devices: 8\n- gradient_accumulation_steps: 8\n- total_train_batch_size: 128\n- total_eval_batch_size: 32\n- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08\n- lr_scheduler_type: cosine\n- lr_scheduler_warmup_ratio: 0.1\n- num_epochs: 1\n\n### Training results\n\n| Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen |\n|:-------------:|:------:|:----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:|\n| 0.5813 | 0.2137 | 100 | 0.5238 | -2.6816 | -3.4539 | 0.7298 | 0.7723 | -612.4234 | -541.2933 | -1.1244 | -1.1082 |\n| 0.5021 | 0.4275 | 200 | 0.4483 | -3.4053 | -4.4858 | 0.8024 | 1.0805 | -715.6146 | -613.6641 | -1.1035 | -1.0844 |\n| 0.3802 | 0.6412 | 300 | 0.4069 | -3.7974 | -5.1705 | 0.8427 | 1.3731 | -784.0882 | -652.8716 | -1.1310 | -1.1105 |\n| 0.3827 | 0.8549 | 400 | 0.3872 | -4.3693 | -5.9670 | 0.8710 | 1.5976 | -863.7308 | -710.0647 | -1.1495 | -1.1283 |\n\n\n### Framework versions\n\n- Transformers 4.42.3\n- Pytorch 2.3.1+cu121\n- Datasets 2.20.0\n- Tokenizers 0.19.1\n\n<details><summary>See alignment handbook config</summary>\n\n```yaml\n# Customized Configs\nmodel_name_or_path: Magpie-Align/Llama-3-8B-Magpie-Align-SFT-v0.3\nhub_model_id: Magpie-Align/Llama-3-8B-Magpie-Align-v0.3-RC\noutput_dir: alignment_handbook_out/Llama-3-8B-Magpie-Align-v0.3-RC\nrun_name: Llama-3-8B-Magpie-Align-v0.3-RC\n\ndataset_mixer:\n princeton-nlp/llama3-ultrafeedback-armorm: 1.0\ndataset_splits:\n- train\n- test\npreprocessing_num_workers: 24\n\n# DPOTrainer arguments\nbf16: true\nbeta: 0.01\nlearning_rate: 0.7e-6\ngradient_accumulation_steps: 8\nper_device_train_batch_size: 2\nper_device_eval_batch_size: 4\nnum_train_epochs: 1\nmax_length: 2048\nmax_prompt_length: 1800\nwarmup_ratio: 0.1\nlogging_steps: 1\nlr_scheduler_type: cosine\noptim: adamw_torch\n\ntorch_dtype: null\nuse_flash_attention_2: true\ndo_eval: true\nevaluation_strategy: steps\neval_steps: 100\ngradient_checkpointing: true\ngradient_checkpointing_kwargs:\n use_reentrant: False\nlog_level: info\npush_to_hub: true\nsave_strategy: \"steps\"\nsave_steps: 100\nsave_total_limit: 1\nseed: 42\nreport_to:\n- wandb\n```\n</details><be>\n\n## Downstream Performance (Lighteval)\n| Datasets | Llama-3-8B-Magpie-Align-v0.3 |\n| :--- | :---: |\n| MMLU (5) | 65.69 | \n| ARC (25) | 63.23 |\n| HellaSwag (25) | 82.15 |\n| TruthfulQA (0) | 60.97 |\n| Winogrande (5) | 73.64 |\n\n## Paper Abstract\n\n<details><summary>Click Here</summary>\nHigh-quality instruction data is critical for aligning large language models (LLMs). Although some models, such as Llama-3-Instruct, have open weights, their alignment data remain private, which hinders the democratization of AI. High human labor costs and a limited, predefined scope for prompting prevent existing open-source data creation methods from scaling effectively, potentially limiting the diversity and quality of public alignment datasets. Is it possible to synthesize high-quality instruction data at scale by extracting it directly from an aligned LLM? We present a self-synthesis method for generating large-scale alignment data named Magpie. Our key observation is that aligned LLMs like Llama-3-Instruct can generate a user query when we input only the left-side templates up to the position reserved for user messages, thanks to their auto-regressive nature. We use this method to prompt Llama-3-Instruct and generate 4 million instructions along with their corresponding responses. We perform a comprehensive analysis of the extracted data and select 300K high-quality instances. To compare Magpie data with other public instruction datasets, we fine-tune Llama-3-8B-Base with each dataset and evaluate the performance of the fine-tuned models. Our results indicate that in some tasks, models fine-tuned with Magpie perform comparably to the official Llama-3-8B-Instruct, despite the latter being enhanced with 10 million data points through supervised fine-tuning (SFT) and subsequent feedback learning. We also show that using Magpie solely for SFT can surpass the performance of previous public datasets utilized for both SFT and preference optimization, such as direct preference optimization with UltraFeedback. This advantage is evident on alignment benchmarks such as AlpacaEval, ArenaHard, and WildBench.\n</details><be>\n\n## 📚 Citation\n\nIf you find the model, data, or code useful, please cite our paper:\n```\n@article{xu2024magpie,\n\ttitle={Magpie: Alignment Data Synthesis from Scratch by Prompting Aligned LLMs with Nothing}, \n\tauthor={Zhangchen Xu and Fengqing Jiang and Luyao Niu and Yuntian Deng and Radha Poovendran and Yejin Choi and Bill Yuchen Lin},\n\tyear={2024},\n\teprint={2406.08464},\n\tarchivePrefix={arXiv},\n\tprimaryClass={cs.CL}\n}\n```\n\nPlease also cite the creators of preference datasets:\n\nSimPO paper:\n```\n@article{meng2024simpo,\n title={{SimPO}: Simple preference optimization with a reference-free reward},\n author={Meng, Yu and Xia, Mengzhou and Chen, Danqi},\n journal={arXiv preprint arXiv:2405.14734},\n year={2024}\n}\n```\n\nUltraFeedback paper:\n```\n@article{cui2023ultrafeedback,\n title={{UltraFeedback}: Boosting language models with high-quality feedback},\n author={Cui, Ganqu and Yuan, Lifan and Ding, Ning and Yao, Guanming and Zhu, Wei and Ni, Yuan and Xie, Guotong and Liu, Zhiyuan and Sun, Maosong},\n journal={arXiv preprint arXiv:2310.01377},\n year={2023}\n}\n```\n\nArmoRM paper:\n```\n@article{wang2024interpretable,\n title={Interpretable Preferences via Multi-Objective Reward Modeling and Mixture-of-Experts},\n author={Wang, Haoxiang and Xiong, Wei and Xie, Tengyang and Zhao, Han and Zhang, Tong},\n journal={arXiv preprint arXiv:2406.12845},\n year={2024}\n}\n```\n\n**Questions?** Please contact [Zhangchen](https://zhangchenxu.com/) by email.\n\n",
"related_quantizations": []
},
"tags": [
"gguf",
"arxiv:2406.08464",
"arxiv:2405.14734",
"arxiv:2310.01377",
"arxiv:2406.12845",
"endpoints_compatible",
"region:us",
"conversational"
],
"likes": 0,
"downloads": 109,
"gated": false,
"private": false,
"last_modified": "2024-08-23T02:57:28.000Z",
"created_at": "2024-08-22T23:48:53.000Z",
"pipeline_tag": "",
"library_name": ""
}
Source payload excerpt (from Hugging Face API)
{
"_id": "66c7ce651261763f9fa6829d",
"id": "RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf",
"modelId": "RichardErkhov/Magpie-Align_-_Llama-3-8B-Magpie-Align-v0.3-gguf",
"sha": "3a6ec862772e44e214b80f4c17c854ff62499aee",
"createdAt": "2024-08-22T23:48:53.000Z",
"lastModified": "2024-08-23T02:57:28.000Z",
"author": "RichardErkhov",
"downloads": 109,
"likes": 0,
"gated": false,
"private": false,
"pipeline_tag": "",
"library_name": "",
"siblings_count": 24
}