boris commited on
Commit
7aa2f4b
1 Parent(s): 71c757b

feat: use common wandb shared folder

Browse files
Files changed (1) hide show
  1. seq2seq/run_seq2seq_flax.py +3 -2
seq2seq/run_seq2seq_flax.py CHANGED
@@ -20,8 +20,9 @@ Script adapted from run_summarization_flax.py
20
  # You can also adapt this script on your own sequence to sequence task. Pointers for this are left as comments.
21
 
22
  import os
23
- # set a common huggingface cache folder (used with datasets and transformers)
24
- os.environ['HF_HOME'] = '/data/huggingface/' # required before importing transformers & datasets
 
25
 
26
  import logging as pylogging # To avoid collision with transformers.utils.logging
27
  import sys
 
20
  # You can also adapt this script on your own sequence to sequence task. Pointers for this are left as comments.
21
 
22
  import os
23
+ # set a common huggingface cache folder (used with datasets and transformers) and wandb cache folder (used with artifacts)
24
+ os.environ['HF_HOME'] = '/data/huggingface/' # required before importing transformers & datasets
25
+ os.environ['WANDB_CACHE_DIR'] = '/data/wandb/' # required before importing wandb
26
 
27
  import logging as pylogging # To avoid collision with transformers.utils.logging
28
  import sys