Hm, this looks more like a OS/Python issue to me rather than a Pytorch-specific problem. I guess it’s because you have non-ascii characters in your paths (c:\users\илья\).
Maybe try running the code as a .py script adding the following at the top of the script:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

If possible for debugging, I would try to install PyTorch in a directory that has a path with ascii-characters only. If that doesn’t help, we know that there’s a different issue, and otherwise, this might be something @smth knows more about.