# `Vllm.Sequence.IntermediateTensors`
[🔗](https://github.com/nshkrdotcom/vllm/blob/v0.3.0/lib/snakebridge_generated/vllm/sequence/intermediate_tensors.ex#L7)

For all pipeline stages except the last, we need to return the hidden

states and residuals to be sent to the next stage. This data structure
contains the hidden states and residuals for a request.

Each stage also needs to handle its own kv_connector_output.

# `t`

```elixir
@opaque t()
```

# `items`

```elixir
@spec items(
  SnakeBridge.Ref.t(),
  keyword()
) :: {:ok, term()} | {:error, Snakepit.Error.t()}
```

Sequence and its related classes.

## Returns

- `term()`

# `new`

```elixir
@spec new(%{optional(String.t()) =&gt; term()}, [term()], keyword()) ::
  {:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
```

Initialize self.  See help(type(self)) for accurate signature.

## Parameters

- `tensors` (%{optional(String.t()) => term()})
- `kv_connector_output` (term() default: None)

---

*Consult [api-reference.md](api-reference.md) for complete listing*
