Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPU-based FHE Example in LLM Use Case #1012

Open
YY-OhioU opened this issue Jan 28, 2025 · 1 comment
Open

GPU-based FHE Example in LLM Use Case #1012

YY-OhioU opened this issue Jan 28, 2025 · 1 comment

Comments

@YY-OhioU
Copy link

Hi,

Thank you for sharing this example of integrating FHE with LLMs! I came across the use case examples (use_case_examples/llm) from this post: link.

The current implementation performs all model computations on the CPU. Would it be possible to provide an example demonstrating how to run the models on GPU?

Thanks again for your work!

@jfrery
Copy link
Contributor

jfrery commented Jan 29, 2025

Hi @YY-OhioU,

You should be able to switch to GPU easily by adding use_gpu = True in the configuration in the compile call.

Note that you also need to install the gpu compatible concrete-python with

pip install concrete-python --extra-index-url https://pypi.zama.ai/gpu

(note that you might need to uninstall the version of concrete-python you have already installed).

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

No branches or pull requests

2 participants