Stable Beluga 2 logo

Stable Beluga 2

Free

A finetuned LLamma2 70B model

FreeFree tier
Inputs: textOutputs: text
Type
Open Source
Company
Stability AI

About Stable Beluga 2

Stable Beluga 2 is an open-source, instruction-following language model developed by Stability AI. It is a finetuned version of Meta's Llama2 70B model, trained on an Orca-style dataset to enhance its ability to follow complex instructions and generate coherent, context-aware text. The model supports text generation tasks and can be used for conversational AI, content creation, question answering, and more. It is available for free on Hugging Face, with easy integration via the Transformers library. The model includes a built-in system prompt to promote safe and helpful responses.

Key Features

Finetuned on an Orca style Dataset for improved instruction following
Based on Llama2 70B, a large 70-billion-parameter model
Built-in system prompt for safe and helpful responses
Compatible with Hugging Face Transformers and PyTorch
Supports text generation pipeline with AutoModelForCausalLM
Free and open-source for research and commercial use

Pros & Cons

Pros
  • Based on powerful Llama2 70B architecture
  • Finetuned specifically for instruction-following tasks
  • Open source, free to use, and accessible on Hugging Face
  • Easy integration with Hugging Face Transformers and PyTorch
  • Large model size provides high-quality outputs
  • Active community and ongoing support
Cons
  • Requires significant GPU memory (70B parameters) for inference
  • May generate biased or unsafe content if not properly prompted
  • Not suitable for real-time applications without optimized inference
  • Large model size may limit deployment on consumer hardware

Best For

Conversational AI and chatbotsContent generation and copywritingQuestion answering and knowledge retrievalCode generation and code assistanceInstruction-based text completion

FAQ

What is Stable Beluga 2?
Stable Beluga 2 is a finetuned version of Meta's Llama2 70B model, trained on an Orca-style dataset to improve instruction-following capabilities. It is developed by Stability AI and available for free on Hugging Face.
How do I use Stable Beluga 2?
You can use Stable Beluga 2 with the Hugging Face Transformers library. Use AutoTokenizer and AutoModelForCausalLM as shown in the code snippet on the model page: load the model with torch.float16 and low_cpu_mem_usage, then generate text using a pipeline.
Is Stable Beluga 2 free?
Yes, Stable Beluga 2 is open source and free to use under the terms of its license. It is listed as free on Hugging Face.
What base model is Stable Beluga 2 based on?
Stable Beluga 2 is based on Meta's Llama2 70B model.