DiffusionTokenizerSourceKind class


Tokenizer source kind. Apple's compiled CoreML SD models do not bundle vocab.json / merges.txt, so the tokenizer must be downloaded from a HuggingFace repo (or a developer-supplied URL). Sources pre-IDL: Swift DiffusionTypes.swift:18 (.sd15 / .sd2 / .sdxl / .custom(baseURL:)) Kotlin DiffusionTypes.kt:31 (Sd15 / Sd2 / Sdxl / Custom(customBaseUrl)) RN DiffusionTypes.ts:17 ({kind:'sd15'|'sd2'|'sdxl'|'custom'} discriminated union) Web — n/a (the llamacpp Web package doesn't expose tokenizer source) C ABI rac_diffusion_types.h:79 (RAC_DIFFUSION_TOKENIZER_SD_1_5 / SD_2_X / SDXL / CUSTOM)

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
This enum's name, as specified in the .proto file.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
This enum's integer value, as specified in the .proto file.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns this enum's name or the value if names are not represented.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

valueOf(int value) DiffusionTokenizerSourceKind?