Workers locked out over an industrial dispute at a Melbourne factory are hopeful for a resolution.

Workers who staged a four-day sit-in at a Melbourne factory have voted for a new agreement with their bosses.

Factory workers at International Flavors and Fragrances (IFF) spent four days in their Dandenong lunch room after negotiations for a new workplace agreement broke down.

The 27 men ended their sit-in on Friday after the company's Asia Pacific management arrived from Singapore and agreed to a hearing.

Factory worker and union delegate Arthur Ingles said the agreement came as "blessed relief" to the workers.

"This situation was something that was of no benefit to anyone," Mr Ingles told AAP on Sunday.

"A lot of the conditions that were in contention have been recognised as being legitimate grievances."

The men slept on the lunch room floor on Tuesday night, before friends and family brought bedding and food to support them.

Mr Ingles said the commitment of the workers to standing up for their jobs and conditions was clear.

"We had one bloke who spent those four days with us and his wife was at home with the rest of the family and a seven-week-old baby," he said.

Management arrived from Singapore on Friday and spent nine hours in the Fair Work Commission on Saturday.

An agreement was reached on Sunday afternoon, and Mr Ingles said the workers would return to work at 6am on Monday.