MCPcopy
hub / github.com/InternLM/lmdeploy / append

Method append

lmdeploy/turbomind/checkpoint.py:54–59  ·  view source on GitHub ↗

Return a new Prefix with ``name`` appended via ``sep``. Empty current prefix or empty ``name`` skip the separator entirely.

(self, name: str, sep: str = '.')

Source from the content-addressed store, hash-verified

52 return self.append(str(key))
53
54 def append(self, name: str, sep: str = '.') -> Prefix:
55 """Return a new Prefix with ``name`` appended via ``sep``.
56
57 Empty current prefix or empty ``name`` skip the separator entirely.
58 """
59 return Prefix(self.ckpt, self._joined(name, sep))
60
61 # ----- tensor access -----
62

Callers 15

__add__Method · 0.95
gen_packages_itemsFunction · 0.45
get_loggerFunction · 0.45
_stop_wordsFunction · 0.45
tickMethod · 0.45
new_sessionMethod · 0.45
compute_metricsMethod · 0.45
inferMethod · 0.45
_genMethod · 0.45
get_pplMethod · 0.45

Calls 2

_joinedMethod · 0.95
PrefixClass · 0.85