Skip to content

Commit 29a027f

Browse files
committed
modify accomplishment measure
1 parent a742478 commit 29a027f

File tree

10 files changed

+0
-17
lines changed

10 files changed

+0
-17
lines changed

xinference/model/embedding/llama_cpp/core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ def match_json(
235235
model_spec: EmbeddingSpecV1,
236236
quantization: str,
237237
) -> bool:
238-
from ..match_result import MatchResult
239238

240239
result = cls.match_json_with_reason(model_family, model_spec, quantization)
241240
return result.is_match

xinference/model/embedding/sentence_transformers/core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,6 @@ def match_json(
434434
model_spec: EmbeddingSpecV1,
435435
quantization: str,
436436
) -> bool:
437-
from ..match_result import MatchResult
438437

439438
result = cls.match_json_with_reason(model_family, model_spec, quantization)
440439
return result.is_match

xinference/model/llm/llama_cpp/core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ def check_lib(cls) -> bool:
8484
def match_json(
8585
cls, llm_family: LLMFamilyV2, llm_spec: LLMSpecV1, quantization: str
8686
) -> bool:
87-
from ..match_result import MatchResult
8887

8988
result = cls.match_json_with_reason(llm_family, llm_spec, quantization)
9089
return result.is_match

xinference/model/llm/lmdeploy/core.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ def check_lib(cls) -> bool:
119119
def match_json(
120120
cls, llm_family: "LLMFamilyV2", llm_spec: "LLMSpecV1", quantization: str
121121
) -> bool:
122-
from ..match_result import MatchResult
123122

124123
result = cls.match_json_with_reason(llm_family, llm_spec, quantization)
125124
return result.is_match
@@ -187,7 +186,6 @@ def load(self):
187186
def match_json(
188187
cls, llm_family: "LLMFamilyV2", llm_spec: "LLMSpecV1", quantization: str
189188
) -> bool:
190-
from ..match_result import MatchResult
191189

192190
result = cls.match_json_with_reason(llm_family, llm_spec, quantization)
193191
return result.is_match

xinference/model/llm/mlx/core.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,6 @@ def check_lib(cls) -> bool:
411411
def match_json(
412412
cls, llm_family: "LLMFamilyV2", llm_spec: "LLMSpecV1", quantization: str
413413
) -> bool:
414-
from ..match_result import MatchResult
415414

416415
result = cls.match_json_with_reason(llm_family, llm_spec, quantization)
417416
return result.is_match
@@ -770,7 +769,6 @@ def _sanitize_generate_config(
770769
def match_json(
771770
cls, llm_family: "LLMFamilyV2", llm_spec: "LLMSpecV1", quantization: str
772771
) -> bool:
773-
from ..match_result import MatchResult
774772

775773
result = cls.match_json_with_reason(llm_family, llm_spec, quantization)
776774
return result.is_match
@@ -856,7 +854,6 @@ def check_lib(cls) -> bool:
856854
def match_json(
857855
cls, llm_family: "LLMFamilyV2", llm_spec: "LLMSpecV1", quantization: str
858856
) -> bool:
859-
from ..match_result import MatchResult
860857

861858
result = cls.match_json_with_reason(llm_family, llm_spec, quantization)
862859
return result.is_match

xinference/model/llm/sglang/core.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,6 @@ def check_lib(cls) -> bool:
340340
def match_json(
341341
cls, llm_family: "LLMFamilyV2", llm_spec: "LLMSpecV1", quantization: str
342342
) -> bool:
343-
from ..match_result import MatchResult
344343

345344
result = cls.match_json_with_reason(llm_family, llm_spec, quantization)
346345
return result.is_match
@@ -726,7 +725,6 @@ class SGLANGChatModel(SGLANGModel, ChatModelMixin):
726725
def match_json(
727726
cls, llm_family: "LLMFamilyV2", llm_spec: "LLMSpecV1", quantization: str
728727
) -> bool:
729-
from ..match_result import MatchResult
730728

731729
result = cls.match_json_with_reason(llm_family, llm_spec, quantization)
732730
return result.is_match
@@ -858,7 +856,6 @@ class SGLANGVisionModel(SGLANGModel, ChatModelMixin):
858856
def match_json(
859857
cls, llm_family: "LLMFamilyV2", llm_spec: "LLMSpecV1", quantization: str
860858
) -> bool:
861-
from ..match_result import MatchResult
862859

863860
result = cls.match_json_with_reason(llm_family, llm_spec, quantization)
864861
return result.is_match

xinference/model/llm/transformers/core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,6 @@ def check_lib(cls) -> bool:
498498
def match_json(
499499
cls, llm_family: "LLMFamilyV2", llm_spec: "LLMSpecV1", quantization: str
500500
) -> bool:
501-
from ..match_result import MatchResult
502501

503502
result = cls.match_json_with_reason(llm_family, llm_spec, quantization)
504503
return result.is_match

xinference/model/llm/vllm/core.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,6 @@ def check_lib(cls) -> bool:
879879
def match_json(
880880
cls, llm_family: "LLMFamilyV2", llm_spec: "LLMSpecV1", quantization: str
881881
) -> bool:
882-
from ..match_result import MatchResult
883882

884883
result = cls.match_json_with_reason(llm_family, llm_spec, quantization)
885884
return result.is_match
@@ -1458,7 +1457,6 @@ class VLLMChatModel(VLLMModel, ChatModelMixin):
14581457
def match_json(
14591458
cls, llm_family: "LLMFamilyV2", llm_spec: "LLMSpecV1", quantization: str
14601459
) -> bool:
1461-
from ..match_result import MatchResult
14621460

14631461
result = cls.match_json_with_reason(llm_family, llm_spec, quantization)
14641462
return result.is_match
@@ -1737,7 +1735,6 @@ class VLLMMultiModel(VLLMModel, ChatModelMixin):
17371735
def match_json(
17381736
cls, llm_family: "LLMFamilyV2", llm_spec: "LLMSpecV1", quantization: str
17391737
) -> bool:
1740-
from ..match_result import MatchResult
17411738

17421739
result = cls.match_json_with_reason(llm_family, llm_spec, quantization)
17431740
return result.is_match

xinference/model/rerank/sentence_transformers/core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ def match_json(
333333
model_spec: RerankSpecV1,
334334
quantization: str,
335335
) -> bool:
336-
from ..match_result import MatchResult
337336

338337
result = cls.match_json_with_reason(model_family, model_spec, quantization)
339338
return result.is_match

xinference/model/rerank/vllm/core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ def match_json(
149149
model_spec: RerankSpecV1,
150150
quantization: str,
151151
) -> bool:
152-
from ..match_result import MatchResult
153152

154153
result = cls.match_json_with_reason(model_family, model_spec, quantization)
155154
return result.is_match

0 commit comments

Comments
 (0)