Skip to content

Commit 0bee392

Browse files
committed
Edit disk cache to memory cache.
1 parent b54a964 commit 0bee392

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

outlines/fsm/guide.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import functools
12
from dataclasses import dataclass
23
from typing import TYPE_CHECKING, List, Optional, Protocol, Tuple, Union
34

@@ -106,7 +107,7 @@ def copy(self):
106107
return self
107108

108109

109-
@cache()
110+
@functools.lru_cache(maxsize=128)
110111
def create_states_mapping(
111112
regex_string: str, tokenizer: "Tokenizer"
112113
) -> Tuple[dict, set, set]:

0 commit comments

Comments
 (0)