Package chat.octet.model.enums
Enum Class ModelFileType
- All Implemented Interfaces:
Serializable,Comparable<ModelFileType>,java.lang.constant.Constable
Model file type define
- Author:
- William
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionnot specified in the model filetok_embeddings.weight and output.weight are F16 -
Method Summary
Modifier and TypeMethodDescriptiontoString()static ModelFileTypeReturns the enum constant of this class with the specified name.static ModelFileTypevalueOfType(int type) static ModelFileType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LLAMA_FTYPE_ALL_F32
-
LLAMA_FTYPE_MOSTLY_F16
-
LLAMA_FTYPE_MOSTLY_Q4_0
-
LLAMA_FTYPE_MOSTLY_Q4_1
-
LLAMA_FTYPE_MOSTLY_Q4_1_SOME_F16
tok_embeddings.weight and output.weight are F16 -
LLAMA_FTYPE_MOSTLY_Q8_0
-
LLAMA_FTYPE_MOSTLY_Q5_0
-
LLAMA_FTYPE_MOSTLY_Q5_1
-
LLAMA_FTYPE_MOSTLY_Q2_K
-
LLAMA_FTYPE_MOSTLY_Q3_K_S
-
LLAMA_FTYPE_MOSTLY_Q3_K_M
-
LLAMA_FTYPE_MOSTLY_Q3_K_L
-
LLAMA_FTYPE_MOSTLY_Q4_K_S
-
LLAMA_FTYPE_MOSTLY_Q4_K_M
-
LLAMA_FTYPE_MOSTLY_Q5_K_S
-
LLAMA_FTYPE_MOSTLY_Q5_K_M
-
LLAMA_FTYPE_MOSTLY_Q6_K
-
LLAMA_FTYPE_MOSTLY_IQ2_XXS
-
LLAMA_FTYPE_MOSTLY_IQ2_XS
-
LLAMA_FTYPE_MOSTLY_Q2_K_S
-
LLAMA_FTYPE_MOSTLY_Q3_K_XS
-
LLAMA_FTYPE_MOSTLY_IQ3_XXS
-
LLAMA_FTYPE_MOSTLY_IQ1_S
-
LLAMA_FTYPE_MOSTLY_IQ4_NL
-
LLAMA_FTYPE_MOSTLY_IQ3_S
-
LLAMA_FTYPE_MOSTLY_IQ3_M
-
LLAMA_FTYPE_MOSTLY_IQ2_S
-
LLAMA_FTYPE_MOSTLY_IQ2_M
-
LLAMA_FTYPE_MOSTLY_IQ4_XS
-
LLAMA_FTYPE_MOSTLY_IQ1_M
-
LLAMA_FTYPE_MOSTLY_BF16
-
LLAMA_FTYPE_GUESSED
not specified in the model file
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
valueOfType
-
toString
- Overrides:
toStringin classEnum<ModelFileType>
-