SwiftstructTokenGenerationCore

struct TokenGeneration.SamplingParameters

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 21

  1. fieldvar computeMeanTokenEntropy: Bool?+0x118
  2. fieldvar frequencyPenalty: Double?+0x28
  3. fieldvar lengthPenalty: Double?+0x38
  4. fieldvar maxImagePixels: Int?+0x90
  5. fieldvar maximumTokens: Int?+0x48
  6. fieldvar priorInferenceOutput: String?+0xa0
  7. fieldvar promptLookupDraftSteps: Int?+0x80
  8. fieldvar randomSeed: Int?+0x60
  9. fieldvar speculationParameters: TokenGeneration.SpeculationParameters?+0xb0
  10. fieldvar speculativeDecoding: Bool?+0x99
  11. fieldvar speculativeSampling: Bool?+0x89
  12. fieldvar stopSequences: Set<String>+0x58
  13. fieldvar strategy: TokenGeneration.SamplingStrategy?+0x0
  14. fieldvar temperature: Double?+0x18
  15. fieldvar timeout: Double?+0x70
  16. fieldvar tokenHealing: Bool?+0x8a
  17. fieldvar useHighQualityImageTokenization: Bool?+0x8b
  18. initinit(strategy: TokenGeneration.SamplingStrategy?, temperature: Double?, frequencyPenalty: Double?, lengthPenalty: Double?, maximumTokens: Int?, stopSequences: Set<String>, randomSeed: Int?, timeout: Double?, promptLookupDraftSteps: Int?, speculativeSampling: Bool?, tokenHealing: Bool?, speculativeDecoding: Bool?, useHighQualityImageTokenization: Bool?, maxImagePixels: Int?, priorInferenceOutput: String?, speculationParameters: TokenGeneration.SpeculationParameters?, computeMeanTokenEntropy: Bool?) -> TokenGeneration.SamplingParameters
  19. initinit(strategy: TokenGeneration.SamplingStrategy?, temperature: Double?, frequencyPenalty: Double?, lengthPenalty: Double?, maximumTokens: Int?, stopSequences: Set<String>, randomSeed: Int?, timeout: Double?, promptLookupDraftSteps: Int?, speculativeSampling: Bool?, tokenHealing: Bool?, useHighQualityImageTokenization: Bool?, speculativeDecoding: Bool?, priorInferenceOutput: String?) -> TokenGeneration.SamplingParameters
  20. initinit(strategy: TokenGeneration.SamplingStrategy?, temperature: Double?, frequencyPenalty: Double?, lengthPenalty: Double?, maximumTokens: Int?, stopSequences: Set<String>, randomSeed: Int?, timeout: Double?, promptLookupDraftSteps: Int?, speculativeSampling: Bool?, tokenHealing: Bool?, useHighQualityImageTokenization: Bool?, priorInferenceOutput: String?) -> TokenGeneration.SamplingParameters
  21. initinit(strategy: TokenGeneration.SamplingStrategy?, temperature: Double?, frequencyPenalty: Double?, lengthPenalty: Double?, maximumTokens: Int?, stopSequences: Set<String>, randomSeed: Int?, timeout: Double?) -> TokenGeneration.SamplingParameters
struct SamplingParameters {
    var strategy: TokenGeneration.SamplingStrategy?
    var temperature: Swift.Double?
    var frequencyPenalty: Swift.Double?
    var lengthPenalty: Swift.Double?
    var maximumTokens: Swift.Int?
    var stopSequences: Swift.Set<Swift.String>
    var randomSeed: Swift.Int?
    var timeout: Swift.Double?
    var promptLookupDraftSteps: Swift.Int?
    var speculativeSampling: Swift.Bool?
    var tokenHealing: Swift.Bool?
    var useHighQualityImageTokenization: Swift.Bool?
    var maxImagePixels: Swift.Int?
    var speculativeDecoding: Swift.Bool?
    var priorInferenceOutput: Swift.String?
    var speculationParameters: TokenGeneration.SpeculationParameters?
    var computeMeanTokenEntropy: Swift.Bool?

    init(strategy: TokenGeneration.SamplingStrategy?, temperature: Swift.Double?, frequencyPenalty: Swift.Double?, lengthPenalty: Swift.Double?, maximumTokens: Swift.Int?, stopSequences: Swift.Set<Swift.String>, randomSeed: Swift.Int?, timeout: Swift.Double?, promptLookupDraftSteps: Swift.Int?, speculativeSampling: Swift.Bool?, tokenHealing: Swift.Bool?, speculativeDecoding: Swift.Bool?, useHighQualityImageTokenization: Swift.Bool?, maxImagePixels: Swift.Int?, priorInferenceOutput: Swift.String?, speculationParameters: TokenGeneration.SpeculationParameters?, computeMeanTokenEntropy: Swift.Bool?)
    init(strategy: TokenGeneration.SamplingStrategy?, temperature: Swift.Double?, frequencyPenalty: Swift.Double?, lengthPenalty: Swift.Double?, maximumTokens: Swift.Int?, stopSequences: Swift.Set<Swift.String>, randomSeed: Swift.Int?, timeout: Swift.Double?, promptLookupDraftSteps: Swift.Int?, speculativeSampling: Swift.Bool?, tokenHealing: Swift.Bool?, useHighQualityImageTokenization: Swift.Bool?, speculativeDecoding: Swift.Bool?, priorInferenceOutput: Swift.String?)
    init(strategy: TokenGeneration.SamplingStrategy?, temperature: Swift.Double?, frequencyPenalty: Swift.Double?, lengthPenalty: Swift.Double?, maximumTokens: Swift.Int?, stopSequences: Swift.Set<Swift.String>, randomSeed: Swift.Int?, timeout: Swift.Double?, promptLookupDraftSteps: Swift.Int?, speculativeSampling: Swift.Bool?, tokenHealing: Swift.Bool?, useHighQualityImageTokenization: Swift.Bool?, priorInferenceOutput: Swift.String?)
    init(strategy: TokenGeneration.SamplingStrategy?, temperature: Swift.Double?, frequencyPenalty: Swift.Double?, lengthPenalty: Swift.Double?, maximumTokens: Swift.Int?, stopSequences: Swift.Set<Swift.String>, randomSeed: Swift.Int?, timeout: Swift.Double?)
}