@@ -45,7 +45,6 @@ import { ModelRef, computed, onMounted, ref } from 'vue'
45
45
import MirrorItem from ' @/components/install/mirror/MirrorItem.vue'
46
46
import { PYPI_MIRROR , PYTHON_MIRROR , UVMirror } from ' @/constants/uvMirrors'
47
47
import { t } from ' @/i18n'
48
- import { electronAPI } from ' @/utils/envUtil'
49
48
import { isInChina } from ' @/utils/networkUtil'
50
49
import { ValidationState , mergeValidationStates } from ' @/utils/validationUtil'
51
50
@@ -55,17 +54,6 @@ const pythonMirror = defineModel<string>('pythonMirror', { required: true })
55
54
const pypiMirror = defineModel <string >(' pypiMirror' , { required: true })
56
55
const torchMirror = defineModel <string >(' torchMirror' , { required: true })
57
56
58
- const isBlackwellArchitecture = ref (false )
59
-
60
- const requiresNightlyPytorch = async (): Promise <boolean > => {
61
- try {
62
- return await electronAPI ().isBlackwell ()
63
- } catch (error ) {
64
- console .error (' Failed to detect Blackwell architecture:' , error )
65
- return false
66
- }
67
- }
68
-
69
57
const getTorchMirrorItem = (device : TorchDeviceType ): UVMirror => {
70
58
const settingId = ' Comfy-Desktop.UV.TorchInstallMirror'
71
59
switch (device ) {
@@ -76,13 +64,6 @@ const getTorchMirrorItem = (device: TorchDeviceType): UVMirror => {
76
64
fallbackMirror: TorchMirrorUrl .NightlyCpu
77
65
}
78
66
case ' nvidia' :
79
- if (isBlackwellArchitecture .value ) {
80
- return {
81
- settingId ,
82
- mirror: TorchMirrorUrl .NightlyCuda ,
83
- fallbackMirror: TorchMirrorUrl .NightlyCuda
84
- }
85
- }
86
67
return {
87
68
settingId ,
88
69
mirror: TorchMirrorUrl .Cuda ,
@@ -101,7 +82,6 @@ const getTorchMirrorItem = (device: TorchDeviceType): UVMirror => {
101
82
const userIsInChina = ref (false )
102
83
onMounted (async () => {
103
84
userIsInChina .value = await isInChina ()
104
- isBlackwellArchitecture .value = await requiresNightlyPytorch ()
105
85
})
106
86
107
87
const useFallbackMirror = (mirror : UVMirror ) => ({
0 commit comments