Closed ItsSimko closed 2 weeks ago
This PR replaces the Mistral LLM model with the Gemma model in the NSIS installer. The implementation changes how the model is downloaded and initialized by removing the direct model file downloads and .env configuration, replacing it with a PowerShell script that uses Ollama to pull and run the Gemma model. The section size for the LLM model has been reduced to reflect Gemma's smaller size requirements.
sequenceDiagram
participant User
participant NSIS_Installer
participant PowerShell
participant Docker
participant Ollama
User->>NSIS_Installer: Start installation
NSIS_Installer->>Docker: Check LLM checkbox state
alt LLM checkbox checked
NSIS_Installer->>PowerShell: Create and run docker_command.ps1
PowerShell->>Ollama: Pull Gemma model
Ollama-->>PowerShell: Model pulled
PowerShell->>Ollama: Run Gemma model
Ollama-->>PowerShell: Model running
PowerShell-->>User: Gemma installed and launched
end
classDiagram
class NSIS_Installer {
-LLM_Installed: int
-Checkbox_LLM: int
-Checkbox_Speech2Text: int
-Checkbox_FreeScribe: int
+ModelPageLeave()
+CheckAndStartDocker()
}
class PowerShellScript {
+CreateScript()
+RunScript()
+DeleteScript()
}
NSIS_Installer --> PowerShellScript : uses
note for NSIS_Installer "Handles installation process and model setup"
note for PowerShellScript "Manages PowerShell script creation and execution"
Change | Details | Files |
---|---|---|
Remove Mistral model download and configuration logic |
|
install.nsi |
Implement Gemma model setup using Ollama |
|
install.nsi |
Improve installation flow and error handling |
|
install.nsi |
We have support for just llama.cpp and a model without ollama installed as well though, right?
We have support for just llama.cpp and a model without ollama installed as well though, right?
The gemma q8 model for llama cpp is installed through the FreeScribe installer, which is pulled from the latest release on the FreeScribe repo.
Summary by Sourcery
Replace the Mistral model with the Gemma model in the NSIS installer, updating the installation process to use a PowerShell script for managing the Gemma model on Ollama.
New Features:
Enhancements: