SuperAPI AI Directory

StableLM-v2-12B

StableLM-v2-12B is a 12.1 billion parameter decoder language model developed by Stability AI, pretrained for two rounds on 2 trillion multilingual and code data. As a base model, it is suitable for downstream task fine-tuning and supports text generation. The model requires transformers>=4.40.0, adopts the Stability AI Community License, and commercial use requires reference to the official license page.

Open website

About this tool

StableLM-v2-12B is a 12.1 billion parameter decoder language model released by Stability AI, based on the Transformer decoder architecture, and is an autoregressive language model. The model was pretrained for two rounds on a 2 trillion token multilingual and code dataset, with English as the primary language.

Purpose: This model is positioned as a base model, intended to provide a fine-tuning starting point for specific applications. Developers need to evaluate and fine-tune it for downstream tasks to ensure safety performance.

Main capabilities: Supports text generation, employs rotary positional embeddings (applied to the first 25% of head embedding dimensions), parallel attention and feed-forward residual layers, bias-free LayerNorm, per-head QK normalization, and uses the Arcade100k BPE tokenizer (extended from tiktoken.cl100k_base, with numbers split into individual tokens). Training data includes Falcon RefinedWeb, RedPajama-Data, The Pile (excluding Books3), StarCoder, as well as CulturaX multilingual data (particularly the OSCAR corpus) and reconstructed data.

Usage: Requires installation of transformers>=4.40.0, can generate text via code snippets provided by Hugging Face, and supports Flash Attention 2. The model library is GPT-NeoX, training used 384 NVIDIA H100 GPUs with bfloat16 precision, the AdamW optimizer, 2D parallelism, and ZeRO-1.

Applicable scenarios: Suitable as a base model for downstream task fine-tuning, such as text generation application development.

Limitations: As a base model, it may produce unreliable, unsafe, or otherwise undesirable behavior, which needs to be corrected through evaluation and fine-tuning. Pretraining data may contain offensive content, and even after filtering, generated text may still reflect such content. Caution is recommended when using in production systems, and it should not be used for applications that may cause harm to others. Commercial use requires reference to the Stability AI license page. The model does not currently provide specific pricing information.