MCPcopy Create free account
hub / github.com/InternScience/SciReason / get_command

Method get_command

opencompass/tasks/base.py:72–79  ·  view source on GitHub ↗

Get the command template for the task. Args: cfg_path (str): The path to the config file of the task. template (str): The template which have '{task_cmd}' to format the command.

(self, cfg_path, template)

Source from the content-addressed store, hash-verified

70
71 @abstractmethod
72 def get_command(self, cfg_path, template) -> str:
73 """Get the command template for the task.
74
75 Args:
76 cfg_path (str): The path to the config file of the task.
77 template (str): The template which have '{task_cmd}' to format
78 the command.
79 """
80
81 @property
82 def name(self) -> str:

Callers 5

launchMethod · 0.45
launchMethod · 0.45
_load_modelMethod · 0.45
generateMethod · 0.45
get_logitsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected