mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
fix test case
This commit is contained in:
parent
5d6d6bb0dc
commit
3c8fc32288
1 changed files with 2 additions and 5 deletions
|
|
@ -99,8 +99,8 @@ async def test_single_completion(mock_server):
|
|||
assert all(t == -100 for t in node.masked_tokens[:prompt_len])
|
||||
assert node.masked_tokens[prompt_len:] == output_tokens
|
||||
|
||||
# Check logprobs: prompt should be 0.0, completion should have actual logprobs
|
||||
assert all(lp == 0.0 for lp in node.logprobs[:prompt_len])
|
||||
# Check logprobs: prompt should be 1.0 (masked), completion should have actual logprobs
|
||||
assert all(lp == 1.0 for lp in node.logprobs[:prompt_len])
|
||||
assert node.logprobs[prompt_len:] == output_logprobs
|
||||
|
||||
|
||||
|
|
@ -401,9 +401,6 @@ async def test_multi_turn_chat_with_branching(mock_server):
|
|||
state = managed.get_state()
|
||||
assert len(state["nodes"]) == 8
|
||||
|
||||
# Save references to turn 1 nodes for later verification
|
||||
turn_1_nodes = [node.full_text for node in state["nodes"]]
|
||||
|
||||
# Turn 2: For each of the 8 nodes, extend with another user+assistant turn
|
||||
for i in range(8):
|
||||
messages_2 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue