Rami is highly rated and was chased by several top European sides, though Valencia have eventually proved successful in the bid to capture the French youngster.
He will stay with the French league leaders until the end of the season before joining the Spanish side.