Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenSparseLLMs/Linear-MoE
/ __getstate__
Method
__getstate__
linear_moe/tokenizer/tokenization_yi.py:85–88 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
83
)
84
85
def
__getstate__(self):
86
state = self.__dict__.copy()
87
state[
"sp_model"
] = None
88
return
state
89
90
def
__setstate__(self, d):
91
self.__dict__ = d
Callers
nothing calls this directly
Calls
1
copy
Method · 0.80
Tested by
no test coverage detected