> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phala.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GPU CVM FAQs

> Frequently asked questions about GPU CVM workloads and the Private ML SDK.

> [!NOTE]
>
> The [Private ML SDK](https://github.com/nearai/private-ml-sdk) and [vllm-proxy](https://github.com/nearai/vllm-proxy) projects are archived. The SDK answers below describe that legacy setup. For current dstack-based deployment, use [GPU CVM deploy and verify](https://docs.phala.com/phala-cloud/confidential-ai/confidential-gpu/deploy-and-verify.md).

> [accordion] What is the relationship between dstack Private ML SDK, and what's the vllm-proxy doing there?
>
> The Private ML SDK leverages the TEE features provided by Intel and NVIDIA GPUs to support running any GPU workload as a Docker container in a GPU TEE. In the Private ML SDK, dstack is a framework that can run Docker containers, while vllm-proxy is a specific container within it. The vllm-proxy container operates as a server that forwards requests to a vllm container (hosting a large language model). This separation allows vllm to remain unmodified and compatible with its latest versions.

> [accordion] Do I need CUDA or NVIDIA drivers on the host for Private ML SDK with GPU support?
>
> No, CUDA and NVIDIA drivers are not required on the host for the Private ML
> SDK with GPU support. The host should not have NVIDIA drivers installed to
> avoid conflicts with TDX and VFIO passthrough. Drivers and
> CUDA are loaded inside the guest CVM via Docker containers (e.g.,
> kvin/cuda-notebook). The vllm and vllm-proxy services also run entirely within
> the TEE guest, not on the host.

> [accordion] Is CUDA directly accessible in Phala GPU TEE?
>
> Yes, CUDA works in the GPU TEE environment. By default, you don't need to
> install it on the host environment when using private-ml-sdk to create a CVM.
> If you want to use CUDA in your CVM, you can install it manually inside the
> CVM. You can refer to our benchmark analysis with Succinct, where the SP1 VM
> also involves CUDA.

> [accordion] Can I run my app in a docker container with access to GPU TEE under Intel TDX? Is this similar to Google Cloud's Confidential Space?
>
> Yes, you can build your application into a docker image and prepare a
> docker-compose file. The SDK will create a TDX-based virtual machine to launch
> your application. However, unlike Google Cloud's Confidential Space, which
> uses virtual machines, dstack and private-ml-sdk require a bare-metal
> environment.

> [accordion] Is dstack-based including private-ml-sdk's CVM running on bare metal or a hypervisor?
>
> dstack is launched on a bare-metal environment. However, for CVMs created by dstack, a hypervisor (qemu) is used to launch the VM with TDX enabled.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.