翻译这个网页内容https://intel.github.io/intel-extension-for-pytorch/xpu/latest/
- User
- Assistant
很抱歉,但我无法直接访问网页链接或内容。不过,如果你能把需要翻译的文本复制粘贴到这里,我可以帮助你翻译它。请提供文本,谢谢!
- User
翻译 Intel® Extension for PyTorch* extends PyTorch* with the latest performance optimizations for Intel hardware. Optimizations take advantage of Intel® Advanced Vector Extensions 512 (Intel® AVX-512) Vector Neural Network Instructions (VNNI) and Intel® Advanced Matrix Extensions (Intel® AMX) on Intel CPUs as well as Intel XeMatrix Extensions (XMX) AI engines on Intel discrete GPUs. Moreover, Intel® Extension for PyTorch* provides easy GPU acceleration for Intel discrete GPUs through the PyTorch* xpu device.
In the current technological landscape, Generative AI (GenAI) workloads and models have gained widespread attention and popularity. Large Language Models (LLMs) have emerged as the dominant models driving these GenAI applications. Starting from 2.1.0, specific optimizations for certain Large Language Models (LLMs) are introduced in the Intel® Extension for PyTorch*. For more information on LLM optimizations, refer to the Large Language Models (LLMs) section.
The extension can be loaded as a Python module for Python programs or linked as a C++ library for C++ programs. In Python scripts, users can enable it dynamically by importing intel_extension_for_pytorch.
- Assistant
Intel® Extension for PyTorch* 通过最新的性能优化扩展 PyTorch*,以提升在英特尔硬件上的表现。这些优化利用了英特尔® 高级向量扩展 512(Intel® AVX-512)向量神经网络指令(VNNI)和英特尔® 高级矩阵扩展(Intel® AMX),这些都是在英特尔 CPU 上的功能,以及在英特尔独立 GPU 上的英特尔 XeMatrix 扩展(XMX)AI 引擎。此外,Intel® Extension for PyTorch* 通过 PyTorch* xpu 设备轻松实现英特尔独立 GPU 的 GPU 加速。
在当前的技术环境中,生成性 AI(GenAI)工作负载和模型已广泛受到关注和流行。大型语言模型(LLMs)已成为推动这些 GenAI 应用的主导模型。从 2.1.0 版本开始,Intel® Extension for PyTorch* 为某些大型语言模型(LLMs)引入了特定的优化。有关 LLM 优化的更多信息,请参阅大型语言模型(LLMs)部分。
该扩展可以作为 Python 程序的 Python 模块加载,或作为 C++ 程序的 C++ 库链接。在 Python 脚本中,用户可以通过导入 intel_extension_for_pytorch 动态启用它。