GraySoft
Projects Models About FAQ Contact Download guIDE →
Model Intelligence Sheet

richarderkhov/allenai_-_tulu-2-dpo-13b-gguf overview

Tulu is a series of language models that are trained to act as helpful assistants. Tulu V2 DPO 13B is a fine-tuned version of Llama 2 that was trained on on a mix of publicly available, synthetic and human datasets using Direct Preference Optimization (DPO). This model is a strong alternative to Llama 2 13b Chat. For more details, read the paper: Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2 .

ggufarxiv:2305.18290arxiv:2311.10702endpoints_compatibleregion:usconversational
richarderkhov/allenai_-_tulu-2-dpo-13b-gguf visual
Downloads
109
Likes
0
Pipeline
Library
Visibility
Public
Access
Open

Repository Files & Downloads

22 files detected
Direct downloads for all repository files
FileTypeQuantizationSizeLink
tulu-2-dpo-13b.IQ3_M.gguf GGUF IQ3_M 5.57 GB Download
tulu-2-dpo-13b.IQ3_S.gguf GGUF IQ3_S 5.27 GB Download
tulu-2-dpo-13b.IQ3_XS.gguf GGUF IQ3_XS 4.99 GB Download
tulu-2-dpo-13b.IQ4_NL.gguf GGUF IQ4_NL 6.90 GB Download
tulu-2-dpo-13b.IQ4_XS.gguf GGUF IQ4_XS 6.54 GB Download
tulu-2-dpo-13b.Q2_K.gguf GGUF Q2_K 4.52 GB Download
tulu-2-dpo-13b.Q3_K.gguf GGUF Q3_K 5.90 GB Download
tulu-2-dpo-13b.Q3_K_L.gguf GGUF Q3_K_L 6.45 GB Download
tulu-2-dpo-13b.Q3_K_M.gguf GGUF Q3_K_M 5.90 GB Download
tulu-2-dpo-13b.Q3_K_S.gguf GGUF Q3_K_S 5.27 GB Download
tulu-2-dpo-13b.Q4_0.gguf GGUF 6.86 GB Download
tulu-2-dpo-13b.Q4_1.gguf GGUF 7.61 GB Download
tulu-2-dpo-13b.Q4_K.gguf GGUF Q4_K 7.33 GB Download
tulu-2-dpo-13b.Q4_K_M.gguf GGUF Q4_K_M 7.33 GB Download
tulu-2-dpo-13b.Q4_K_S.gguf GGUF Q4_K_S 6.91 GB Download
tulu-2-dpo-13b.Q5_0.gguf GGUF 8.36 GB Download
tulu-2-dpo-13b.Q5_1.gguf GGUF 9.10 GB Download
tulu-2-dpo-13b.Q5_K.gguf GGUF Q5_K 8.60 GB Download
tulu-2-dpo-13b.Q5_K_M.gguf GGUF Q5_K_M 8.60 GB Download
tulu-2-dpo-13b.Q5_K_S.gguf GGUF Q5_K_S 8.36 GB Download
tulu-2-dpo-13b.Q6_K.gguf GGUF Q6_K 9.95 GB Download
tulu-2-dpo-13b.Q8_0.gguf GGUF 12.88 GB Download

Model Details Live

Model Slug
richarderkhov/allenai_-_tulu-2-dpo-13b-gguf
Author
RichardErkhov
Pipeline Task
Library
Created
2024-07-25
Last Modified
2024-07-26
Gated
No
Private
No
HF SHA
33a732044c70840c52dc7bf4cb783236e29ba471
License
Unknown
Language
Unknown
Base Model
Unknown

Metadata Inspector

Normalized metadata (stored in metadata_json)
{
  "metadata": {},
  "card_data": {
    "frontmatter": {},
    "hero_image_url": "https://huggingface.co/datasets/allenai/blog-images/resolve/main/tulu-v2/Tulu%20V2%20banner.png",
    "summary": "Tulu is a series of language models that are trained to act as helpful assistants. Tulu V2 DPO 13B is a fine-tuned version of Llama 2 that was trained on on a mix of publicly available, synthetic and human datasets using Direct Preference Optimization (DPO). This model is a strong alternative to Llama 2 13b Chat. For more details, read the paper: Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2 .",
    "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\ntulu-2-dpo-13b - GGUF\n- Model creator: https://huggingface.co/allenai/\n- Original model: https://huggingface.co/allenai/tulu-2-dpo-13b/\n\n\n| Name | Quant method | Size |\n| ---- | ---- | ---- |\n| [tulu-2-dpo-13b.Q2_K.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.Q2_K.gguf) | Q2_K | 4.52GB |\n| [tulu-2-dpo-13b.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.IQ3_XS.gguf) | IQ3_XS | 4.99GB |\n| [tulu-2-dpo-13b.IQ3_S.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.IQ3_S.gguf) | IQ3_S | 5.27GB |\n| [tulu-2-dpo-13b.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.Q3_K_S.gguf) | Q3_K_S | 5.27GB |\n| [tulu-2-dpo-13b.IQ3_M.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.IQ3_M.gguf) | IQ3_M | 5.57GB |\n| [tulu-2-dpo-13b.Q3_K.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.Q3_K.gguf) | Q3_K | 5.9GB |\n| [tulu-2-dpo-13b.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.Q3_K_M.gguf) | Q3_K_M | 5.9GB |\n| [tulu-2-dpo-13b.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.Q3_K_L.gguf) | Q3_K_L | 6.45GB |\n| [tulu-2-dpo-13b.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.IQ4_XS.gguf) | IQ4_XS | 6.54GB |\n| [tulu-2-dpo-13b.Q4_0.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.Q4_0.gguf) | Q4_0 | 6.86GB |\n| [tulu-2-dpo-13b.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.IQ4_NL.gguf) | IQ4_NL | 6.9GB |\n| [tulu-2-dpo-13b.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.Q4_K_S.gguf) | Q4_K_S | 6.91GB |\n| [tulu-2-dpo-13b.Q4_K.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.Q4_K.gguf) | Q4_K | 7.33GB |\n| [tulu-2-dpo-13b.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.Q4_K_M.gguf) | Q4_K_M | 7.33GB |\n| [tulu-2-dpo-13b.Q4_1.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.Q4_1.gguf) | Q4_1 | 7.61GB |\n| [tulu-2-dpo-13b.Q5_0.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.Q5_0.gguf) | Q5_0 | 8.36GB |\n| [tulu-2-dpo-13b.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.Q5_K_S.gguf) | Q5_K_S | 8.36GB |\n| [tulu-2-dpo-13b.Q5_K.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.Q5_K.gguf) | Q5_K | 8.6GB |\n| [tulu-2-dpo-13b.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.Q5_K_M.gguf) | Q5_K_M | 8.6GB |\n| [tulu-2-dpo-13b.Q5_1.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.Q5_1.gguf) | Q5_1 | 9.1GB |\n| [tulu-2-dpo-13b.Q6_K.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.Q6_K.gguf) | Q6_K | 9.95GB |\n| [tulu-2-dpo-13b.Q8_0.gguf](https://huggingface.co/RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf/blob/main/tulu-2-dpo-13b.Q8_0.gguf) | Q8_0 | 12.88GB |\n\n\n\n\nOriginal model description:\n---\nmodel-index:\n- name: tulu-2-dpo-13b\n  results: []\ndatasets:\n- HuggingFaceH4/ultrafeedback_binarized\n- allenai/tulu-v2-sft-mixture\nlanguage:\n- en\nbase_model: meta-llama/Llama-2-13b-hf\nlicense: other\nlicense_name: ai2-impact-license-low-risk\nlicense_link: https://allenai.org/impact-license\n---\n\n\n<img src=\"https://huggingface.co/datasets/allenai/blog-images/resolve/main/tulu-v2/Tulu%20V2%20banner.png\" alt=\"TuluV2 banner\" width=\"800\" style=\"margin-left:'auto' margin-right:'auto' display:'block'\"/>\n\n\n# Model Card for Tulu V2 DPO 13B\n\nTulu is a series of language models that are trained to act as helpful assistants. \nTulu V2 DPO 13B is a fine-tuned version of Llama 2 that was trained on on a mix of publicly available, synthetic and human datasets using [Direct Preference Optimization (DPO)](https://arxiv.org/abs/2305.18290). \nThis model is a strong alternative to Llama 2 13b Chat.\n\nFor more details, read the paper: [Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2\n](https://arxiv.org/abs/2311.10702).\n\n\n## Model description\n\n- **Model type:** A model belonging to a suite of instruction and RLHF tuned chat models on a mix of publicly available, synthetic and human-created datasets.\n- **Language(s) (NLP):** Primarily English\n- **License:** [AI2 ImpACT](https://allenai.org/impact-license) Low-risk license.\n- **Finetuned from model:** [meta-llama/Llama-2-13b-hf](https://huggingface.co/meta-llama/Llama-2-13b-hf)\n\n### Model Sources\n\n- **Repository:** https://github.com/allenai/https://github.com/allenai/open-instruct\n- **DPO Recipe:** The DPO recipe is from the [Zephyr Beta](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta) model\n- **Model Family:** Other models and the dataset are found in the [Tulu V2 collection](https://huggingface.co/collections/allenai/tulu-v2-suite-6551b56e743e6349aab45101).\n\n## Performance\n\n| Model | Size | Alignment | MT-Bench (score) | AlpacaEval (win rate %) |\n|-------------|-----|----|---------------|--------------|\n| **Tulu-v2-7b** 🐪 | **7B** | **SFT** | **6.30** | **73.9** |\n| **Tulu-v2-dpo-7b** 🐪 | **7B** | **DPO** | **6.29** | **85.1** |\n| **Tulu-v2-13b** 🐪 | **13B** | **SFT** | **6.70** | **78.9** |\n| **Tulu-v2-dpo-13b** 🐪 | **13B** | **DPO** | **7.00** | **89.5** |\n| **Tulu-v2-70b** 🐪 | **70B** | **SFT** | **7.49** | **86.6** |\n| **Tulu-v2-dpo-70b** 🐪 | **70B** | **DPO** | **7.89** | **95.1** |\n\n## Input Format\n\nThe model is trained to use the following format (note the newlines):\n```\n<|user|>\nYour message here!\n<|assistant|>\n```\n\nFor best results, format all inputs in this manner. **Make sure to include a newline after `<|assistant|>`, this can affect generation quality quite a bit.**\n\n\n## Intended uses & limitations\n\nThe model was initially fine-tuned on a filtered and preprocessed of the [Tulu V2 mix dataset](https://huggingface.co/datasets/allenai/tulu-v2-sft-mixture), which contains a diverse range of human created instructions and synthetic dialogues generated primarily by other LLMs. \nWe then further aligned the model with a [Jax DPO trainer](https://github.com/hamishivi/EasyLM/blob/main/EasyLM/models/llama/llama_train_dpo.py) built on [EasyLM](https://github.com/young-geng/EasyLM) on the [openbmb/UltraFeedback](https://huggingface.co/datasets/openbmb/UltraFeedback) dataset, which contains 64k prompts and model completions that are ranked by GPT-4. \n\n\n<!--  You can find the datasets used for training Tulu V2 [here]() \n\nHere's how you can run the model using the `pipeline()` function from 🤗 Transformers:\n\n```python\n# Install transformers from source - only needed for versions <= v4.34\n# pip install git+https://github.com/huggingface/transformers.git\n# pip install accelerate\n\nimport torch\nfrom transformers import pipeline\n\npipe = pipeline(\"text-generation\", model=\"HuggingFaceH4/tulu-2-dpo-70b\", torch_dtype=torch.bfloat16, device_map=\"auto\")\n\n# We use the tokenizer's chat template to format each message - see https://huggingface.co/docs/transformers/main/en/chat_templating\nmessages = [\n    {\n        \"role\": \"system\",\n        \"content\": \"You are a friendly chatbot who always responds in the style of a pirate\",\n    },\n    {\"role\": \"user\", \"content\": \"How many helicopters can a human eat in one sitting?\"},\n]\nprompt = pipe.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)\noutputs = pipe(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)\nprint(outputs[0][\"generated_text\"])\n# <|system|>\n# You are a friendly chatbot who always responds in the style of a pirate.</s>\n# <|user|>\n# How many helicopters can a human eat in one sitting?</s>\n# <|assistant|>\n# Ah, me hearty matey! But yer question be a puzzler! A human cannot eat a helicopter in one sitting, as helicopters are not edible. They be made of metal, plastic, and other materials, not food!\n```-->\n\n## Bias, Risks, and Limitations\n\n<!-- This section is meant to convey both technical and sociotechnical limitations. -->\n\nThe Tulu models have not been aligned to generate safe completions within the RLHF phase or deployed with in-the-loop filtering of responses like ChatGPT, so the model can produce problematic outputs (especially when prompted to do so). \nIt is also unknown what the size and composition of the corpus was used to train the base Llama 2 models, however it is likely to have included a mix of Web data and technical sources like books and code. See the [Falcon 180B model card](https://huggingface.co/tiiuae/falcon-180B#training-data) for an example of this.\n\n\n### Training hyperparameters\n\nThe following hyperparameters were used during DPO training:\n- learning_rate: 5e-07\n- total_train_batch_size: 32\n- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08\n- lr_scheduler_type: linear\n- lr_scheduler_warmup_ratio: 0.1\n- num_epochs: 3.0\n\n\n## Citation\n\nIf you find Tulu 2 is useful in your work, please cite it with:\n\n```\n@misc{ivison2023camels,\n      title={Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2}, \n      author={Hamish Ivison and Yizhong Wang and Valentina Pyatkin and Nathan Lambert and Matthew Peters and Pradeep Dasigi and Joel Jang and David Wadden and Noah A. Smith and Iz Beltagy and Hannaneh Hajishirzi},\n      year={2023},\n      eprint={2311.10702},\n      archivePrefix={arXiv},\n      primaryClass={cs.CL}\n}\n```\n\n*Model card adapted from [Zephyr Beta](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta/blob/main/README.md)*\n\n",
    "related_quantizations": []
  },
  "tags": [
    "gguf",
    "arxiv:2305.18290",
    "arxiv:2311.10702",
    "endpoints_compatible",
    "region:us",
    "conversational"
  ],
  "likes": 0,
  "downloads": 109,
  "gated": false,
  "private": false,
  "last_modified": "2024-07-26T08:29:10.000Z",
  "created_at": "2024-07-25T20:54:29.000Z",
  "pipeline_tag": "",
  "library_name": ""
}
Source payload excerpt (from Hugging Face API)
{
  "_id": "66a2bb8598016fc5e1539bf4",
  "id": "RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf",
  "modelId": "RichardErkhov/allenai_-_tulu-2-dpo-13b-gguf",
  "sha": "33a732044c70840c52dc7bf4cb783236e29ba471",
  "createdAt": "2024-07-25T20:54:29.000Z",
  "lastModified": "2024-07-26T08:29:10.000Z",
  "author": "RichardErkhov",
  "downloads": 109,
  "likes": 0,
  "gated": false,
  "private": false,
  "pipeline_tag": "",
  "library_name": "",
  "siblings_count": 24
}