MCPcopy
hub / github.com/OpenNMT/OpenNMT-py / lora_weights.py

File lora_weights.py

tools/lora_weights.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import torch
2import argparse
3from onmt.utils.logging import init_logger, logger
4from onmt.models.model_saver import load_checkpoint

Callers

nothing calls this directly

Calls 9

init_loggerFunction · 0.90
load_checkpointFunction · 0.90
dict_to_vocabsFunction · 0.90
build_base_modelFunction · 0.90
vocabs_to_dictFunction · 0.90
load_safe_state_dictMethod · 0.80
saveMethod · 0.80
load_state_dictMethod · 0.45
state_dictMethod · 0.45

Tested by

no test coverage detected