File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ ForEach ($repositoryName in $repositoryDirectories) {
5555 ForEach ($type in $quantizationTypes ) {
5656
5757 $quantizedModelPath = Join-Path - Path $targetDirectoryPath - ChildPath " ${repositoryName} .${type} .gguf"
58- $multimodalProjectionPath = Join-Path - Path $targetDirectoryPath - ChildPath " ${repositoryName} .mmproj.gguf"
5958
6059 if (! (Test-Path - Path $quantizedModelPath ) -and ! (Test-Path - Path $unquantizedModelPath )) {
6160
@@ -66,12 +65,17 @@ ForEach ($repositoryName in $repositoryDirectories) {
6665 '${sourceDirectoryPath} '"
6766 }
6867
69- if ( ! ( Test -Path - Path $multimodalProjectionPath )) {
68+ $multimodalProjectorPath = Join -Path - Path $targetDirectoryPath - ChildPath " ${repositoryName} .mmproj.F16.gguf "
7069
71- Write-Host " Creating multimodal projection model from ${unquantizedModelPath} to ${multimodalProjectionPath} ..." - ForegroundColor " DarkYellow"
70+ # We are computing a multimodal projector model in F16
71+ # format for each model to enable vision capabilities.
72+ if (! (Test-Path - Path $multimodalProjectorPath )) {
73+
74+ Write-Host " Creating multimodal projector model from ${unquantizedModelPath} to ${multimodalProjectorPath} ..." - ForegroundColor " DarkYellow"
7275
7376 Invoke-Expression " python ${llamaCppDirectory} \convert_hf_to_gguf.py ``
74- --outfile '${multimodalProjectionPath} ' ``
77+ --outfile '${multimodalProjectorPath} ' ``
78+ --outtype 'f16' ``
7579 '${sourceDirectoryPath} ' ``
7680 --mmproj"
7781 }
You can’t perform that action at this time.
0 commit comments