Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check is streamable #166

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rename yield_prompts in tests
  • Loading branch information
AlexTMallen committed Apr 4, 2023
commit faa8496ed88d5020b73758c0461713666921d938
4 changes: 2 additions & 2 deletions tests/test_load_prompts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from elk.extraction import load_prompts, PromptConfig
from elk.extraction import yield_prompts, PromptConfig
from elk.promptsource.templates import DatasetTemplates
from itertools import cycle, islice
from typing import Literal
Expand All @@ -8,7 +8,7 @@
@pytest.mark.filterwarnings("ignore:Unable to find a decoding function")
def test_load_prompts():
def test_single_split(cfg: PromptConfig, split_type: Literal["train", "val"]):
prompt_ds = load_prompts(
prompt_ds = yield_prompts(
*cfg.datasets,
split_type=split_type,
)
Expand Down