100XZX001 commited on
Commit
95b8e01
·
verified ·
1 Parent(s): d1c5064

Update training.py

Browse files
Files changed (1) hide show
  1. training.py +3 -2
training.py CHANGED
@@ -1,7 +1,8 @@
1
  # training.py – Memory‑safe: Phi‑3‑mini + Expert Demos + Fast PPO (2 iterations)
2
  import os
3
- os.environ["TRITON_DISABLE"] = "1"
4
- os.environ["TOKENIZERS_PARALLELISM"] = "false" # Issue #12: prevent OOM from parallel tokenization
 
5
 
6
  import torch._dynamo
7
  torch._dynamo.config.disable = True
 
1
  # training.py – Memory‑safe: Phi‑3‑mini + Expert Demos + Fast PPO (2 iterations)
2
  import os
3
+ os.environ["TRITON_INTERPRET"] = "1" # force CPU interpretation, no ptxas
4
+ os.environ["TRITON_CACHE_DIR"] = "/tmp/triton_cache"
5
+ os.environ["TORCHINDUCTOR_CPP_WRAPPER"] = "0" # stay in Python # Issue #12: prevent OOM from parallel tokenization
6
 
7
  import torch._dynamo
8
  torch._dynamo.config.disable = True