MCPcopy
hub / github.com/ModelTC/LightLLM / create_prompt_ids_shm_array

Method create_prompt_ids_shm_array

lightllm/server/core/objs/req.py:168–173  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

166 pass
167
168 def create_prompt_ids_shm_array(self):
169 service_uni_name = get_unique_server_name()
170 name = f"{service_uni_name}_shm_prompts_{self.index_in_shm_mem}"
171 self.shm_prompt_ids = ShmArray(name, (self.alloc_shm_numpy_len,), dtype=np.int64)
172 self.shm_prompt_ids.create_shm()
173 return
174
175 def link_prompt_ids_shm_array(self):
176 service_uni_name = get_unique_server_name()

Callers 1

initMethod · 0.95

Calls 3

get_unique_server_nameFunction · 0.90
ShmArrayClass · 0.85
create_shmMethod · 0.80

Tested by

no test coverage detected