Skip to content

Optimize model loading with encoder caching - #74

Open
adsharma wants to merge 10 commits into
fastino-ai:mainfrom
adsharma:imports_fixes
Open

Optimize model loading with encoder caching#74
adsharma wants to merge 10 commits into
fastino-ai:mainfrom
adsharma:imports_fixes

Conversation

@adsharma

Copy link
Copy Markdown

Shaves about a second from this benchmark:

from gliner2 import GLiNER2
extractor = GLiNER2.from_pretrained("fastino/gliner2-base-v1")

Still takes 3.7 secs vs 4.7 secs before. Anything we can do to defer more work?

Fixes: #60

@adsharma adsharma changed the title Optimize model loading with encoder caching and local_files_only default Optimize model loading with encoder caching Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing 'requests' dependency in pyproject.toml

1 participant