Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
import
torch
2
import
argparse
3
from
onmt.utils.logging
import
init_logger, logger
4
from
onmt.models.model_saver
import
load_checkpoint
Callers
nothing calls this directly
Calls
9
init_logger
Function · 0.90
load_checkpoint
Function · 0.90
dict_to_vocabs
Function · 0.90
build_base_model
Function · 0.90
vocabs_to_dict
Function · 0.90
load_safe_state_dict
Method · 0.80
save
Method · 0.80
load_state_dict
Method · 0.45
state_dict
Method · 0.45
Tested by
no test coverage detected