Skip to main content
The FineTuning resource provides a synchronous interface for launching and managing model fine-tuning jobs in SeekrFlow. It supports custom training and infrastructure settings, job cancellation, event history, and inference with chat completions.

Promote a model for inference

After promoting your model to production with SeekrFlow, the next step is to use it for inference. This involves sending input data to the model and receiving predictions. Here’s a detailed guide on setting up and performing inference with your promoted model.

List all fine-tuning jobs

Endpoint: GET v1/flow/fine-tunes To get the job ID, list all model fine-tunes that were previously created.
Find information including training files, training params, project ID, and description.

Retrieve specific fine-tuning job

Endpoint: GET v1/flow/fine-tunes/{fine_tune_id} This provides the status and detailed information of a specific fine-tuning job, including logging events.

Promote a model

Endpoint: PUT v1/flow/deployments/{deployment_id}/promote When you’ve found your job ID, promote it for inference:
Sample response: Use this deployment ID to run inference with chat completions.

Run inference on streaming chat completions

Chat completions are a great way to test your model’s task- or domain-specific performance, as well as gauge end-user experience. Endpoint: POST v1/inference/chat/completions
Sample response:
For model, you can choose any of our base supported models or models that have been promoted for inference.

Configure parameters in the request body

This guide will help you understand what each parameter does and how to tweak them in the request body for best results. Example: Input messages

Return token log probabilities during inference

You can also return the token log probabilities, or “logprobs”. Logprobs reveal the model’s certainty for each generated token. Low-confidence predictions highlight gaps in training data. During staging, you can flag outputs with low confidence (e.g., logprobs ≪ 0) for manual review or retraining. Unusually high logprobs for irrelevant tokens can signal hallucinations. During staging, this can help refine prompts or adjust temperature settings. The code below follows the OpenAI convention for request formatting:
  • To return the logprobs of the generated tokens, set logprobs=True.
  • To additionally return the top n most likely tokens and their associated logprobs, set top_logprobs=n, where n > 0.

Demote a model

Endpoint: PUT v1/flow/deployments/{deployment_id}/demote When you’re done with your model, demote (i.e., unstage) it:
With SeekrFlow, deploying to a staging environment means promoting a model for inference. However, before using the inference model in your production environment, focus on validation and verification of your model’s performance to ensure a smooth transition.

Run validation checks

Make sure your model is ready for production deployment by running comprehensive validation checks.

Prepare representative validation data

Start by curating diverse validation datasets that mirror real-world inputs, including edge cases and difficult examples your model will encounter in production. Example: For a customer service chatbot handling clothing returns, include:
  • Simple queries (“How do I return this shirt?”)
  • Complex scenarios (“I received the wrong size in a different color than ordered”)
  • Edge cases (“I started a return but the tracking shows it’s still at my house”)
  • Multi-intent queries (“I want to exchange this and add something to my order”)

Run comprehensive checks

Next, evaluate prediction quality and system performance to ensure all production requirements are satisfied.

Track critical metrics

Statistics are a critical tool for making sure your AI is trustworthy. The following are some commonly-used statistical metrics used to evaluate a model’s performance:

Prediction quality metrics

In practice, there’s often a trade-off between minimizing false positives and false negatives. The relative cost of each error type helps determine whether to prioritize precision or recall when optimizing a model. The F1 score is specifically designed to balance the concerns of both, by combining precision and recall into a single metric. Going back to the clothing returns chatbot, you might prioritize F1 score when the costs of incorrectly rejecting valid returns (customer dissatisfaction) and incorrectly accepting invalid returns (financial loss) are both significant concerns that need to be balanced.

System performance metrics

Latency: Response time per prediction Throughput: Prediction volume capacity (e.g., 1000 requests/second)

Identify areas for improvement and iterate

Conduct an error analysis

Categorize and investigate patterns in incorrect predictions to identify underlying causes.

Implement targeted improvements

Apply insights from error analysis to refine the model through iterative improvements:
Last modified on June 26, 2026