Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

hugging face change directory model

# credit to the Stack Overflow user in the source link
# from Python
import os
os.environ['TRANSFORMERS_CACHE'] = '/blabla/cache/'

# from Bash
"""export TRANSFORMERS_CACHE=/blabla/cache/"""
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #hugging #face #change #directory #model
ADD COMMENT
Topic
Name
2+1 =