Three things change between nearshore and offshore, and only the first is about distance.
The feedback loop. An AI system improves through short loops: a wrong answer found by a user, a case added to the evaluation set, a change tested against it, a decision to release. Each loop needs the engineer and someone who knows the domain. Inside a shared working day a loop can close in hours. Across a gap of ten or twelve hours, each step waits for the other side to wake up, and a week holds fewer loops.
The written record. Distance makes writing more important in both models. An offshore engineer has to leave work that the team can read and continue without a conversation: a pull request with its tests, the open question named, the reason a change was made. A nearshore engineer should do the same, and can also settle the hard cases on a call the same afternoon.
What stays the same. The forms of engagement are the same: a contractor, an employer of record, a full-time role through a local entity, or a firm that places the engineer. So is the way to judge the engineer: systems in production, a record of failures and what changed after them, and a short paid work sample on a problem like yours.
A practical test for a project is to ask how often the system will need a decision from the people who know the domain. If the answer is every day, keep that work inside the same working day. If the work can be specified in advance and checked by tests, distance matters less.
The guide to hiring a nearshore AI engineer covers the forms of engagement and what the cost is made of in each.