Skip to main content

GigaChat Audio MLX

English · Русский

Local, offline audio understanding on Apple Silicon Macs. Ask questions about audio, transcribe or translate speech, detect emotion, find moments by time, and create timestamped summaries. This is an independent native MLX port of the official GigaChat3.1-Audio-10B-A1.8B model from the GigaChat Audio paper. It runs without a PyTorch, CUDA, or cloud runtime.

PyPI · Hugging Face models · Latest release · Full results · Upstream model · Original paper

At a glance: what each model needs

Variant Model size Free disk to set aside Measured total process memory 5:17 audio on M4 Pro Recommendation
BF16 22.54 GB about 25 GB 22.84 GiB 10.41 s · 30.5× realtime quality-first
Q8/BF16 13.75 GB about 16 GB 14.80 GiB 6.90 s · 46.0× realtime smaller and faster

In plain terms: on the tested Mac, a 5-minute 17-second recording took about 10 seconds with BF16 or 7 seconds with Q8/BF16. Download time is not included. The free-disk figures are practical rounded reserves; download --dry-run reports the exact requirement before transferring anything.

The memory column is measured use by the whole process, not a promise that a Mac with exactly that much unified memory will work. Both variants are verified only on a 48 GB Mac today. 16/24/32 GB support will be stated only after it is tested.

Quick start

The verified environment is an Apple M4 Pro with 48 GB unified memory, macOS 15.7.7, and native ARM Python 3.12 or 3.13. Broader M1–M5 and lower-memory support is not yet claimed.

brew install uv
uv tool install gigachat-audio-mlx

gigachat-audio-mlx doctor
gigachat-audio-mlx download --variant bf16 --dry-run
gigachat-audio-mlx download --variant bf16 --yes

gigachat-audio-mlx run meeting.m4a \
  --variant bf16 \
  --task summarize \
  --max-tokens 768

doctor is read-only. The download dry run shows exact bytes, cache hits, free disk space, and the destination before any network transfer.

Why this port?

  • Native MLX inference without PyTorch, CUDA, ONNX Runtime, Core ML, or a cloud API.
  • One local runtime for audio QA, transcription, translation, emotion analysis, temporal grounding, and timestamped summaries.
  • Data-only model repositories: no remote Python execution and no trust_remote_code.
  • Immutable model revisions, a signed manifest of expected files, and SHA-256 validation before loading.
  • A quality-first BF16 model and a compact Q8/BF16 option for lower disk, memory, and processing time.

Choose between BF16 and Q8/BF16

All resource figures below are direct measurements on the same 317.27-second audio workload. Lower is better. The median of five clean processes is reported for time and whole-process physical memory.

Variant Recommended use Model size Process memory 5-minute time Hugging Face
BF16 best measured answer quality 22.54 GB 22.84 GiB 10.41 s ai-babai/gigachat-audio-mlx
Q8/BF16 less disk and memory, higher speed 13.75 GB 14.80 GiB 6.90 s ai-babai/...-q8-bf16

Q8/BF16 is 39.0% smaller, used 35.2% less process memory, and needed 33.7% less processing time. In the blinded review, it had factual errors in 3 more cases than BF16. Choose Q8/BF16 when size, memory, and speed matter; choose BF16 for the best measured answer quality. The exact review counts are shown below.

Common tasks

The text instruction is part of every input. Use a preset or provide an exact custom request:

# Russian transcription
gigachat-audio-mlx run speech.wav --variant bf16 --task transcribe

# Translate speech to English
gigachat-audio-mlx run interview.flac --variant bf16 --task translate-en

# Find a moment in time
gigachat-audio-mlx run meeting.m4a \
  --variant bf16 \
  --prompt "Find when the budget decision was approved. Return start and end timestamps."

# Timestamped summary
gigachat-audio-mlx run meeting.m4a \
  --variant bf16 \
  --task summarize \
  --max-tokens 768 \
  --stats

Available presets are transcribe, translate, translate-ru, translate-en, emotion, ground, summarize, and qa. A custom --prompt overrides the preset.

WAV and FLAC work in the default installation. MP3 is supported by the bundled audio wheel; M4A uses the macOS-native decoder fallback. Stereo is mixed to mono and resampled deterministically to 16 kHz with SoXR HQ. No Homebrew or ffmpeg installation is required.

Results available today

MLX BF16 compared with MLX Q8/BF16

Metric, lower is better MLX BF16 MLX Q8/BF16 Change
Model size, decimal GB 22.54 13.75 −39.0%
Whole-process memory, 5-minute profile 22.84 GiB 14.80 GiB −35.2%
End-to-end time, 5-minute profile 10.41 s 6.90 s −33.7%
Responses with a factual error 26/64 (40.63%) 29/64 (45.31%) +3 responses (+4.69 pp)

Model size is the disk payload, not RAM. Memory is the whole-process macOS physical footprint. Published performance figures come from the verified M4 Pro / 48 GB machine and are not universal Apple Silicon claims.

Original PyTorch BF16 compared with the MLX port

Check Original PyTorch BF16 MLX BF16 MLX Q8/BF16
Model size, decimal GB 23.73 22.54 13.75
Exact decoded-text agreement Reference 41/50 vs Original 45/50 vs MLX BF16

Exact text agreement is an implementation-parity diagnostic, not an aggregate quality score. Original PyTorch has not yet been measured with the same five-minute Mac resource protocol, so it is intentionally absent from the RAM and speed comparison. That measurement is planned after publication.

Results reported by the original authors

These values come from the upstream model card and were not rerun by this project.

Task and dataset Metric Original reported result
Audio QA · MMAU Accuracy ↑ 62.2
Audio QA (Russian) · RuBQ Accuracy ↑ 60.0
Emotion · Dusha podcast Accuracy ↑ 92.4
ASR (Russian) · FLEURS ru WER ↓ 4.4
ASR (English) · FLEURS en WER ↓ 6.5
Translation · FLEURS ru→en BLEU ↑ 33.4
Translation · FLEURS en→ru BLEU ↑ 26.0
Temporal localization · 20–60 min mIoU ↑ 48.3
Timed summary · 20–60 min Overall ↑ 67.9

See the full result tables and measurement notes and the upstream model card.

Python API

from gigachat_audio_mlx.runtime import GigaChatAudioRuntime

runtime = GigaChatAudioRuntime.load("/path/to/mlx-model")

Pinned Hugging Face snapshots can also be loaded without remote code:

runtime = GigaChatAudioRuntime.from_pretrained(
    "ai-babai/gigachat-audio-mlx",
    revision="db430193908ea810d4873404b43a148d5cbe9753",
    local_files_only=True,
)

Compatibility and limitations

  • Verified: Apple M4 Pro, 48 GB unified memory, macOS 15.7.7 arm64, and Python 3.12/3.13.
  • Not yet claimed: all M1–M5 Macs, 16/24/32 GB configurations, Intel Mac, Linux, Windows, iOS, or 90-minute inputs.
  • Long timestamped summaries can reach the output-token limit. Increase --max-tokens only after checking the memory estimate.
  • Answers, translations, emotions, facts, and timestamps can be wrong. Verify important output against the source audio.
  • Do not use output as the sole basis for medical, legal, employment, safety, or surveillance decisions. Users remain responsible for consent, privacy, copyright, and the terms governing their audio.

Reproducibility and development

The source model is pinned to revision bf73d03a43bdf5118f5a4dbdc24ba6f56ac31cfb. Model weights, datasets, caches, private audio, and large raw benchmark outputs are not stored in Git. The repository contains compact results, manifests, selection rules, and commands needed to inspect the published evidence.

Start with benchmarks/README.md for the benchmark map and docs/release/v0.1.0/RESULTS.md for the current tables and limitations.

License and attribution

The MLX runtime is MIT-licensed. Upstream model, paper, code, and dependency provenance is recorded in THIRD_PARTY_NOTICES.md. Please cite both this software through CITATION.cff and the original work:

This project is not an official release by the GigaChat Audio authors. Security reports and contributions are covered by SECURITY.md and CONTRIBUTING.md.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gigachat_audio_mlx-0.1.3.tar.gz (79.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gigachat_audio_mlx-0.1.3-py3-none-any.whl (39.4 kB view details)

Uploaded Python 3

File details

Details for the file gigachat_audio_mlx-0.1.3.tar.gz.

File metadata

  • Download URL: gigachat_audio_mlx-0.1.3.tar.gz
  • Upload date:
  • Size: 79.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for gigachat_audio_mlx-0.1.3.tar.gz
Algorithm Hash digest
SHA256 fb2f0a47a43629f5f923ab3d42e4a086923a704f134b8084c2c88d7e97e26cd0
MD5 b7007c1d8c84fcac1374242205795f8c
BLAKE2b-256 baf7ff961f41528c40d8fd62141aed49a27f30a9f39ad82c65476e1b11412976

See more details on using hashes here.

Provenance

The following attestation bundles were made for gigachat_audio_mlx-0.1.3.tar.gz:

Publisher: publish-to-pypi.yml on ai-babai/gigachat-audio-mlx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gigachat_audio_mlx-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for gigachat_audio_mlx-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f3a241a36d333674d19bae9c6844ee69e71bcbabd8a715c574c0c8aaca01f543
MD5 9bb0fbe6fbbd56fd7318a85281ea77d4
BLAKE2b-256 e8f36f406f7011dc0999c9138768acf14cdd037c9397f10baeb3e39b9189a6ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for gigachat_audio_mlx-0.1.3-py3-none-any.whl:

Publisher: publish-to-pypi.yml on ai-babai/gigachat-audio-mlx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.4

2 files

This release

0.1.3 This release

2 files

0.1.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page