Endpoints

A test endpoint serves a selected base model or trained adapter so you can try it by hand or from a local application. Use production routing for application traffic.

Create an endpoint

Check the supported adapter ranks, device demand, context limit and idle timeout:

akka optimize training endpoints info

Create an endpoint for your model:

akka optimize training endpoints create --model triage/qwen3-0.6b:v3 --wait
akka optimize training endpoints get ENDPOINT_ID

The command prints an endpoint ID. Wait for READY before sending requests. If startup fails, get shows the reason. A base model needs --project NAME; a trained model uses its training project. Devices count against that project’s quota. Optimize checks an adapter before claiming devices and refuses missing, invalid or unsupported content.

An endpoint serves a base model and its LoRA adapters, not full-weight models. Check Adapter ranks before training or importing an adapter.

List the endpoints that have not failed or been taken down, and the ones serving any version of a model:

akka optimize training endpoints list --phase active
akka optimize training endpoints list --model triage/qwen3-0.6b

akka optimize training endpoints list --help names the other filters it takes.

Send one input

Send a message and read the answer as it arrives:

akka optimize training endpoints send ENDPOINT_ID --input "Payment failed twice, card declined."

A trained model uses the system message from its first training row. To replace it, pass --instructions. Base models, imported adapters and models trained on prepared tokens have no default instructions.

Use these options to change a request:

  • Use --file ticket.txt or --file - to read input from a file or standard input.

  • Use --model NAME to select one of several models on an endpoint. Use the name shown by endpoints get.

  • Use --model with the Base model repository from endpoints get to ask the base model on an endpoint that serves only adapters. The base model answers without an adapter and without instructions, so you can compare it with an adapter on the same input.

  • Use --max-tokens N to limit the answer length.

  • Use -o json to return the answer, reasoning, tool calls and token usage.

Offer tools

Check endpoints info for tool-call support before choosing a model. Offer an OpenAI tools array from a JSON file:

akka optimize training endpoints send ENDPOINT_ID --input "What is the weather in Paris?" \
  --tools tools.json

The command prints each call’s name and arguments. Use -o json to read toolCalls and any separate reasoning. A model without tool support refuses requests that offer tools; choose a supported model.

Call from an application

Open an authenticated local proxy:

akka optimize training endpoints proxy ENDPOINT_ID

The command prints an OpenAI-compatible address ending in /v1. Replace ADDRESS with it, and MODEL_NAME with the name from endpoints get:

curl -s ADDRESS/chat/completions -H 'content-type: application/json' \
  -d '{"model":"MODEL_NAME","messages":[{"role":"user","content":"Hello"}]}'

The proxy runs until you press Control+C. Use --port to choose its local port. A request with no system or developer message uses the model’s training instructions.

Share devices and models

Models with the same base model and commit share an endpoint. Creating an endpoint can therefore attach your model to an existing one. Read endpoints get to see its models and their request names.

To remove only your model, use its exact registry version:

akka optimize training endpoints detach ENDPOINT_ID triage/qwen3-0.6b:v3

To stop answering for your model while it stays attached, disable it:

akka optimize training endpoints disable ENDPOINT_ID triage/qwen3-0.6b:v3
akka optimize training endpoints enable ENDPOINT_ID triage/qwen3-0.6b:v3

A request for a disabled model is answered with 409. The endpoint keeps its devices, so the model answers again as soon as you enable it.

Disabling refuses requests that come through Optimize, such as endpoints send. A caller inside the deployment’s network that sends to the endpoint’s address directly is not refused. The judge of a run that is still training cannot be disabled.

Detaching the last model stops the endpoint. Shared devices remain reserved until the last endpoint using them stops. Check akka optimize training capacity for shared claims and quota warnings.

Stop an endpoint

Endpoints reserve devices even between requests. Delete an endpoint when you finish testing:

akka optimize training endpoints delete ENDPOINT_ID --wait

For an endpoint with several models, detach your model instead. Optimize refuses deletion while a run uses the endpoint as its judge; Held by names that run. Deleting an endpoint used by an endpoint reward term fails the run scoring against it.

Endpoints also stop after the idle timeout shown by info. Direct requests to the endpoint address do not reset this timeout. Use send or proxy for testing, and production routing for a stable application address.

For an endpoint reward term, read the address with endpoints get -o json and use a served model’s request name. Check Held by to confirm the run holds it. An unfinished run using that model keeps the endpoint from stopping for being idle.

Import an adapter

Import a standard PEFT LoRA directory containing adapter_config.json and adapter_model.safetensors:

akka optimize training base-models select google/gemma-4-E4B-it --wait
akka optimize training adapters import triage/support-adapter --base google/gemma-4-E4B-it -d ./epoch-2
akka optimize training endpoints create --model triage/support-adapter:v1 --wait

Use the same base repository and pinned commit as training. Check the supported rank with endpoints info. DoRA and extra saved modules are unsupported. If import fails, correct the file or module named in the refusal.

To serve an adapter over Gemma 4 mixture-of-experts layers, create the endpoint with that adapter. The endpoint can then serve expert adapters and attention-only adapters. An existing endpoint created without an expert adapter refuses expert adapters. Once no endpoint serves the base model, create a new endpoint with the expert adapter. An endpoint that serves adapters over the experts holds about half as much device memory for requests as one that serves adapters over the attention and MLP layers only.

Optimize refuses expert adapters over other model families, including when used as a grader or reward model.

For a Gemma 4 mixture-of-experts adapter, name experts only in target_parameters: experts.gate_up_proj, experts.down_proj, or both. See serving expert adapters for endpoint requirements.

Import prints the registered version; use that version in endpoints create. To follow an interrupted import, run akka optimize training adapters get IMPORT_ID.