Skip to content

Commit

Permalink
Change white space pattern in llama.cpp test
Browse files Browse the repository at this point in the history
  • Loading branch information
rlouf committed Apr 8, 2024
1 parent be662fe commit 121a25c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/generate/test_integration_llamacpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def function(foo: int, bar: List[int]):

rng = torch.Generator(device="cpu")
rng.manual_seed(10)
sequence = generate.json(model, function)(
sequence = generate.json(model, function, whitespace_pattern="")(
prompt, max_tokens=100, temperature=0.0, rng=rng
)
assert isinstance(sequence, dict)
Expand Down

0 comments on commit 121a25c

Please sign in to comment.