79309879

Date: 2024-12-26 16:10:24
Score: 0.5
Natty:
Report link

TLDR; use this

import os

os.environ['TF_USE_LEGACY_KERAS'] = '1'

Explanation: Transformers package uses Keras 2 objects, current version is Keras 3, packed in Tensorflow since version 2.16. Fastest fix without downgrading tensorflow is to set legacy keras usage flag as above. More info can be found here.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: TheOne