Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ split_model.py
File
split_model.py
SwissArmyTransformer/examples/llama/split_model.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
torch
2
from
sat
import
AutoModel
3
from
transformers
import
LlamaTokenizer
4
from
sat.model.mixins
import
CachedAutoregressiveMixin
Callers
nothing calls this directly
Calls
5
CachedAutoregressiveMixin
Class · 0.85
add_mixin
Method · 0.80
chat
Function · 0.70
print
Function · 0.50
from_pretrained
Method · 0.45
Tested by
no test coverage detected