@@ -55,20 +55,31 @@ conflicts = [
55
55
override-dependencies = [
56
56
" intel-sycl-rt==2025.0.4; extra == 'xpu'" ,
57
57
" intel-openmp==2025.0.4; extra == 'xpu'" ,
58
+ # Prebuilt on hpu container
59
+ " numpy<2.0; extra == 'xpu'" ,
60
+ # torch on hpu is installed from the docker image
61
+ # which has a git tag handle, and cannot be seen
62
+ # by uv therefore by the lock.
63
+ # This line should force uv to ignore installing torch, but it doesn't
64
+ # seem to work. Therefore there is still an override within Dockerfile-intel
65
+ # More info: https://github.com/astral-sh/uv/issues/9174
66
+ # "torch; sys_platform == 'never' and extra == 'hpu'",
58
67
]
59
68
constraint-dependencies = [
60
69
" torch==2.5.1; extra == 'hpu'" ,
70
+ " numpy<2.0; extra == 'xpu'" ,
61
71
" torch==2.6.0; extra == 'cpu'" ,
62
72
" torch==2.6.0; extra == 'gpu'" ,
63
73
" torch==2.6.0+xpu; extra == 'xpu'" ,
64
- # "torch; extra == 'hpu'",
65
74
]
66
75
67
76
[tool .uv .sources ]
68
77
torch = [
69
78
{ index = " torch-cpu" , extra = " cpu" },
70
79
{ index = " torch-gpu" , extra = " gpu" },
71
80
{ index = " torch-xpu" , extra = " xpu" },
81
+ # Add a proper index when available
82
+ # { index = "torch-cpu", extra = "hpu" },
72
83
]
73
84
intel-extension-for-pytorch = [ {index = " xpu" }]
74
85
oneccl_bind_pt = [ {index = " xpu" }]
0 commit comments