Skip to content

Limits and errors

NDIF is shared, so each job has limits. This page describes each limit and how to find its current value, then lists the error messages NDIF sends and what to do about each.

Limits

Limit How it works When you reach it
Time per job Each model has a maximum running time for one job. A trace is one job. A session is one job. The job is stopped: Your job exceeded the execution timeout of ...s. The message gives the limit.
Runtime per account An account gets a number of minutes of model time in each period. The allowance refills as time passes. A job that is already running is never stopped by it. New jobs are refused until enough has refilled: Runtime limit reached: ... The message gives the allowance and the wait.
nnsight version NDIF accepts recent releases only. The request is refused: Client nnsight version X is below the minimum supported Y.
GPU memory A job can use the GPU memory left beside the model's weights. The job fails with PyTorch's out-of-memory error.
One job at a time Each loaded copy of a model runs one job at a time. Others wait in its queue, in the order they arrived. You wait in QUEUED.

To see your runtime allowance and how much is left:

import nnsight

print(nnsight.whoami()["runtime_limit"])
# {'minutes': ..., 'per_minutes': ..., 'remaining_minutes': ...}

You get minutes of model time every per_minutes minutes, and remaining_minutes is what you have left now.

To stay inside the limits:

  • Put related traces in one session, so they wait in the queue once.
  • Split a long sweep over several sessions (Long run with progress).
  • Use smaller batches when a job runs out of memory. Debugging shows how to read how much memory a job used.

Errors

A failed job raises RemoteError on your machine. The tables below give the start of each message NDIF writes.

The request is refused

These arrive at once, as RemoteError: Failed to send request: ....

Message Meaning What to do
Missing or invalid API key. No key was sent. Save your key.
Invalid API key format The key is not in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. Copy it again from login.ndif.us.
Invalid API key. NDIF does not know this key. Copy it again from login.ndif.us.
Client nnsight version X is below the minimum supported Y. Your nnsight is too old. pip install --upgrade nnsight
Runtime limit reached Your account has used its runtime allowance. Wait the time the message gives.
Service temporarily unavailable: compute backend is reconnecting. Part of NDIF is restarting. Try again in a few minutes.
Internal server error. NDIF failed in a way it did not expect. Try again. If it repeats, report it on the NDIF Discord.

The model does not load

Message Meaning What to do
Could not deploy this model. followed by a reason NDIF could not load the model. See the reasons in Models.
Error provisioning model. or Error starting model. The load failed on the server. Try again later.

The job fails

Message Meaning What to do
Your request payload could not be read (ModuleNotFoundError: ...) The block uses something from a module the server does not have. Check packages. If the module is your own library, register it.
A traceback that ends in ModuleNotFoundError An import in the block names a package the server does not have. Check packages.
Your request payload could not be read (FileNotFoundError: ...) The block uses an object that points at a file on your machine, such as a datasets.Dataset. Load it inside the session.
Your request payload could not be read (...) with another error The server could not unpack the block. Compare versions with compare() and upgrade nnsight.
The model architecture on this server doesn't match the one your code was traced against Your machine built a different module tree than the server's. Match the server's transformers version, shown by compare().
Your job exceeded the execution timeout of ...s. The job ran past the model's time limit. Split the work into several jobs.
A traceback that ends in torch.OutOfMemoryError The block needed more GPU memory than was free. Use smaller batches, and save less inside the block.
A traceback that ends in your own line Your block raised. Fix the line. Debugging has the tools.
A NotImplementedError that mentions untrusted The operation needs trusted access. See access levels. The message names what to use instead.
Replica was evicted while processing your request. The copy of the model running your job was removed. Send the job again.
Error submitting request to model deployment. The copy of the model is restarting. Send the job again in a minute.
Request cancelled by operator. or Your job was cancelled or preempted by the server. An NDIF administrator stopped the job. Ask on the NDIF Discord if you do not know why.