MCPcopy Create free account
hub / github.com/OpenRaiser/NanoResearch / __init__

Method __init__

nanoresearch/evolution/ram.py:128–151  ·  view source on GitHub ↗
(
        self,
        model_name_or_path: str = "Qwen/Qwen2.5-7B-Instruct",
        backend: str = "hf",
        vllm_url: str = "",
        max_new_tokens: int = 1024,
        temperature: float = 0.3,
        device: str = "auto",
        enabled: bool = True,
        checkpoint_path: str = "",
    )

Source from the content-addressed store, hash-verified

126 """
127
128 def __init__(
129 self,
130 model_name_or_path: str = "Qwen/Qwen2.5-7B-Instruct",
131 backend: str = "hf",
132 vllm_url: str = "",
133 max_new_tokens: int = 1024,
134 temperature: float = 0.3,
135 device: str = "auto",
136 enabled: bool = True,
137 checkpoint_path: str = "",
138 ) -> None:
139 self.model_name_or_path = model_name_or_path
140 self.backend = RAMBackend(backend)
141 self.vllm_url = vllm_url.rstrip("/")
142 self.max_new_tokens = max_new_tokens
143 self.temperature = temperature
144 self.device = device
145 self.enabled = enabled
146 self.checkpoint_path = checkpoint_path
147
148 # Populated by _lazy_load()
149 self._model = None
150 self._tokenizer = None
151 self._loaded = False
152
153 # ---- properties -------------------------------------------------------
154

Callers

nothing calls this directly

Calls 1

RAMBackendClass · 0.85

Tested by

no test coverage detected