Stable LM 2 Zephyr 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 Zephyr 1.6B
uses the following instruction format:
<|user|>
Which famous math number begins with 1.6 ...?<|endoftext|>
<|assistant|>
The number you are referring to is 1.618033988749895. This is the famous value known as the golden ratio<|endoftext|>
This format is also available through the tokenizer's
apply_chat_template
method:
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained('stabilityai/stablelm-2-zephyr-1_6b')
model = AutoModelForCausalLM.from_pretrained(
'stabilityai/stablelm-2-zephyr-1_6b',
device_map="auto"
)
prompt = [{'role': 'user', 'content': 'Which famous math number begins with 1.6 ...?'}]
inputs = tokenizer.apply_chat_template(
prompt,
add_generation_prompt=True,
return_tensors='pt'
)
tokens = model.generate(
inputs.to(model.device),
max_new_tokens=1024,
temperature=0.5,
do_sample=True
)
print(tokenizer.decode(tokens[0], skip_special_tokens=False))
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-zephyr-1_6b on huggingface.co
7.6K
Total runs
0
24-hour runs
-159
3-day runs
-607
7-day runs
-2.3K
30-day runs
More Information About stablelm-2-zephyr-1_6b huggingface.co Model
stablelm-2-zephyr-1_6b huggingface.co is an AI model on huggingface.co that provides stablelm-2-zephyr-1_6b's model effect (), which can be used instantly with this stabilityai stablelm-2-zephyr-1_6b model. huggingface.co supports a free trial of the stablelm-2-zephyr-1_6b model, and also provides paid use of the stablelm-2-zephyr-1_6b. Support call stablelm-2-zephyr-1_6b model through api, including Node.js, Python, http.
stablelm-2-zephyr-1_6b huggingface.co is an online trial and call api platform, which integrates stablelm-2-zephyr-1_6b's modeling effects, including api services, and provides a free online trial of stablelm-2-zephyr-1_6b, you can try stablelm-2-zephyr-1_6b online for free by clicking the link below.
stabilityai stablelm-2-zephyr-1_6b online free url in huggingface.co:
stablelm-2-zephyr-1_6b is an open source model from GitHub that offers a free installation service, and any user can find stablelm-2-zephyr-1_6b on GitHub to install. At the same time, huggingface.co provides the effect of stablelm-2-zephyr-1_6b install, users can directly use stablelm-2-zephyr-1_6b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
stablelm-2-zephyr-1_6b install url in huggingface.co: