Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| stablelm-2-12b.Q2_K.gguf | Q2_K | 4.38GB |
| stablelm-2-12b.Q3_K_S.gguf | Q3_K_S | 5.05GB |
| stablelm-2-12b.Q3_K.gguf | Q3_K | 5.58GB |
| stablelm-2-12b.Q3_K_M.gguf | Q3_K_M | 5.58GB |
| stablelm-2-12b.Q3_K_L.gguf | Q3_K_L | 6.05GB |
| stablelm-2-12b.IQ4_XS.gguf | IQ4_XS | 6.24GB |
| stablelm-2-12b.Q4_0.gguf | Q4_0 | 6.49GB |
| stablelm-2-12b.IQ4_NL.gguf | IQ4_NL | 6.56GB |
| stablelm-2-12b.Q4_K_S.gguf | Q4_K_S | 6.53GB |
| stablelm-2-12b.Q4_K.gguf | Q4_K | 6.86GB |
| stablelm-2-12b.Q4_K_M.gguf | Q4_K_M | 6.86GB |
| stablelm-2-12b.Q4_1.gguf | Q4_1 | 7.17GB |
| stablelm-2-12b.Q5_0.gguf | Q5_0 | 7.84GB |
| stablelm-2-12b.Q5_K_S.gguf | Q5_K_S | 7.84GB |
| stablelm-2-12b.Q5_K.gguf | Q5_K | 8.04GB |
| stablelm-2-12b.Q5_K_M.gguf | Q5_K_M | 8.04GB |
| stablelm-2-12b.Q5_1.gguf | Q5_1 | 8.52GB |
| stablelm-2-12b.Q6_K.gguf | Q6_K | 9.28GB |
| stablelm-2-12b.Q8_0.gguf | Q8_0 | 12.02GB |
Stable LM 2 12BStable LM 2 12B is a 12.1 billion parameter decoder-only language model pre-trained on 2 trillion tokens of diverse multilingual and code datasets for two epochs.transformers>=4.40.0Stable LM 2 12B by using the following code snippet:1from transformers import AutoModelForCausalLM, AutoTokenizer
2tokenizer = AutoTokenizer.from_pretrained("stabilityai/stablelm-2-12b")
3model = AutoModelForCausalLM.from_pretrained(
4 "stabilityai/stablelm-2-12b",
5 torch_dtype="auto",
6)
7model.cuda()
8inputs = tokenizer("The weather is always wonderful", return_tensors="pt").to(model.device)
9tokens = model.generate(
10 **inputs,
11 max_new_tokens=64,
12 temperature=0.70,
13 top_p=0.95,
14 do_sample=True,
15)
16print(tokenizer.decode(tokens[0], skip_special_tokens=True))1from transformers import AutoModelForCausalLM, AutoTokenizer
2tokenizer = AutoTokenizer.from_pretrained("stabilityai/stablelm-2-12b")
3model = AutoModelForCausalLM.from_pretrained(
4 "stabilityai/stablelm-2-12b",
5 torch_dtype="auto",
6 attn_implementation="flash_attention_2",
7)
8model.cuda()
9inputs = tokenizer("The weather is always wonderful", return_tensors="pt").to(model.device)
10tokens = model.generate(
11 **inputs,
12 max_new_tokens=64,
13 temperature=0.70,
14 top_p=0.95,
15 do_sample=True,
16)
17print(tokenizer.decode(tokens[0], skip_special_tokens=True))Stable LM 2 12B models are auto-regressive language models based on the transformer decoder architecture.lm@stability.ai| Parameters | Hidden Size | Layers | Heads | KV Heads | Sequence Length |
|---|---|---|---|---|---|
| 12,143,605,760 | 5120 | 40 | 32 | 8 | 4096 |
tiktoken.cl100k_base. We split digits into individual tokens following findings by Liu & Low (2023).Stable LM 2 12B for your downstream tasks.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*.Stable LM 2 12B was trained on the Stability AI cluster across 384 NVIDIA H100 GPUs (AWS P5 instances).gpt-neox (EleutherAI, 2021), train under 2D parallelism (Data and Tensor Parallel) with ZeRO-1 (Rajbhandari et al., 2019), and rely on flash-attention as well as SwiGLU and Rotary Embedding kernels from FlashAttention-2 (Dao et al., 2023)1@article{bellagente2024stable,
2 title={Stable LM 2 1.6 B Technical Report},
3 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},
4 journal={arXiv preprint arXiv:2402.17834},
5 year={2024}
6}