LLamaModelV1
Namespace: LLama
Caution
This type is obsolete.
1 |
|
Inheritance Object → LLamaModelV1
Constructors
LLamaModelV1(String, Int32, Int32, Int32, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Int32, Int32, Int32, String, String, Boolean)
1 |
|
Parameters
model_path
String
n_ctx
Int32
n_parts
Int32
seed
Int32
f16_kv
Boolean
logits_all
Boolean
vocab_only
Boolean
use_mmap
Boolean
use_mlock
Boolean
embedding
Boolean
n_threads
Int32
n_batch
Int32
last_n_tokens_size
Int32
lora_base
String
lora_path
String
verbose
Boolean
LLamaModelV1(LLamaModelV1)
1 |
|
Parameters
other
LLamaModelV1
Methods
Tokenize(String)
1 |
|
Parameters
text
String
Returns
DeTokenize(IEnumerable<Int32>)
1 |
|
Parameters
tokens
IEnumerable<Int32>
Returns
DeTokenize(Int32)
1 |
|
Parameters
token
Int32
Returns
SetCache(LLamaCache)
1 |
|
Parameters
cache
LLamaCache
Reset()
1 |
|
Eval(List<Int32>)
1 |
|
Parameters
tokens
List<Int32>
Sample(Int32, Single, Single, Single, Single, Single)
1 |
|
Parameters
top_k
Int32
top_p
Single
temp
Single
repeat_penalty
Single
frequency_penalty
Single
presence_penalty
Single
Returns
Generate(IEnumerable<Int32>, Int32, Single, Single, Single, Single, Single, Boolean)
1 |
|
Parameters
tokens
IEnumerable<Int32>
top_k
Int32
top_p
Single
temp
Single
repeat_penalty
Single
frequency_penalty
Single
presence_penalty
Single
reset
Boolean
Returns
CreateEmbedding(String)
1 |
|
Parameters
input
String
Returns
Embed(String)
1 |
|
Parameters
input
String
Returns
CreateCompletion(String, String, Int32, Single, Single, Int32, Boolean, String[], Single, Single, Single, Int32)
1 |
|
Parameters
prompt
String
suffix
String
max_tokens
Int32
temperature
Single
top_p
Single
logprobs
Int32
echo
Boolean
stop
String[]
frequency_penalty
Single
presence_penalty
Single
repeat_penalty
Single
top_k
Int32
Returns
Call(String, String, Int32, Single, Single, Int32, Boolean, String[], Single, Single, Single, Int32)
1 |
|
Parameters
prompt
String
suffix
String
max_tokens
Int32
temperature
Single
top_p
Single
logprobs
Int32
echo
Boolean
stop
String[]
frequency_penalty
Single
presence_penalty
Single
repeat_penalty
Single
top_k
Int32
Returns
CreateChatCompletion(IEnumerable<ChatCompletionMessage>, Single, Single, Int32, String[], Int32, Single, Single, Single)
1 |
|
Parameters
messages
IEnumerable<ChatCompletionMessage>
temperature
Single
top_p
Single
top_k
Int32
stop
String[]
max_tokens
Int32
presence_penalty
Single
frequency_penalty
Single
repeat_penalty
Single
Returns
IEnumerable<ChatCompletionChunk>
SaveState()
1 |
|
Returns
LoadState(LLamaState)
1 |
|
Parameters
state
LLamaState
LongestTokenPrefix(IEnumerable<Int32>, IEnumerable<Int32>)
1 |
|
Parameters
Returns
<CreateChatCompletion>g__GetRole|31_0(ChatCompletionMessage)
1 |
|
Parameters
message
ChatCompletionMessage