MCPcopy Create free account
hub / github.com/codefuse-ai/codefuse-devops-eval / __init__

Method __init__

src/models/internlm_model.py:15–22  ·  view source on GitHub ↗
(self, model_path: str, peft_path: str = None, template: str = "default", trust_remote_code=True, tensor_parallel_size=1, gpu_memory_utilization=0.25)

Source from the content-addressed store, hash-verified

13
14class InternlmModel(ToolModel):
15 def __init__(self, model_path: str, peft_path: str = None, template: str = "default", trust_remote_code=True, tensor_parallel_size=1, gpu_memory_utilization=0.25):
16 self.model_path = model_path
17 self.peft_path = peft_path
18 self.template = template
19 self.trust_remote_code = trust_remote_code
20 self.tensor_parallel_size = tensor_parallel_size
21 self.gpu_memory_utilization = gpu_memory_utilization
22 self.load_model(self.model_path, self.peft_path, self.trust_remote_code, self.tensor_parallel_size, self.gpu_memory_utilization)
23
24 def generate(
25 self, prompts: str,

Callers

nothing calls this directly

Calls 1

load_modelMethod · 0.95

Tested by

no test coverage detected