This is from the new hidream e1 1 model code. Figured it might be useful as a generic cfg trick.
Works on all models that use a negative prompt but is meant for rectified flow models.