MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / __init__

Method __init__

eval_heldout/rewoo/nodes/LLMNode.py:117–124  ·  view source on GitHub ↗
(self, name="BaseLLMNode", model_name="text-davinci-003", stop=None, input_type=str, output_type=str)

Source from the content-addressed store, hash-verified

115
116class LLMNode(Node):
117 def __init__(self, name="BaseLLMNode", model_name="text-davinci-003", stop=None, input_type=str, output_type=str):
118 super().__init__(name, input_type, output_type)
119 self.model_name = model_name
120 self.stop = stop
121
122 # Initialize to load shards only once
123 if self.model_name in LLAMA_WEIGHTS:
124 self.al = AlpacaLora(lora_weights=self.model_name)
125
126 def run(self, input, log=False):
127 assert isinstance(input, self.input_type)

Callers

nothing calls this directly

Calls 1

AlpacaLoraClass · 0.90

Tested by

no test coverage detected