AttributeError: ‘XGBModel’ object has no attribute ‘callbacks’

Solution 1
!pip install xgboost==1.5.0
Solution 2
new_attrs = ['grow_policy', 'max_bin', 'eval_metric', 'callbacks', 'early_stopping_rounds', 'max_cat_to_onehot', 'max_leaves', 'sampling_method']

for attr in new_attrs:
    setattr(xgb_model, attr, None)
import pickle

with open("xgb_model_1_5.p", "rb") as rf:
    xgb = pickle.load(rf)
    bst = xgb.get_booster()
    bst.save_model("booster")
import pickle

with open("xgb_model_1_5.p", "rb") as rf:
    xgb = pickle.load(rf)
    bst = xgb.get_booster()
    bst.load_model("booster")

with open("xgb_model_1_6.p", "wb") as wf:
    pickle.dump(xgb, wf)