The Hermione took Lafayette to Boston, not Yorktown. She was a frigate with 26 12 pounder long guns that saw combat with the British in later in the war.
Lafayette was not fond of slavery and this was a military vessel. Slaves being present would be out of place.
Is this helpful?