webgpu(python) state cache

This commit is contained in:
josc146
2023-12-28 20:43:57 +08:00
parent e33858f110
commit e083f2c629
3 changed files with 13 additions and 3 deletions

View File

@@ -109,7 +109,7 @@ def add_state(body: AddStateBody):
else copy.deepcopy(body.state)
)
else:
pass # WebGPU
state = body.state.back() # WebGPU
id: int = trie.insert(body.prompt)
dtrie[id] = {