Model Intelligence Sheet
richarderkhov/columbia-nlp_-_lion-llama-3-8b-dpo-v1.0-gguf overview
The LION-series are trained using an empirically optimized pipeline that consists of three stages: SFT, DPO, and online preference learning (online DPO). We find simple techniques such as sequence packing, loss masking in SFT, increasing the preference dataset size in DPO, and online DPO training can significantly improve the performance of language models. Our best models (the LION-series) exceed the performance of the official instruct models tuned with closed-source data and algorithms. For training datasets, code, and evaluation scripts, please refer to our paper and codebase.
Downloads
212
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 |
|---|---|---|---|---|
| LION-LLaMA-3-8b-dpo-v1.0.IQ3_M.gguf | GGUF | IQ3_M | 3.52 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.IQ3_S.gguf | GGUF | IQ3_S | 3.43 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.IQ3_XS.gguf | GGUF | IQ3_XS | 3.28 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.IQ4_NL.gguf | GGUF | IQ4_NL | 4.38 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.IQ4_XS.gguf | GGUF | IQ4_XS | 4.18 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.Q2_K.gguf | GGUF | Q2_K | 2.96 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.Q3_K.gguf | GGUF | Q3_K | 3.74 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.Q3_K_L.gguf | GGUF | Q3_K_L | 4.03 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.Q3_K_M.gguf | GGUF | Q3_K_M | 3.74 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.Q3_K_S.gguf | GGUF | Q3_K_S | 3.41 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.Q4_0.gguf | GGUF | — | 4.34 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.Q4_1.gguf | GGUF | — | 4.78 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.Q4_K.gguf | GGUF | Q4_K | 4.58 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.Q4_K_M.gguf | GGUF | Q4_K_M | 4.58 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.Q4_K_S.gguf | GGUF | Q4_K_S | 4.37 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.Q5_0.gguf | GGUF | — | 5.21 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.Q5_1.gguf | GGUF | — | 5.65 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.Q5_K.gguf | GGUF | Q5_K | 5.34 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.Q5_K_M.gguf | GGUF | Q5_K_M | 5.34 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.Q5_K_S.gguf | GGUF | Q5_K_S | 5.21 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.Q6_K.gguf | GGUF | Q6_K | 6.14 GB | Download |
| LION-LLaMA-3-8b-dpo-v1.0.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": "",
"summary": "The LION-series are trained using an **empirically optimized pipeline** that consists of three stages: SFT, DPO, and online preference learning (online DPO). We find simple techniques such as sequence packing, loss masking in SFT, increasing the preference dataset size in DPO, and online DPO training can significantly improve the performance of language models. Our best models (the LION-series) **exceed the performance of the official instruct models** tuned with closed-source data and algorithms. For training datasets, code, and evaluation scripts, please refer to our paper and codebase.",
"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\nLION-LLaMA-3-8b-dpo-v1.0 - GGUF\n- Model creator: https://huggingface.co/Columbia-NLP/\n- Original model: https://huggingface.co/Columbia-NLP/LION-LLaMA-3-8b-dpo-v1.0/\n\n\n| Name | Quant method | Size |\n| ---- | ---- | ---- |\n| [LION-LLaMA-3-8b-dpo-v1.0.Q2_K.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.Q2_K.gguf) | Q2_K | 2.96GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.IQ3_XS.gguf) | IQ3_XS | 3.28GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.IQ3_S.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.IQ3_S.gguf) | IQ3_S | 3.43GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.Q3_K_S.gguf) | Q3_K_S | 3.41GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.IQ3_M.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.IQ3_M.gguf) | IQ3_M | 3.52GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.Q3_K.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.Q3_K.gguf) | Q3_K | 3.74GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.Q3_K_M.gguf) | Q3_K_M | 3.74GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.Q3_K_L.gguf) | Q3_K_L | 4.03GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.IQ4_XS.gguf) | IQ4_XS | 4.18GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.Q4_0.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.Q4_0.gguf) | Q4_0 | 4.34GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.IQ4_NL.gguf) | IQ4_NL | 4.38GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.Q4_K_S.gguf) | Q4_K_S | 4.37GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.Q4_K.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.Q4_K.gguf) | Q4_K | 4.58GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.Q4_K_M.gguf) | Q4_K_M | 4.58GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.Q4_1.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.Q4_1.gguf) | Q4_1 | 4.78GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.Q5_0.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.Q5_0.gguf) | Q5_0 | 5.21GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.Q5_K_S.gguf) | Q5_K_S | 5.21GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.Q5_K.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.Q5_K.gguf) | Q5_K | 5.34GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.Q5_K_M.gguf) | Q5_K_M | 5.34GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.Q5_1.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.Q5_1.gguf) | Q5_1 | 5.65GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.Q6_K.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.Q6_K.gguf) | Q6_K | 6.14GB |\n| [LION-LLaMA-3-8b-dpo-v1.0.Q8_0.gguf](https://huggingface.co/RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf/blob/main/LION-LLaMA-3-8b-dpo-v1.0.Q8_0.gguf) | Q8_0 | 7.95GB |\n\n\n\n\nOriginal model description:\n---\nlibrary_name: transformers\ntags: []\n---\n\n# Model Card for LION-LLaMA-3-8b-dpo-v1.0\n\nThe LION-series are trained using an **empirically optimized pipeline** that consists of three stages: SFT, DPO, and online preference learning (online DPO). We find simple techniques such as sequence packing, loss masking in SFT, increasing the preference dataset size in DPO, and online DPO training can significantly improve the performance of language models. Our best models (the LION-series) **exceed the performance of the official instruct models** tuned with closed-source data and algorithms.\n\nFor training datasets, code, and evaluation scripts, please refer to our [paper](https://arxiv.org/abs/2407.06542) and [codebase](https://github.com/Columbia-NLP-Lab/LionAlignment).\n\n\n## Model description\n\nThis model is finetuned from [`Columbia-NLP/LION-LLaMA-3-8b-sft-v1.0`](https://huggingface.co/Columbia-NLP/LION-LLaMA-3-8b-sft-v1.0) using DPO from the LION pipeline.\n\n- **Model type:** [`meta-llama/Meta-Llama-3-8B`](https://huggingface.co/meta-llama/Meta-Llama-3-8B)\n- **Language(s) (NLP):** Primarily English\n- **License:** LLaMa-3 Terms of Use\n- **Finetuned from model:** [`Columbia-NLP/LION-LLaMA-3-8b-sft-v1.0`](https://huggingface.co/Columbia-NLP/LION-LLaMA-3-8b-sft-v1.0)\n\n\n## Performance\n\n| Model | Method | Size | Arena-Hard | AlpacaEval-2 | MT-Bench | OpenLLM |\n|-------------|--------|------|------:|------:|---------:|-------:|\n|[LLaMA-3-8b](https://huggingface.co/meta-llama/Meta-Llama-3-8B) | - | 8B | - | - | - | 63.05 |\n|[LLaMA-3-8b-it](https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct) | SFT+RS+DPO+PPO | 8B | 20.6 | 22.9 | 8.00 | 68.28 |\n|[LION-LLaMA-3-8b-sft-v1.0 (ours)](https://huggingface.co/Columbia-NLP/LION-LLaMA-3-8b-sft-v1.0) | SFT | 8B | 11.3 | 17.9 | 7.58 | 68.71 |\n|⮕ [LION-LLaMA-3-8b-dpo-v1.0 (ours)](https://huggingface.co/Columbia-NLP/LION-LLaMA-3-8b-dpo-v1.0) | SFT+DPO | 8B | 19.1 | 21.8 | 8.12 | 71.28 |\n|[LION-LLaMA-3-8b-odpo-v1.0 (ours)](https://huggingface.co/Columbia-NLP/LION-LLaMA-3-8b-odpo-v1.0) | SFT+DPO+ODPO | 8B | 22.0 | 26.8 | 8.19 | 71.41 |\n\n\n## Intended uses\n\nTo ensure reproducibility, please use the following chat templates:\n\n```python\nimport torch\nfrom transformers import pipeline\n\npipe = pipeline(\n \"text-generation\",\n model=\"Columbia-NLP/LION-LLaMA-3-8b-dpo-v1.0\",\n device_map=\"auto\",\n torch_dtype=torch.bfloat16,\n)\nmessages = [\n # no system message for LLaMa\n {\n \"role\": \"user\", \n \"content\": \"Write a short paragraph where every sentence starts with the letter A.\"\n },\n]\noutputs = pipe(\n messages,\n max_new_tokens=128,\n do_sample=False,\n stop_sequence=\"<|im_end|>\",\n)\nprint(outputs[0][\"generated_text\"][-1][\"content\"])\n# Astonishingly, all animals adore appealing, aromatic apples.\n# An array of apples always attracts adventurous ants.\n# After analyzing, ants ascertain the apple's accessibility.\n# Anticipation amplifies as they approach, anticipating an appetizing treat.\n```\n\nto inspect the chat template/manually do generation:\n\n```python\ntokenizer = AutoTokenizer.from_pretrained(\"Columbia-NLP/LION-LLaMA-3-8b-dpo-v1.0\")\nprompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)\nprint(prompt)\n# tokenize prompt and use model.generate\n```\n\n\n### Training details\n\nPlease refer to our [paper](https://arxiv.org/abs/2407.06542) and [codebase](https://github.com/Columbia-NLP-Lab/LionAlignment).\n\n\n## Citation Information\n\nIf you find this model useful in your work, please consider citing our paper:\n\n```bash\n@misc{yu2024lionsempiricallyoptimizedapproach,\n title={LIONs: An Empirically Optimized Approach to Align Language Models}, \n author={Xiao Yu and Qingyang Wu and Yu Li and Zhou Yu},\n year={2024},\n eprint={2407.06542},\n archivePrefix={arXiv},\n primaryClass={cs.CL},\n url={https://arxiv.org/abs/2407.06542}, \n}\n```\n\n## Acknowledgements\n\nWe thank the Columbia-NLP group and [articulate.ai](https://www.articulateai.com/) for providing OpenAI API credits and computational resources to conduct our experiments.\n\n",
"related_quantizations": []
},
"tags": [
"gguf",
"arxiv:2407.06542",
"endpoints_compatible",
"region:us",
"conversational"
],
"likes": 0,
"downloads": 212,
"gated": false,
"private": false,
"last_modified": "2024-08-23T20:32:46.000Z",
"created_at": "2024-08-23T17:30:27.000Z",
"pipeline_tag": "",
"library_name": ""
}
Source payload excerpt (from Hugging Face API)
{
"_id": "66c8c733fee3c0d6eec28844",
"id": "RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf",
"modelId": "RichardErkhov/Columbia-NLP_-_LION-LLaMA-3-8b-dpo-v1.0-gguf",
"sha": "5064bd9d5f30526854bc3b23e6c55ee0099eeac1",
"createdAt": "2024-08-23T17:30:27.000Z",
"lastModified": "2024-08-23T20:32:46.000Z",
"author": "RichardErkhov",
"downloads": 212,
"likes": 0,
"gated": false,
"private": false,
"pipeline_tag": "",
"library_name": "",
"siblings_count": 24
}