facebook/opt-125m · Hugging Face
facebook/opt-125m is a 125-million-parameter open-source causal language model from Meta AI, part of the OPT (Open Pre-trained Transformer) family. It supports text generation in English and is available across PyTorch, TensorFlow, and JAX via the Hugging Face Transformers library.
- Depth
- 826
- Categories
- 1
- Index status
- Live
word-level signal
topic cluster links
Aug 11, 2026
Deep Brief
Overview and use cases
Overview
facebook/opt-125m is a lightweight, open-source causal language model developed by Meta AI and hosted on the Hugging Face Hub. With approximately 125 million parameters, it belongs to the OPT (Open Pre-trained Transformer) family introduced in the paper "OPT: Open Pre-trained Transformer Language Models" (arxiv:2205.01068). The model is designed for English text generation tasks and is built on the decoder-only Transformer architecture, making it suitable for a range of natural language processing applications including completion, continuation, and few-shot prompting.
The model was first uploaded to Hugging Face on May 11, 2022, and was last modified on September 15, 2023. It has accumulated over 201 million total downloads across all time, with approximately 17 million downloads recorded in the most recent collection period, reflecting its widespread adoption as an entry-point model for experimentation and education in large language model research.
Capabilities
facebook/opt-125m is configured as an AutoModelForCausalLM with an AutoTokenizer, supporting the standard text-generation pipeline in the Hugging Face Transformers ecosystem. It operates with the following token configuration: the beginning-of-sequence (BOS) and end-of-sequence (EOS) tokens are both set to </s>, while the padding token is <pad>. Token normalization is enabled by default, with no leading or trailing whitespace stripping.
The model supports inference across three major deep learning frameworks: PyTorch, TensorFlow, and JAX, making it accessible to a broad range of developers and researchers. Quantized versions of the model are also available on the Hub, enabling deployment on resource-constrained hardware. The model is tagged for deployment on Microsoft Azure and is region-hosted in the United States.
As a small-scale language model, facebook/opt-125m is particularly well-suited for few-shot learning scenarios, as its architecture and training methodology are rooted in the principles outlined in "Language Models are Few-Shot Learners" (arxiv:2005.14165). It can generate coherent English text continuations from prompt inputs and is commonly used for benchmarking, prototyping, and educational purposes.
Use cases
- Educational and research prototyping: Its small size makes it ideal for students and researchers learning about LLM architecture, fine-tuning, and inference without requiring expensive GPU infrastructure.
- Few-shot prompting experiments: The model supports in-context learning patterns, allowing users to demonstrate few-shot capabilities with minimal computational overhead.
- Text completion and generation: Suitable for simple text continuation tasks, creative writing assistance, and baseline generation benchmarks.
- Pipeline testing: Developers can use it to validate inference pipelines, tokenization workflows, and deployment configurations before scaling to larger models.
- Edge and embedded deployment: Quantized variants enable deployment on devices with limited compute and memory resources.
License & deployment
The model is released under an "other" license as designated by Hugging Face. This typically corresponds to Meta's custom open-research license for the OPT family, which permits research and commercial use under specific conditions. Users should review the LICENSE.md file on the model card for exact terms.
Deployment options include:
- Hugging Face Inference Endpoints: Deploy the model on dedicated, fully managed infrastructure.
- Text Generation Inference (TGI): Serve the model using Hugging Face's optimized inference toolkit.
- Microsoft Azure: The model is tagged for Azure deployment, enabling cloud-based inference.
- Local inference: Run the model locally using the Transformers library with PyTorch, TensorFlow, or JAX backends.
Hardware requirements are modest given the 125M parameter count. Inference can be performed on CPU for basic use cases, while GPU acceleration is recommended for latency-sensitive applications. Quantized versions (e.g., 4-bit or 8-bit) are available for further resource optimization.
Alternatives
- facebook/opt-6.7b / opt-1.3b: Larger variants in the same OPT family offering improved capability at the cost of increased compute requirements.
- facebook/opt-imx-max: Instruction-tuned OPT models designed for chat and conversational applications.
- mistralai/Mistral-7B-v0.1: A more capable open-weight model with strong multilingual and reasoning performance.
- meta-llama/Llama-2-7b-hf: Meta's subsequent open-weight LLM family with improved training data and licensing.
- gpt2: OpenAI's earlier 124M-parameter model, often used as a baseline for small-scale text generation.
FAQ
What is facebook/opt-125m? It is a 125-million-parameter causal language model from Meta AI, part of the OPT open-source model family, designed for English text generation.
What license does it use? The model uses Meta's custom open-research license, listed as "other" on Hugging Face. Consult the LICENSE.md file for full terms.
Can I use it commercially? Commercial use is permitted under Meta's OPT license terms, but users should verify the specific license file for any restrictions.
What frameworks are supported? PyTorch, TensorFlow, and JAX are all supported through the Hugging Face Transformers library.
Is the model quantized? Quantized versions are available on the Hugging Face Hub, enabling deployment on hardware with limited memory.
How does it compare to GPT-2? Both are approximately 125M parameters, but OPT uses a larger training dataset and a slightly different architecture. OPT is generally considered to have stronger few-shot capabilities.
Where can I deploy it? You can deploy it via Hugging Face Inference Endpoints, Text Generation Inference, Microsoft Azure, or run it locally on your own hardware.
Keep Exploring
Related AI models
amazon
amazon/chronos-2 · Hugging Face
Chronos-2 is a 120M-parameter, encoder-only time series foundation model developed by Amazon. Built on the T5 architecture, it supports zero-shot forecasting for univariate, multivariate, and covariate-informed tasks. It achieves state-of-the-art accuracy on public benchmarks while maintaining high inference efficiency.
lpiccinelli
lpiccinelli/unidepth-v2-vitl14 · Hugging Face
UniDepth v2 (ViT-L/14) is a 0.4B-parameter PyTorch model for monocular metric depth estimation, leveraging a Vision Transformer backbone to predict scale-aware depth maps from single RGB images.
Qwen
Qwen/Qwen3-8B · Hugging Face
Qwen/Qwen3-8B is an 8-billion parameter large language model developed by Alibaba Cloud's Qwen team, available on Hugging Face under the Apache 2.0 license. It is designed for advanced text generation, conversational AI, and complex reasoning tasks, featuring support for tool use and long-context understanding.
google-t5
google-t5/t5-small · Hugging Face
T5-small is a compact, multilingual encoder-decoder transformer model developed by Google and hosted on Hugging Face. Licensed under Apache 2.0, it supports text-to-text generation tasks such as translation, summarization, and question answering across multiple languages including English, French, German, and Romanian. It is optimized for low-latency inference and efficient deployment on various hardware backends.
Qwen
Qwen/Qwen3-0.6B · Hugging Face
Qwen/Qwen3-0.6B is a lightweight, open-source large language model developed by Alibaba Cloud's Qwen team. Released under the permissive Apache 2.0 license, this 0.6-billion-parameter model is designed for high-efficiency deployment on consumer-grade hardware, including CPUs and low-end GPUs. It features a 32,768-token context window, multilingual capabilities, and native support for tool-use and function calling, making it an ideal candidate for edge computing, real-time chatbots, and resource-constrained environments.
Ollama
llava
LLaVA (Large Language and Vision Assistant) is an open-source, end-to-end trained multimodal model that combines a vision encoder with a large language model (Vicuna) to enable visual understanding and reasoning. Developed by researchers from Microsoft, the University of Wisconsin-Madison, and Columbia University, LLaVA allows users to interact with images through natural language, supporting tasks such as visual question answering, image captioning, and complex visual reasoning. The latest iteration, LLaVA 1.6, introduces significant improvements in input resolution, visual instruction tuning, and logical reasoning capabilities. It is widely accessible for local deployment via Ollama, offering privacy, offline functionality, and flexible hardware requirements across various model sizes.
Site Discovery
Keep exploring ToolSeekAI
Move from model intelligence into tools, news, and rankings for a stronger AI decision path.