Skip to content

Commit

Permalink
fix llama related import (#12611)
Browse files Browse the repository at this point in the history
  • Loading branch information
MeouSker77 authored Dec 25, 2024
1 parent 54b1d7d commit 5f5ac8a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 137 deletions.
2 changes: 1 addition & 1 deletion python/llm/src/ipex_llm/transformers/models/cohere.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
import torch.nn as nn
import torch.utils.checkpoint
from typing import Optional, Tuple, List
from ipex_llm.transformers.models.llama import repeat_kv
from ipex_llm.transformers.models.utils import repeat_kv
from ipex_llm.transformers.models.utils import extend_kv_cache, append_kv_cache
from transformers.models.cohere.modeling_cohere import apply_rotary_pos_emb
from ipex_llm.transformers.models.utils import is_enough_kv_cache_room_4_36
Expand Down
2 changes: 1 addition & 1 deletion python/llm/src/ipex_llm/transformers/models/decilm.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
import torch
from typing import Optional, Tuple
import torch.nn.functional as F
from ipex_llm.transformers.models.utils import repeat_kv
from ipex_llm.transformers.models.utils import apply_rotary_pos_emb
from ipex_llm.transformers.models.llama import repeat_kv
from ipex_llm.transformers.models.utils import should_use_fuse_rope
from ipex_llm.transformers.models.utils import update_past_key_value
from ipex_llm.utils.common import invalidInputError
Expand Down
124 changes: 0 additions & 124 deletions python/llm/test/inference_gpu/test_layer_fast_rope.py

This file was deleted.

11 changes: 0 additions & 11 deletions python/llm/test/run-llm-inference-tests-gpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,3 @@ time=$((now-start))

echo "Bigdl-llm gpu inference tests finished"
echo "Time used:$time seconds"

echo "# Start testing layers.fast_rope_embedding"
start=$(date "+%s")

pytest_check_error pytest ${LLM_INFERENCE_TEST_DIR}/test_layer_fast_rope.py -v -s

now=$(date "+%s")
time=$((now-start))

echo "Bigdl-llm gpu layers.fast_rope_embedding tests finished"
echo "Time used:$time seconds"

0 comments on commit 5f5ac8a

Please sign in to comment.