Skip to content

Commit cfb7e8c

Browse files
committed
feat(模型下载): 添加qwen3:14b模型并优化内存检查逻辑
添加新的qwen3:14b模型到下载列表 优化模型内存检查逻辑,为缺失Size或VramRequired的模型设置默认值
1 parent 218ee03 commit cfb7e8c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

ai/downloadModels.ps1

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ $modelList = @(
3030
Name = 'qwen3:8b'
3131
Size = 8
3232
VramRequired = 8
33+
},
34+
@{
35+
ModelId = "qwen3:14b"
36+
Name = 'qwen3:14b'
37+
VramRequired = 14
3338
},
3439
@{
3540
ModelId = "gemma3:4b"
@@ -84,8 +89,8 @@ function Test-ModelCanDownload {
8489
)
8590

8691

87-
$modelMemoryGB = $Model.Size
88-
$modelVramGB = $Model.VramRequired
92+
$modelMemoryGB =if ($Model.Size ){$Model.Size} else{ 8 }
93+
$modelVramGB = if($Model.VramRequired){$Model.VramRequired} else{ 4 }
8994

9095
if ($GpuInfo.HasGpu) {
9196
# 有GPU时检查显存

0 commit comments

Comments
 (0)