Skip to content

Commit

Permalink
Lora manager tests fix (#652)
Browse files Browse the repository at this point in the history
This PR solves the "ModuleNotFoundError: No Module named torch.hpu" in
test_lora_manager_hpu.py::test_from_lora_tensors by importing
"habana_frameworks.hpu" to lora model.

Co-authored-by: Vivek Goel <[email protected]>
  • Loading branch information
rsshaik1 and vivekgoe authored Jan 2, 2025
1 parent 2443ba9 commit 2012336
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/lora/test_lora_manager_hpu.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
from typing import Dict, List

import habana_frameworks.torch # noqa: F401
import pytest
import torch
from safetensors.torch import load_file
Expand Down

0 comments on commit 2012336

Please sign in to comment.