llama_vocab_type: Get vocabulary type

View source: R/llama.R

llama_vocab_typeR Documentation

Get vocabulary type

Description

Get vocabulary type

Usage

llama_vocab_type(model)

Arguments

model

Model handle returned by [llama_load_model]

Value

A character string: one of '"spm"' (LLaMA/SentencePiece BPE), '"bpe"' (GPT-2 BPE), '"wpm"' (BERT WordPiece), '"ugm"' (T5 Unigram), '"rwkv"', '"plamo2"', or '"none"'.


llamaR documentation built on May 28, 2026, 1:06 a.m.