mistralM

Docs

sideBar

Quickstart: compare models in the playground

Send a prompt to a Mistral model in the Studio playground, change a parameter, and compare two models, in about 5 minutes.
flagThis step takes ~5 minutes to complete.

In this quickstart, you send a prompt to a Mistral model in the StudioarrowUpRight playground, change the temperature to see its effect, and compare the answer of a second model. It takes about 5 minutes and needs no code. Use it to choose a model and its parameters before you call the API from your application.

Before you begin

1. Open the playground

The playground opens a chat interface where you can send prompts to the available models.

2. Send a prompt

  • 1.

    In the Model list, select mistral-small-latest.

  • 2.

    Enter the following prompt:

    Explain the difference between supervised and unsupervised learning in three sentences.
    
  • 3.

    Select Send, or press Enter.

The model's answer appears in the chat panel.

3. Change the temperature

The temperature controls how much the output varies: a low value gives focused, repeatable answers, a high value gives more varied ones.

  • 1.

    In the parameters panel, set Temperature to 0.1, then send the same prompt.
  • 2.

    Set Temperature to 0.9, then send the same prompt again.

The parameters panel also has Max tokens, which limits the length of the answer, and Top P, an alternative to the temperature for controlling diversity.

4. Compare two models

  • 1.

    In the Model list, select mistral-large-latest.
  • 2.

    Send the same prompt.

You should see

  • Three sentences that contrast the two kinds of learning, from each model.
  • At 0.1, an answer that changes little when you send the prompt again. At 0.9, more variation in wording and examples.
  • Differences in length, detail, and style between mistral-small-latest and mistral-large-latest.

Note the model and the temperature that suit your task: you pass the same values as model and temperature when you call the API.

Next quickstarts

Keep going with the next step.
Quickstart: send your first API request
logoCloud

Quickstart: send your first API request

Install the Mistral SDK and get your first answer from a Mistral model in Python, TypeScript, or curl, in about 5 minutes.

clock

5 min to complete

chevronRight
Quickstart: create and use a prompt
logoCloud

Quickstart: create and use a prompt

Store a prompt in Studio, use it from your code through an alias, then change your application's behavior by promoting a new version, without redeploying.

clock

2 min to complete

chevronRight

Going further

Choose a model
illustrationModel

Choose a model

Compare models with each other to select the best one for your use case, from pricing to general performance, features, context size, and licensing.

Sampling parameters
illustrationPotion02

Sampling parameters

Adjust temperature, N, top P, presence penalty and frequency penalty to control how Mistral models generate output.