Skip to content

Commit

Permalink
Replaces gpu with cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
CollectiveUnicorn committed Aug 27, 2024
1 parent c5c580f commit d949f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/text-embeddings/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
)

model_dir = os.environ.get("LFAI_MODEL_PATH", ".model")
model = INSTRUCTOR(model_dir, device="gpu" if GPU_ENABLED else "cpu")
model = INSTRUCTOR(model_dir, device="cuda" if GPU_ENABLED else "cpu")


class InstructorEmbedding:
Expand Down

0 comments on commit d949f74

Please sign in to comment.