Two applications can ask a local language model for a reply while both are still waiting for an answer. In LM Studio, Max Concurrent Predictions sets how many requests the loaded model can process at once.

The llama.cpp runtime batches work from active requests to the same model. Each request can take longer when it shares the runtime, even if the group finishes sooner. On Windows, use LM Studio Desktop 0.4.0 or later for the load control and runtime log stream. Parallel predictions require a downloaded GGUF chat model and LM Studio's llama.cpp runtime 2.0.0 or later.

LM Studio applies the limit when it loads the model. Start with the server stopped and the target model unloaded so changing its capacity leaves active predictions alone. On Windows, PowerShell can send both test requests to the local server.

Steps to set parallel requests in LM Studio:

  1. Open Model Server in the LM Studio sidebar.
  2. Click Load Model at the top of the server pane.
  3. Turn on Manually choose model load parameters in the model picker.
  4. Select your GGUF chat model under Your Models.
  5. Turn on Show advanced settings in the load dialog.
  6. Scroll down inside the advanced load settings to Max Concurrent Predictions.
  7. Set Max Concurrent Predictions to 2.
  8. Click Load Model to apply the limit.
  9. Confirm that your model's row under Loaded Models shows Parallel 2.
  10. Open Server Settings in Model Server while the server is stopped.
  11. Check that Serve on Local Network is off.

    If it is on, switch it off before starting the server. This keeps the listener on the same computer. Use the token-free requests only on a loopback server that already allows them.

  12. Start the local server with the Status switch while Server Settings is open.

    The server address should show 127.0.0.1 or localhost.

  13. Start the runtime log in a PowerShell window.
    lms log stream --source runtime --json
  14. Confirm that the selected model is idle in a second PowerShell window.
    lms ps

    The row for your model's API Model Identifier must show IDLE under STATUS and 2 under PARALLEL. The overlap test requires a quiet window with no other clients sending requests to the model from this check through both replies.

  15. Set the request URL, loaded model identifier, and prompts in the second PowerShell window.
    Add-Type -AssemblyName System.Net.Http
    $client = [System.Net.Http.HttpClient]::new()
    $client.Timeout = [TimeSpan]::FromSeconds(60)
    $url = 'http://127.0.0.1:1234/v1/chat/completions'
    $model = 'qwen2.5-0.5b-instruct'
    $prompts = 'Write five short facts about the Moon.',
               'Write five short uses for a paper clip.'

    If your server port or API Model Identifier differs, use the values shown in Model Server.

  16. Send both predictions from the second PowerShell window.
    $requests = foreach ($prompt in $prompts) {
        $body = @{
            model = $model
            messages = @(@{
                role = 'user'
                content = $prompt
            })
            max_tokens = 72
        } | ConvertTo-Json -Depth 4 -Compress
        $content = [System.Net.Http.StringContent]::new($body, [Text.Encoding]::UTF8, 'application/json')
        $client.PostAsync($url, $content)
    }
  17. Read the two prediction responses in the second PowerShell window.
    $requests | ForEach-Object {
        $reply = $_.GetAwaiter().GetResult()
        $null = $reply.EnsureSuccessStatusCode()
        $reply.Content.ReadAsStringAsync().GetAwaiter().GetResult()
    }

    Both requests start before PowerShell waits for either reply. Each JSON response contains generated text in choices[0].message.content.

  18. Confirm that the two predictions overlap in the runtime log.

    In the test window, both processing task entries must name your modelIdentifier and the same instanceReference. Each new task ID must have a matching stop processing entry for that instance. Both starts must come before the first matching stop. Slot IDs can repeat across tasks. Other requests to that model during the window make the result inconclusive.

Share this guide