mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-11 21:02:12 +00:00
Signed-off-by: Christopher Barrera <cb@arda.tx.rr.com> Co-authored-by: Jared Van Bortel <cebtenzzre@gmail.com>
33 lines
784 B
C#
33 lines
784 B
C#
namespace Gpt4All;
|
|
|
|
public record PredictRequestOptions
|
|
{
|
|
public nuint LogitsSize { get; init; } = 0;
|
|
|
|
public nuint TokensSize { get; init; } = 0;
|
|
|
|
public int PastConversationTokensNum { get; init; } = 0;
|
|
|
|
public int ContextSize { get; init; } = 1024;
|
|
|
|
public int TokensToPredict { get; init; } = 128;
|
|
|
|
public int TopK { get; init; } = 40;
|
|
|
|
public float TopP { get; init; } = 0.9f;
|
|
|
|
public float MinP { get; init; } = 0.0f;
|
|
|
|
public float Temperature { get; init; } = 0.1f;
|
|
|
|
public int Batches { get; init; } = 8;
|
|
|
|
public float RepeatPenalty { get; init; } = 1.2f;
|
|
|
|
public int RepeatLastN { get; init; } = 10;
|
|
|
|
public float ContextErase { get; init; } = 0.5f;
|
|
|
|
public static readonly PredictRequestOptions Defaults = new();
|
|
}
|