Skip to content
Playground

Playground

Try a model by hand, compare two models side by side, and get the code that calls a published model.

The Playground is where you try models by hand. You type a prompt and one or two models answer, side by side when you compare, with their speed and token counts under each answer. Use it to compare the base model with your trained adapter, to try a published model before your app calls it, or to try a prompt before you run an evaluation.

In a decision project, the Playground asks a decision model a state and its questions, or texts and labels, and shows each candidate's probability: see Try it in the Playground.

The Playground never deploys a model: it asks models that are already running, and wakes a published model that is asleep. Nothing is saved: prompts and answers stay in your browser tab, and they never change your dataset.

Before you start

  • A model to ask, one of:
    • a deployment of this project that shows Ready, of the base model, an adapter or another Hugging Face model (this includes the tuned model of an experiment you kept running);
    • a published model of your organization that shows Running, Asleep or Warm;
    • a model endpoint your organization added in Connections.
  • The member or owner role. Viewers can open the Playground, but cannot send. See roles.
  • To send images: a vision model on each side.

Send a prompt

  1. Open the project, then Playground under Use in the sidebar.
  2. Check Model A. When an adapter's deployment is ready, the Playground starts with its base model as Model A and its tuned model as Model B, so you compare the two. See Choose the models.
  3. Optional: choose another model. Choose Compare with another model to add Model B beside it, and the cross beside Model B to remove it again.
  4. Optional: change the Settings on the right. See Settings.
  5. Type in Prompt and choose Send, or press Enter. Shift+Enter starts a new line.

Send another prompt to continue the conversation: each side sends its whole conversation so far. Choose Clear, at the top, to start over. Choosing another model for a side empties that side.

Choose the models

Model A and Model B list, in this order:

Choice Shown as
This project's ready deployments of the base model or of another model The deployment's name, such as "Deployment 2 · base model"
This project's ready deployments of an adapter, each listed twice "deployment · base model" and "deployment · tuned": the model the adapter was trained on, and the adapter, answering from the same GPU
Your organization's published models that answer or can wake, from every project "name · API model", and "name · API model · starts on request" while a wake-on-request model sleeps
Your organization's endpoints "name · model"

Under each list, a line tells you more: when a deployment stops by itself, such as "Stops in 12 min if idle" or "Stops in 42 min (time limit)"; "Starts on request. The first prompt can take a minute." for a published model that sleeps; or "API model, available to your applications." for one that answers.

Good to know:

  • Asking a deployment counts as use, so it does not stop for being idle. It still stops at its time limit, Maximum runtime (hours).
  • A published model is asked as the API would ask it. While one that slept wakes, its side says "Waking the model; this can take a minute…". Each prompt to a published model counts toward your organization's API requests and API tokens, as an application's request does, and shows as Playground in the Usage panel on API keys. A prompt sent to two published models counts twice. Prompts to deployments and to your own endpoints don't count.
  • The GPUs that serve published models are not listed: choose the published model instead.
  • An endpoint's provider receives every prompt you send to it.

Try in Playground

Try in Playground opens the Playground with a model already chosen. It is the main button of a ready test session's page on Models and in its row's ... menu, in the ... menu of a published model's row there, and under Use this adapter on a run or an experiment, once the run's training GPU is released.

  • An adapter opens as its base model and its tuned model side by side, from its ready deployment. Any other deployment, or a published model, opens as Model A, with Model B set to None.
  • An adapter with no ready deployment isn't chosen. The Playground says so and offers Test a model, with the lowest GPU price now and its stop after 15 idle minutes, such as "Adapter isn't running. Start a test session to try it here. It runs on a GPU from $0.44/h (GPU) and stops after 15 idle minutes." Test a model opens the dialog on Models with the adapter chosen.
  • A deployment that has stopped offers Test again: "That test session has stopped. Start another with the same settings to try it here." It opens Test a model with its settings.
  • A published model that doesn't answer now, for example because it is stopped, offers Open Models: "name is not answering now. Start it on the Models page to try it here."

When a model stops

When a chosen deployment stops, its side keeps the conversation and says why, such as "Deployment 2 · base model stopped after 15 idle minutes. The conversation stays here.", with Test again. The list shows it as "name (stopped)". A published model that stops answering says "name stopped answering. The conversation stays here.", with Open Models.

Prompts then go only to the other side. Once neither model answers, the Playground says "The chosen model stopped. Choose another to send a prompt to."

Attach images

A vision model reads images with your prompt: a deployment of a vision model in this project, or a published vision model. An Attach images icon appears inside Prompt only when every chosen model reads images. Images are never sent to your own endpoints.

  1. Choose Attach images and pick one or more files, or paste or drop an image into the chat window.
  2. To remove one, choose the cross on its thumbnail.
  3. Type a prompt and choose Send. A prompt needs text: an image alone cannot be sent.

Images are on every organization. On a plan Tensorant set up without them, Attach images is disabled and says why; text prompts to a vision model still work. See Images, RL and decision models.

Images are sent again with every later prompt of the conversation, since each side sends the whole conversation. Formats, sizes and counts are under Limits.

Settings

The Settings panel on the right applies to both models, from the next prompt you send. Choose Reset to go back to the defaults. Hide settings, beside it, closes the panel; Show settings at the top opens it again. The ⓘ beside Output length says what its values mean. This browser remembers the settings until you sign out or someone else signs in.

Setting What it does Default
Stream tokens On: the answer appears as the model writes it, and its time to first token is measured. Off: the model is asked for the whole answer, which appears when it is done. Off
System prompt Optional. Sent to both models before the conversation. Blank
Temperature How varied the answer is, from 0 to 2. 0 picks the most likely words every time. 0.7
Output length The longest answer, from 16 to 32,768 tokens. Max sends no length: a deployment or published model answers as long as its context allows after the conversation, and your own endpoint uses its provider's default. Max

Temperature is always sent, and Output length unless it is Max. Any other setting is sent only when it differs from its default, so otherwise the model uses its own. A model that does not accept a setting refuses the prompt.

More settings

The other settings are under More settings. It says "Model defaults", or how many you changed, such as "2 changed".

Setting What it does Default
Top P Only the most likely words whose chances add up to this share are considered, from 0.01 to 1. Change this or Temperature, not both. 1
Frequency penalty From −2 to 2. Above 0, a word is less likely the more often it already appeared, so the answer repeats itself less. 0
Presence penalty From −2 to 2. Above 0, a word that already appeared at all is less likely, so the answer moves on to new topics. 0
Response format JSON object: the answer is one JSON object. JSON schema: the answer matches the schema you enter in the box below it. Ask for JSON in the prompt as well. Text
Reasoning effort Shown only when a chosen model reads it. See Settings on deployments. Model default
Stop sequences Up to 4 pieces of text, each up to 64 characters. The answer ends where the model writes one, which is not shown. Press Enter to add one. None
Seed A whole number from 0 to 2,147,483,647. The same seed, settings and prompt give the same answer on most models. Blank, shown as Random: a new one each time

With JSON schema, the box must hold a JSON object of at most 32 KiB, such as {"type": "object", "properties": {"answer": {"type": "string"}}}. Until it does, Send is disabled and the reason shows above the prompt, such as "Enter the JSON schema answers must match. (Response format, under More settings.)"

Settings on deployments

Deployments of this project and published models take every setting. Stop sequences and the JSON schema have the same limits as in the API, so what works here works for your apps.

Reasoning effort appears when a chosen model reads it, and is sent only to that model, so the other side answers as usual:

  • gpt-oss models: Low, Medium or High, for how long the model thinks before it answers.
  • Qwen3 and Gemma 4 models: None turns the model's thinking off; Low, Medium and High turn it on.

A deployment that refuses a prompt answers "deployment returned HTTP 422", for example one started before a setting was available. Choose Reset, or stop the deployment and deploy it again.

Your own endpoints take what their provider supports. One that refuses a setting answers "…returned HTTP 400. The model may not accept one of the settings sent with the prompt." Choose Reset, then change one setting at a time to find it.

Get code

Get code, at the top, gives the request your app sends to a published model, with this Playground's system prompt and settings. It is available when Model A or Model B is a published model; otherwise pointing at it says "Get code for a published model: choose one as Model A or B. Apps call published models."

  1. Choose a published model as Model A or Model B, and set the Settings you want. If both are published models, the code is for Model A.
  2. Choose Get code. The dialog, "Call name from your app", shows the request with the last prompt you sent to that model, or else what you typed in Prompt, or "Hello".
  3. Pick curl, Python or JavaScript, then choose Copy code.

The code reads your key from the TENSORANT_API_KEY environment variable. Open API keys takes you to your keys. The code writes Temperature out, since the API's default is 0. With Stream tokens on, it streams the answer. The API answers at most 8,192 tokens: with Output length at Max or above 8,192, the code sends 8,192 and the dialog says "The API answers at most 8,192 tokens, so Output length is sent as 8,192." See the API quickstart to run it.

Timing and token counts

While a model works, its side shows a clock: "Waiting for the first token…" with Stream tokens on, "Generating…" with it off, or "Waking the model; this can take a minute…" for a published model that was asleep.

Under each answer, on one line: hover over or focus a number to see what it means.

Measure What it is
Time to first token How long the model took to start answering. Shown only when Stream tokens is on.
Tokens per second With streaming, how fast the model wrote once it had started; "≈" means the model reported no token counts, so they are estimated. Without streaming, the answer's tokens over the total time, which includes reading the prompt.
Total time From sending the prompt to the end of the answer.
in and out Prompt tokens (including the conversation so far) and answer tokens.

Times are measured from Tensorant to the model, so they leave out your own connection.

Owners see in the audit trail that you used the Playground, at most once every 15 minutes per project, but never your prompts or answers.

Limits

Limit Value
Prompt 20,000 characters
System prompt 10,000 characters
One conversation 200,000 characters of text, the system prompt included, and 20 prompts
Output length 16 to 32,768 tokens, or Max
Stop sequences 4, each up to 64 characters
JSON schema 32 KiB
Images PNG, JPEG, WebP or GIF; up to 10 MB each; 4 images and 15 MB together per conversation; only for vision models
Time for one answer 5 minutes, streamed or not. A deployment or published model is reached through its GPU provider, which may close a long request sooner: if long answers fail with Stream tokens off, turn it on.
Prompts 30 a minute per person. A prompt sent to two models counts twice.
Answers being written at once 2 per person, 4 per organization

When something goes wrong

An error appears on the side it belongs to. If part of the answer had arrived, it starts with "Stopped:". Errors name the model: a deployment by its name, such as "Deployment 2 · base model", a published model as "Published model name", and your own endpoint as "Endpoint name".

Problem What to do
"Nothing is running to talk to" Choose Test a model and wait for Ready on Models, publish a model, or add an endpoint in Connections.
"…returned HTTP 400. The answer length may not fit the model's context: set Output length to Max…" Output length or the conversation, on its own, is longer than the model's context. Set Output length to Max, or choose Clear. A conversation that fits but leaves less room than Output length is answered: the answer stops at the end of the context.
"…returned HTTP 400. The model may not accept one of the settings…" The model refused a setting. Choose Reset in Settings, then change one setting at a time to find it.
"deployment returned HTTP 422" See Settings on deployments.
"…returned HTTP 503" The model isn't answering right now: try again in a moment. If it happens only with long answers and Stream tokens off, turn Stream tokens on, or lower Output length.
"…did not answer in time" or "The answer was cut off before it finished." The answer took over 5 minutes. Lower Output length and try again.
"…could not be reached, or stopped answering" or "…sent an answer that could not be read" The model could not be reached, closed the connection early, or did not send a chat answer. Try again. For your own endpoint, use Check connection in Connections.
"Images and vision training aren't part of your organization's plan…" A plan Tensorant set up for your organization leaves images out. Send the prompt without images, or write to [email protected]. See Images, RL and decision models.
"Images can only be sent to a vision model: one of this project's deployments or a published model" Choose a vision model on each side, or send text only.
"An attached file is not a PNG, JPEG, WebP or GIF image", "An image is larger than 10 MB", "The images are larger than 15 MB together" or "Attach at most 4 images to a conversation" Use PNG, JPEG, WebP or GIF files under 10 MB each. Once a conversation holds 4 images or 15 MB, choose Clear.
"You are sending prompts too fast…" or "The playground is busy…" Wait a moment, then send again.
"Keep the conversation under 200,000 characters" or "messages: Send at most 40 items" The conversation is full. Choose Clear.
"deployment is not running. Deploy it again on the Models page." or "Choose a running deployment of this project" The deployment stopped, for example at its time limit. Choose another model, or deploy it again. See When a model stops.
"name is stopped. Start it on the Models page.", "name reached its end date…" or "name could not be started. See the Models page." The published model isn't serving. An owner starts it on Models. See Publishing models.
"This organization used the API requests a month its plan (Plan) allows…" or "This request's full context window does not fit the API tokens a month its plan (Plan) allows…" A plan Tensorant set up for your organization limits API requests or tokens a month, and Playground prompts to published models count toward them. Try a deployment instead, or write to [email protected].
"name is starting. Try again in a few minutes." Wait until the published model shows Running or Asleep on Models, then send again.
"Endpoint host does not resolve to a public address" Your endpoint must be on the public internet. See Address rules.
Any other error For a deployment, check its status on Models. For your own endpoint, use Check connection in Connections, or ask its provider.

Need a hand? Visit troubleshooting