File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- __version__ = "2025.3.12 "
15
+ __version__ = "2025.3.13 "
16
16
17
17
__all__ = [
18
18
"SUPPORTS_BFLOAT16" ,
Original file line number Diff line number Diff line change @@ -238,9 +238,8 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):
238
238
"use_fp16 = getattr(args, 'fp16', False)\n " \
239
239
"force_float32 = False\n " \
240
240
"if os.environ.get('UNSLOTH_FORCE_FLOAT32', '0') == '1':\n " \
241
- " if use_bf16 or use_fp16:\n " \
242
- " print('Unsloth: Switching to float32 training since model cannot work with float16')\n " \
243
- " force_float32 = True\n " \
241
+ " print('Unsloth: Switching to float32 training since model cannot work with float16')\n " \
242
+ " force_float32 = True\n " \
244
243
"mixed_precision_dtype = os.environ.get('UNSLOTH_MIXED_PRECISION', 'float32')\n " \
245
244
"dtype = getattr(model.config, 'torch_dtype', None)\n " \
246
245
"if dtype is None: dtype = model.get_input_embeddings().dtype\n " \
You can’t perform that action at this time.
0 commit comments