stabilityai / stablelm-2-1_6b-chat

huggingface.co
Total runs: 4.6K
24-hour runs: 0
7-day runs: 0
30-day runs: -1.4K
Model's Last Updated: June 03 2024
text-generation

Introduction of stablelm-2-1_6b-chat

Model Details of stablelm-2-1_6b-chat

StableLM 2 Chat 1.6B

Model Description

Stable LM 2 Chat 1.6B is a 1.6 billion parameter instruction tuned language model inspired by HugginFaceH4's Zephyr 7B training pipeline. The model is trained on a mix of publicly available datasets and synthetic datasets, utilizing Direct Preference Optimization (DPO) .

Usage

StableLM 2 1.6B Chat uses the following ChatML format:

from transformers import AutoModelForCausalLM, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained('stabilityai/stablelm-2-1_6b-chat')
model = AutoModelForCausalLM.from_pretrained(
    'stabilityai/stablelm-2-1_6b-chat',
    device_map="auto",
)

prompt = [{'role': 'user', 'content': 'Implement snake game using pygame'}]
inputs = tokenizer.apply_chat_template(
    prompt,
    add_generation_prompt=True,
    return_tensors='pt'
)

tokens = model.generate(
    inputs.to(model.device),
    max_new_tokens=100,
    temperature=0.7,
    do_sample=True
)
output = tokenizer.decode(tokens[:, inputs.shape[-1]:][0], skip_special_tokens=False)

print(output)
Model Details
Training Dataset

The dataset is comprised of a mixture of open datasets large-scale datasets available on the HuggingFace Hub :

  1. SFT Datasets
  • HuggingFaceH4/ultrachat_200k
  • meta-math/MetaMathQA
  • WizardLM/WizardLM_evol_instruct_V2_196k
  • Open-Orca/SlimOrca
  • openchat/openchat_sharegpt4_dataset
  • LDJnr/Capybara
  • hkust-nlp/deita-10k-v0
  • teknium/OpenHermes-2.5
  1. Preference Datasets:
  • allenai/ultrafeedback_binarized_cleaned
  • Intel/orca_dpo_pairs
  • argilla/dpo-mix-7k
Performance
MT-Bench
Model Size MT-Bench
Mistral-7B-Instruct-v0.2 7B 7.61
Llama2-Chat 70B 6.86
stablelm-zephyr-3b 3B 6.64
MPT-30B-Chat 30B 6.39
stablelm-2-1_6b-chat 1.6B 5.83
stablelm-2-zephyr-1.6b 1.6B 5.42
Falcon-40B-Instruct 40B 5.17
Qwen-1.8B-Chat 1.8B 4.95
dolphin-2.6-phi-2 2.7B 4.93
phi-2 2.7B 4.29
TinyLlama-1.1B-Chat-v1.0 1.1B 3.46
OpenLLM Leaderboard
Model Size Average ARC Challenge (acc_norm) HellaSwag (acc_norm) MMLU (acc_norm) TruthfulQA (mc2) Winogrande (acc) Gsm8k (acc)
microsoft/phi-2 2.7B 61.32% 61.09% 75.11% 58.11% 44.47% 74.35% 54.81%
stabilityai/stablelm-2-1_6b-chat 1.6B 50.80% 43.94% 69.22% 41.59% 46.52% 64.56% 38.96%
stabilityai/stablelm-2-zephyr-1_6b 1.6B 49.89% 43.69% 69.34% 41.85% 45.21% 64.09% 35.18%
microsoft/phi-1_5 1.3B 47.69% 52.90% 63.79% 43.89% 40.89% 72.22% 12.43%
stabilityai/stablelm-2-1_6b 1.6B 45.54% 43.43% 70.49% 38.93% 36.65% 65.90% 17.82%
mosaicml/mpt-7b 7B 44.28% 47.70% 77.57% 30.80% 33.40% 72.14% 4.02%
KnutJaegersberg/Qwen-1_8B-Llamaified* 1.8B 44.75% 37.71% 58.87% 46.37% 39.41% 61.72% 24.41%
openlm-research/open_llama_3b_v2 3B 40.28% 40.27% 71.60% 27.12% 34.78% 67.01% 0.91%
iiuae/falcon-rw-1b 1B 37.07% 35.07% 63.56% 25.28% 35.96% 62.04% 0.53%
TinyLlama/TinyLlama-1.1B-3T 1.1B 36.40% 33.79% 60.31% 26.04% 37.32% 59.51% 1.44%
Use and Limitations
Intended Use

The model is intended to be used in chat-like applications. Developers must evaluate the model for safety performance in their specific use case. Read more about safety and limitations below.

Limitations and Bias

​ This model is not trained against adversarial inputs. We strongly recommend pairing this model with an input and output classifier to prevent harmful responses.

Through our internal red teaming, we discovered that while the model will not output harmful information if not prompted to do so, it will hallucinate many facts. It is also willing to output potentially harmful outputs or misinformation when the user requests it. Using this model will require guardrails around your inputs and outputs to ensure that any outputs returned are not misinformation or harmful. Additionally, as each use case is unique, we recommend running your own suite of tests to ensure proper performance of this model. Finally, 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.

How to Cite
@misc{StableLM-2-1.6B,
      url={[https://huggingface.co/stabilityai/stablelm-2-1.6b](https://huggingface.co/stabilityai/stablelm-2-1.6b)},
      title={Stable LM 2 1.6B},
      author={Stability AI Language Team}
}

Runs of stabilityai stablelm-2-1_6b-chat on huggingface.co

4.6K
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
-1.4K
30-day runs

More Information About stablelm-2-1_6b-chat huggingface.co Model

More stablelm-2-1_6b-chat license Visit here:

https://choosealicense.com/licenses/other

stablelm-2-1_6b-chat huggingface.co

stablelm-2-1_6b-chat huggingface.co is an AI model on huggingface.co that provides stablelm-2-1_6b-chat's model effect (), which can be used instantly with this stabilityai stablelm-2-1_6b-chat model. huggingface.co supports a free trial of the stablelm-2-1_6b-chat model, and also provides paid use of the stablelm-2-1_6b-chat. Support call stablelm-2-1_6b-chat model through api, including Node.js, Python, http.

stablelm-2-1_6b-chat huggingface.co Url

https://huggingface.co/stabilityai/stablelm-2-1_6b-chat

stabilityai stablelm-2-1_6b-chat online free

stablelm-2-1_6b-chat huggingface.co is an online trial and call api platform, which integrates stablelm-2-1_6b-chat's modeling effects, including api services, and provides a free online trial of stablelm-2-1_6b-chat, you can try stablelm-2-1_6b-chat online for free by clicking the link below.

stabilityai stablelm-2-1_6b-chat online free url in huggingface.co:

https://huggingface.co/stabilityai/stablelm-2-1_6b-chat

stablelm-2-1_6b-chat install

stablelm-2-1_6b-chat is an open source model from GitHub that offers a free installation service, and any user can find stablelm-2-1_6b-chat on GitHub to install. At the same time, huggingface.co provides the effect of stablelm-2-1_6b-chat install, users can directly use stablelm-2-1_6b-chat installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

stablelm-2-1_6b-chat install url in huggingface.co:

https://huggingface.co/stabilityai/stablelm-2-1_6b-chat

Url of stablelm-2-1_6b-chat

stablelm-2-1_6b-chat huggingface.co Url

Provider of stablelm-2-1_6b-chat huggingface.co

stabilityai
ORGANIZATIONS

Other API from stabilityai

huggingface.co

Total runs: 143.2K
Run Growth: 8.3K
Growth Rate: 5.81%
Updated: August 04 2023
huggingface.co

Total runs: 137.2K
Run Growth: 16.4K
Growth Rate: 11.93%
Updated: July 10 2024
huggingface.co

Total runs: 34.3K
Run Growth: 3.4K
Growth Rate: 10.04%
Updated: August 09 2024
huggingface.co

Total runs: 378
Run Growth: -98.0K
Growth Rate: -25246.65%
Updated: August 03 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated: July 10 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated: April 14 2024