Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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 """
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #huggingface #default #cache #dir
ADD COMMENT
Topic
Name
1+8 =