How NDIF works¶
This walkthrough follows one request from your machine to NDIF and back. Press Next to step through it.
Open the walkthrough in its own tab
In short¶
- nnsight sends the lines of your block, the outside values they use, and the name of the model.
- NDIF checks your API key and your nnsight version, and puts the request in a queue.
- Each model has its own line. Requests from everyone wait in it, in the order they arrived.
- A loaded copy of the model takes one request at a time and runs your block in step with its forward pass, on the real activations.
- The values you saved are sent back to your variables. Every other value is dropped.
- When the line for a model is slow, NDIF loads another copy of it. When your model has no copy at all, NDIF finds GPUs for it and loads it before your request joins the line, moving other models off the GPUs if it has to.
Running jobs lists the status you see at each of these steps, and Models covers what happens when a model has to be loaded.