Exclusive Content:

Haiper steps out of stealth mode, secures $13.8 million seed funding for video-generative AI

Haiper Emerges from Stealth Mode with $13.8 Million Seed...

Running Your ML Notebook on Databricks: A Step-by-Step Guide

A Step-by-Step Guide to Hosting Machine Learning Notebooks in...

“Revealing Weak Infosec Practices that Open the Door for Cyber Criminals in Your Organization” • The Register

Warning: Stolen ChatGPT Credentials a Hot Commodity on the...

Amazon Bedrock now features the AI21 Labs Jamba-Instruct model

Introducing Jamba-Instruct: A Powerful New Language Model in Amazon Bedrock

Introducing AI21 Labs Jamba-Instruct in Amazon Bedrock

We are thrilled to announce the availability of the Jamba-Instruct large language model (LLM) in Amazon Bedrock. Built by AI21 Labs, Jamba-Instruct offers support for a 256,000-token context window, making it especially valuable for processing large documents and complex Retrieval Augmented Generation (RAG) applications.

What is Jamba-Instruct?

Jamba-Instruct is an instruction-tuned version of the Jamba base model, combining a production-grade model, Structured State Space (SSM) technology, and Transformer architecture. This unique hybrid approach allows Jamba-Instruct to achieve the largest context window length in its model size class while delivering top-notch performance. Compared to AI21’s previous generation of models, the Jurassic-2 family, Jamba-Instruct provides a significant performance boost. For more information on the SSM/Transformer architecture, refer to the Jamba: A Hybrid Transformer-Mamba Language Model whitepaper.

Getting Started

To begin using Jamba-Instruct models in Amazon Bedrock, follow these steps:

  1. Visit the Amazon Bedrock console and navigate to Model access in the navigation pane.
  2. Choose Modify model access.
  3. Select the AI21 Labs models you wish to use and click Next.
  4. Submit your request for model access.

For further details, refer to the Model access documentation. Once you have access, you can test the model in the Amazon Bedrock Text or Chat playground.

Example Use Cases

Jamba-Instruct’s long context length is ideal for complex RAG workloads and document analysis. It can be used to detect contradictions between documents, analyze documents in context, and perform query augmentation. Additionally, Jamba-Instruct supports standard LLM operations like summarization and entity extraction.

For detailed guidance on prompts and use cases, consult the AI21 model documentation and the Built for the Enterprise: Introducing AI21’s Jamba-Instruct Model documentation.

Programmatic Access

Access Jamba-Instruct via an API using Amazon Bedrock and the AWS SDK for Python (Boto3). Below is a sample code snippet to get you started:

“`python
import boto3
import json

# Insert your prompt here
prompt = “INSERT YOUR PROMPT HERE”

# Model ID for Jamba-Instruct
modelId = “ai21.jamba-instruct-v1:0″

# Create a Boto3 client for Bedrock
bedrock = boto3.client(service_name=”bedrock-runtime”)

# Define the request body
body = json.dumps({
“messages”:[{“role”:”user”,”content”:prompt}],
“max_tokens”: 256,
“top_p”: 0.8,
“temperature”: 0.7,
})

# Invoke the model
response = bedrock.invoke_model(
body=body,
modelId=modelId,
accept=”application/json”,
contentType=”application/json”
)

# Print the response
result = json.loads(response.get(‘body’).read())
print(result[‘choices’][0][‘message’][‘content’])
“`

Conclusion

AI21 Labs Jamba-Instruct in Amazon Bedrock is a powerful tool for applications requiring a long context window. The innovative SSM/Transformer hybrid architecture offers enhanced model throughput and performance. With Jamba-Instruct, you can tackle tasks like summarization, document analysis, and query augmentation with ease.

If you’re interested in exploring the capabilities of AI21 Labs Jamba-Instruct in Amazon Bedrock, visit the Amazon Bedrock console in the US East (N. Virginia) AWS Region. For detailed information and guidance, refer to the Supported foundation models in Amazon Bedrock documentation.

About the Authors

Joshua Broyde, PhD, and Fernando Espigares Caballero are experts in generative AI solutions and cloud technologies. Together, they bring a wealth of experience and knowledge to the development and deployment of AI21 Labs Jamba-Instruct in Amazon Bedrock.

Latest

Create a Scalable Test Suite with Dataset Management in Amazon Bedrock AgentCore

Optimizing Agent Performance: The Role of Versioned Datasets in...

Expedia Unveils ChatGPT-Enhanced Travel Planning: Here’s How to Get Started.

Revolutionizing Travel: Expedia Integrates ChatGPT for Personalized Trip Planning Let...

2 Leading AI Robotics Stocks to Consider Over Tesla

Exploring Robotics Stocks: Two Promising Alternatives to Tesla The Evolution...

Centre Introduces AI Voice Chatbot for Addressing Grievances

Launch of Samadhan Didi: AI Chatbot to Empower Citizens...

Don't miss

Haiper steps out of stealth mode, secures $13.8 million seed funding for video-generative AI

Haiper Emerges from Stealth Mode with $13.8 Million Seed...

Running Your ML Notebook on Databricks: A Step-by-Step Guide

A Step-by-Step Guide to Hosting Machine Learning Notebooks in...

VOXI UK Launches First AI Chatbot to Support Customers

VOXI Launches AI Chatbot to Revolutionize Customer Services in...

Investing in digital infrastructure key to realizing generative AI’s potential for driving economic growth | articles

Challenges Hindering the Widescale Deployment of Generative AI: Legal,...

Assessing Deep Agents with LangSmith on AWS

Evaluating AI Agents: A Comprehensive Guide to Reliable Assessment This post was co-authored with Karan Singh, Head of Partnerships at LangChain. Understanding the Challenges of...

Comprehensive Observability for Amazon SageMaker AI LLM Inference: Monitoring GPU Utilization...

Comprehensive Observability for Large Language Models in Production with Amazon SageMaker AI Inference Understanding the Importance of Observability in LLM Deployment Two Dimensions of LLM Observability:...

Training Azerbaijani Language Models Using Amazon SageMaker AI

Building an Azerbaijani Language Model: Optimizing Training with Open Source Tools and AWS Acknowledgments Introduction to the Challenge Solution Overview Stage 1: Tokenizer Development Stage 2: Continued Pre-training (CPT) Stage...