Hello kind stranger,
Total Newb here, so apologies in advance.
Our vendor implemented the bart model in Azure Synapse Notebook using the following script. It worked fine up until yesterday around noon (EST).
## Imported libraries
!pip install torch transformers
# !conda install -c conda-forge transformers
# essential libries
import torch
import re
import os
import pandas as pd
import numpy as np
import warnings
warnings.filterwarnings(âignoreâ)
# Model libraries
from transformers import pipeline
model = pipeline(âzero-shot-classificationâ, model=âfacebook/bart-large-mnliâ)
# Azure library
from azureml.core import Workspace, Dataset
We are getting the following runtime error message
RuntimeError: Failed to import transformers.models.bart.modeling_tf_bart because of the following error (look up to see its traceback):
cannot import name âcall_contextâ from âtensorflow.python.keras.engineâ (/home/trusted-service-user/cluster-env/env/lib/python3.10/site-packages/tensorflow/python/keras/engine/init.py)
Is there anything we are missing on our script, or anything we can do to fix the issue? Thanks again for your help.