Skip to content

Commit e552955

Browse files
committed
Add basic LlamaState tests
1 parent 0b64530 commit e552955

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_llama.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,8 @@ def logit_processor_func(input_ids, logits):
171171
logits_processor=logit_processors
172172
)
173173
assert output["choices"][0]["text"].lower().startswith("rot")
174+
175+
# TODO: Add test better test here
176+
state = model.save_state()
177+
model.load_state(state)
178+

0 commit comments

Comments
 (0)