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

Function reset_cache

csrc/transformer/inference/csrc/pt_binding.cpp:437–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437void reset_cache() { InferenceContext::Instance().reset_tokens(); }
438
439template <typename T>
440std::vector<at::Tensor> ds_softmax_context(at::Tensor& query_key_value,

Callers

nothing calls this directly

Calls 1

reset_tokensMethod · 0.45

Tested by

no test coverage detected