MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / transform_param.py

File transform_param.py

SwissArmyTransformer/examples/mixtral-8x7b/transform_param.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1from transformers import AutoModelForCausalLM, AutoTokenizer, AutoConfig
2import torch
3
4model_id = "mistralai/Mixtral-8x7B-Instruct-v0.1"

Callers

nothing calls this directly

Calls 4

MixtralModelClass · 0.90
save_checkpointFunction · 0.90
transform_weightFunction · 0.70
from_pretrainedMethod · 0.45

Tested by

no test coverage detected