MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / bind

Method bind

deepspeed/utils/static_cache.py:227–229  ·  view source on GitHub ↗

Adopt a prefill cache's linear-attention slot (by reference).

(self, hf_slot)

Source from the content-addressed store, hash-verified

225 self._write_position: torch.Tensor | None = None
226
227 def bind(self, hf_slot) -> None:
228 """Adopt a prefill cache's linear-attention slot (by reference)."""
229 self._slot = hf_slot
230
231 def __getattr__(self, name):
232 # Forward the HF slot API (conv_states, recurrent_states,

Callers 4

get_master_portFunction · 0.80
_generate_graphMethod · 0.80
wrapperFunction · 0.80

Calls

no outgoing calls