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

richarderkhov/stabilityai_-_stablelm-2-1_6b-gguf overview

Please note: For commercial use, please refer to https://stability.ai/license

ggufarxiv:2307.09288arxiv:2104.09864arxiv:2204.06745arxiv:1607.06450arxiv:1910.07467arxiv:2309.16609arxiv:2305.14201arxiv:2101.00027arxiv:2305.06161arxiv:2309.09400arxiv:2206.11147arxiv:1910.02054arxiv:2402.17834endpoints_compatibleregion:us
richarderkhov/stabilityai_-_stablelm-2-1_6b-gguf visual
Downloads
1,175
Likes
0
Pipeline
Library
Visibility
Public
Access
Open

Repository Files & Downloads

19 files detected
Direct downloads for all repository files
FileTypeQuantizationSizeLink
stablelm-2-1_6b.IQ4_NL.gguf GGUF IQ4_NL 941.38 MB Download
stablelm-2-1_6b.IQ4_XS.gguf GGUF IQ4_XS 899.54 MB Download
stablelm-2-1_6b.Q2_K.gguf GGUF Q2_K 662.00 MB Download
stablelm-2-1_6b.Q3_K.gguf GGUF Q3_K 817.97 MB Download
stablelm-2-1_6b.Q3_K_L.gguf GGUF Q3_K_L 872.60 MB Download
stablelm-2-1_6b.Q3_K_M.gguf GGUF Q3_K_M 817.97 MB Download
stablelm-2-1_6b.Q3_K_S.gguf GGUF Q3_K_S 755.04 MB Download
stablelm-2-1_6b.Q4_0.gguf GGUF 937.25 MB Download
stablelm-2-1_6b.Q4_1.gguf GGUF 1023.00 MB Download
stablelm-2-1_6b.Q4_K.gguf GGUF Q4_K 983.66 MB Download
stablelm-2-1_6b.Q4_K_M.gguf GGUF Q4_K_M 983.66 MB Download
stablelm-2-1_6b.Q4_K_S.gguf GGUF Q4_K_S 943.38 MB Download
stablelm-2-1_6b.Q5_0.gguf GGUF 1.08 GB Download
stablelm-2-1_6b.Q5_1.gguf GGUF 1.17 GB Download
stablelm-2-1_6b.Q5_K.gguf GGUF Q5_K 1.11 GB Download
stablelm-2-1_6b.Q5_K_M.gguf GGUF Q5_K_M 1.11 GB Download
stablelm-2-1_6b.Q5_K_S.gguf GGUF Q5_K_S 1.08 GB Download
stablelm-2-1_6b.Q6_K.gguf GGUF Q6_K 1.26 GB Download
stablelm-2-1_6b.Q8_0.gguf GGUF 1.63 GB Download

Model Details Live

Model Slug
richarderkhov/stabilityai_-_stablelm-2-1_6b-gguf
Author
RichardErkhov
Pipeline Task
Library
Created
2024-11-04
Last Modified
2024-11-04
Gated
No
Private
No
HF SHA
1d35b5adaf4c96b95d6236a5acef0597a692c605
License
Unknown
Language
Unknown
Base Model
Unknown

Metadata Inspector

Normalized metadata (stored in metadata_json)
{
  "metadata": {},
  "card_data": {
    "frontmatter": {},
    "hero_image_url": "",
    "summary": "Please note: For commercial use, please refer to https://stability.ai/license",
    "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\nstablelm-2-1_6b - GGUF\n- Model creator: https://huggingface.co/stabilityai/\n- Original model: https://huggingface.co/stabilityai/stablelm-2-1_6b/\n\n\n| Name | Quant method | Size |\n| ---- | ---- | ---- |\n| [stablelm-2-1_6b.Q2_K.gguf](https://huggingface.co/RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf/blob/main/stablelm-2-1_6b.Q2_K.gguf) | Q2_K | 0.65GB |\n| [stablelm-2-1_6b.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf/blob/main/stablelm-2-1_6b.Q3_K_S.gguf) | Q3_K_S | 0.74GB |\n| [stablelm-2-1_6b.Q3_K.gguf](https://huggingface.co/RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf/blob/main/stablelm-2-1_6b.Q3_K.gguf) | Q3_K | 0.8GB |\n| [stablelm-2-1_6b.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf/blob/main/stablelm-2-1_6b.Q3_K_M.gguf) | Q3_K_M | 0.8GB |\n| [stablelm-2-1_6b.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf/blob/main/stablelm-2-1_6b.Q3_K_L.gguf) | Q3_K_L | 0.85GB |\n| [stablelm-2-1_6b.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf/blob/main/stablelm-2-1_6b.IQ4_XS.gguf) | IQ4_XS | 0.88GB |\n| [stablelm-2-1_6b.Q4_0.gguf](https://huggingface.co/RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf/blob/main/stablelm-2-1_6b.Q4_0.gguf) | Q4_0 | 0.92GB |\n| [stablelm-2-1_6b.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf/blob/main/stablelm-2-1_6b.IQ4_NL.gguf) | IQ4_NL | 0.92GB |\n| [stablelm-2-1_6b.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf/blob/main/stablelm-2-1_6b.Q4_K_S.gguf) | Q4_K_S | 0.92GB |\n| [stablelm-2-1_6b.Q4_K.gguf](https://huggingface.co/RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf/blob/main/stablelm-2-1_6b.Q4_K.gguf) | Q4_K | 0.96GB |\n| [stablelm-2-1_6b.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf/blob/main/stablelm-2-1_6b.Q4_K_M.gguf) | Q4_K_M | 0.96GB |\n| [stablelm-2-1_6b.Q4_1.gguf](https://huggingface.co/RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf/blob/main/stablelm-2-1_6b.Q4_1.gguf) | Q4_1 | 1.0GB |\n| [stablelm-2-1_6b.Q5_0.gguf](https://huggingface.co/RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf/blob/main/stablelm-2-1_6b.Q5_0.gguf) | Q5_0 | 1.08GB |\n| [stablelm-2-1_6b.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf/blob/main/stablelm-2-1_6b.Q5_K_S.gguf) | Q5_K_S | 1.08GB |\n| [stablelm-2-1_6b.Q5_K.gguf](https://huggingface.co/RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf/blob/main/stablelm-2-1_6b.Q5_K.gguf) | Q5_K | 1.11GB |\n| [stablelm-2-1_6b.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf/blob/main/stablelm-2-1_6b.Q5_K_M.gguf) | Q5_K_M | 1.11GB |\n| [stablelm-2-1_6b.Q5_1.gguf](https://huggingface.co/RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf/blob/main/stablelm-2-1_6b.Q5_1.gguf) | Q5_1 | 1.17GB |\n| [stablelm-2-1_6b.Q6_K.gguf](https://huggingface.co/RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf/blob/main/stablelm-2-1_6b.Q6_K.gguf) | Q6_K | 1.26GB |\n| [stablelm-2-1_6b.Q8_0.gguf](https://huggingface.co/RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf/blob/main/stablelm-2-1_6b.Q8_0.gguf) | Q8_0 | 1.63GB |\n\n\n\n\nOriginal model description:\n---\nlicense: other\ndatasets:\n- tiiuae/falcon-refinedweb\n- togethercomputer/RedPajama-Data-1T\n- uonlp/CulturaX\n- CarperAI/pilev2-dev\n- bigcode/starcoderdata\n- DataProvenanceInitiative/Commercially-Verified-Licenses\nlanguage:\n- en\n- de\n- es\n- fr\n- it\n- nl\n- pt\ntags:\n- causal-lm\n---\n# `Stable LM 2 1.6B`\n\nPlease note: For commercial use, please refer to https://stability.ai/license\n\n## Model Description\n\n`Stable LM 2 1.6B` is a 1.6 billion parameter decoder-only language model pre-trained on 2 trillion tokens of diverse multilingual and code datasets for two epochs.\n\n## Usage\n\nGet started generating text with `Stable LM 2 1.6B` by using the following code snippet:\n\n```python\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\ntokenizer = AutoTokenizer.from_pretrained(\"stabilityai/stablelm-2-1_6b\")\nmodel = AutoModelForCausalLM.from_pretrained(\n  \"stabilityai/stablelm-2-1_6b\",\n  torch_dtype=\"auto\",\n)\nmodel.cuda()\ninputs = tokenizer(\"The weather is always wonderful\", return_tensors=\"pt\").to(model.device)\ntokens = model.generate(\n  **inputs,\n  max_new_tokens=64,\n  temperature=0.70,\n  top_p=0.95,\n  do_sample=True,\n)\nprint(tokenizer.decode(tokens[0], skip_special_tokens=True))\n```\n\n### Run with Flash Attention 2 ⚡️\n\n<details>\n<summary> Click to expand </summary>\n\n```python\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\ntokenizer = AutoTokenizer.from_pretrained(\"stabilityai/stablelm-2-1_6b\")\nmodel = AutoModelForCausalLM.from_pretrained(\n  \"stabilityai/stablelm-2-1_6b\",\n  torch_dtype=\"auto\",\n  attn_implementation=\"flash_attention_2\",\n)\nmodel.cuda()\ninputs = tokenizer(\"The weather is always wonderful\", return_tensors=\"pt\").to(model.device)\ntokens = model.generate(\n  **inputs,\n  max_new_tokens=64,\n  temperature=0.70,\n  top_p=0.95,\n  do_sample=True,\n)\nprint(tokenizer.decode(tokens[0], skip_special_tokens=True))\n```\n\n</details>\n\n\n## Model Details\n\n* **Developed by**: [Stability AI](https://stability.ai/)\n* **Model type**: `Stable LM 2 1.6B` models are auto-regressive language models based on the transformer decoder architecture.\n* **Language(s)**: English\n* **Paper**: [Stable LM 2 1.6B Technical Report](https://drive.google.com/file/d/1JYJHszhS8EFChTbNAf8xmqhKjogWRrQF/view?usp=sharing)\n* **Library**: [GPT-NeoX](https://github.com/EleutherAI/gpt-neox)\n* **License**: [Stability AI Community License](https://huggingface.co/stabilityai/stablelm-2-1_6b/blob/main/LICENSE.md).\n* **Commercial License**: to use this model commercially, please refer to https://stability.ai/license\n* **Contact**: For questions and comments about the model, please email `lm@stability.ai`\n\n### Model Architecture\n\nThe model is a decoder-only transformer similar to the LLaMA ([Touvron et al., 2023](https://arxiv.org/abs/2307.09288)) architecture with the following modifications:\n\n| Parameters     | Hidden Size | Layers | Heads | Sequence Length |\n|----------------|-------------|--------|-------|-----------------|\n| 1,644,417,024  | 2048        | 24     | 32    | 4096            |\n\n* **Position Embeddings**: Rotary Position Embeddings ([Su et al., 2021](https://arxiv.org/abs/2104.09864)) applied to the first 25% of head embedding dimensions for improved throughput following [Black et al. (2022)](https://arxiv.org/pdf/2204.06745.pdf).\n* **Normalization**: LayerNorm ([Ba et al., 2016](https://arxiv.org/abs/1607.06450)) with learned bias terms as opposed to RMSNorm ([Zhang & Sennrich, 2019](https://arxiv.org/abs/1910.07467)).\n* **Biases**: We remove all bias terms from the feed-forward networks and multi-head self-attention layers, except for the biases of the query, key, and value projections ([Bai et al., 2023](https://arxiv.org/abs/2309.16609)).\n* **Tokenizer**: We use Arcade100k, a BPE tokenizer extended from OpenAI's [`tiktoken.cl100k_base`](https://github.com/openai/tiktoken). We split digits into individual tokens following findings by [Liu & Low (2023)](https://arxiv.org/abs/2305.14201).\n\n## Training\n\n### Training Dataset\n\nThe dataset is comprised of a filtered mixture of open-source large-scale datasets available on the [HuggingFace Hub](https://huggingface.co/datasets): Falcon RefinedWeb extract ([Penedo et al., 2023](https://huggingface.co/datasets/tiiuae/falcon-refinedweb)), RedPajama-Data ([Together Computer., 2023](https://github.com/togethercomputer/RedPajama-Data)) and The Pile ([Gao et al., 2020](https://arxiv.org/abs/2101.00027)) both without the *Books3* subset, and StarCoder ([Li et al., 2023](https://arxiv.org/abs/2305.06161)). We further supplement our training with multi-lingual data from CulturaX ([Nguyen et al., 2023](https://arxiv.org/abs/2309.09400)) and, in particular, from its OSCAR corpora, as well as restructured data in the style of [Yuan & Liu (2022)](https://arxiv.org/abs/2206.11147).\n\n* Given the large amount of web data, we recommend fine-tuning the base `Stable LM 2 1.6B` for your downstream tasks.\n\n### Training Procedure\n\nThe model is pre-trained on the aforementioned datasets in `bfloat16` precision, optimized with AdamW, and trained using the Arcade100k tokenizer with a vocabulary size of 100,352. We outline the complete hyperparameters choices in the project's [GitHub repository - config*](https://github.com/Stability-AI/StableLM/blob/main/configs/stablelm-2-1_6b.yml). The final checkpoint of pre-training, before cooldown, is provided in the `global_step420000` [branch](https://huggingface.co/stabilityai/stablelm-2-1_6b/blob/global_step420000/README.md).\n\n### Training Infrastructure\n\n* **Hardware**: `Stable LM 2 1.6B` was trained on the Stability AI cluster across 512 NVIDIA A100 40GB GPUs (AWS P4d instances).\n\n* **Software**: We use a fork of `gpt-neox` ([EleutherAI, 2021](https://github.com/EleutherAI/gpt-neox)), train under 2D parallelism (Data and Tensor Parallel) with ZeRO-1 ([Rajbhandari et al., 2019](https://arxiv.org/abs/1910.02054v3)), and rely on flash-attention as well as SwiGLU and Rotary Embedding kernels from FlashAttention-2 ([Dao et al., 2023](https://tridao.me/publications/flash2/flash2.pdf))\n\n## Use and Limitations\n\n### Intended Use\n\nThe model is intended to be used as a foundational base model for application-specific fine-tuning. Developers must evaluate and fine-tune the model for safe performance in downstream applications. For commercial use, please refer to https://stability.ai/membership.\n\n### Limitations and Bias\n​\nAs a base model, this model may exhibit unreliable, unsafe, or other undesirable behaviors that must be corrected through evaluation and fine-tuning prior to deployment. The pre-training dataset may have contained offensive or inappropriate content, even after applying data cleansing filters, which can be reflected in the model-generated text. We recommend that users exercise caution when using these models in production systems. Do not use the models if they are unsuitable for your application, or for any applications that may cause deliberate or unintentional harm to others.\n\n## How to Cite\n\n```bibtex\n@article{bellagente2024stable,\n  title={Stable LM 2 1.6 B Technical Report},\n  author={Bellagente, Marco and Tow, Jonathan and Mahan, Dakota and Phung, Duy and Zhuravinskyi, Maksym and Adithyan, Reshinth and Baicoianu, James and Brooks, Ben and Cooper, Nathan and Datta, Ashish and others},\n  journal={arXiv preprint arXiv:2402.17834},\n  year={2024}\n}\n```\n\n\n",
    "related_quantizations": []
  },
  "tags": [
    "gguf",
    "arxiv:2307.09288",
    "arxiv:2104.09864",
    "arxiv:2204.06745",
    "arxiv:1607.06450",
    "arxiv:1910.07467",
    "arxiv:2309.16609",
    "arxiv:2305.14201",
    "arxiv:2101.00027",
    "arxiv:2305.06161",
    "arxiv:2309.09400",
    "arxiv:2206.11147",
    "arxiv:1910.02054",
    "arxiv:2402.17834",
    "endpoints_compatible",
    "region:us"
  ],
  "likes": 0,
  "downloads": 1175,
  "gated": false,
  "private": false,
  "last_modified": "2024-11-04T19:15:44.000Z",
  "created_at": "2024-11-04T18:46:35.000Z",
  "pipeline_tag": "",
  "library_name": ""
}
Source payload excerpt (from Hugging Face API)
{
  "_id": "6729168beb71305818474d56",
  "id": "RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf",
  "modelId": "RichardErkhov/stabilityai_-_stablelm-2-1_6b-gguf",
  "sha": "1d35b5adaf4c96b95d6236a5acef0597a692c605",
  "createdAt": "2024-11-04T18:46:35.000Z",
  "lastModified": "2024-11-04T19:15:44.000Z",
  "author": "RichardErkhov",
  "downloads": 1175,
  "likes": 0,
  "gated": false,
  "private": false,
  "pipeline_tag": "",
  "library_name": "",
  "siblings_count": 21
}