Safe Haskell | None |
---|---|
Language | Haskell2010 |
Llama.Internal.Types
Contents
Synopsis
- data LlamaTokenData = LlamaTokenData {}
- data LlamaTokenDataArray = LlamaTokenDataArray {}
- data LlamaBatch = LlamaBatch {}
- data AddBos
- type LlamaToken = CInt
- data LlamaKvCacheView = LlamaKvCacheView {
- n_cells :: CInt
- n_seq_max :: CInt
- token_count :: CInt
- used_cells :: CInt
- max_contiguous :: CInt
- max_contiguous_idx :: CInt
- cells :: Ptr LlamaKvCacheViewCell
- cells_sequences :: Ptr LlamaSeqId
- type LlamaSeqId = CInt
- type LlamaPos = CInt
- data LlamaChatMessage = LlamaChatMessage {}
- data LlamaSamplerI = LlamaSamplerI {
- name :: FunPtr (Ptr LlamaSampler -> IO CString)
- accept :: FunPtr (Ptr LlamaSampler -> LlamaToken -> IO ())
- apply :: FunPtr (Ptr LlamaSampler -> Ptr LlamaTokenDataArray -> IO ())
- reset :: FunPtr (Ptr LlamaSampler -> IO ())
- clone :: FunPtr (Ptr LlamaSampler -> IO (Ptr LlamaSampler))
- free_ :: FunPtr (Ptr LlamaSampler -> IO ())
- data LlamaSampler = LlamaSampler {}
- type LlamaSamplerContext = Ptr ()
- data LlamaPerfContextData = LlamaPerfContextData {}
- data LlamaPerfSamplerData = LlamaPerfSamplerData {
- t_sample_ms :: CDouble
- n_sample :: CInt
- data LlamaLogitBias = LlamaLogitBias {}
- newtype CLlamaVocab = CLlamaVocab (Ptr CLlamaVocab)
- newtype CLlamaModel = CLlamaModel (Ptr CLlamaModel)
- newtype CLlamaContext = CLlamaContext (Ptr CLlamaContext)
- newtype CLlamaKVCache = CLlamaKVCache (Ptr CLlamaKVCache)
- newtype CLlamaAdapterLora = CLlamaAdapterLora (Ptr CLlamaAdapterLora)
- newtype Vocab = Vocab (ForeignPtr CLlamaVocab)
- newtype Batch = Batch (Ptr LlamaBatch)
- newtype Model = Model (ForeignPtr CLlamaModel)
- newtype Context = Context (ForeignPtr CLlamaContext)
- newtype Sampler = Sampler (ForeignPtr LlamaSampler)
- newtype KVCache = KVCache (ForeignPtr CLlamaKVCache)
- newtype AdapterLora = AdapterLora (ForeignPtr CLlamaAdapterLora)
Types
data LlamaTokenData Source #
Constructors
LlamaTokenData | |
Instances
data LlamaTokenDataArray Source #
Constructors
LlamaTokenDataArray | |
Instances
GStorable LlamaTokenDataArray Source # | |||||
Defined in Llama.Internal.Types Methods gsizeOf :: LlamaTokenDataArray -> Int # galignment :: LlamaTokenDataArray -> Int # gpeekByteOff :: Ptr b -> Int -> IO LlamaTokenDataArray # gpokeByteOff :: Ptr b -> Int -> LlamaTokenDataArray -> IO () # | |||||
Generic LlamaTokenDataArray Source # | |||||
Defined in Llama.Internal.Types Associated Types
Methods from :: LlamaTokenDataArray -> Rep LlamaTokenDataArray x # to :: Rep LlamaTokenDataArray x -> LlamaTokenDataArray # | |||||
Show LlamaTokenDataArray Source # | |||||
Defined in Llama.Internal.Types Methods showsPrec :: Int -> LlamaTokenDataArray -> ShowS # show :: LlamaTokenDataArray -> String # showList :: [LlamaTokenDataArray] -> ShowS # | |||||
Eq LlamaTokenDataArray Source # | |||||
Defined in Llama.Internal.Types Methods (==) :: LlamaTokenDataArray -> LlamaTokenDataArray -> Bool # (/=) :: LlamaTokenDataArray -> LlamaTokenDataArray -> Bool # | |||||
type Rep LlamaTokenDataArray Source # | |||||
Defined in Llama.Internal.Types type Rep LlamaTokenDataArray = D1 ('MetaData "LlamaTokenDataArray" "Llama.Internal.Types" "llama-cpp-hs-0.1.0.0-inplace" 'False) (C1 ('MetaCons "LlamaTokenDataArray" 'PrefixI 'True) ((S1 ('MetaSel ('Just "data_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr LlamaTokenData)) :*: S1 ('MetaSel ('Just "size_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CSize)) :*: (S1 ('MetaSel ('Just "selected") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CLong) :*: S1 ('MetaSel ('Just "sorted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBool)))) |
data LlamaBatch Source #
Constructors
LlamaBatch | |
Instances
GStorable LlamaBatch Source # | |||||
Defined in Llama.Internal.Types Methods gsizeOf :: LlamaBatch -> Int # galignment :: LlamaBatch -> Int # gpeekByteOff :: Ptr b -> Int -> IO LlamaBatch # gpokeByteOff :: Ptr b -> Int -> LlamaBatch -> IO () # | |||||
Generic LlamaBatch Source # | |||||
Defined in Llama.Internal.Types Associated Types
| |||||
Show LlamaBatch Source # | |||||
Defined in Llama.Internal.Types Methods showsPrec :: Int -> LlamaBatch -> ShowS # show :: LlamaBatch -> String # showList :: [LlamaBatch] -> ShowS # | |||||
Eq LlamaBatch Source # | |||||
Defined in Llama.Internal.Types | |||||
type Rep LlamaBatch Source # | |||||
Defined in Llama.Internal.Types type Rep LlamaBatch = D1 ('MetaData "LlamaBatch" "Llama.Internal.Types" "llama-cpp-hs-0.1.0.0-inplace" 'False) (C1 ('MetaCons "LlamaBatch" 'PrefixI 'True) ((S1 ('MetaSel ('Just "n_tokens") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CInt) :*: (S1 ('MetaSel ('Just "token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr CInt)) :*: S1 ('MetaSel ('Just "embd") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr CFloat)))) :*: ((S1 ('MetaSel ('Just "pos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr CInt)) :*: S1 ('MetaSel ('Just "n_seq_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr CInt))) :*: (S1 ('MetaSel ('Just "seq_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr (Ptr CInt))) :*: S1 ('MetaSel ('Just "logits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr CSChar)))))) |
type LlamaToken = CInt Source #
data LlamaKvCacheView Source #
Corresponds to `struct llama_kv_cache_view`
Constructors
LlamaKvCacheView | |
Fields
|
Instances
GStorable LlamaKvCacheView Source # | |||||
Defined in Llama.Internal.Types Methods gsizeOf :: LlamaKvCacheView -> Int # galignment :: LlamaKvCacheView -> Int # gpeekByteOff :: Ptr b -> Int -> IO LlamaKvCacheView # gpokeByteOff :: Ptr b -> Int -> LlamaKvCacheView -> IO () # | |||||
Generic LlamaKvCacheView Source # | |||||
Defined in Llama.Internal.Types Associated Types
Methods from :: LlamaKvCacheView -> Rep LlamaKvCacheView x # to :: Rep LlamaKvCacheView x -> LlamaKvCacheView # | |||||
Show LlamaKvCacheView Source # | |||||
Defined in Llama.Internal.Types Methods showsPrec :: Int -> LlamaKvCacheView -> ShowS # show :: LlamaKvCacheView -> String # showList :: [LlamaKvCacheView] -> ShowS # | |||||
Eq LlamaKvCacheView Source # | |||||
Defined in Llama.Internal.Types Methods (==) :: LlamaKvCacheView -> LlamaKvCacheView -> Bool # (/=) :: LlamaKvCacheView -> LlamaKvCacheView -> Bool # | |||||
type Rep LlamaKvCacheView Source # | |||||
Defined in Llama.Internal.Types |
type LlamaSeqId = CInt Source #
data LlamaChatMessage Source #
Constructors
LlamaChatMessage | |
Instances
GStorable LlamaChatMessage Source # | |||||
Defined in Llama.Internal.Types Methods gsizeOf :: LlamaChatMessage -> Int # galignment :: LlamaChatMessage -> Int # gpeekByteOff :: Ptr b -> Int -> IO LlamaChatMessage # gpokeByteOff :: Ptr b -> Int -> LlamaChatMessage -> IO () # | |||||
Generic LlamaChatMessage Source # | |||||
Defined in Llama.Internal.Types Associated Types
Methods from :: LlamaChatMessage -> Rep LlamaChatMessage x # to :: Rep LlamaChatMessage x -> LlamaChatMessage # | |||||
Show LlamaChatMessage Source # | |||||
Defined in Llama.Internal.Types Methods showsPrec :: Int -> LlamaChatMessage -> ShowS # show :: LlamaChatMessage -> String # showList :: [LlamaChatMessage] -> ShowS # | |||||
Eq LlamaChatMessage Source # | |||||
Defined in Llama.Internal.Types Methods (==) :: LlamaChatMessage -> LlamaChatMessage -> Bool # (/=) :: LlamaChatMessage -> LlamaChatMessage -> Bool # | |||||
type Rep LlamaChatMessage Source # | |||||
Defined in Llama.Internal.Types type Rep LlamaChatMessage = D1 ('MetaData "LlamaChatMessage" "Llama.Internal.Types" "llama-cpp-hs-0.1.0.0-inplace" 'False) (C1 ('MetaCons "LlamaChatMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "role") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CString) :*: S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CString))) |
data LlamaSamplerI Source #
Corresponds to `struct llama_sampler_i`
Constructors
LlamaSamplerI | |
Fields
|
Instances
GStorable LlamaSamplerI Source # | |||||
Defined in Llama.Internal.Types Methods gsizeOf :: LlamaSamplerI -> Int # galignment :: LlamaSamplerI -> Int # gpeekByteOff :: Ptr b -> Int -> IO LlamaSamplerI # gpokeByteOff :: Ptr b -> Int -> LlamaSamplerI -> IO () # | |||||
Generic LlamaSamplerI Source # | |||||
Defined in Llama.Internal.Types Associated Types
| |||||
Show LlamaSamplerI Source # | |||||
Defined in Llama.Internal.Types Methods showsPrec :: Int -> LlamaSamplerI -> ShowS # show :: LlamaSamplerI -> String # showList :: [LlamaSamplerI] -> ShowS # | |||||
Eq LlamaSamplerI Source # | |||||
Defined in Llama.Internal.Types Methods (==) :: LlamaSamplerI -> LlamaSamplerI -> Bool # (/=) :: LlamaSamplerI -> LlamaSamplerI -> Bool # | |||||
type Rep LlamaSamplerI Source # | |||||
Defined in Llama.Internal.Types type Rep LlamaSamplerI = D1 ('MetaData "LlamaSamplerI" "Llama.Internal.Types" "llama-cpp-hs-0.1.0.0-inplace" 'False) (C1 ('MetaCons "LlamaSamplerI" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunPtr (Ptr LlamaSampler -> IO CString))) :*: (S1 ('MetaSel ('Just "accept") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunPtr (Ptr LlamaSampler -> LlamaToken -> IO ()))) :*: S1 ('MetaSel ('Just "apply") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunPtr (Ptr LlamaSampler -> Ptr LlamaTokenDataArray -> IO ()))))) :*: (S1 ('MetaSel ('Just "reset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunPtr (Ptr LlamaSampler -> IO ()))) :*: (S1 ('MetaSel ('Just "clone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunPtr (Ptr LlamaSampler -> IO (Ptr LlamaSampler)))) :*: S1 ('MetaSel ('Just "free_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunPtr (Ptr LlamaSampler -> IO ()))))))) |
data LlamaSampler Source #
Corresponds to `struct llama_sampler`
Constructors
LlamaSampler | |
Fields
|
Instances
GStorable LlamaSampler Source # | |||||
Defined in Llama.Internal.Types Methods gsizeOf :: LlamaSampler -> Int # galignment :: LlamaSampler -> Int # gpeekByteOff :: Ptr b -> Int -> IO LlamaSampler # gpokeByteOff :: Ptr b -> Int -> LlamaSampler -> IO () # | |||||
Generic LlamaSampler Source # | |||||
Defined in Llama.Internal.Types Associated Types
| |||||
Show LlamaSampler Source # | |||||
Defined in Llama.Internal.Types Methods showsPrec :: Int -> LlamaSampler -> ShowS # show :: LlamaSampler -> String # showList :: [LlamaSampler] -> ShowS # | |||||
Eq LlamaSampler Source # | |||||
Defined in Llama.Internal.Types | |||||
type Rep LlamaSampler Source # | |||||
Defined in Llama.Internal.Types type Rep LlamaSampler = D1 ('MetaData "LlamaSampler" "Llama.Internal.Types" "llama-cpp-hs-0.1.0.0-inplace" 'False) (C1 ('MetaCons "LlamaSampler" 'PrefixI 'True) (S1 ('MetaSel ('Just "iface") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr LlamaSamplerI)) :*: S1 ('MetaSel ('Just "ctx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LlamaSamplerContext))) |
type LlamaSamplerContext = Ptr () Source #
Corresponds to llama_sampler_context_t
(void *)
data LlamaPerfContextData Source #
Constructors
LlamaPerfContextData | |
Fields
|
Instances
GStorable LlamaPerfContextData Source # | |||||
Defined in Llama.Internal.Types Methods gsizeOf :: LlamaPerfContextData -> Int # galignment :: LlamaPerfContextData -> Int # gpeekByteOff :: Ptr b -> Int -> IO LlamaPerfContextData # gpokeByteOff :: Ptr b -> Int -> LlamaPerfContextData -> IO () # | |||||
Generic LlamaPerfContextData Source # | |||||
Defined in Llama.Internal.Types Associated Types
Methods from :: LlamaPerfContextData -> Rep LlamaPerfContextData x # to :: Rep LlamaPerfContextData x -> LlamaPerfContextData # | |||||
Show LlamaPerfContextData Source # | |||||
Defined in Llama.Internal.Types Methods showsPrec :: Int -> LlamaPerfContextData -> ShowS # show :: LlamaPerfContextData -> String # showList :: [LlamaPerfContextData] -> ShowS # | |||||
Eq LlamaPerfContextData Source # | |||||
Defined in Llama.Internal.Types Methods (==) :: LlamaPerfContextData -> LlamaPerfContextData -> Bool # (/=) :: LlamaPerfContextData -> LlamaPerfContextData -> Bool # | |||||
type Rep LlamaPerfContextData Source # | |||||
Defined in Llama.Internal.Types type Rep LlamaPerfContextData = D1 ('MetaData "LlamaPerfContextData" "Llama.Internal.Types" "llama-cpp-hs-0.1.0.0-inplace" 'False) (C1 ('MetaCons "LlamaPerfContextData" 'PrefixI 'True) ((S1 ('MetaSel ('Just "t_start_ms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CDouble) :*: (S1 ('MetaSel ('Just "t_load_ms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CDouble) :*: S1 ('MetaSel ('Just "t_p_eval_ms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CDouble))) :*: (S1 ('MetaSel ('Just "t_eval_ms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CDouble) :*: (S1 ('MetaSel ('Just "n_p_eval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CInt) :*: S1 ('MetaSel ('Just "n_eval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CInt))))) |
data LlamaPerfSamplerData Source #
Constructors
LlamaPerfSamplerData | |
Fields
|
Instances
GStorable LlamaPerfSamplerData Source # | |||||
Defined in Llama.Internal.Types Methods gsizeOf :: LlamaPerfSamplerData -> Int # galignment :: LlamaPerfSamplerData -> Int # gpeekByteOff :: Ptr b -> Int -> IO LlamaPerfSamplerData # gpokeByteOff :: Ptr b -> Int -> LlamaPerfSamplerData -> IO () # | |||||
Generic LlamaPerfSamplerData Source # | |||||
Defined in Llama.Internal.Types Associated Types
Methods from :: LlamaPerfSamplerData -> Rep LlamaPerfSamplerData x # to :: Rep LlamaPerfSamplerData x -> LlamaPerfSamplerData # | |||||
Show LlamaPerfSamplerData Source # | |||||
Defined in Llama.Internal.Types Methods showsPrec :: Int -> LlamaPerfSamplerData -> ShowS # show :: LlamaPerfSamplerData -> String # showList :: [LlamaPerfSamplerData] -> ShowS # | |||||
Eq LlamaPerfSamplerData Source # | |||||
Defined in Llama.Internal.Types Methods (==) :: LlamaPerfSamplerData -> LlamaPerfSamplerData -> Bool # (/=) :: LlamaPerfSamplerData -> LlamaPerfSamplerData -> Bool # | |||||
type Rep LlamaPerfSamplerData Source # | |||||
Defined in Llama.Internal.Types type Rep LlamaPerfSamplerData = D1 ('MetaData "LlamaPerfSamplerData" "Llama.Internal.Types" "llama-cpp-hs-0.1.0.0-inplace" 'False) (C1 ('MetaCons "LlamaPerfSamplerData" 'PrefixI 'True) (S1 ('MetaSel ('Just "t_sample_ms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CDouble) :*: S1 ('MetaSel ('Just "n_sample") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CInt))) |
data LlamaLogitBias Source #
Constructors
LlamaLogitBias | |
Fields
|
Instances
GStorable LlamaLogitBias Source # | |||||
Defined in Llama.Internal.Types Methods gsizeOf :: LlamaLogitBias -> Int # galignment :: LlamaLogitBias -> Int # gpeekByteOff :: Ptr b -> Int -> IO LlamaLogitBias # gpokeByteOff :: Ptr b -> Int -> LlamaLogitBias -> IO () # | |||||
Generic LlamaLogitBias Source # | |||||
Defined in Llama.Internal.Types Associated Types
Methods from :: LlamaLogitBias -> Rep LlamaLogitBias x # to :: Rep LlamaLogitBias x -> LlamaLogitBias # | |||||
Show LlamaLogitBias Source # | |||||
Defined in Llama.Internal.Types Methods showsPrec :: Int -> LlamaLogitBias -> ShowS # show :: LlamaLogitBias -> String # showList :: [LlamaLogitBias] -> ShowS # | |||||
Eq LlamaLogitBias Source # | |||||
Defined in Llama.Internal.Types Methods (==) :: LlamaLogitBias -> LlamaLogitBias -> Bool # (/=) :: LlamaLogitBias -> LlamaLogitBias -> Bool # | |||||
type Rep LlamaLogitBias Source # | |||||
Defined in Llama.Internal.Types type Rep LlamaLogitBias = D1 ('MetaData "LlamaLogitBias" "Llama.Internal.Types" "llama-cpp-hs-0.1.0.0-inplace" 'False) (C1 ('MetaCons "LlamaLogitBias" 'PrefixI 'True) (S1 ('MetaSel ('Just "tokenLogitBias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LlamaToken) :*: S1 ('MetaSel ('Just "bias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float))) |
Raw pointers
newtype CLlamaVocab Source #
Raw pointer to llama_vocab struct
Constructors
CLlamaVocab (Ptr CLlamaVocab) |
Instances
Show CLlamaVocab Source # | |
Defined in Llama.Internal.Types Methods showsPrec :: Int -> CLlamaVocab -> ShowS # show :: CLlamaVocab -> String # showList :: [CLlamaVocab] -> ShowS # | |
Eq CLlamaVocab Source # | |
Defined in Llama.Internal.Types |
newtype CLlamaModel Source #
Raw pointer to llama_model struct
Constructors
CLlamaModel (Ptr CLlamaModel) |
Instances
Show CLlamaModel Source # | |
Defined in Llama.Internal.Types Methods showsPrec :: Int -> CLlamaModel -> ShowS # show :: CLlamaModel -> String # showList :: [CLlamaModel] -> ShowS # | |
Eq CLlamaModel Source # | |
Defined in Llama.Internal.Types |
newtype CLlamaContext Source #
Raw pointer to llama_context struct
Constructors
CLlamaContext (Ptr CLlamaContext) |
Instances
Show CLlamaContext Source # | |
Defined in Llama.Internal.Types Methods showsPrec :: Int -> CLlamaContext -> ShowS # show :: CLlamaContext -> String # showList :: [CLlamaContext] -> ShowS # | |
Eq CLlamaContext Source # | |
Defined in Llama.Internal.Types Methods (==) :: CLlamaContext -> CLlamaContext -> Bool # (/=) :: CLlamaContext -> CLlamaContext -> Bool # |
newtype CLlamaKVCache Source #
Constructors
CLlamaKVCache (Ptr CLlamaKVCache) |
Instances
Show CLlamaKVCache Source # | |
Defined in Llama.Internal.Types Methods showsPrec :: Int -> CLlamaKVCache -> ShowS # show :: CLlamaKVCache -> String # showList :: [CLlamaKVCache] -> ShowS # | |
Eq CLlamaKVCache Source # | |
Defined in Llama.Internal.Types Methods (==) :: CLlamaKVCache -> CLlamaKVCache -> Bool # (/=) :: CLlamaKVCache -> CLlamaKVCache -> Bool # |
newtype CLlamaAdapterLora Source #
Constructors
CLlamaAdapterLora (Ptr CLlamaAdapterLora) |
Instances
Show CLlamaAdapterLora Source # | |
Defined in Llama.Internal.Types Methods showsPrec :: Int -> CLlamaAdapterLora -> ShowS # show :: CLlamaAdapterLora -> String # showList :: [CLlamaAdapterLora] -> ShowS # | |
Eq CLlamaAdapterLora Source # | |
Defined in Llama.Internal.Types Methods (==) :: CLlamaAdapterLora -> CLlamaAdapterLora -> Bool # (/=) :: CLlamaAdapterLora -> CLlamaAdapterLora -> Bool # |
Managed handles
Managed vocabulary handle with automatic cleanup.
Constructors
Vocab (ForeignPtr CLlamaVocab) |
Managed batch pointer with automatic cleanup
Constructors
Batch (Ptr LlamaBatch) |
Managed model handle with automatic cleanup.
Constructors
Model (ForeignPtr CLlamaModel) |
Managed context handle with automatic cleanup.
Constructors
Context (ForeignPtr CLlamaContext) |
Instances
Managed sampler handle with automatic cleanup.
Constructors
Sampler (ForeignPtr LlamaSampler) |
Instances
Constructors
KVCache (ForeignPtr CLlamaKVCache) |
Instances
newtype AdapterLora Source #
Constructors
AdapterLora (ForeignPtr CLlamaAdapterLora) |
Instances
Show AdapterLora Source # | |
Defined in Llama.Internal.Types Methods showsPrec :: Int -> AdapterLora -> ShowS # show :: AdapterLora -> String # showList :: [AdapterLora] -> ShowS # | |
Eq AdapterLora Source # | |
Defined in Llama.Internal.Types |