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