<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic [Intel oneAPI] Issue Loading VideoLLaMA2.1-7B-AV with Intel Extension for Transformers in Intel® Optimized AI Frameworks</title>
    <link>https://community.intel.com/t5/Intel-Optimized-AI-Frameworks/Intel-oneAPI-Issue-Loading-VideoLLaMA2-1-7B-AV-with-Intel/m-p/1671604#M530</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import os&lt;BR /&gt;import torch&lt;BR /&gt;from transformers import AutoModelForCausalLM&lt;BR /&gt;#from videollama2 import model_init, mm_infer&lt;BR /&gt;from intel_extension_for_transformers.transformers import AutoModelForCausalLM&lt;/P&gt;&lt;P&gt;# Set environment variables for Intel oneAPI&lt;BR /&gt;os.environ["DPCPP_COMPATIBILITY_MODE"] = "1"&lt;BR /&gt;os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"&lt;/P&gt;&lt;P&gt;# Move model to Intel GPU (if available)&lt;BR /&gt;device = "dpcpp" if torch.backends.mps.is_available() else "cpu"&lt;BR /&gt;print("Harsha: ", device)&lt;/P&gt;&lt;P&gt;# Load model using Intel oneAPI optimized transformers&lt;BR /&gt;model_path = "DAMO-NLP-SG/VideoLLaMA2.1-7B-AV"&lt;BR /&gt;#model, processor, tokenizer = model_init(model_path)&lt;BR /&gt;model = AutoModelForCausalLM.from_pretrained(model_path)&lt;BR /&gt;model.to(device)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "/home/u722dcf58b7b222d3b6558c78c57e9b4/VideoLLaMA2.1-7B-AV/llama7b.py", line 18, in &amp;lt;module&amp;gt;&lt;BR /&gt;model = AutoModelForCausalLM.from_pretrained(model_path)&lt;BR /&gt;File "/home/u722dcf58b7b222d3b6558c78c57e9b4/.conda/envs/videollama-intel/lib/python3.10/site-packages/intel_extension_for_transformers/transformers/modeling/modeling_auto.py", line 497, in from_pretrained&lt;BR /&gt;config, _ = AutoConfig.from_pretrained(&lt;BR /&gt;File "/home/u722dcf58b7b222d3b6558c78c57e9b4/.local/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 947, in from_pretrained&lt;BR /&gt;raise ValueError(&lt;BR /&gt;ValueError: The checkpoint you are trying to load has model type `videollama2_qwen2` but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Mar 2025 07:45:29 GMT</pubDate>
    <dc:creator>HARSHA_ARAVIND</dc:creator>
    <dc:date>2025-03-03T07:45:29Z</dc:date>
    <item>
      <title>[Intel oneAPI] Issue Loading VideoLLaMA2.1-7B-AV with Intel Extension for Transformers</title>
      <link>https://community.intel.com/t5/Intel-Optimized-AI-Frameworks/Intel-oneAPI-Issue-Loading-VideoLLaMA2-1-7B-AV-with-Intel/m-p/1671604#M530</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import os&lt;BR /&gt;import torch&lt;BR /&gt;from transformers import AutoModelForCausalLM&lt;BR /&gt;#from videollama2 import model_init, mm_infer&lt;BR /&gt;from intel_extension_for_transformers.transformers import AutoModelForCausalLM&lt;/P&gt;&lt;P&gt;# Set environment variables for Intel oneAPI&lt;BR /&gt;os.environ["DPCPP_COMPATIBILITY_MODE"] = "1"&lt;BR /&gt;os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"&lt;/P&gt;&lt;P&gt;# Move model to Intel GPU (if available)&lt;BR /&gt;device = "dpcpp" if torch.backends.mps.is_available() else "cpu"&lt;BR /&gt;print("Harsha: ", device)&lt;/P&gt;&lt;P&gt;# Load model using Intel oneAPI optimized transformers&lt;BR /&gt;model_path = "DAMO-NLP-SG/VideoLLaMA2.1-7B-AV"&lt;BR /&gt;#model, processor, tokenizer = model_init(model_path)&lt;BR /&gt;model = AutoModelForCausalLM.from_pretrained(model_path)&lt;BR /&gt;model.to(device)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "/home/u722dcf58b7b222d3b6558c78c57e9b4/VideoLLaMA2.1-7B-AV/llama7b.py", line 18, in &amp;lt;module&amp;gt;&lt;BR /&gt;model = AutoModelForCausalLM.from_pretrained(model_path)&lt;BR /&gt;File "/home/u722dcf58b7b222d3b6558c78c57e9b4/.conda/envs/videollama-intel/lib/python3.10/site-packages/intel_extension_for_transformers/transformers/modeling/modeling_auto.py", line 497, in from_pretrained&lt;BR /&gt;config, _ = AutoConfig.from_pretrained(&lt;BR /&gt;File "/home/u722dcf58b7b222d3b6558c78c57e9b4/.local/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 947, in from_pretrained&lt;BR /&gt;raise ValueError(&lt;BR /&gt;ValueError: The checkpoint you are trying to load has model type `videollama2_qwen2` but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 07:45:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Optimized-AI-Frameworks/Intel-oneAPI-Issue-Loading-VideoLLaMA2-1-7B-AV-with-Intel/m-p/1671604#M530</guid>
      <dc:creator>HARSHA_ARAVIND</dc:creator>
      <dc:date>2025-03-03T07:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: [Intel oneAPI] Issue Loading VideoLLaMA2.1-7B-AV with Intel Extension for Transformers</title>
      <link>https://community.intel.com/t5/Intel-Optimized-AI-Frameworks/Intel-oneAPI-Issue-Loading-VideoLLaMA2-1-7B-AV-with-Intel/m-p/1688437#M543</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/414679"&gt;@HARSHA_ARAVIND&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for raising the ticket. As intel extension for transformers project was stopped since last year:&lt;A href="https://github.com/intel/intel-extension-for-transformers" target="_blank" rel="noopener"&gt;intel/intel-extension-for-transformers: &lt;LI-EMOJI id="lia_high-voltage" title=":high_voltage:"&gt;&lt;/LI-EMOJI&gt; &amp;nbsp;&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;But the related work are upstreamed to transformer or pytorch, you can use them directly. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please refer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://intel.github.io/intel-extension-for-pytorch/xpu/latest/tutorials/llm.html" target="_blank" rel="noopener"&gt;Large Language Models (LLM) Optimizations Overview — Intel&amp;amp;#174 Extension for PyTorch* 2.7.10+xpu documentation&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/intel/intel-extension-for-pytorch/tree/xpu-main/examples/gpu/llm" target="_blank" rel="noopener"&gt;intel-extension-for-pytorch/examples/gpu/llm at xpu-main · intel/intel-extension-for-pytorch&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;for Intel GPU support in PyTorch&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;python -m pip install torch==2.7.0 torchvision==0.22.0 torchaudio==2.7.0 --index-url https://download.pytorch.org/whl/xpu
python -m pip install intel-extension-for-pytorch==2.7.10+xpu oneccl_bind_pt==2.7.0+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/&lt;/PRE&gt;&lt;P&gt;please also notice the hardware requirement&amp;nbsp; and memory cosumpation of&amp;nbsp; 7B models&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 May 2025 09:13:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Optimized-AI-Frameworks/Intel-oneAPI-Issue-Loading-VideoLLaMA2-1-7B-AV-with-Intel/m-p/1688437#M543</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2025-05-08T09:13:03Z</dc:date>
    </item>
  </channel>
</rss>

