Model training fails on Windows app - KeyError: precision
When I tried to train the DeiT-Tiny Classification model using Windows version of Intel Geti - it failed and I got the following error in logs of a training job:
File \"pyi_rth_multiprocessing.py\", line 48, in _freeze_support\n\n
File \"multiprocessing\\spawn.py\", line 122, in spawn_main\n\n
File \"multiprocessing\\spawn.py\", line 135, in _main\n\n
File \"multiprocessing\\process.py\", line 313, in _bootstrap\n\n
File \"multiprocessing\\process.py\", line 108, in run\n\n
File \"app\\core\\jobs\\exec\\process_run.py\", line 149, in _entrypoint\n\n
File \"app\\execution\\base.py\", line 92, in run\n\n
File \"app\\execution\\training\\otx_trainer.py\", line 590, in execute\n\n>
File \"app\\execution\\base.py\", line 41, in wrapper\n\n
File \"app\\execution\\training\\otx_trainer.py\", line 416, in train_model\n\nKeyError: 'precision'\n",
What is interesting - identical training on a Linux Web version of the application - using the same model and the same dataset didn't fail. Both versions were built from the same code.
Steps to Reproduce
- Create a project
- Upload and annotate images
- Start training using the DeiT-Tiny model and default settings and CPU as device
Environment:
- OS: Windows 11 I used the https://github.com/open-edge-platform/training_extensions/actions/runs/23791094883 version
This is the issue across ALL project types and ALL model architectures
I see that on Windows MSIX as well when trained all models
2026-04-01 12:55:02.612 | INFO | app.execution.training.otx_trainer:train_model:390 - Initializing the OTXEngine for training (model_id=af7e8d54-72f1-4224-912f-2a4e7289b727) The corresponding keys in config are not used.: ['verbose', 'data_root', 'seed', 'callback_monitor', 'resume', 'disable_infer_num_classes', 'workspace'] 2026-04-01 12:55:03.101 | INFO | app.execution.training.otx_trainer:train_model:412 - Starting the training loop (model_id=af7e8d54-72f1-4224-912f-2a4e7289b727) 2026-04-01 12:55:03.102 | ERROR | app.execution.base:_report_progress:122 - Failed: Train Model Traceback (most recent call last):
File "main.py", line 20, in
File "pyi_rth_multiprocessing.py", line 48, in _freeze_support
File "multiprocessing\spawn.py", line 122, in spawn_main
File "multiprocessing\spawn.py", line 135, in _main
File "multiprocessing\process.py", line 313, in _bootstrap
File "multiprocessing\process.py", line 108, in run
File "app\core\jobs\exec\process_run.py", line 149, in _entrypoint
File "app\execution\base.py", line 92, in run
File "app\execution\training\otx_trainer.py", line 590, in execute
File "app\execution\base.py", line 41, in wrapper
File "app\execution\training\otx_trainer.py", line 416, in train_model
KeyError: 'precision' 2026-04-01 12:55:03.139 | DEBUG | app.core.logging.utils:logging_ctx:64 - Stopped logging to C:\Users\yvolokit\AppData\Local\Packages\intel.geti_aqcv7fbxf4wm4\LocalState\jobs\train-d5d4ac43-f682-4c0d-97f1-c42b5bed18e1.log 2026-04-01 12:55:03.155 | SUCCESS | app.core.jobs.control_plane.controller:_run_job:120 - Job completed, job_id: d5d4ac43-f682-4c0d-97f1-c42b5bed18e1
Found root cause, key precision is sometimes not present in the training configuration in CPU-only environments. Fixed by adding a default value in #6017.