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

[BUG]: Annotation with large texts fails #667

Open
1 task done
agpituk opened this issue Jan 17, 2025 · 0 comments · May be fixed by #738
Open
1 task done

[BUG]: Annotation with large texts fails #667

agpituk opened this issue Jan 17, 2025 · 0 comments · May be fixed by #738
Assignees
Labels
backend bug Something isn't working

Comments

@agpituk
Copy link
Contributor

agpituk commented Jan 17, 2025

Description

If we try to generate ground truth for datasets that contains large columns of text it currently fails. @aittalam suggests this might help

Reproduction

Call the annotation endpoint with thunderbird.csv dataset

{
   dataset: "7c74038e-43c7-4527-842a-6252fd8db446" // this is the ID of thunderbird.csv dataset in my local db
   description: "Groundtruth generation for dataset 7c74038e-43c7-4527-842a-6252fd8db446"
   max_samples: -1
   name: "Groundtruth for thunderbird.csv"
}

Relevant log output

Job entrypoint command failed with exit code 1, last available logs (truncated to 20,000 chars): File "/tmp/ray/session_2025-01-17_02-13-42_842760_1/runtime_resources/pip/617697551215d8488f42ccab087d2364573ba842/virtualenv/lib/python3.11/site-packages/transformers/models/bart/modeling_bart.py", line 116, in forward return super().forward(positions + self.offset) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/ray/session_2025-01-17_02-13-42_842760_1/runtime_resources/pip/617697551215d8488f42ccab087d2364573ba842/virtualenv/lib/python3.11/site-packages/torch/nn/modules/sparse.py", line 190, in forward return F.embedding( ^^^^^^^^^^^^ File "/tmp/ray/session_2025-01-17_02-13-42_842760_1/runtime_resources/pip/617697551215d8488f42ccab087d2364573ba842/virtualenv/lib/python3.11/site-packages/torch/nn/functional.py", line 2551, in embedding return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ IndexError: index out of range in self

Expected behavior

It should generate a groundtruth

System Info

MacOS latest version

Have you searched for similar issues before submitting this one?

  • Yes, I have searched for similar issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants