Search
 
SCRIPT & CODE EXAMPLE
 

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 """
Comment

PREVIOUS NEXT
Code Example
Python :: python ssh library 
Python :: python break when key pressed 
Python :: pandas change every row to df 
Python :: python pynput letter key pressed 
Python :: add font to the label in window tkinter 
Python :: list of strings to numbers python 
Python :: python datetime with timezone 
Python :: Socket Programming Client Side 
Python :: say command python 
Python :: how to test wifi speed py 
Python :: all subarrays of an array python 
Python :: selenium python 
Python :: how to sort values in python from dictionary to list 
Python :: python code to open windows command prompt 
Python :: python remove duplicates from 2d list 
Python :: get requests from python 
Python :: get env variable linux python 
Python :: how to export data from mongodb python 
Python :: python string contains substring 
Python :: python cartesian product 
Python :: python random choice int 
Python :: convert mb to gb python 
Python :: discord.py cog 
Python :: python count hex 
Python :: python copy file to new filename 
Python :: instagram private account hacking code python 
Python :: decrease hours in datetime python 
Python :: python get methods of object 
Python :: calculate vif in python 
Python :: python extract value from a list of dictionaries 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =