Skip to content

Commit 121a25c

Browse files
committed
Change white space pattern in llama.cpp test
1 parent be662fe commit 121a25c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/generate/test_integration_llamacpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def function(foo: int, bar: List[int]):
338338

339339
rng = torch.Generator(device="cpu")
340340
rng.manual_seed(10)
341-
sequence = generate.json(model, function)(
341+
sequence = generate.json(model, function, whitespace_pattern="")(
342342
prompt, max_tokens=100, temperature=0.0, rng=rng
343343
)
344344
assert isinstance(sequence, dict)

0 commit comments

Comments
 (0)