No way, tell HR first. That way it's a done deal by the time you speak to the partner - no negotiations, arm-twisting, threats, delays, obfuscation, confusion, forgetting to pass on messages or doubt. You will simply be notifying the partner and arranging your exit from the project, nothing else. This is one of those rare occasions when a HR department actually has a use.