Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/THUDM/LongWriter
/ pre_tokenize_glm4.py
File
pre_tokenize_glm4.py
train/pre_tokenize_glm4.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
from
transformers
import
AutoTokenizer, AutoModel, LlamaTokenizer
2
import
copy
3
import
torch
4
import
json, os, random
Callers
nothing calls this directly
Calls
3
get_command
Method · 0.80
main
Function · 0.70
parse_args
Function · 0.70
Tested by
no test coverage detected