awslabs / sockeye

Sequence-to-sequence framework with a focus on Neural Machine Translation based on PyTorch
https://awslabs.github.io/sockeye/
Apache License 2.0
1.21k stars 323 forks source link

ValueError: setting an array element with a sequence. #1080

Closed Verkolle closed 1 year ago

Verkolle commented 1 year ago

Hello!

I'm having a reoccurring issue when sockeye.train reaches a checkpoint. Up until that point the training process seems to be going fine, but when it comes to saving the model I get the following error.

Screenshot 2023-01-16 205227

My source and target files have the same line count as does the validation set, so I'm unsure as to what the problem could be.

mjdenkowski commented 1 year ago

This looks like the NumPy compatibility issue we addressed in PR #1077.

Updating to the latest commit of Sockeye should resolve the issue.

Best, Michael

Verkolle commented 1 year ago

Thank you, it seems to be working now!

bricksdont commented 1 year ago

Hi all, could you perhaps make a new Pypi release so that regular installing with pip works again?

fhieber commented 1 year ago

Of course, sorry about the delay. 3.1.31 should be on pypi shortly (see https://github.com/awslabs/sockeye/actions/runs/4062721441)

bricksdont commented 1 year ago

thank you @fhieber and have a nice day everyone