AttributeError: module 'huggingface_hub.constants' has no attribute 'HF_HUB_CACHE'

1.4k Views Asked by At

I got this error after running:

import os 
import torch 
import torch.nn as nn  
from transformers import AutoTokenizer, AutoConfig,AutoModelForCausalLM 

I tried installing deferent versions of huggingface_hub, transformers, dataset and accelerate but the issue persists.

0

There are 0 best solutions below