<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Nim on Confidential Containers</title>
		<link>/zh-cn/tags/nim/</link>
		<description>Recent content in Nim on Confidential Containers</description>
		<generator>Hugo</generator>
		<language>zh-cn</language>
		
		
		
			<copyright>© The Linux Foundation. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our &lt;a href=&#34;https://www.linuxfoundation.org/trademark-usage/&#34;&gt;Trademark Usage&lt;/a&gt; page.</copyright>
		
		
			<atom:link href="/zh-cn/tags/nim/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>NVIDIA 机密 NIM 部署</title>
				<link>/zh-cn/docs/examples/nvidia-nim-confidential-gpu-attestation/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/zh-cn/docs/examples/nvidia-nim-confidential-gpu-attestation/</guid>
				<description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;说明：&lt;/strong&gt; 本文为英文文档的中文译版，英文原版请参见 &lt;a href=&#34;https://confidentialcontainers.org/docs/examples/nvidia-nim-confidential-gpu-attestation/&#34;&gt;NVIDIA confidential NIM deployment&lt;/a&gt;。&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;本文演示如何把 &lt;a href=&#34;https://docs.nvidia.com/nim/index.html&#34;&gt;NVIDIA NIM&lt;/a&gt; 推理工作负载部署到 Kubernetes，并运行在 Confidential Containers 上。这里以一台启用了 NVIDIA GPU 机密计算能力的 AMD SEV-SNP Kubernetes 工作节点为例。相同的方法也可以迁移到 Intel TDX 节点，但参考值与证明策略需要按 TDX 重新生成，本文不展开。&lt;/p&gt;&#xA;&lt;p&gt;NVIDIA NIM 将基础模型封装成容器，并提供针对 GPU 优化的运行时与 HTTP API。本文从一个普通的 NIM Pod 清单开始，镜像为 &lt;code&gt;nvcr.io/nim/meta/llama-3.1-8b-instruct:1.13.1&lt;/code&gt;，通过 chat completions API 提供 Meta Llama 3.1 8B Instruct 模型服务。可选的基线步骤会先用非机密的 &lt;code&gt;kata-qemu-nvidia-gpu&lt;/code&gt; runtime class 启动它，并检查 8000 端口上的健康状态、模型列表与推理接口。机密场景则切换为 &lt;code&gt;kata-qemu-nvidia-gpu-snp&lt;/code&gt; runtime class，把 Pod 放进机密虚拟机中；但仅改 runtime class 还不够，还需要补齐 Trustee 的 KBS、guest pull、AA 与 CDH 配置、sealed secret、镜像签名策略、生成的 Kata agent policy、可信存储，以及批准 CPU、GPU 与 initdata 证据的 KBS 策略。下面按 checkpoint 逐步完成这些配置。&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
