Skip to content

Make embedding device configurable instead of forcing GPU#12

Open
saksham-jain177 wants to merge 1 commit into
JakeFurtaw:mainfrom
saksham-jain177:config-embedding-device
Open

Make embedding device configurable instead of forcing GPU#12
saksham-jain177 wants to merge 1 commit into
JakeFurtaw:mainfrom
saksham-jain177:config-embedding-device

Conversation

@saksham-jain177

Copy link
Copy Markdown

Embedding models were previously forced onto GPU via set_device(0), which can
cause stale CUDA context errors in long-running sessions (as described in #6 ).

This change makes the embedding device configurable via the EMBEDDING_DEVICE
environment variable (default: CPU), while preserving optional GPU usage for
users who want it.

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.

1 participant