llama-cpp-hs
Safe HaskellNone
LanguageHaskell2010

Llama.Internal.Types.Params

Synopsis

Documentation

newtype LlamaSamplerChainParams Source #

Constructors

LlamaSamplerChainParams 

Fields

Instances

Instances details
GStorable LlamaSamplerChainParams Source # 
Instance details

Defined in Llama.Internal.Types.Params

Generic LlamaSamplerChainParams Source # 
Instance details

Defined in Llama.Internal.Types.Params

Associated Types

type Rep LlamaSamplerChainParams 
Instance details

Defined in Llama.Internal.Types.Params

type Rep LlamaSamplerChainParams = D1 ('MetaData "LlamaSamplerChainParams" "Llama.Internal.Types.Params" "llama-cpp-hs-0.1.0.0-inplace" 'True) (C1 ('MetaCons "LlamaSamplerChainParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "noPerf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBool)))
Show LlamaSamplerChainParams Source # 
Instance details

Defined in Llama.Internal.Types.Params

Eq LlamaSamplerChainParams Source # 
Instance details

Defined in Llama.Internal.Types.Params

type Rep LlamaSamplerChainParams Source # 
Instance details

Defined in Llama.Internal.Types.Params

type Rep LlamaSamplerChainParams = D1 ('MetaData "LlamaSamplerChainParams" "Llama.Internal.Types.Params" "llama-cpp-hs-0.1.0.0-inplace" 'True) (C1 ('MetaCons "LlamaSamplerChainParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "noPerf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBool)))

data LlamaContextParams Source #

Constructors

LlamaContextParams 

Fields

Instances

Instances details
GStorable LlamaContextParams Source # 
Instance details

Defined in Llama.Internal.Types.Params

Generic LlamaContextParams Source # 
Instance details

Defined in Llama.Internal.Types.Params

Associated Types

type Rep LlamaContextParams 
Instance details

Defined in Llama.Internal.Types.Params

type Rep LlamaContextParams = D1 ('MetaData "LlamaContextParams" "Llama.Internal.Types.Params" "llama-cpp-hs-0.1.0.0-inplace" 'False) (C1 ('MetaCons "LlamaContextParams" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "n_ctx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CUInt) :*: (S1 ('MetaSel ('Just "n_batch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CUInt) :*: S1 ('MetaSel ('Just "n_ubatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CUInt))) :*: ((S1 ('MetaSel ('Just "n_seq_max") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CUInt) :*: S1 ('MetaSel ('Just "n_threads") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CInt)) :*: (S1 ('MetaSel ('Just "n_threads_batch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CInt) :*: S1 ('MetaSel ('Just "rope_scaling_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LlamaRopeTypeScaling)))) :*: ((S1 ('MetaSel ('Just "pooling_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LlamaPoolingType) :*: (S1 ('MetaSel ('Just "attention_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LlamaAttentionType) :*: S1 ('MetaSel ('Just "rope_freq_base") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CFloat))) :*: ((S1 ('MetaSel ('Just "rope_freq_scale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CFloat) :*: S1 ('MetaSel ('Just "yarn_ext_factor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CFloat)) :*: (S1 ('MetaSel ('Just "yarn_attn_factor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CFloat) :*: S1 ('MetaSel ('Just "yarn_beta_fast") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CFloat))))) :*: (((S1 ('MetaSel ('Just "yarn_beta_slow") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CFloat) :*: (S1 ('MetaSel ('Just "yarn_orig_ctx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CUInt) :*: S1 ('MetaSel ('Just "defrag_thold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CFloat))) :*: ((S1 ('MetaSel ('Just "cb_eval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunPtr (Ptr () -> IO ()))) :*: S1 ('MetaSel ('Just "cb_eval_user_data") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr ()))) :*: (S1 ('MetaSel ('Just "type_k") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GgmlType) :*: S1 ('MetaSel ('Just "type_v") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GgmlType)))) :*: ((S1 ('MetaSel ('Just "logits_all") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBool) :*: (S1 ('MetaSel ('Just "embeddings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBool) :*: S1 ('MetaSel ('Just "offload_kqv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBool))) :*: ((S1 ('MetaSel ('Just "flash_attn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBool) :*: S1 ('MetaSel ('Just "no_perf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBool)) :*: (S1 ('MetaSel ('Just "abort_callback") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunPtr (Ptr () -> IO CInt))) :*: S1 ('MetaSel ('Just "abort_callback_data") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr ()))))))))
Show LlamaContextParams Source # 
Instance details

Defined in Llama.Internal.Types.Params

type Rep LlamaContextParams Source # 
Instance details

Defined in Llama.Internal.Types.Params

type Rep LlamaContextParams = D1 ('MetaData "LlamaContextParams" "Llama.Internal.Types.Params" "llama-cpp-hs-0.1.0.0-inplace" 'False) (C1 ('MetaCons "LlamaContextParams" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "n_ctx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CUInt) :*: (S1 ('MetaSel ('Just "n_batch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CUInt) :*: S1 ('MetaSel ('Just "n_ubatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CUInt))) :*: ((S1 ('MetaSel ('Just "n_seq_max") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CUInt) :*: S1 ('MetaSel ('Just "n_threads") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CInt)) :*: (S1 ('MetaSel ('Just "n_threads_batch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CInt) :*: S1 ('MetaSel ('Just "rope_scaling_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LlamaRopeTypeScaling)))) :*: ((S1 ('MetaSel ('Just "pooling_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LlamaPoolingType) :*: (S1 ('MetaSel ('Just "attention_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LlamaAttentionType) :*: S1 ('MetaSel ('Just "rope_freq_base") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CFloat))) :*: ((S1 ('MetaSel ('Just "rope_freq_scale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CFloat) :*: S1 ('MetaSel ('Just "yarn_ext_factor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CFloat)) :*: (S1 ('MetaSel ('Just "yarn_attn_factor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CFloat) :*: S1 ('MetaSel ('Just "yarn_beta_fast") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CFloat))))) :*: (((S1 ('MetaSel ('Just "yarn_beta_slow") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CFloat) :*: (S1 ('MetaSel ('Just "yarn_orig_ctx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CUInt) :*: S1 ('MetaSel ('Just "defrag_thold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CFloat))) :*: ((S1 ('MetaSel ('Just "cb_eval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunPtr (Ptr () -> IO ()))) :*: S1 ('MetaSel ('Just "cb_eval_user_data") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr ()))) :*: (S1 ('MetaSel ('Just "type_k") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GgmlType) :*: S1 ('MetaSel ('Just "type_v") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GgmlType)))) :*: ((S1 ('MetaSel ('Just "logits_all") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBool) :*: (S1 ('MetaSel ('Just "embeddings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBool) :*: S1 ('MetaSel ('Just "offload_kqv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBool))) :*: ((S1 ('MetaSel ('Just "flash_attn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBool) :*: S1 ('MetaSel ('Just "no_perf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBool)) :*: (S1 ('MetaSel ('Just "abort_callback") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunPtr (Ptr () -> IO CInt))) :*: S1 ('MetaSel ('Just "abort_callback_data") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr ()))))))))

data LlamaModelParams Source #

Constructors

LlamaModelParams 

Fields

data LlamaModelQuantizeParams Source #

data GgmlType Source #

Instances

Instances details
Storable GgmlType Source # 
Instance details

Defined in Llama.Internal.Types.Params

Generic GgmlType Source # 
Instance details

Defined in Llama.Internal.Types.Params

Associated Types

type Rep GgmlType 
Instance details

Defined in Llama.Internal.Types.Params

type Rep GgmlType = D1 ('MetaData "GgmlType" "Llama.Internal.Types.Params" "llama-cpp-hs-0.1.0.0-inplace" 'False) (((((C1 ('MetaCons "GGML_TYPE_F32" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_F16" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GGML_TYPE_Q4_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_Q4_1" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "GGML_TYPE_Q5_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_Q5_1" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GGML_TYPE_Q8_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_Q8_1" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "GGML_TYPE_Q2_K" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_Q3_K" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GGML_TYPE_Q4_K" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_Q5_K" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "GGML_TYPE_Q6_K" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_Q8_K" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GGML_TYPE_IQ2_XXS" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_IQ2_XS" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: ((((C1 ('MetaCons "GGML_TYPE_IQ3_XXS" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_IQ1_S" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GGML_TYPE_IQ4_NL" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_IQ3_S" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "GGML_TYPE_IQ2_S" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_IQ4_XS" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GGML_TYPE_I8" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_I16" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "GGML_TYPE_I32" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_I64" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GGML_TYPE_F64" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_IQ1_M" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "GGML_TYPE_BF16" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_TQ1_0" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GGML_TYPE_TQ2_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_COUNT" 'PrefixI 'False) (U1 :: Type -> Type))))))

Methods

from :: GgmlType -> Rep GgmlType x #

to :: Rep GgmlType x -> GgmlType #

Show GgmlType Source # 
Instance details

Defined in Llama.Internal.Types.Params

Eq GgmlType Source # 
Instance details

Defined in Llama.Internal.Types.Params

Ord GgmlType Source # 
Instance details

Defined in Llama.Internal.Types.Params

type Rep GgmlType Source # 
Instance details

Defined in Llama.Internal.Types.Params

type Rep GgmlType = D1 ('MetaData "GgmlType" "Llama.Internal.Types.Params" "llama-cpp-hs-0.1.0.0-inplace" 'False) (((((C1 ('MetaCons "GGML_TYPE_F32" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_F16" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GGML_TYPE_Q4_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_Q4_1" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "GGML_TYPE_Q5_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_Q5_1" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GGML_TYPE_Q8_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_Q8_1" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "GGML_TYPE_Q2_K" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_Q3_K" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GGML_TYPE_Q4_K" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_Q5_K" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "GGML_TYPE_Q6_K" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_Q8_K" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GGML_TYPE_IQ2_XXS" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_IQ2_XS" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: ((((C1 ('MetaCons "GGML_TYPE_IQ3_XXS" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_IQ1_S" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GGML_TYPE_IQ4_NL" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_IQ3_S" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "GGML_TYPE_IQ2_S" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_IQ4_XS" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GGML_TYPE_I8" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_I16" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "GGML_TYPE_I32" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_I64" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GGML_TYPE_F64" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_IQ1_M" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "GGML_TYPE_BF16" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_TQ1_0" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GGML_TYPE_TQ2_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GGML_TYPE_COUNT" 'PrefixI 'False) (U1 :: Type -> Type))))))

data LlamaPoolingType Source #

Instances

Instances details
Storable LlamaPoolingType Source # 
Instance details

Defined in Llama.Internal.Types.Params

Generic LlamaPoolingType Source # 
Instance details

Defined in Llama.Internal.Types.Params

Associated Types

type Rep LlamaPoolingType 
Instance details

Defined in Llama.Internal.Types.Params

type Rep LlamaPoolingType = D1 ('MetaData "LlamaPoolingType" "Llama.Internal.Types.Params" "llama-cpp-hs-0.1.0.0-inplace" 'False) ((C1 ('MetaCons "LLAMA_POOLING_TYPE_UNSPECIFIED" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LLAMA_POOLING_TYPE_NONE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LLAMA_POOLING_TYPE_MEAN" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "LLAMA_POOLING_TYPE_CLS" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LLAMA_POOLING_TYPE_LAST" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LLAMA_POOLING_TYPE_RANK" 'PrefixI 'False) (U1 :: Type -> Type))))
Show LlamaPoolingType Source # 
Instance details

Defined in Llama.Internal.Types.Params

Eq LlamaPoolingType Source # 
Instance details

Defined in Llama.Internal.Types.Params

Ord LlamaPoolingType Source # 
Instance details

Defined in Llama.Internal.Types.Params

type Rep LlamaPoolingType Source # 
Instance details

Defined in Llama.Internal.Types.Params

type Rep LlamaPoolingType = D1 ('MetaData "LlamaPoolingType" "Llama.Internal.Types.Params" "llama-cpp-hs-0.1.0.0-inplace" 'False) ((C1 ('MetaCons "LLAMA_POOLING_TYPE_UNSPECIFIED" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LLAMA_POOLING_TYPE_NONE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LLAMA_POOLING_TYPE_MEAN" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "LLAMA_POOLING_TYPE_CLS" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LLAMA_POOLING_TYPE_LAST" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LLAMA_POOLING_TYPE_RANK" 'PrefixI 'False) (U1 :: Type -> Type))))

data LlamaAttentionType Source #

Instances

Instances details
Storable LlamaAttentionType Source # 
Instance details

Defined in Llama.Internal.Types.Params

Generic LlamaAttentionType Source # 
Instance details

Defined in Llama.Internal.Types.Params

Associated Types

type Rep LlamaAttentionType 
Instance details

Defined in Llama.Internal.Types.Params

type Rep LlamaAttentionType = D1 ('MetaData "LlamaAttentionType" "Llama.Internal.Types.Params" "llama-cpp-hs-0.1.0.0-inplace" 'False) (C1 ('MetaCons "LLAMA_ATTENTION_TYPE_UNSPECIFIED" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LLAMA_ATTENTION_TYPE_CAUSAL" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LLAMA_ATTENTION_TYPE_NON_CAUSAL" 'PrefixI 'False) (U1 :: Type -> Type)))
Show LlamaAttentionType Source # 
Instance details

Defined in Llama.Internal.Types.Params

Eq LlamaAttentionType Source # 
Instance details

Defined in Llama.Internal.Types.Params

Ord LlamaAttentionType Source # 
Instance details

Defined in Llama.Internal.Types.Params

type Rep LlamaAttentionType Source # 
Instance details

Defined in Llama.Internal.Types.Params

type Rep LlamaAttentionType = D1 ('MetaData "LlamaAttentionType" "Llama.Internal.Types.Params" "llama-cpp-hs-0.1.0.0-inplace" 'False) (C1 ('MetaCons "LLAMA_ATTENTION_TYPE_UNSPECIFIED" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LLAMA_ATTENTION_TYPE_CAUSAL" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LLAMA_ATTENTION_TYPE_NON_CAUSAL" 'PrefixI 'False) (U1 :: Type -> Type)))

newtype LlamaSplitMode Source #

Constructors

LlamaSplitMode Int32 

Instances

Instances details
GStorable LlamaSplitMode Source # 
Instance details

Defined in Llama.Internal.Types.Params

Generic LlamaSplitMode Source # 
Instance details

Defined in Llama.Internal.Types.Params

Associated Types

type Rep LlamaSplitMode 
Instance details

Defined in Llama.Internal.Types.Params

type Rep LlamaSplitMode = D1 ('MetaData "LlamaSplitMode" "Llama.Internal.Types.Params" "llama-cpp-hs-0.1.0.0-inplace" 'True) (C1 ('MetaCons "LlamaSplitMode" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int32)))
Read LlamaSplitMode Source # 
Instance details

Defined in Llama.Internal.Types.Params

Show LlamaSplitMode Source # 
Instance details

Defined in Llama.Internal.Types.Params

Eq LlamaSplitMode Source # 
Instance details

Defined in Llama.Internal.Types.Params

type Rep LlamaSplitMode Source # 
Instance details

Defined in Llama.Internal.Types.Params

type Rep LlamaSplitMode = D1 ('MetaData "LlamaSplitMode" "Llama.Internal.Types.Params" "llama-cpp-hs-0.1.0.0-inplace" 'True) (C1 ('MetaCons "LlamaSplitMode" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int32)))

newtype ContextParamsPtr Source #

Safe wrapper for managed llama_context_params

newtype ModelParamsPtr Source #

Safe wrapper for managed llama_model_params

data LlamaVocabType Source #

Instances

Instances details
Storable LlamaVocabType Source # 
Instance details

Defined in Llama.Internal.Types.Params

Generic LlamaVocabType Source # 
Instance details

Defined in Llama.Internal.Types.Params

Associated Types

type Rep LlamaVocabType 
Instance details

Defined in Llama.Internal.Types.Params

type Rep LlamaVocabType = D1 ('MetaData "LlamaVocabType" "Llama.Internal.Types.Params" "llama-cpp-hs-0.1.0.0-inplace" 'False) ((C1 ('MetaCons "LLAMA_VOCAB_TYPE_NONE" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LLAMA_VOCAB_TYPE_SPM" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LLAMA_VOCAB_TYPE_BPE" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "LLAMA_VOCAB_TYPE_WPM" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LLAMA_VOCAB_TYPE_UGM" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LLAMA_VOCAB_TYPE_RWKV" 'PrefixI 'False) (U1 :: Type -> Type))))
Show LlamaVocabType Source # 
Instance details

Defined in Llama.Internal.Types.Params

Eq LlamaVocabType Source # 
Instance details

Defined in Llama.Internal.Types.Params

Ord LlamaVocabType Source # 
Instance details

Defined in Llama.Internal.Types.Params

type Rep LlamaVocabType Source # 
Instance details

Defined in Llama.Internal.Types.Params

type Rep LlamaVocabType = D1 ('MetaData "LlamaVocabType" "Llama.Internal.Types.Params" "llama-cpp-hs-0.1.0.0-inplace" 'False) ((C1 ('MetaCons "LLAMA_VOCAB_TYPE_NONE" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LLAMA_VOCAB_TYPE_SPM" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LLAMA_VOCAB_TYPE_BPE" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "LLAMA_VOCAB_TYPE_WPM" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LLAMA_VOCAB_TYPE_UGM" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LLAMA_VOCAB_TYPE_RWKV" 'PrefixI 'False) (U1 :: Type -> Type))))