Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/InternLM/InternLM
/ intern_moss_example.py
File
intern_moss_example.py
tools/transformers/intern_moss_example.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
torch
2
from
torch.utils.data
import
DataLoader
3
from
peft
import
get_peft_model, LoraConfig, TaskType
4
from
transformers
import
get_linear_schedule_with_warmup
Callers
nothing calls this directly
Calls
8
get_dataset
Function · 0.85
collate_fn
Function · 0.85
write
Method · 0.80
train
Method · 0.45
backward
Method · 0.45
step
Method · 0.45
zero_grad
Method · 0.45
generate
Method · 0.45
Tested by
no test coverage detected