Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/allenai/molmo2
/ get_preprocessor
Function
get_preprocessor
tests/data/test_preprocessor.py:12–14 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
10
11
12
def
get_preprocessor():
13
tokenizer = build_tokenizer(
"Qwen/Qwen2-7B"
)
14
return
InterleavedTextPreprocessor(tokenizer=tokenizer)
15
16
17
def
_test_tokenization(messages, n_at_start=None, preprocessor=None):
Callers
3
_test_tokenization
Function · 0.85
test_max_tokens
Function · 0.85
test_max_seq_len
Function · 0.85
Calls
2
build_tokenizer
Function · 0.90
InterleavedTextPreprocessor
Class · 0.90
Tested by
no test coverage detected