aws-prototyping/MegaBeam-Mistral-7B-300k

Hugging Face
TEXT GENERATIONConcurrent Unit Cost:1Model Size:7BQuant:FP8Context Size:4kTool Calling:SupportedPublished:May 13, 2024License:apache-2.0Architecture:Transformer0.0K Open Weights Featherless Exclusive Warm

MegaBeam-Mistral-7B-300k is a 7 billion parameter language model developed by aws-prototyping, fine-tuned from Mistral-7B-Instruct-v0.2. This model is specifically engineered to support exceptionally long input contexts, extending up to 320,000 tokens, significantly surpassing its base model's 32,000-token limit. It excels in processing and reasoning over super long documents, as demonstrated by its performance on the InfiniteBench benchmark, making it suitable for applications requiring extensive context understanding.

Loading preview...

MegaBeam-Mistral-7B-300k: Extended Context Mistral Model

MegaBeam-Mistral-7B-300k is a 7 billion parameter model from aws-prototyping, fine-tuned from Mistral-7B-Instruct-v0.2. Its primary distinction is the dramatically increased maximum context length of 320,000 tokens, a tenfold increase over the base Mistral model's 32,000 tokens. This enhancement is achieved by adjusting the rope_theta parameter to 25e6, enabling it to handle vast amounts of input text.

Key Capabilities & Performance

  • Exceptional Long Context Handling: Designed to process, understand, and reason over extremely long documents, making it ideal for tasks requiring deep contextual awareness.
  • InfiniteBench Evaluation: Evaluated on the InfiniteBench benchmark, which assesses models on contexts exceeding 100,000 tokens. MegaBeam-Mistral-7B-300k shows strong performance in retrieval tasks (e.g., 100% on Retrieve.PassKey, 96.10% on Retrieve.Number) and competitive results in summarization and QA compared to other 7B-8B models.
  • Deployment Flexibility: Can be deployed on a single AWS g5.48xlarge instance using serving frameworks like vLLM or SageMaker DJL, with max_position_embeddings configured to fit GPU memory.

Good for Use Cases Involving:

  • Document Analysis: Tasks like summarizing lengthy reports, legal documents, or research papers.
  • Information Retrieval: Extracting specific information or answering questions from very large text corpora.
  • Codebase Understanding: Debugging or analyzing extensive code repositories, as indicated by its performance in Code.Debug tasks.
  • Conversational AI with Deep Memory: Building chatbots or agents that need to maintain context over extremely long dialogues.