Problem
Running Sugar-AI locally produces this deprecation warning on startup:
torch_dtype is deprecated! Use dtype instead!
This appears in app/ai.py when loading the model.
Environment
- Python 3.14.3
- transformers latest (5.x)
- Windows 11
Fix
Replace torch_dtype=torch.float16 with dtype=torch.float16 in app/ai.py.
Fix submitted in PR #109
Problem
Running Sugar-AI locally produces this deprecation warning on startup:
torch_dtypeis deprecated! Usedtypeinstead!This appears in app/ai.py when loading the model.
Environment
Fix
Replace
torch_dtype=torch.float16withdtype=torch.float16in app/ai.py.Fix submitted in PR #109