Spaces:
Sleeping
Sleeping
Update training.py
Browse files1234567# training.py – Memory‑safe: Phi‑3‑mini + Expert Demos + Fast PPO (2 iterations)import osos.environ["TRITON_DISABLE"] = "1"os.environ["TOKENIZERS_PARALLELISM"] = "false" # Issue #12: prevent OOM from parallel tokenizationimport torch._dynamotorch._dynamo.config.disable = True12345678# training.py – Memory‑safe: Phi‑3‑mini + Expert Demos + Fast PPO (2 iterations)import osos.environ["TRITON_INTERPRET"] = "1" # force CPU interpretation, no ptxasos.environ["TRITON_CACHE_DIR"] = "/tmp/triton_cache"os.environ["TORCHINDUCTOR_CPP_WRAPPER"] = "0" # stay in Python # Issue #12: prevent OOM from parallel tokenizationimport torch._dynamotorch._dynamo.config.disable = True
training.py+3-2