MCPcopy 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

1from sat.model import ChatGLM2Model
2from transformers import AutoTokenizer, AutoModel, AutoConfig
3
4tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm2-6b", trust_remote_code=True)

Callers

nothing calls this directly

Calls 6

ChatGLM2ModelClass · 0.90
save_checkpointFunction · 0.90
transform_weightFunction · 0.70
printFunction · 0.50
from_pretrainedMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected