{"id":4722,"date":"2024-04-18T22:49:14","date_gmt":"2024-04-18T22:49:14","guid":{"rendered":"https:\/\/game.intel.com\/?p=4722"},"modified":"2024-05-29T21:16:37","modified_gmt":"2024-05-29T21:16:37","slug":"wield-the-power-of-llms-on-intel-arc-gpus","status":"publish","type":"post","link":"https:\/\/game.intel.com\/jp\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/","title":{"rendered":"\u30a4\u30f3\u30c6\u30eb\u00ae Arc\u2122 GPU\u3067LLM\u306e\u30d1\u30ef\u30fc\u3092\u767a\u63ee\u3059\u308b"},"content":{"rendered":"<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h3 class=\"wp-block-heading\">\u30a4\u30f3\u30c6\u30eb\u00ae Arc\u2122 GPU\u3092\u4f7f\u7528\u3057\u3066\u3001\u3055\u307e\u3056\u307e\u306aLLM\u3092\u30ed\u30fc\u30ab\u30eb\u3067\u7c21\u5358\u306b\u5b9f\u884c\u53ef\u80fd<\/h3>\n<\/blockquote>\n\n\n\n<p>\u30b8\u30a7\u30cd\u30ec\u30fc\u30c6\u30a3\u30d6AI\u306f\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u5236\u4f5c\u306e\u53ef\u80fd\u6027\u3092\u5927\u304d\u304f\u5909\u3048\u305f\u3002\u3053\u306e\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u306f\u3001\u3053\u308c\u307e\u3067\u60f3\u50cf\u3082\u3067\u304d\u306a\u304b\u3063\u305f\u753b\u50cf\u3001\u52d5\u753b\u3001\u6587\u7ae0\u3092\u63d0\u4f9b\u3059\u308b\u53ef\u80fd\u6027\u3092\u79d8\u3081\u3066\u3044\u308b\u3002\u5927\u898f\u6a21\u306a\u8a00\u8a9e\u30e2\u30c7\u30eb\uff08LLM\uff09\u306fAI\u306e\u6642\u4ee3\u306b\u5927\u304d\u306a\u8a71\u984c\u3092\u547c\u3093\u3067\u304a\u308a\u3001\u8ab0\u3067\u3082\u6b4c\u306e\u6b4c\u8a5e\u3092\u751f\u6210\u3057\u305f\u308a\u3001\u8907\u96d1\u306a\u7269\u7406\u5b66\u306e\u8cea\u554f\u306b\u5bfe\u3059\u308b\u7b54\u3048\u3092\u5f97\u305f\u308a\u3001\u30b9\u30e9\u30a4\u30c9\u30fb\u30d7\u30ec\u30bc\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u30a2\u30a6\u30c8\u30e9\u30a4\u30f3\u3092\u8d77\u8349\u3057\u305f\u308a\u3059\u308b\u65b9\u6cd5\u3092\u4fc3\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u305d\u3057\u3066\u3053\u308c\u3089\u306eAI\u6a5f\u80fd\u306f\u3001\u3082\u306f\u3084\u30af\u30e9\u30a6\u30c9\u3084\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u30fb\u30b5\u30fc\u30d3\u30b9\u306b\u63a5\u7d9a\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\u3002\u81ea\u5206\u306ePC\u4e0a\u3067\u30ed\u30fc\u30ab\u30eb\u306b\u52d5\u4f5c\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u30e2\u30c7\u30eb\u3092\u5b8c\u5168\u306b\u5236\u5fa1\u3057\u3066\u51fa\u529b\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Intel\u00ae Arc\u2122 A770 16GB\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u30ab\u30fc\u30c9\u3092\u642d\u8f09\u3057\u305fPC\u3067\u3001\u4e00\u822c\u7684\u306a\u5927\u898f\u6a21\u8a00\u8a9e\u30e2\u30c7\u30eb\uff08LLM\uff09\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u3066\u5b9f\u9a13\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306fMistral-7B-Instruct LLM\u3092\u4f7f\u7528\u3057\u307e\u3059\u304c\u3001Phi2\u3084Llama2\u306a\u3069\u304a\u597d\u307f\u306ePyTorch LLM\u3067\u3082\u540c\u3058\u624b\u9806\u3067\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u3082\u3061\u308d\u3093\u3001\u6700\u65b0\u306eLlama3\u30e2\u30c7\u30eb\u3067\u3082\u4f7f\u3048\u307e\u3059\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">IPEX-LLM<\/h2>\n\n\n\n<p>\u540c\u3058\u30d9\u30fc\u30b9\u30fb\u30a4\u30f3\u30b9\u30c8\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u3055\u307e\u3056\u307e\u306a\u30e2\u30c7\u30eb\u3092\u8d70\u3089\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u7406\u7531\u304b\u3089\u3060\u3002 <a href=\"https:\/\/github.com\/intel-analytics\/ipex-llm\">IPEX-LLM<\/a>PyTorch \u7528\u306e LLM \u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002\u3053\u308c\u306f <a href=\"https:\/\/github.com\/intel\/intel-extension-for-pytorch\">PyTorch \u7528\u30a4\u30f3\u30c6\u30eb\u00ae \u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3<\/a> IPEX-LLM\u306f\u3001\u6700\u65b0\u306eLLM\u6700\u9069\u5316\u3068\u30ed\u30fc\u30d3\u30c3\u30c8(INT4\/FP4\/INT8\/FP8)\u91cd\u307f\u5727\u7e2e\u3092\u542b\u307f\u3001Intel\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306e\u305f\u3081\u306e\u3059\u3079\u3066\u306e\u6700\u65b0\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u3092\u5099\u3048\u3066\u3044\u307e\u3059\u3002IPEX-LLM\u306fX<sup>e<\/sup>-Arc A\u30b7\u30ea\u30fc\u30ba\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u30ab\u30fc\u30c9\u306e\u3088\u3046\u306aIntel\u30c7\u30a3\u30b9\u30af\u30ea\u30fc\u30c8GPU\u4e0a\u3067XMX AI\u30a2\u30af\u30bb\u30e9\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u30b3\u30a2\u3068\u3057\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3002Windows Subsystem for Linux\u30d0\u30fc\u30b8\u30e7\u30f32\u3001\u30cd\u30a4\u30c6\u30a3\u30d6Windows\u74b0\u5883\u3001\u30cd\u30a4\u30c6\u30a3\u30d6Linux\u4e0a\u3067Intel Arc A\u30b7\u30ea\u30fc\u30ba\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305f\u3001\u3053\u308c\u3089\u306f\u3059\u3079\u3066\u30cd\u30a4\u30c6\u30a3\u30d6\u306ePyTorch\u306a\u306e\u3067\u3001PyTorch\u30e2\u30c7\u30eb\u3068\u5165\u529b\u30c7\u30fc\u30bf\u3092\u7c21\u5358\u306b\u5165\u308c\u66ff\u3048\u3066\u3001\u9ad8\u6027\u80fd\u30a2\u30af\u30bb\u30e9\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5099\u3048\u305f\u30a4\u30f3\u30c6\u30ebArc GPU\u4e0a\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u3053\u306e\u5b9f\u9a13\u306f\u3001\u6027\u80fd\u6bd4\u8f03\u306a\u3057\u306b\u306f\u5b8c\u4e86\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u4ee5\u4e0b\u306eIntel Arc\u7528\u306e\u30a4\u30f3\u30b9\u30c8\u30e9\u30af\u30b7\u30e7\u30f3\u3068\u3001\u7af6\u5408\u88fd\u54c1\u7528\u306e\u4e00\u822c\u7684\u306b\u5165\u624b\u53ef\u80fd\u306a\u30a4\u30f3\u30b9\u30c8\u30e9\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3001\u540c\u3058\u3088\u3046\u306a\u4fa1\u683c\u30bb\u30b0\u30e1\u30f3\u30c8\u306b\u4f4d\u7f6e\u3059\u308b2\u3064\u306e\u30c7\u30a3\u30b9\u30af\u30ea\u30fc\u30c8GPU\u3092\u898b\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69e0cb8964b9a&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69e0cb8964b9a\" class=\"wp-block-image size-full wp-lightbox-container\"><img fetchpriority=\"high\" width=\"1280\" height=\"720\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/game.intel.com\/wp-content\/uploads\/2024\/04\/LLM-Blog-041824-LLM-Execution-on-Arc-A770-2.png\" alt=\"\" class=\"wp-image-4782\"><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"\u62e1\u5927\u3059\u308b\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001IPEX-LLM\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066Mistral 7B\u30e2\u30c7\u30eb\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\u3001Arc A770 16GB\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30ab\u30fc\u30c9\u306f\u3001CUDA\u3092\u4f7f\u7528\u3057\u3066GeForce RTX 4060 8GB\u3088\u308a\u3082\u6bce\u79d270\u30c8\u30fc\u30af\u30f3\uff08TPS\uff09\u3001\u3064\u307e\u308a70%\u591a\u3044TPS\u3092\u51e6\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u4f55\u3092\u610f\u5473\u3059\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\u4e00\u822c\u7684\u306a\u7d4c\u9a13\u5247\u3067\u306f\u30011\u30c8\u30fc\u30af\u30f3\u306f1\u5358\u8a9e\u306e0.75\u306b\u76f8\u5f53\u3057\u3001\u826f\u3044\u6bd4\u8f03\u5bfe\u8c61\u306f <a href=\"https:\/\/wordsrated.com\/speed-reading-statistics\/\">\u4eba\u9593\u306e\u5e73\u5747\u8aad\u66f8\u901f\u5ea6\u306f1\u79d2\u9593\u306b4\u8a9e<\/a> \u307e\u305f\u306f5.3 TPS\u3067\u3059\u3002Arc A770 16GB\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30ab\u30fc\u30c9\u306f\u3001\u4e00\u822c\u4eba\u304c\u6587\u5b57\u3092\u8aad\u3080\u3088\u308a\u3082\u306f\u308b\u304b\u306b\u901f\u304f\u6587\u5b57\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff01<\/p>\n\n\n\n<p>\u5f53\u793e\u306e\u5185\u90e8\u30c6\u30b9\u30c8\u306b\u3088\u308b\u3068\u3001Arc A770 16GB\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u30ab\u30fc\u30c9\u306f\u3001RTX 4060\u3068\u6bd4\u8f03\u3057\u3066\u3001\u5e45\u5e83\u3044\u30e2\u30c7\u30eb\u3067\u3053\u306e\u80fd\u529b\u3092\u767a\u63ee\u3057\u3001\u7af6\u4e89\u529b\u306e\u3042\u308b\u3001\u3042\u308b\u3044\u306f\u30c8\u30c3\u30d7\u30af\u30e9\u30b9\u306e\u6027\u80fd\u3092\u767a\u63ee\u3067\u304d\u308b\u3053\u3068\u304c\u5206\u304b\u3063\u3066\u304a\u308a\u3001Intel Arc\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u306f\u3001\u30ed\u30fc\u30ab\u30ebLLM\u5b9f\u884c\u306b\u6700\u9069\u306a\u9078\u629e\u80a2\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u3067\u306f\u3001Arc A\u30b7\u30ea\u30fc\u30baGPU\u3067LLM\u3092\u59cb\u3081\u308b\u305f\u3081\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u624b\u9806\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30a4\u30f3\u30b9\u30c8\u30ec\u30fc\u30b7\u30e7\u30f3\u30fb\u30a4\u30f3\u30b9\u30c8\u30e9\u30af\u30b7\u30e7\u30f3<\/h2>\n\n\n\n<p>\u74b0\u5883\u69cb\u7bc9\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3061\u3089\u306e\u30da\u30fc\u30b8\u3082\u53c2\u8003\u306b\u3057\u3066\u307b\u3057\u3044\uff1a <a href=\"https:\/\/ipex-llm.readthedocs.io\/en\/latest\/doc\/LLM\/Quickstart\/install_windows_gpu.html\">\u30a4\u30f3\u30c6\u30ebGPU\u3092\u642d\u8f09\u3057\u305fWindows\u306bIPEX-LLM\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b - IPEX-LLM\u6700\u65b0\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a><\/p>\n\n\n\n<p>1.\u30c7\u30d0\u30a4\u30b9\u30de\u30cd\u30fc\u30b8\u30e3\u3067\u7d71\u5408GPU\u3092\u7121\u52b9\u306b\u3059\u308b\u3002<\/p>\n\n\n\n<p>2.\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb <a href=\"https:\/\/www.anaconda.com\/download\">\u30a2\u30ca\u30b3\u30f3\u30c0<\/a>.<\/p>\n\n\n\n<p>3.\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30b9\u30bf\u30fc\u30c8\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u304d\u3001Anaconda Prompt \u3092\u691c\u7d22\u3057\u3001\u7ba1\u7406\u8005\u3068\u3057\u3066\u5b9f\u884c\u3057\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u4eee\u60f3\u74b0\u5883\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u5404\u30b3\u30de\u30f3\u30c9\u306f\u5225\u3005\u306b\u5165\u529b\u3057\u307e\u3059\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>conda create -n llm python=3.10.6\n\nllm \u3092\u8d77\u52d5\u3059\u308b\n\nlibuv \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\n\npip install dpcpp-cpp-rt==2024.0.2 mkl-dpcpp==2024.0.0 onednn==2024.0.0 gradio\n\npip install --pre --upgrade ipex-llm[xpu] --extra-index-url https:\/\/pytorch-extension.intel.com\/release-whl\/stable\/xpu\/us\/\n\npip install transformers==4.38.0<\/code><\/pre>\n\n\n\n<p>4.4.demo.py\u3068\u3044\u3046\u540d\u524d\u306e\u30c6\u30ad\u30b9\u30c8\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3001C:\u21c4UsersYour_Username\u21c4Documents\u307e\u305f\u306f\u4efb\u610f\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>5.\u597d\u304d\u306a\u30a8\u30c7\u30a3\u30bf\u3067demo.py\u3092\u958b\u304d\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u30b5\u30f3\u30d7\u30eb\u3092\u30b3\u30d4\u30fc\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from transformers import AutoTokenizer\nfrom ipex_llm.transformers import AutoModelForCausalLM\n\u30a4\u30f3\u30dd\u30fc\u30c8\u30c8\u30fc\u30c1\n\u30a4\u30f3\u30dd\u30fc\u30c8 intel_extension_for_pytorch\n\ndevice = \"xpu\" #\u30e2\u30c7\u30eb\u3092\u30ed\u30fc\u30c9\u3059\u308b\u30c7\u30d0\u30a4\u30b9\u3002\n\nmodel_id = \"mistralai\/Mistral-7B-Instruct-v0.2\" #\u62b1\u304d\u3064\u304d\u9854\u306e\u30e2\u30c7\u30ebID\n\ntokenizer = AutoTokenizer.from_pretrained(model_id)\nmodel = AutoModelForCausalLM.from_pretrained(model_id, load_in_4bit=True, torch_dtype=torch.float16)\nmodel = model.to(\u30c7\u30d0\u30a4\u30b9)\n\n\u30e1\u30c3\u30bb\u30fc\u30b8 = [\n    {\"role\"\uff1a\"user\", \"content\"\uff1a\u300c\u597d\u304d\u306a\u8abf\u5473\u6599\u306f\u4f55\u3067\u3059\u304b\uff1f\uff5d\n    {\"role\"\uff1a\"assistant\", \"content\"\uff1a\"\u307e\u3042\u3001\u79c1\u306f\u65b0\u9bae\u306a\u30ec\u30e2\u30f3\u6c41\u3092\u3088\u304f\u7d5e\u308b\u306e\u304c\u597d\u304d\u3067\u3059\u306d\u3002\u30ad\u30c3\u30c1\u30f3\u3067\u3069\u3093\u306a\u6599\u7406\u3092\u4f5c\u308b\u3068\u304d\u3067\u3082\u3001\u30d4\u30ea\u30c3\u3068\u3057\u305f\u98a8\u5473\u3092\u30d7\u30e9\u30b9\u3057\u3066\u304f\u308c\u308b\u3093\u3067\u3059\uff01\"}\u3001\n    {\"role\"\uff1a\"user\", \"content\"\uff1a\u300c\u30de\u30e8\u30cd\u30fc\u30ba\u306e\u30ec\u30b7\u30d4\u306f\u3042\u308a\u307e\u3059\u304b\uff1f\uff5d\n]\n\nencodeds = tokenizer.apply_chat_template(messages, return_tensors=\"pt\")\n\nmodel_inputs = encodeds.to(\u30c7\u30d0\u30a4\u30b9)\nmodel.to(device)\n\ngenerated_ids = model.generate(model_inputs, max_new_tokens=1000, do_sample=True)\ndecoded = tokenizer.batch_decode(generated_ids)\nprint(decoded[0])<\/code><\/pre>\n\n\n\n<p class=\"has-small-font-size\"><em>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u304b\u3089\u30d3\u30eb\u30c9\u3057\u305f\u30b3\u30fc\u30c9 <a href=\"https:\/\/huggingface.co\/mistralai\/Mistral-7B-Instruct-v0.2\">\u3053\u306e\u30ea\u30dd\u30b8\u30c8\u30ea<\/a>.<\/em><\/p>\n\n\n\n<p>6.demo.py \u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002Anaconda \u3067\u3001cd \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066 demo.py \u304c\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3001Anaconda \u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python demo.py<\/code><\/pre>\n\n\n\n<p>\u30de\u30e8\u30cd\u30fc\u30ba\u4f5c\u308a\u306e\u7d20\u6575\u306a\u30ec\u30b7\u30d4\u304c\u624b\u306b\u5165\u308b\uff01<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" width=\"1024\" height=\"213\" src=\"https:\/\/game.intel.com\/wp-content\/uploads\/2024\/04\/LLM-Blog-041824-mayo-recipe-1024x213.png\" alt=\"\" class=\"wp-image-4746\"><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u30e2\u30c7\u30eb\u30c1\u30a7\u30f3\u30b8<\/h2>\n\n\n\n<p>\u4e0a\u3067\u8a2d\u5b9a\u3057\u305f\u306e\u3068\u540c\u3058\u74b0\u5883\u3092\u4f7f\u3044\u3001demo.py\u3067\u30cf\u30ae\u30f3\u30b0\u30fb\u30d5\u30a7\u30a4\u30b9\u306e\u30e2\u30c7\u30ebid\u3092\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u3067\u3001llama2-7B-chat-hf, llama3-8B-it, phi-2, gemma-7B-i, stablelm2 \u306a\u3069\u3001\u30cf\u30ae\u30f3\u30b0\u30fb\u30d5\u30a7\u30a4\u30b9\u3067\u4eba\u6c17\u306e\u3042\u308b\u4ed6\u306e\u30e2\u30c7\u30eb\u3092\u8a66\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>model_id = \"mistralai\/Mistral-7B-Instruct-v0.2\" #\u30cf\u30ae\u30f3\u30b0\u30d5\u30a7\u30a4\u30b9\u306e\u30e2\u30c7\u30ebID\n\n\u306b\n\nmodel_id = \"stabilityai\/stablelm-2-zephyr-1_6b\" # huggingface \u30e2\u30c7\u30ebID<\/code><\/pre>\n\n\n\n<p>\u3082\u3057 demo.py \u306e\u8d77\u52d5\u6642\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3067 transformers \u3092\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\/\u30c0\u30a6\u30f3\u30b0\u30ec\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30a2\u30ca\u30b3\u30f3\u30c0\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u958b\u304f<\/li>\n\n\n\n<li>\u30b3\u30f3\u30c0\u30fb\u30a2\u30af\u30c6\u30a3\u30d9\u30fc\u30c8llm<\/li>\n\n\n\n<li>pip install transformers==4.37.0<\/li>\n<\/ol>\n\n\n\n<p><strong>\u30c8\u30e9\u30f3\u30b9\u30d5\u30a9\u30fc\u30de\u30fc\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\uff1a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table class=\"has-fixed-layout\"><thead><tr><th class=\"has-text-align-center\" data-align=\"center\">\u30e2\u30c7\u30ebID<\/th><th class=\"has-text-align-center\" data-align=\"center\">\u30c8\u30e9\u30f3\u30b9\u30d5\u30a9\u30fc\u30de\u30fc \u30d1\u30c3\u30b1\u30fc\u30b8\u7248<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\">\u30e1\u30bf\u30e9\u30de\/\u30e9\u30de2-7b-\u30c1\u30e3\u30c3\u30c8-hf<\/td><td class=\"has-text-align-center\" data-align=\"center\">4.37.0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">\u30e1\u30bf\u30e9\u30de\/\u30e1\u30bf\u30e9\u30de-3-8B-\u30a4\u30f3\u30b9\u30c8\u30e9\u30af\u30c8<\/td><td class=\"has-text-align-center\" data-align=\"center\">4.37.0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">\u5b89\u5b9aai\/\u5b89\u5b9alm-2-\u30bc\u30d5\u30a1\u30fc-1_6b<\/td><td class=\"has-text-align-center\" data-align=\"center\">4.38.0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">mistralai\/Mistral-7B-Instruct-v0.2<\/td><td class=\"has-text-align-center\" data-align=\"center\">4.38.0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\/\u30d5\u30a1\u30a42<\/td><td class=\"has-text-align-center\" data-align=\"center\">4.38.0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">google\/gemma-7b-it<\/td><td class=\"has-text-align-center\" data-align=\"center\">4.38.1<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">THUDM\/chatglm3-6b<\/td><td class=\"has-text-align-center\" data-align=\"center\">4.38.0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u30e1\u30e2\u30ea\u8981\u4ef6\u306f\u30e2\u30c7\u30eb\u3084\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u3088\u3063\u3066\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002IPEX-LLM \u3067\u52d5\u4f5c\u3059\u308b Intel Arc A750 8GB \u3067\u306f\u3001Llama-2-7B-chat-hf, Mistral-7B-Instruct-v0.2, phi-2 \u307e\u305f\u306f chatglm3-6B \u306e\u4f7f\u7528\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ChatBot WebUI\u306e\u5b9f\u88c5<\/h2>\n\n\n\n<p>\u305d\u308c\u3067\u306f\u3001Gradio\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u306e\u30a6\u30a7\u30d6\u30a4\u3092\u5b9f\u88c5\u3057\u3066\u3001\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3092\u4f7f\u3063\u3066\u3088\u308a\u826f\u3044\u4f53\u9a13\u3092\u63d0\u4f9b\u3057\u307e\u3057\u3087\u3046\u3002LLM\u3068\u306e\u5bfe\u8a71\u578b\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u306e\u5b9f\u88c5\u306b\u95a2\u3059\u308b\u8a73\u7d30\u306f\u3001\u4ee5\u4e0b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002 <a href=\"https:\/\/www.gradio.app\/guides\/creating-a-chatbot-fast\">https:\/\/www.gradio.app\/guides\/creating-a-chatbot-fast<\/a><\/p>\n\n\n\n<p>1.\u597d\u304d\u306a\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067 chatbot_gradio.py \u3068\u3044\u3046\u540d\u524d\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>2.\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u30b3\u30d4\u30fc\u3057\u3066chatbot_gradio.py\u306b\u8cbc\u308a\u4ed8\u3051\u307e\u3059\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gradio\u3092gr\u3068\u3057\u3066\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\n\u30a4\u30f3\u30dd\u30fc\u30c8\u30c8\u30fc\u30c1\n\u30a4\u30f3\u30dd\u30fc\u30c8 intel_extension_for_pytorch\nfrom ipex_llm.transformers import AutoModelForCausalLM\nfrom transformers import AutoTokenizer, StoppingCriteria, StoppingCriteriaList, TextIteratorStreamer\nfrom threading import Thread\n\nmodel_id = \"mistralai\/Mistral-7B-Instruct-v0.2\"\n\ntokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)\nmodel = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True, optimize_model=True, load_in_4bit=True, torch_dtype=torch.float16)\nmodel = model.half()\nmodel = model.to(\"xpu\")\nclass StopOnTokens(StoppingCriteria)\uff1a\n    def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs) -&gt; bool\uff1a\n        stop_ids = [29, 0\uff3d\n        for stop_id in stop_ids\uff1a\n            if input_ids[0][-1] == stop_id\uff1a\n                return True\n        \u507d\u3092\u8fd4\u3059\n\ndef predict(message, history)\uff1a\n    stop = StopOnTokens()\n    history_format = [].\n    for human, assistant in history\uff1a\n        history_format.append({\"role\": \"user\", \"content\": human })\n        history_format.append({\"role\": \"assistant\", \"content\":assistant})\n    history_format.append({\"role\": \"user\", \"content\": \u30e1\u30c3\u30bb\u30fc\u30b8})\n\n    prompt = tokenizer.apply_chat_template(history_format, tokenize=False, add_generation_prompt=True)\n    model_inputs = tokenizer(prompt, return_tensors=\"pt\").to(\"xpu\")\n    streamer = TextIteratorStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)\n    generate_kwargs = dict(\n        model_inputs\u3001\n        streamer=streamer\u3001\n        max_new_tokens=300\u3001\n        do_sample=True\u3001\n        top_p=0.95\u3001\n        top_k=20\u3001\n        temperature=0.8\u3001\n        num_beams=1\u3001\n        pad_token_id=tokenizer.eos_token_id\u3001\n        stopping_criteria=StoppingCriteriaList([stop])\n        )\n    t = Thread(target=model.generate, kwargs=generate_kwargs)\n    t.start()\n\n    partial_message = \"\"\n    for new_token in streamer\uff1a\n        if new_token != '&lt;&#039;\uff1a\n            partial_message += new_token\n            yield partial_message\n\ngr.ChatInterface(predict).launch()<\/code><\/pre>\n\n\n\n<p>3.\u65b0\u3057\u3044 anaconda \u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u958b\u304d\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>pip install gradio<\/li>\n\n\n\n<li>\u30b3\u30f3\u30c0\u30fb\u30a2\u30af\u30c6\u30a3\u30d9\u30fc\u30c8llm<\/li>\n\n\n\n<li>chat_gradio.py\u304c\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bcd\u3059\u308b\u3002<\/li>\n\n\n\n<li>python chatbot_gradio.py<\/li>\n<\/ul>\n\n\n\n<p>4.\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3092\u958b\u304d\u3001127.0.0.1:7860\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002mistral-7b-instruct-v0.2\u8a00\u8a9e\u30e2\u30c7\u30eb\u3067\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3055\u308c\u305f\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\uff01\u3053\u308c\u3067\u3001\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u7528\u306e\u304a\u3057\u3083\u308c\u306aWebUI\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>5.\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3068\u306e\u4f1a\u8a71\u3092\u59cb\u3081\u308b\u305f\u3081\u306b\u8cea\u554f\u3092\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1469\" height=\"874\" src=\"https:\/\/game.intel.com\/wp-content\/uploads\/2024\/04\/LLM-Blog-041824-chatbot-Q-and-A.png\" alt=\"\" class=\"wp-image-4745\"><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u901a\u77e5\u304a\u3088\u3073\u514d\u8cac\u4e8b\u9805<\/h3>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<p>\u6027\u80fd\u306f\u7528\u9014\u3084\u69cb\u6210\u3001\u305d\u306e\u4ed6\u306e\u8981\u56e0\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059\u3002\u8a73\u3057\u304f\u306f <a href=\"https:\/\/edc.intel.com\/content\/www\/us\/en\/products\/performance\/benchmarks\/overview\/\">\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30fb\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30fb\u30b5\u30a4\u30c8<\/a>.<\/p>\n\n\n\n<p>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u7d50\u679c\u306f\u3001\u30b3\u30f3\u30d5\u30a3\u30ae\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u65e5\u4ed8\u6642\u70b9\u3067\u306e\u30c6\u30b9\u30c8\u306b\u57fa\u3065\u304f\u3082\u306e\u3067\u3042\u308a\u3001\u4e00\u822c\u306b\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u3059\u3079\u3066\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u69cb\u6210\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u7d76\u5bfe\u7684\u306b\u5b89\u5168\u306a\u88fd\u54c1\u3084\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u91cf\u7523\u524d\u306e\u30b7\u30b9\u30c6\u30e0\u304a\u3088\u3073\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u57fa\u3065\u304f\u7d50\u679c\u3001\u30a4\u30f3\u30c6\u30eb\u30fb\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30fb\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0 (\u793e\u5185\u306e\u65b0\u30b7\u30b9\u30c6\u30e0\u4f8b)\u3001\u30a4\u30f3\u30c6\u30eb\u793e\u5185\u306e\u5206\u6790\u3001\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u30fc\u306e\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u307e\u305f\u306f\u30e2\u30c7\u30ea\u30f3\u30b0\u3092\u4f7f\u7528\u3057\u3066\u63a8\u5b9a\u307e\u305f\u306f\u30b7\u30df\u30e5\u30ec\u30fc\u30c8\u3055\u308c\u305f\u7d50\u679c\u306f\u3001\u60c5\u5831\u63d0\u4f9b\u306e\u307f\u3092\u76ee\u7684\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u5c06\u6765\u306e\u30b7\u30b9\u30c6\u30e0\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3001\u4ed5\u69d8\u3001\u69cb\u6210\u306e\u5909\u66f4\u306b\u3088\u308a\u3001\u7d50\u679c\u304c\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3042\u306a\u305f\u306e\u8cbb\u7528\u3068\u7d50\u679c\u306f\u7570\u306a\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n\n\n\n<p>\u30a4\u30f3\u30c6\u30eb\u306e\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u306b\u306f\u3001\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3001\u307e\u305f\u306f\u30b5\u30fc\u30d3\u30b9\u306e\u30a2\u30af\u30c6\u30a3\u30d9\u30fc\u30b7\u30e7\u30f3\u304c\u5fc5\u8981\u306a\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u00a9 Intel Corporation.Intel\u3001Intel \u30ed\u30b4\u3001Arc\u3001\u304a\u3088\u3073\u305d\u306e\u4ed6\u306e Intel \u30de\u30fc\u30af\u306f\u3001Intel Corporation \u307e\u305f\u306f\u305d\u306e\u5b50\u4f1a\u793e\u306e\u5546\u6a19\u3067\u3059\u3002<\/p>\n\n\n\n<p>*\u305d\u306e\u4ed6\u306e\u540d\u79f0\u3084\u30d6\u30e9\u30f3\u30c9\u306f\u3001\u4ed6\u8005\u306e\u6240\u6709\u7269\u3067\u3042\u308b\u3068\u4e3b\u5f35\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1280\" height=\"720\" src=\"https:\/\/game.intel.com\/wp-content\/uploads\/2024\/04\/LLM-Blog-041824-System-Configuration-and-Workloads.png\" alt=\"\" class=\"wp-image-4739\" style=\"object-fit:cover\"><\/figure>","protected":false},"excerpt":{"rendered":"<p>Generative AI has changed the landscape of what\u2019s possible in content creation. This technology has the potential to deliver previously unimagined images, videos and writing. Learn how to set up and experiment with popular large language models (LLMs) from the AI community Huggingface on a PC with the Intel\u00ae Arc\u2122 A770 16GB graphics card. <\/p>","protected":false},"author":27,"featured_media":4738,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[6],"tags":[45,48,49,14,47],"class_list":["post-4722","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-intel-arc","tag-ai","tag-generative-ai","tag-huggingface","tag-intel-arc-graphics","tag-llms"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Wield The Power of LLMs On Intel\u00ae Arc\u2122 GPUs | Intel Gaming Access<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/game.intel.com\/jp\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Wield The Power of LLMs On Intel\u00ae Arc\u2122 GPUs | Intel Gaming Access\" \/>\n<meta property=\"og:description\" content=\"Generative AI has changed the landscape of what\u2019s possible in content creation. This technology has the potential to deliver previously unimagined images, videos and writing. Learn how to set up and experiment with popular large language models (LLMs) from the AI community Huggingface on a PC with the Intel\u00ae Arc\u2122 A770 16GB graphics card.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/game.intel.com\/jp\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/\" \/>\n<meta property=\"og:site_name\" content=\"Intel Gaming Access\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-18T22:49:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-29T21:16:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/game.intel.com\/wp-content\/uploads\/2024\/04\/LLM-Blog-041824-llmA770-header.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Intel Gaming\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@IntelGaming\" \/>\n<meta name=\"twitter:site\" content=\"@IntelGaming\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Intel Gaming\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/\"},\"author\":{\"name\":\"Intel Gaming\",\"@id\":\"https:\/\/game.intel.com\/us\/#\/schema\/person\/5a9260725321b6f9dc6b73c2048fb49e\"},\"headline\":\"Wield The Power of LLMs On Intel\u00ae Arc\u2122 GPUs\",\"datePublished\":\"2024-04-18T22:49:14+00:00\",\"dateModified\":\"2024-05-29T21:16:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/\"},\"wordCount\":1075,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/game.intel.com\/us\/#organization\"},\"image\":{\"@id\":\"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/game.intel.com\/wp-content\/uploads\/2024\/04\/LLM-Blog-041824-llmA770-header.png\",\"keywords\":[\"AI\",\"Generative AI\",\"Huggingface\",\"intel arc graphics\",\"LLMs\"],\"articleSection\":[\"Intel\u00ae Arc\u2122 Graphics\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/\",\"url\":\"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/\",\"name\":\"Wield The Power of LLMs On Intel\u00ae Arc\u2122 GPUs | Intel Gaming Access\",\"isPartOf\":{\"@id\":\"https:\/\/game.intel.com\/us\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/game.intel.com\/wp-content\/uploads\/2024\/04\/LLM-Blog-041824-llmA770-header.png\",\"datePublished\":\"2024-04-18T22:49:14+00:00\",\"dateModified\":\"2024-05-29T21:16:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/#primaryimage\",\"url\":\"https:\/\/game.intel.com\/wp-content\/uploads\/2024\/04\/LLM-Blog-041824-llmA770-header.png\",\"contentUrl\":\"https:\/\/game.intel.com\/wp-content\/uploads\/2024\/04\/LLM-Blog-041824-llmA770-header.png\",\"width\":1280,\"height\":768},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/game.intel.com\/ar\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Wield The Power of LLMs On Intel\u00ae Arc\u2122 GPUs\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/game.intel.com\/us\/#website\",\"url\":\"https:\/\/game.intel.com\/us\/\",\"name\":\"Intel Gaming Access\",\"description\":\"Made to Game. Ready for Anything.\",\"publisher\":{\"@id\":\"https:\/\/game.intel.com\/us\/#organization\"},\"alternateName\":\"game.intel.com\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/game.intel.com\/us\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/game.intel.com\/us\/#organization\",\"name\":\"Intel Gaming Access\",\"url\":\"https:\/\/game.intel.com\/us\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/game.intel.com\/us\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/game.intel.com\/wp-content\/uploads\/2026\/01\/square-logo.png\",\"contentUrl\":\"https:\/\/game.intel.com\/wp-content\/uploads\/2026\/01\/square-logo.png\",\"width\":800,\"height\":800,\"caption\":\"Intel Gaming Access\"},\"image\":{\"@id\":\"https:\/\/game.intel.com\/us\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/IntelGaming\",\"https:\/\/www.instagram.com\/intelgaming\/\",\"https:\/\/discord.gg\/intel\",\"https:\/\/www.youtube.com\/@intelgaming\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/game.intel.com\/us\/#\/schema\/person\/5a9260725321b6f9dc6b73c2048fb49e\",\"name\":\"Intel Gaming\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/game.intel.com\/us\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d0fc339c682b4163337309e3b6555e83e4859911e42cdd1109d7b1ddb454cbfb?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d0fc339c682b4163337309e3b6555e83e4859911e42cdd1109d7b1ddb454cbfb?s=96&d=mm&r=g\",\"caption\":\"Intel Gaming\"},\"url\":\"https:\/\/game.intel.com\/jp\/stories\/author\/caton-lai-intel\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Wield The Power of LLMs On Intel\u00ae Arc\u2122 GPUs | Intel Gaming Access","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/game.intel.com\/jp\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/","og_locale":"ja_JP","og_type":"article","og_title":"Wield The Power of LLMs On Intel\u00ae Arc\u2122 GPUs | Intel Gaming Access","og_description":"Generative AI has changed the landscape of what\u2019s possible in content creation. This technology has the potential to deliver previously unimagined images, videos and writing. Learn how to set up and experiment with popular large language models (LLMs) from the AI community Huggingface on a PC with the Intel\u00ae Arc\u2122 A770 16GB graphics card.","og_url":"https:\/\/game.intel.com\/jp\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/","og_site_name":"Intel Gaming Access","article_published_time":"2024-04-18T22:49:14+00:00","article_modified_time":"2024-05-29T21:16:37+00:00","og_image":[{"width":1280,"height":768,"url":"https:\/\/game.intel.com\/wp-content\/uploads\/2024\/04\/LLM-Blog-041824-llmA770-header.png","type":"image\/png"}],"author":"Intel Gaming","twitter_card":"summary_large_image","twitter_creator":"@IntelGaming","twitter_site":"@IntelGaming","twitter_misc":{"Written by":"Intel Gaming","Est. reading time":"8\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/#article","isPartOf":{"@id":"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/"},"author":{"name":"Intel Gaming","@id":"https:\/\/game.intel.com\/us\/#\/schema\/person\/5a9260725321b6f9dc6b73c2048fb49e"},"headline":"Wield The Power of LLMs On Intel\u00ae Arc\u2122 GPUs","datePublished":"2024-04-18T22:49:14+00:00","dateModified":"2024-05-29T21:16:37+00:00","mainEntityOfPage":{"@id":"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/"},"wordCount":1075,"commentCount":0,"publisher":{"@id":"https:\/\/game.intel.com\/us\/#organization"},"image":{"@id":"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/#primaryimage"},"thumbnailUrl":"https:\/\/game.intel.com\/wp-content\/uploads\/2024\/04\/LLM-Blog-041824-llmA770-header.png","keywords":["AI","Generative AI","Huggingface","intel arc graphics","LLMs"],"articleSection":["Intel\u00ae Arc\u2122 Graphics"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/","url":"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/","name":"Wield The Power of LLMs On Intel\u00ae Arc\u2122 GPUs | Intel Gaming Access","isPartOf":{"@id":"https:\/\/game.intel.com\/us\/#website"},"primaryImageOfPage":{"@id":"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/#primaryimage"},"image":{"@id":"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/#primaryimage"},"thumbnailUrl":"https:\/\/game.intel.com\/wp-content\/uploads\/2024\/04\/LLM-Blog-041824-llmA770-header.png","datePublished":"2024-04-18T22:49:14+00:00","dateModified":"2024-05-29T21:16:37+00:00","breadcrumb":{"@id":"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/#primaryimage","url":"https:\/\/game.intel.com\/wp-content\/uploads\/2024\/04\/LLM-Blog-041824-llmA770-header.png","contentUrl":"https:\/\/game.intel.com\/wp-content\/uploads\/2024\/04\/LLM-Blog-041824-llmA770-header.png","width":1280,"height":768},{"@type":"BreadcrumbList","@id":"https:\/\/game.intel.com\/it\/stories\/wield-the-power-of-llms-on-intel-arc-gpus\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/game.intel.com\/ar\/"},{"@type":"ListItem","position":2,"name":"Wield The Power of LLMs On Intel\u00ae Arc\u2122 GPUs"}]},{"@type":"WebSite","@id":"https:\/\/game.intel.com\/us\/#website","url":"https:\/\/game.intel.com\/us\/","name":"\u30a4\u30f3\u30c6\u30eb\u30fb\u30b2\u30fc\u30df\u30f3\u30b0\u30fb\u30a2\u30af\u30bb\u30b9","description":"Made to Game. Ready for Anything.","publisher":{"@id":"https:\/\/game.intel.com\/us\/#organization"},"alternateName":"game.intel.com","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/game.intel.com\/us\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/game.intel.com\/us\/#organization","name":"\u30a4\u30f3\u30c6\u30eb\u30fb\u30b2\u30fc\u30df\u30f3\u30b0\u30fb\u30a2\u30af\u30bb\u30b9","url":"https:\/\/game.intel.com\/us\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/game.intel.com\/us\/#\/schema\/logo\/image\/","url":"https:\/\/game.intel.com\/wp-content\/uploads\/2026\/01\/square-logo.png","contentUrl":"https:\/\/game.intel.com\/wp-content\/uploads\/2026\/01\/square-logo.png","width":800,"height":800,"caption":"Intel Gaming Access"},"image":{"@id":"https:\/\/game.intel.com\/us\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/IntelGaming","https:\/\/www.instagram.com\/intelgaming\/","https:\/\/discord.gg\/intel","https:\/\/www.youtube.com\/@intelgaming"]},{"@type":"Person","@id":"https:\/\/game.intel.com\/us\/#\/schema\/person\/5a9260725321b6f9dc6b73c2048fb49e","name":"Intel Gaming","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/game.intel.com\/us\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d0fc339c682b4163337309e3b6555e83e4859911e42cdd1109d7b1ddb454cbfb?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d0fc339c682b4163337309e3b6555e83e4859911e42cdd1109d7b1ddb454cbfb?s=96&d=mm&r=g","caption":"Intel Gaming"},"url":"https:\/\/game.intel.com\/jp\/stories\/author\/caton-lai-intel\/"}]}},"_links":{"self":[{"href":"https:\/\/game.intel.com\/jp\/wp-json\/wp\/v2\/posts\/4722","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/game.intel.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/game.intel.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/game.intel.com\/jp\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/game.intel.com\/jp\/wp-json\/wp\/v2\/comments?post=4722"}],"version-history":[{"count":0,"href":"https:\/\/game.intel.com\/jp\/wp-json\/wp\/v2\/posts\/4722\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/game.intel.com\/jp\/wp-json\/wp\/v2\/media\/4738"}],"wp:attachment":[{"href":"https:\/\/game.intel.com\/jp\/wp-json\/wp\/v2\/media?parent=4722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/game.intel.com\/jp\/wp-json\/wp\/v2\/categories?post=4722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/game.intel.com\/jp\/wp-json\/wp\/v2\/tags?post=4722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}