Skip to content

New models in windows preparation script #3333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mzegla
Copy link
Collaborator

@mzegla mzegla commented Jun 3, 2025

No description provided.

@mzegla mzegla force-pushed the update_win_prepare_models branch from 7e567f4 to 7373f10 Compare June 4, 2025 14:35
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds support for downloading tokenizers (with detokenizers) for new LLMs in the Windows preparation script and optimizes the existence check.

  • Introduces four new model variables (QWEN3, LLAMA3, HERMES3, PHI4)
  • Consolidates existence check into a single loop before per‐model download blocks
  • Adds individual download logic for each new model


set MODELS_LIST=%TEXT_GENERATION_MODEL% %EMBEDDING_MODEL% %EMBEDDING_MODEL%\ov %RERANK_MODEL% %VLM_MODEL% %QWEN3_MODEL% %LLAMA3_MODEL% %HERMES3_MODEL% %PHI4_MODEL%

set "ALL_EXIST=1"
Copy link
Preview

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The script uses delayed expansion markers (!ALL_EXIST!) in the loop but never enables delayed expansion. Add setlocal enabledelayedexpansion before the for loop so that ALL_EXIST is updated correctly.

Copilot uses AI. Check for mistakes.

Comment on lines +45 to +46
for %%M in (%MODELS_LIST%) do (
if not exist "%~1\%%M" (
Copy link
Preview

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Items in MODELS_LIST aren’t quoted, so any model path with spaces will break the loop. Either wrap each item in quotes when building MODELS_LIST or use for %%M in ("%MODELS_LIST%") to handle spaces safely.

Suggested change
for %%M in (%MODELS_LIST%) do (
if not exist "%~1\%%M" (
for %%M in ("%MODELS_LIST%") do (
if not exist "%~1\%%~M" (

Copilot uses AI. Check for mistakes.

@@ -93,4 +108,40 @@ if exist "%~1\%VLM_MODEL%" (
if !errorlevel! neq 0 exit /b !errorlevel!
)

if exist "%~1\%QWEN3_MODEL%" (
Copy link
Preview

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The individual download blocks for each model are nearly identical. Consider looping over the new model variables and calling a common download function to reduce duplication and simplify future additions.

Copilot uses AI. Check for mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant