Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
coderai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
coderai
Commits
13e81d0d
Commit
13e81d0d
authored
Mar 16, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix HF tokenizer loading to check for cached local file first when model is URL
parent
b4d3d43b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
coderai
coderai
+7
-0
No files found.
coderai
View file @
13e81d0d
...
@@ -1384,6 +1384,13 @@ class VulkanBackend(ModelBackend):
...
@@ -1384,6 +1384,13 @@ class VulkanBackend(ModelBackend):
print("DEBUG: No model name available for HuggingFace tokenizer")
print("DEBUG: No model name available for HuggingFace tokenizer")
return
return
# If model_path is a URL, try to get the cached local path first
if model_path.startswith('
http
://
') or model_path.startswith('
https
://
'):
cached_path = get_cached_model_path(model_path)
if cached_path and os.path.exists(cached_path):
model_path = cached_path
print(f"DEBUG: Using cached model path for HF tokenizer: {model_path}")
try:
try:
from transformers import AutoTokenizer
from transformers import AutoTokenizer
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment