Workers AI Update: Hello, Mistral 7B!
Nov 21, 2023Jesse Kipp, Isaac Rehg

Summary
This post introduces the Mistral 7B model to Cloudflare Workers AI, highlighting its performance advantages due to grouped-query attention. It provides technical details on how to use the model via REST API and Worker scripts, and explains the concepts of attention, multi-head attention, multi-query attention, and grouped-query attention with diagrams and references to relevant research papers. The post also discusses the trade-offs between these attention mechanisms in terms of quality, memory usage, and inference speed.
More from the Artificial Intelligence Integration & Impact trail
- Introducing Clef-omni with full multimodality, plus a faster Clef and a cheaper Clef-flash
- Introducing Web Search API via AI Gateway
- Introducing Clef: our open-source decision models, and new RL fine-tuning platform
- One year later: Sovereign AI and the fight for choice
- AI Search is now generally available