Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/evalplus/evalplus
/ is_direct_completion
Method
is_direct_completion
evalplus/provider/hf.py:47–48 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
45
self.model = self.model.to(self.device)
46
47
def
is_direct_completion(self) -> bool:
48
return
self.force_base_prompt or self.tokenizer.chat_template is None
49
50
@torch.inference_mode()
51
def
codegen(
Callers
2
__init__
Method · 0.95
codegen
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected