You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# If
assert len(sentence) > 512
# then
annotated = model_trankit(sentence, is_sent=True)
# result in CUDA error, e.g.
../aten/src/ATen/native/cuda/ScatterGatherKernel.cu:144: operator(): block: [19635,0,0], thread: [112,0,0] Assertion `idx_dim >= 0 && idx_dim < index_size && "index out of bounds"` failed.
Cause
XLM-Roberta can only process 512 characters.
Problem
Cause
XLM-Roberta can only process 512 characters.
Possible fix
trankit/trankit/pipeline.py
Line 1066 in 1c19b9b
Change
to
The text was updated successfully, but these errors were encountered: