Skip to content

Commit bacc3f4

Browse files
committed
build: only do 3 rounds of chat
1 parent 2e8c1a7 commit bacc3f4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/pytest.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
uses: actions/cache@v3
5858
with:
5959
path: ~/.cache/huggingface
60-
key: ${{ runner.os }}-llamav2-cpp
60+
key: ${{ runner.os }}-llama3-cpp
6161

6262
- name: Run LLaMA tests
6363
run: pytest -m llama

tests/test_llama.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async def test_llama(create_kani, gh_log):
5757

5858

5959
async def test_chatting_llamas(create_kani, gh_log):
60-
"""Two kanis chatting with each other for 5 rounds."""
60+
"""Two kanis chatting with each other for 3 rounds."""
6161
tourist = create_kani(
6262
"You are a tourist with plans to visit Tokyo.",
6363
chat_history=[ChatMessage.assistant("What are some cool things to do in Tokyo?")],
@@ -71,7 +71,7 @@ async def test_chatting_llamas(create_kani, gh_log):
7171
"---\n\n"
7272
f"### Tourist\n{tourist_response}\n"
7373
)
74-
for _ in range(5):
74+
for _ in range(3):
7575
print("\n========== GUIDE ==========\n")
7676
guide_stream = guide.chat_round_stream(tourist_response)
7777
async for token in guide_stream:

0 commit comments

Comments
 (0)