Update __init__.py
This commit is contained in:
parent
ccd0c8ea9b
commit
2cf7f0e7cc
1 changed files with 6 additions and 0 deletions
|
|
@ -60,6 +60,12 @@ except:
|
|||
"We have some installation instructions on our Github page.")
|
||||
pass
|
||||
|
||||
# Hugging Face Hub faster downloads (only enable during Colab and Kaggle sessions)
|
||||
keynames = "\n" + "\n".join(os.environ.keys())
|
||||
if "\nCOLAB_" in keynames or "\nKAGGLE_" in keynames:
|
||||
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
|
||||
pass
|
||||
|
||||
# We support Pytorch 2
|
||||
# Fixes https://github.com/unslothai/unsloth/issues/38
|
||||
torch_version = torch.__version__.split(".")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue