Skip to content

Commit 803f1cc

Browse files
committed
Move multimodal projector type configuration into .env file
1 parent 0808979 commit 803f1cc

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.8.0] - 2025-11-07
8+
9+
### Changed
10+
- Move multimodal projector type configuration into .env file
11+
712
## [1.7.0] - 2025-10-31
813

914
### Added

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,20 @@ CACHE_DIRECTORY=.\cache
6262
# Path to the directory for importance matrix files.
6363
IMPORTANCE_MATRIX_DIRECTORY=.\imatrix
6464
65+
#
66+
# Comma separated list of multimodal projector types.
67+
#
68+
# For models with vision capability a "mmproj" file will be
69+
# generated and placed next to the quantized models.
70+
#
71+
# Common types for the mmproj files:
72+
#
73+
# F32 : Use float32 for older hardware
74+
# BF16 : Use bfloat16 for current hardware (recommended)
75+
# F16 : Use float16 for older hardware under VRAM constraints
76+
#
77+
MULTIMODAL_PROJECTOR_TYPES=BF16
78+
6579
#
6680
# Comma separated list of quantization types.
6781
#

quantize_weights_for_llama.cpp.ps1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ $cacheDirectory = Resolve-Path -Path $env:CACHE_DIRECTORY
1919
$trainingDataPath = Resolve-Path -Path $env:TRAINING_DATA
2020
$trainingDataChunks = [System.Convert]::ToInt32($env:TRAINING_DATA_CHUNKS)
2121
$quantizationTypes = $env:QUANTIZATION_TYPES -split ','
22+
$multimodalProjectorTypes = $env:MULTIMODAL_PROJECTOR_TYPES -split ','
2223

2324
$naturalSort = { [regex]::Replace($_, '\d+', { $args[0].Value.PadLeft(20) }) }
2425
$repositoryDirectories = @(Get-ChildItem -Directory $sourceDirectory -Name | Sort-Object $naturalSort)
@@ -52,10 +53,8 @@ ForEach ($repositoryName in $repositoryDirectories) {
5253
$unquantizedModelPath = $unquantizedModelPathFromSource
5354
}
5455

55-
# We are computing a multimodal projector model in BF16 format
56-
# for current hardware and F32 format as a fallback for older
57-
# hardware for each model to enable vision capabilities.
58-
ForEach ($multimodalProjectorType in @('BF16', 'F32')) {
56+
# We are computing a multimodal projector file for each model to enable vision capabilities.
57+
ForEach ($multimodalProjectorType in $multimodalProjectorTypes) {
5958

6059
$multimodalProjectorPath = Join-Path -Path $targetDirectoryPath -ChildPath "${repositoryName}.mmproj.${multimodalProjectorType}.gguf"
6160

0 commit comments

Comments
 (0)