[PR #5466] [MERGED] Fix clip model loading with unicode paths #17059

Closed
opened 2026-04-16 05:51:44 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5466
Author: @dhiltgen
Created: 7/3/2024
Status: Merged
Merged: 7/5/2024
Merged by: @dhiltgen

Base: mainHead: fix_clip_unicode


📝 Commits (1)

  • 6298f49 Fix clip model loading with unicode paths

📊 Changes

1 file changed (+42 additions, -0 deletions)

View changed files

llm/patches/08-clip-unicode.diff (+42 -0)

📄 Description

On windows, if the model dir contained unicode characters clip models would fail to load. This fixes the file name handling in clip.cpp to support utf16 on windows.

Fixes #5329 #4365


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/5466 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 7/3/2024 **Status:** ✅ Merged **Merged:** 7/5/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `fix_clip_unicode` --- ### 📝 Commits (1) - [`6298f49`](https://github.com/ollama/ollama/commit/6298f49816c2264f9bb77206ad1b015aa357e381) Fix clip model loading with unicode paths ### 📊 Changes **1 file changed** (+42 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `llm/patches/08-clip-unicode.diff` (+42 -0) </details> ### 📄 Description On windows, if the model dir contained unicode characters clip models would fail to load. This fixes the file name handling in clip.cpp to support utf16 on windows. Fixes #5329 #4365 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 05:51:44 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#17059