File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ $memoryInfo = Get-SystemMemoryInfo
124124# macOS系统特殊处理:使用系统内存作为显存计算基准
125125if ($osType -eq " macOS" ) {
126126 Write-Host " 检测到macOS系统,使用系统内存作为显存计算基准" - ForegroundColor Yellow
127- $gpuInfo.VramGB = $memoryInfo.TotalGB
127+ $gpuInfo.VramGB = $memoryInfo.TotalGB - 2
128128 $gpuInfo.HasGpu = $true # 将macOS视为有GPU(使用统一内存架构)
129129}
130130else {
@@ -164,10 +164,10 @@ foreach ($model in $modelList) {
164164
165165 # 转换为hashtable格式以兼容现有函数
166166 $modelHashtable = @ {
167- Name = $model.name
168- Size = $model.size
167+ Name = $model.name
168+ Size = $model.size
169169 VramRequired = $model.vramRequired
170- ModelId = $model.modelId
170+ ModelId = $model.modelId
171171 }
172172
173173 if (Test-ModelCanDownload - Model $modelHashtable - GpuInfo $gpuInfo - MemoryInfo $memoryInfo ) {
You can’t perform that action at this time.
0 commit comments