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

seqio.get_mixture_or_task('ag_news_subset_template_0_five_shot') failed #72

Open
liuzhiyong01 opened this issue May 16, 2023 · 1 comment

Comments

@liuzhiyong01
Copy link

python script:
selected_mixture = seqio.get_mixture_or_task('ag_news_subset_template_0_five_shot')
INPUT_SEQ_LEN = 2056
TARGET_SEQ_LEN = 512

dataset = selected_mixture.get_dataset(
sequence_length={"inputs": INPUT_SEQ_LEN, "targets": TARGET_SEQ_LEN},
# split="train",
shuffle=True,
num_epochs=1,
# shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for i, ex in enumerate(dataset.take(10)):
print(ex)

this script will report errors:
image

but when i replace
selected_mixture = seqio.get_mixture_or_task('ag_news_subset_template_0_five_shot')
with
selected_mixture = seqio.get_mixture_or_task('ag_news_subset_template_mix_five_shot')
the result is success, why?

@shayne-longpre
Copy link
Collaborator

I'd have to review this. I think there may be a but in ag_news somewhere.

In the meantime, if you are just interested in downloading the final generated set, we now link to them in the README! :)
Hopefully this circumvents your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants