KoMiniLM-68M / minilm_test.py
BM-K
update tokenizer config
00729c3
raw
history blame
288 Bytes
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("BM-K/KoMiniLM-68M") # 23M model
model = AutoModel.from_pretrained("BM-K/KoMiniLM-68M")
inputs = tokenizer("μ•ˆλ…• 세상아!", return_tensors="pt")
outputs = model(**inputs)
print(outputs)