SuperAPI AI Directory

OLMo 7B Twin 2T

OLMo 7B Twin 2T is a 7-billion-parameter open-source language model released by the Allen Institute for AI (AI2), part of the OLMo series, trained on the Dolma dataset and supporting English text generation. The model uses a Transformer autoregressive architecture; the code and model are released under the Apache 2.0 license, and multiple training checkpoints (every 1000 steps) are provided to facilitate language model science research. Users can download it via Hugging Face, explore the files, and run inference, and can also use the OLMo repository for fine-tuning. Note: this model is a base model with no safety filtering, may generate harmful content, and its factual accuracy should be verified.

Open website

About this tool

OLMo 7B Twin 2T is a 7-billion-parameter language model in the OLMo (Open Language Model) series developed by the Allen Institute for AI (AI2), aimed at advancing language model science research. The model is trained on the Dolma dataset, supports English text generation, and uses a Transformer autoregressive architecture. All code, checkpoints, logs (to be released soon), and training details are public, and the code and model are released under the Apache 2.0 license.

Main capabilities: as a base language model, OLMo 7B Twin 2T can be used for text generation, language modeling research, and further fine-tuning. The model provides multiple training checkpoints (saved every 1000 steps, named such as step1000-tokens4B), and special attention is given to four revisions of the 7B model. Users can load a specific version via the Hugging Face revision parameter, and all revisions are listed in the revisions.txt file.

Usage: users need to install the ai2-olmo library, then load the model using Hugging Face Transformers. Example code: from transformers import AutoModelForCausalLM, AutoTokenizer; model = AutoModelForCausalLM.from_pretrained("allenai/OLMo-7B-Twin-2T", revision="step1000-tokens4B"). Inference can be accelerated via quantization (such as load_in_8bit=True), but note that quantized models are more sensitive to input types and CUDA, and it is recommended to move inputs to CUDA. Fine-tuning can be done from the final checkpoint or an intermediate checkpoint, with two options supported: the OLMo repository and the Open Instruct repository.

Applicable scenarios: suitable for language model science research, text generation experiments, model fine-tuning teaching, etc. Because it is a base model with no safety filtering, users may easily induce it to generate harmful or sensitive content, and it may also unintentionally produce biased content; users are advised to assess the risks of their applications. Factual information generated by the model is often inaccurate and needs verification. The model's training data cutoff date is February/March 2023 (based on the Dolma dataset version).

Limitations: the model supports only English; no safetyfiltering mechanism; limited factual accuracy; quantized inference requires attention to compatibility. Detailed information on environmental impact is in the paper.