Skip to content

Commit

Permalink
fix import path
Browse files Browse the repository at this point in the history
  • Loading branch information
CSY-ModelCloud committed Nov 24, 2024
1 parent 44f2d1a commit 2d2d2fc
Show file tree
Hide file tree
Showing 32 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion tests/models/test_baichuan.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestBaiChuan(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_bloom.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import torch # noqa: E402

from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestBloom(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_chatglm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


# The official THUDM/chatglm3-6b's tokenization_chatglm.py has compatibility issues with transformers.
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_codegen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestCodeGen(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_cohere.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestCohere(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_deci.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestDeci(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_deepseekv2_lite.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestDeepseekV2Lite(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_exaone.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestExaone(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_falcon.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import torch # noqa: E402

from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestFalcon(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_gemma.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestGemma(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_glm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestGlm(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_gpt2.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import torch # noqa: E402

from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestGpt2(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_gptbigcode.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import torch # noqa: E402

from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestGptBigCode(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_gptj.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import torch # noqa: E402

from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestGptJ(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_gptneox.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


# TODO, this model requires 24G vram at least
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_granite.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestGranite(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_internlm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestInternlm(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_internlm2_5.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestInternlm2_5(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_llama3_2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestLlama3_2(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_longllama.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestLongLlama(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_minicpm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestMiniCpm(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_mistral.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestMistral(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_mixtral.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestMixtral(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_mpt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestMpt(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_opt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestOpt(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_phi_3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestPhi_3(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_qwen2_5.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestQwen2_5(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_stablelm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestStablelm(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_starcode2.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import torch # noqa: E402

from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestStarCode2(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_tinyllama.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestTinyllama(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_xverse.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestXVerse(ModelTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_yi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.model_test import ModelTest # noqa: E402
from ..model_test import ModelTest # noqa: E402


class TestYi(ModelTest):
Expand Down

0 comments on commit 2d2d2fc

Please sign in to comment.