Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ transform_param_newmlp.py
File
transform_param_newmlp.py
SwissArmyTransformer/examples/chatglm2/transform_param_newmlp.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
from
sat.model
import
ChatGLM2Model
2
from
transformers
import
AutoTokenizer, AutoModel, AutoConfig
3
4
tokenizer = AutoTokenizer.from_pretrained(
"THUDM/chatglm2-6b"
, trust_remote_code=True)
Callers
nothing calls this directly
Calls
6
ChatGLM2Model
Class · 0.90
save_checkpoint
Function · 0.90
transform_weight
Function · 0.70
print
Function · 0.50
from_pretrained
Method · 0.45
max
Method · 0.45
Tested by
no test coverage detected