ternlang-core 0.3.3

Compiler and VM for Ternlang — balanced ternary language with affirm/tend/reject trit semantics, @sparseskip codegen, and BET bytecode execution.
Documentation
// Module:  stdlib/research/trit_quantization.tern
// Purpose: Extreme Quantization to Trit Tensors
// Author:  RFI-IRFOS
// Ref:     https://ternlang.com

// Methods to convert FP32 weights into BET (Binary-Encoded Ternary).

fn absmax_trit(weights: float[]) -> trit[] {
    let out: trit[] = [affirm];
    return out;
}

fn nf_trit(weights: float[]) -> trit[] {
    let out: trit[] = [affirm];
    return out;
}

fn gptq_trit(weights: float[], hessian: float[]) -> trit[] {
    let out: trit[] = [affirm];
    return out;
}

fn smoothquant_trit(weights: float[], activations: float[]) -> trit[] {
    let out: trit[] = [affirm];
    return out;
}