Spaces:
Sleeping
Sleeping
Update training.py
Browse files- 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["
|
| 4 |
-
os.environ["
|
|
|
|
| 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
|