# Fireworks f1: a breakthrough in complex reasoning with compound AI

> f1 interweaves multiple open models at the inference layer to solve complex math, coding, and logic problems. See worked examples and try f1 and f1-mini.

Announcement

NOV 15, 2024

Fireworks f1: A Breakthrough in Complex Reasoning with Compound AI

At Fireworks, we believe the future of AI is shifting to [compound AI systems](https://fireworks.ai/blog/fireworks-ai-series-b-compound-ai) that combine specialized models and tools to achieve better performance, reliability and control, compared to a single model.

However building compound AI systems is difficult and time-consuming, right from selecting and tuning different components to orchestrating how they work together. So earlier this year, we set out to simplify the process of building compound AI, with the goal of making compound AI as easy to use as prompting a model.

**Today, we’re releasing a first step in that direction. f1 is a compound AI model specialized in complex reasoning, that interweaves multiple open models at the inference layer.** Early testing has shown reasoning capabilities that match or exceed many closed frontier models as well as the best open models.

**f1 enables developers to access the power of compound AI with the simplicity of prompting.** f1 is designed with the idea of [declarative programming](https://en.wikipedia.org/wiki/Declarative_programming). Using prompt as the universal declarative programming language for Gen AI application building, developers can describe _what_ they want to achieve via prompting, without needing to specify exactly _how_ to accomplish it. We’ve shared some examples of using f1 through prompting later in this blog.

[\*\*f1](https://fireworks.ai/models/fireworks/f1-preview/playground) and [f1-mini](https://fireworks.ai/models/fireworks/f1-mini-preview/playground) (a smaller, faster variant) are now available in preview with free access on Fireworks Playground.\*\* **We’re also [inviting applications](https://forms.gle/UZYbnhAioT7fSeFf7) for early access to the f1 API and design partnerships for use cases that require complex reasoning.**

We invite you to help us improve these models and shape the future of compound AI.

## f1 sets a new state of the art for complex reasoning with open models

f1 demonstrates strong capabilities across benchmarks focused on complex reasoning. On coding, chat, math and reasoning use cases, it surpasses the best open models and most closed frontier models. We will share more comprehensive benchmark results soon.

![Screenshot 2024-11-17 at 10.08.20 PM.png](https://cdn.sanity.io/images/pv37i0yn/horizon/9ef0b3d24ab7c56625af494452c641c60a9236db-1900x414.png)

![Coding-Hard-livecodebench-hard-p (1).jpg](https://cdn.sanity.io/images/pv37i0yn/horizon/76d99f98566a4530d6deabe84b7a2dc1e49d93b1-668x1153.jpg)

## Examples of f1’s capabilities

f1’s use of interleaved generation from multiple open models allows it to reason through a variety of complex reasoning tasks. Here are some examples:

### Math (AIME 2024 problem):

> Every morning Aya goes for a $9$-kilometer-long walk and stops at a coffee shop afterwards. When she walks at a constant speed of $s$ kilometers per hour, the walk takes her 4 hours, including $t$ minutes spent in the coffee shop. When she walks $s+2$ kilometers per hour, the walk takes her 2 hours and 24 minutes, including $t$ minutes spent in the coffee shop. Suppose Aya walks at $s+\frac{1}{2}$ kilometers per hour. Find the number of minutes the walk takes her, including the $t$ minutes spent in the coffee shop.

![f1 Math .png](https://cdn.sanity.io/images/pv37i0yn/horizon/9d354b56aa5fd90904b88c7585a8ba0c5800fedf-686x980.png)

### Math proof:

> Is this statement correct - given any five points on the surface of a sphere, there is some closed hemisphere (i.e., including the boundary) that contains at least four of them.

![math\_proof.png](https://cdn.sanity.io/images/pv37i0yn/horizon/2367abd88beb5ef40bffaf7168a12276c09c6825-1022x1308.png)

### Coding:

Prompt:

![image (3).png](https://cdn.sanity.io/images/pv37i0yn/horizon/d1e369c6152c020c04bd60f386f17be224e70c68-2592x1856.png)

Output:

![image (4).png](https://cdn.sanity.io/images/pv37i0yn/horizon/8dda272b9cdd99e258929d7249b412fd6ca387de-1300x872.png)

### Logic puzzle:

> Find, with proof, the maximum number of knights one can place on a chessboard such that no two of them attack each other.

![Screenshot 2024-11-13 at 10.21.10 AM.png](https://cdn.sanity.io/images/pv37i0yn/horizon/1dc68d873db0432be21f33d082f0aef6f5333281-688x692.png)

> Do the same for bishops

![Screenshot 2024-11-14 at 11.46.26 PM.png](https://cdn.sanity.io/images/pv37i0yn/horizon/980d6b419d29278b43a98c818f228376e2da77ef-1044x1146.png)

## Get started with f1

Access [f1](https://fireworks.ai/models/fireworks/f1-preview/playground) and [f1-mini](https://fireworks.ai/models/fireworks/f1-mini-preview/playground) in preview with free access now on Fireworks Playground. [Apply](https://forms.gle/UZYbnhAioT7fSeFf7) for early access to the f1 API and design partnerships for use cases that require complex reasoning.

[Announcement](https://fireworks.ai/blog?blogTypes=Announcement)
