tencent/AuK (Tencent Hunyuan; technical report arXiv:2609.08936) converted to MLX for xocialize/mlx-auk-swift.
AuK is a unified speech generation and editing model. One natural-language instruction covers:
Base: 32 Euler steps × CFG 2.0 with sway −1 (64 DiT forwards). RTF ≈ 0.89 bf16 on an M5 Max.
The DiT and VAE in this repo are MIT (Tencent's LICENSE, included). AuK requires a semantic encoder, the
Qwen2.5-Omni-3B thinker, and that encoder is under the Qwen RESEARCH LICENSE AGREEMENT: research and evaluation
only, non-commercial. A pipeline that runs is therefore research-only, whatever this repo's own badge says. The encoder
is published separately with its licence:
mlx-community/Qwen2.5-Omni-3B-Thinker-bf16
(also -8bit and -4bit). Tencent has said it plans a permissive encoder
(Tencent-Hunyuan/AuK#13).
| file | contents |
|---|---|
dit.safetensors | Flux2Edit DiT (10 MMDiT + 20 single-stream blocks, dim 1536) plus the 36-layer fusion weights. bf16; the fusion logits, scale and RoPE frequencies are fp32. |
vae.safetensors | BigVGAN-Flow VAE (24 kHz, hop 480, 64-dim latents). bf16 with fp32 normalisation statistics and anti-alias taps. Weight-norm folded; the training-only coupling flow removed. |
config.json | Architecture, VAE and sampling configuration. |
Conv weights are in MLX (O, K, I) layout. Key names are upstream's verbatim. Converted from
tencent/AuK@790742b7 with Tools/convert/convert.py. A V1 gate checks it:
the fp32 conversion equals upstream's folded weights bit for bit.
The reference is the upstream PyTorch code (Tencent-Hunyuan/AuK@9481474) run in fp32. Measured on six cookbook
tasks with the same noise, on Base and Flash:
Receipts: PORTING-SPEC and MEASUREMENTS.
import AuKCore
let pipe = try await AukPipeline.load(modelDir: aukDir, encoderDir: thinkerDir, dtype: .bfloat16)
let wav = try pipe.generate(AukRequest(instruction: AukInstruction.emotion("happy").text(),
audio: samples, sampleRate: 24000, seed: 1))This repo contains modified (converted) weights; Tencent does not endorse this conversion.