Skip to content

Kyojin: open-source engine that runs 100 GB-class open models (GLM-5.3, Qwen3.8, DeepSeek V4.1) on one desktop machine. AMD Strix Halo, NVIDIA RTX and Apple Mac. OpenAI API, built on ExLlamaV3.

410 B
Raw Blame
#pragma once

#include <ATen/Tensor.h>
#include <optional>

void dry_penalty
(
    const at::Tensor& in_logits,
    const at::Tensor& out_logits,
    const at::Tensor& past_ids,
    const std::optional<at::Tensor>& breakers,
    const at::Tensor& workspace,
    const at::Tensor& counters,
    float multiplier,
    float base,
    int allowed_length,
    int range,
    int max_exponent,
    int match_cap
);