MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / cp

Method cp

llama_cpp/_internals.py:611–618  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

609 self.grammar.reset()
610
611 def cp(self):
612 return LlamaSamplingContext(
613 params=self.params,
614 mirostat_mu=self.mirostat_mu,
615 grammar=self.grammar,
616 prev=self.prev.copy(),
617 cur=self.cur.copy(),
618 )
619
620 def last(self) -> Optional[int]:
621 if len(self.prev) > 0:

Callers

nothing calls this directly

Calls 2

copyMethod · 0.45

Tested by

no test coverage detected