> ## Documentation Index
> Fetch the complete documentation index at: https://benchgen.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Run Inference

> Serve a model you trained as a live, OpenAI-compatible endpoint and send it requests.

After you train and save a model, you run inference on it by deploying it from its model card. Running a model loads it onto a GPU and exposes an OpenAI-compatible endpoint you can send requests to. This is the same **Run Inference** flow used for any model on BenchGen, so the full walkthrough lives in [Deploy an inference model](https://benchgen.com/docs/eval/run-an-inference-model.md).

## Prerequisites

* A saved model from a training run (see [Merge & save a model](https://benchgen.com/docs/train/merge-lora-adapter.md)), or any model in your workspace (see [Add a model](https://benchgen.com/docs/eval/add-a-model.md)).
* A GPU node with free capacity.

## Steps

### 1. Open the model and click Run Inference

Open the model's card and click **Run Inference** in the top right.

![A model card with the Run Inference button outlined in the top right](https://mintcdn.com/benchgen-8fc81371/JrpW9W5H7MKVocNa/images/eval/inference/02-model-card.jpg?fit=max\&auto=format\&n=JrpW9W5H7MKVocNa\&q=85\&s=aecf33d1ef3dca706af7f8cdaa359cca)

A model card with the Run Inference button outlined in the top right

### 2. Configure and start

In the **Run Inference** dialog, pick a **GPU** and review the inference settings (max tokens, temperature, top P, context length, precision), then click **Run model**.

![The Run Inference dialog with GPU selection and inference settings, the Run model button outlined](https://mintcdn.com/benchgen-8fc81371/JrpW9W5H7MKVocNa/images/eval/inference/03-run-inference-config.jpg?fit=max\&auto=format\&n=JrpW9W5H7MKVocNa\&q=85\&s=80d244db3410afc9073b5b997f589564)

The Run Inference dialog with GPU selection and inference settings, Run model outlined

### 3. Wait for the endpoint to be ready

The status reads **Deploying** while the model starts up, then turns to **running** once it's live. The model card's endpoint panel fills in with the model's identifier, Endpoint URL, and access token.

![Logs showing the application is ready and the status set to running](https://mintcdn.com/benchgen-8fc81371/JrpW9W5H7MKVocNa/images/eval/inference/06-deployment-ready.jpg?fit=max\&auto=format\&n=JrpW9W5H7MKVocNa\&q=85\&s=ed188dd266b1fbbc60a175b58a638717)

Logs showing the application is ready and the status set to running

> [!TIP]
>
> For the full deployment walkthrough, including the deployment logs and how to verify the model is serving, see [Deploy an inference model](https://benchgen.com/docs/eval/run-an-inference-model.md).

## Send requests

Once the status is **running**, the endpoint is OpenAI-compatible. Use the **Endpoint URL**, **Token**, and **model name** from the model card:

```bash theme={null}
curl https://<your-endpoint-url>/v1/chat/completions \
  -H "Authorization: Bearer <YOUR_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "<model-name>",
    "messages": [
      {"role": "user", "content": "Your test prompt here"}
    ],
    "max_tokens": 256
  }'
```

## Next Steps

> [card] [Monitor Model Usage](https://benchgen.com/docs/eval/monitor-model-usage.md)
>
> Track requests, tokens, latency, and spend for this endpoint.

> [card] [Evaluate an Inference Model](https://benchgen.com/docs/eval/evaluate-a-running-model.md)
>
> Benchmark it against an environment and watch the run in real time.

> [card] [On a Platform Model](https://benchgen.com/docs/eval/run-a-benchmark-platform.md)
>
> Run a formal benchmark to measure improvement.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.