Answers for "huggingface default cache dir"

0

huggingface default cache dir

""" DO THIS **BEFORE** IMPORTING transformers """

# INSIDE SCRIPT
import os
os.environ['TRANSFORMERS_CACHE'] = '/blabla/cache/'

# FROM BASH
# export TRANSFORMERS_CACHE=/blabla/cache/

""" Use variable HF_HOME instead for the library datasets """
Posted by: Guest on October-08-2021

Python Answers by Framework

Browse Popular Code Answers by Language