Closed AmeyHengle closed 1 year ago
@ProKil Do you have any insight about this problem?
Known issue raised by CI in the original code base: https://github.com/maartensap/context-sbf/actions/runs/4964345227/jobs/8884393741. It should be a version issue since we passed CI before.
@ProKil Any chance we can also let @AmeyHengle see the CI run without making the repo public?
@AmeyHengle Change Line 19 in requirements.txt
to git+https://github.com/huggingface/transformers@2411f0e465e761790879e605a4256f3d4afb7f82
will temporarily fix this bug.
This passed the test in the original repo @XuhuiZhou please update this repo.
@AmeyHengle Hey, we solved this problem, please try again
@ProKil @XuhuiZhou This worked, thanks!😊
Hi! I'm facing an error while running the
train_explain_model
pipeline.The error is occurring in the following line of the
postprocess_text
function in the metrics.py file:preds = np.where(labels != -100, preds, tokenizer.pad_token_id)
Seems like the
np.where
operation is trying to broadcast arrays with shapes (1000, 342), (1000, 512), and () (a scalar), but they are not compatible for broadcasting.Complete Stack Trace