Closed siddhsql closed 1 year ago
I cannot reproduce:
from transformers import pipeline
import pandas as pd
# prepare table + question
data = {"Actors": ["Brad Pitt", "Leonardo Di Caprio", "George Clooney"], "Number of movies": ["87", "53", "69"]}
table = pd.DataFrame.from_dict(data)
question = "how many movies does Leonardo Di Caprio have?"
# pipeline model
# Note: you must to install torch-scatter first.
tqa = pipeline(task="table-question-answering", model="google/tapas-large-finetuned-wtq")
# result
print(tqa(table=table, query=question)['cells'][0])
works without issue for me.
try with more than 64 rows
On Tue, May 30, 2023 at 7:04 AM Sylvain Gugger @.***> wrote:
I cannot reproduce:
from transformers import pipelineimport pandas as pd
prepare table + questiondata = {"Actors": ["Brad Pitt", "Leonardo Di Caprio", "George Clooney"], "Number of movies": ["87", "53", "69"]}table = pd.DataFrame.from_dict(data)question = "how many movies does Leonardo Di Caprio have?"
pipeline model# Note: you must to install torch-scatter first.tqa = pipeline(task="table-question-answering", model="google/tapas-large-finetuned-wtq")
result
print(tqa(table=table, query=question)['cells'][0])
works without issue for me.
— Reply to this email directly, view it on GitHub https://github.com/huggingface/transformers/issues/23822#issuecomment-1568496021, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6NWEKZF4W7ZMAGNN5HKKF3XIX5AJANCNFSM6AAAAAAYRQMPSE . You are receiving this because you authored the thread.Message ID: @.***>
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
@siddhsql hi, did you found any solution?
no
Do you get the same error using a much smaller batch size? I'm having a very similar issue training a GPT2 model, and I get this when using batch sizes larger than n_positions, or the context size
System Info
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Run the code at:
Observed Behavior
Expected behavior
there should be no error