Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenBitSys/BitDistiller
/ device
Method
device
test/general/lm_eval/models/gpt2.py:150–152 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
148
149
@property
150
def
device(self):
151
# TODO: fix multi-gpu
152
return
self._device
153
154
def
tok_encode(self, string: str):
155
return
self.tokenizer.encode(string, add_special_tokens=False)
Callers
1
__init__
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected