Skip to content

v1.4.2

Compare
Choose a tag to compare
@eastriverlee eastriverlee released this 01 Feb 09:38
· 12 commits to main since this release

Highlights

  • fixed initializer with template
public convenience init(
    from url: URL,
    template: Template,
    history: [Chat] = [],
    seed: UInt32 = .random(in: .min ... .max),
    topK: Int32 = 40,
    topP: Float = 0.95,
    temp: Float = 0.8,
    historyLimit: Int = 8,
    maxTokenCount: Int32 = 2048
) {
    self.init(
        from: url.path,
        stopSequence: template.stopSequence,
        history: history,
        seed: seed,
        topK: topK,
        topP: topP,
        temp: temp,
        historyLimit: historyLimit,
        maxTokenCount: maxTokenCount
    )
    self.preProcess = template.preProcess
    self.template = template
}

last line was missing. damn.
Full Changelog: v1.4.1...v1.4.2