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

Method rows_for_capacity

examples/server/server.py:3886–3889  ·  view source on GitHub ↗
(self, offset: int, capacity: int)

Source from the content-addressed store, hash-verified

3884 return [*([0] * (len(self.identity_tokens) - 1)), self.decode_n_pos]
3885
3886 def rows_for_capacity(self, offset: int, capacity: int) -> int:
3887 if capacity <= 0:
3888 return 0
3889 return min(capacity, self.end_pos - self.start_pos - offset)
3890
3891 def media_slice(
3892 self,

Calls

no outgoing calls

Tested by

no test coverage detected