Instructions to use Jakevin/ACE-Step1.5-Qwen3.5-0.8B-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Jakevin/ACE-Step1.5-Qwen3.5-0.8B-MLX with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download Jakevin/ACE-Step1.5-Qwen3.5-0.8B-MLX --local-dir ACE-Step1.5-Qwen3.5-0.8B-MLX
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
ACE-Step 1.5 โ Qwen3.5-0.8B 5Hz Planner (MLX) + All-in-One Renderer Bundle
Experimental out-of-the-box text-to-music bundle (Jakevin/ACE-Step1.5-Qwen3.5-0.8B-MLX) for Apple Silicon Macs. It pairs an experimental Qwen3.5-0.8B (18 GatedDeltaNet + 6 full-attention layers) 5Hz semantic-audio planner in MLX (bf16 main checkpoint, S-lr3e5-best-bf16) with the unmodified official ACE-Step 1.5 rendering stack (acestep-v15-turbo DiT, 48 kHz Oobleck vae, and Qwen3-Embedding-0.6B text encoder) under ./checkpoints/, so a single command generates a .wav file offline with no extra model downloads.
Important Status Notice: This is an experimental research checkpoint selected strictly by lowest validation masked cross-entropy (
6.933546922). On rawdev-100decoding, the officialACE-Step/acestep-5Hz-lm-0.6Bbaseline is faster (5.71 svs.7.96 s), achieves higher strict validity (100/100vs.97/100), and scores higher on CLAP (0.3451vs.0.2832/0.2920). Overall quality evaluation remainsINCOMPLETE. Because the raw 0.8B student exhibits lower audio-code diversity (0.4326mean unique ratio) and can collapse into late-sequence single-code loops on longer tracks,generate.pyenables inference-time anti-repeat post-processing by default (disable via--no-antirepeat). See Anti-Repeat Decoding (Default On), Evaluation (dev-100), and Limitations before use.
Sample
A 40-second sample generated by this repository's MLX Qwen3.5-0.8B composer with the official ACE-Step 1.5 DiT/VAE (generate.py defaults, anti-repeat on, seed 42). Style: upbeat indie synth-pop, pulsing analog bass, crisp drums, bright synth hooks, warm female vocals.
Live radio:
A live AI piano radio stream on YouTube. Every track is generated on the fly by the MLX version of this model, running on a Mac mini (Apple M4, 16 GB).
Language coverage
This student model was fine-tuned only on English-lyric and instrumental tracks. It does not work for Chinese or Japanese lyrics: in the author's informal listening checks, vocals in those languages were unintelligible. Use English lyrics or instrumental prompts.
Quickstart (3-Step Fresh Virtual Environment)
Requires macOS on Apple Silicon (arm64) and Python 3.12 (>=3.11,<3.13):
python3.12 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
pip install --no-deps mlx-lm==0.32.2
(Note: mlx-lm==0.32.2 provides the qwen3_5 GatedDeltaNet architecture while --no-deps preserves transformers==4.57.6 required by official ace-step==1.5.0.)
One-Line Generation Examples
Generate a 30-second English vocal track (anti-repeat enabled by default; offline-ready once the environment is installed):
python generate.py --prompt "upbeat indie synth-pop, pulsing analog bass, crisp drums, bright synth hooks, warm female vocals" --lyrics "[Verse 1]\nMorning light across the avenue\nEvery shadow turns to gold with you\n[Chorus]\nRun into the open sky tonight\nChasing echoes in the neon light" --duration 30 --out vocal_30s.wav
Generate a 30-second instrumental track:
python generate.py --prompt "cinematic acoustic guitar and warm strings, gentle fingerpicking, peaceful autumn atmosphere, instrumental" --lyrics "[Instrumental]" --duration 30 --out instrumental_30s.wav
Disable anti-repeat post-processing to reproduce exact raw model decoding (bit-identical audio codes to the unpenalized planner for the same seed and parameters):
python generate.py --no-antirepeat --prompt "cinematic acoustic guitar and warm strings, gentle fingerpicking, peaceful autumn atmosphere, instrumental" --lyrics "[Instrumental]" --duration 30 --seed 42 --out instrumental_raw_30s.wav
Anti-Repeat Decoding (Default On)
In raw Stage-2 sampling, this distilled 0.8B planner can occasionally fall into repetitive short cycles or single-code stutters on longer durations (e.g., 60โ120 s). generate.py therefore enables an inference-time anti-repeat post-processing and quality-gate pipeline by default during Stage-2 5Hz audio-code generation (Stage-1 <think>...</think> YAML CoT decoding is unchanged).
Stage-2 Per-Step Sampling Order
At each Stage-2 audio-code step (step_i in 0 .. 5 * duration - 1), generate.py applies operations in strict order:
- CFG Merge:
step_logits = uncond + cfg_scale * (cond - uncond)(when--cfg-scale > 1.0). - Audio-Code Vocabulary Mask: Restrict valid tokens strictly to
<|audio_code_0|> .. <|audio_code_63999|>(-1e9outside the 64,000 audio codes;<|im_end|>forced once5 * durationcodes are emitted). - Windowed Penalties, N-Gram Blocking & Late Temperature Schedule:
- Windowed Repetition / Frequency / Presence Penalties over the last
40generated codes (8.0 sat5 Hz): multiplicative/divisive repetition penalty1.2, additive frequency penalty0.25 * count, and flat presence penalty0.15. - Windowed 8-Gram Blocking over the last
80generated codes (16.0 sat5 Hz): forbids repeating any8-gram (1.6 sspan;max_count = 1, setting the completion logit to-1e9). - Late-Sequence Linear Temperature Ramp: holds
--temperature(0.85) through the first40%of audio-code steps, then linearly increases effective temperature from0.85to1.05(--temperature-late) over the remaining60%of the sequence.
- Windowed Repetition / Frequency / Presence Penalties over the last
- Log-Softmax & Top-p Nucleus Sampling:
log_softmaxfollowed by nucleus sampling (--top-p 0.9).
Quality Gate & Definition of "Best" Attempt
After generating the full sequence of 5 * duration audio codes, generate.py evaluates three repetition quality-gate thresholds:
- Overall Unique Code Ratio:
unique_code_ratio >= 0.58 - Second-Half 8-Gram Repeat Rate:
late_ngram_repeat_ratio <= 0.50(fraction of8-grams in the second half of the track that already appeared in the first half) - Longest Contiguous Periodic Cycle:
longest_cycle_frac <= 0.30(longest immediately repeating cycle of period1..64codes divided by total code count)
If an attempt fails any of these three thresholds, generate.py re-runs the planner with a deterministic stepped seed (seed + 100 * regen_index) for at most --max-regen 3 total attempts (seed, seed + 100, seed + 200), stopping immediately on the first attempt that passes all three thresholds.
How the "best" attempt is selected:
- Any valid attempt that passes all three quality-gate thresholds (
passed_thresholds = true) takes priority over attempts that do not, and terminates the retry loop immediately. - If all
--max-regenattempts fail at least one threshold,generate.pykeeps the valid attempt with the highest compositequality_score:
quality_score = unique_code_ratio
+ 0.25 * late_unique_code_ratio
+ 0.25 * ngram8_unique_ratio
- 0.60 * late_ngram_repeat_ratio
- 0.60 * longest_cycle_frac
When --save-meta-json <path> is supplied (and in the JSON summary printed to stdout), generate.py records repetition_metrics, quality_score, passed_thresholds, regen_attempts (with each attempt's seed, passed_thresholds, metrics, and quality_score), and the full audio_codes integer array.
CLI Anti-Repeat Flags & Defaults
| CLI Flag | Default | Description |
|---|---|---|
--no-antirepeat (--antirepeat-off) |
False (enabled) |
Disable all anti-repeat penalties, temperature ramp, and quality-gate retries; behaves identically to original raw generate.py |
--repetition-penalty |
1.2 |
Multiplicative/divisive repetition penalty within --penalty-window (1.0 disables) |
--frequency-penalty |
0.25 |
Additive penalty per code occurrence within --penalty-window (0.0 disables) |
--presence-penalty |
0.15 |
Flat additive penalty for any code present within --penalty-window (0.0 disables) |
--penalty-window |
40 |
Lookback window in audio codes (40 codes = 8.0 s at 5 Hz; 0 = full history) |
--no-repeat-ngram |
8 |
N-gram size blocked from repeating within --no-repeat-ngram-window (0 disables) |
--no-repeat-ngram-window |
80 |
Lookback window in audio codes for n-gram blocking (80 codes = 16.0 s at 5 Hz; 0 = full history) |
--no-repeat-ngram-max-count |
1 |
Max occurrences of an n-gram allowed in the window before masking to -1e9 (1 = forbid repeats) |
--temperature |
0.85 |
Base planner temperature (Stage-1 CoT and first 40% of Stage-2 audio codes) |
--temperature-late |
1.05 |
Target temperature at the end of Stage-2 generation (set equal to --temperature to disable ramp) |
--temperature-late-start-frac |
0.40 |
Generation progress fraction (0.40 = 40%) where the linear temperature ramp starts |
--unique-code-ratio-min |
0.58 |
Quality-gate minimum overall unique audio-code ratio |
--late-ngram-size |
8 |
N-gram size used for late_ngram_repeat_ratio |
--late-ngram-repeat-max |
0.50 |
Quality-gate maximum second-half n-gram repeat ratio |
--longest-cycle-frac-max |
0.30 |
Quality-gate maximum fraction of codes covered by a contiguous periodic loop |
--max-regen |
3 |
Maximum total planner attempts across stepped seeds (seed, seed+100, seed+200) |
--save-meta-json |
None |
Save full run metadata JSON (including repetition_metrics, regen_attempts, and audio_codes) |
--save-codes-json |
None |
Optional path to save {audio_codes, audio_codes_str, n_codes} as a standalone JSON |
--skip-render |
False |
Run Stage-A MLX planner only without loading DiT/VAE |
Illustrative Single-Example Diagnostic (lyrical_ballad, 81 s, Seed 1507723155)
Disclaimer: The table below shows a single illustrative diagnostic case (
N = 1) from downstream 24/7 chiptune radio testing where raw decoding suffered catastrophic single-code collapse; it is NOT a formal benchmark evaluation.
Settings: lyrical_ballad (--prompt "gentle 8-bit chiptune, nostalgic lyrical film-score ballad, square wave melody, soft arpeggios, warm pastoral, wistful, 90 bpm, retro game console sound" --instrumental --bpm 90 --timesignature 4 --duration 81 --seed 1507723155, 405 audio codes at 5 Hz):
| Mode | Seed Used (regen_used) |
Unique Codes / Total (unique_code_ratio) |
Late Unique Ratio | Late 8-Gram Repeat Ratio | Longest Cycle Run (longest_cycle_frac) |
quality_score |
Behavior Summary |
|---|---|---|---|---|---|---|---|
Raw decoding (--no-antirepeat) |
1507723155 (1) |
14 / 405 (0.035 / 0.0346) |
0.0049 |
1.0000 |
375 codes (0.9259, period=1 from code index 30) |
-1.1009 |
Starting at code index 30 (~6 s), collapsed onto audio code 40443 for 375 consecutive codes |
| Default anti-repeat | 1507723155 (1) |
359 / 405 (0.886 / 0.8864) |
0.9754 |
0.0000 |
0 codes (0.0000) |
+1.3803 |
Passed all thresholds on initial seed (0.035 โ 0.886 unique ratio), zero 8-gram repeats or cyclic runs |
Hardware & System Requirements
- Platform: Apple Silicon Mac (
M1/M2/M3/M4,arm64) running macOS with Metal / MPS enabled. - Unified Memory:
16 GBminimum recommended (generate.pyunloads the~1.64 GBMLX planner before loading the ACE-Step DiT/VAE renderer; benchmark numbers below were measured on an Apple M4 Pro with64 GBunified memory). - Disk Space:
~7.7 GBfor repository weights +~2.5 GBfor the Python virtual environment. - Python:
3.12(>=3.11,<3.13).
Bundle Layout
- Repository root (
.): Fused MLX 5Hz composer checkpoint (model.safetensorswith284 BF16+36 F32GatedDeltaNet tensors,config.json,tokenizer.json,tokenizer_config.json,chat_template.jinja,export_meta.json,selection.json,transplant_meta.json),generate.py,requirements.txt,LICENSE(Apache-2.0),LICENSE-ACE-Step(ACE-Step 1.5 MIT License full text), andNOTICE. ./checkpoints/: Official ACE-Step 1.5 renderer directories (acestep-v15-turbo/,vae/,Qwen3-Embedding-0.6B/,config.json) in the native layout expected byacestep, requiring zero runtime Hugging Face downloads (HF_HUB_OFFLINE=1compatible).
Evaluation (dev-100)
Important Note on
dev-100Scores vs. Default Anti-Repeat: Alldev-100evaluation results in the tables below are raw model decoding outputs WITHOUT anti-repeat enabled (equivalent to--no-antirepeat,max_retries = 0). The anti-repeat penalties, late temperature ramp, and quality-gate regeneration ingenerate.pyare inference-time post-processing heuristics and have NOT been formally re-evaluated on the samedev-100benchmark.
All metrics below are taken directly from the pre-registered single-shot constrained dev-100 evaluation (50 English CC0 vocal prompts + 50 [Instrumental] prompts across 30โ120 s, max_retries = 0, Stream-A constrained decoding with temperature = 0.85, top_p = 0.9, cfg_scale = 2.0, no anti-repeat penalties, and 8-step acestep-v15-turbo strict_planner rendering on an Apple M4 Pro with 64 GB RAM).
Checkpoint Selection (12-Point dev-100 Masked CE Grid)
Eligible bf16 Student |
Selected Step | Selected Epoch | Raw dev-100 Masked CE |
|---|---|---|---|
This model (S-lr3e5-best-bf16, lr = 3e-5) |
975 | 3 | 6.933546922 |
Previous student (S-best-bf16, lr = 1e-4) |
325 | 1 | 6.955565437 |
S-lr3e5-best-bf16 was selected solely by the frozen CE-first rule (-0.022018514 lower masked CE vs. the lr = 1e-4 student). Lower validation CE did not translate into superior downstream audio metrics.
Downstream Audio & Latency Comparison (dev-100, Raw Decoding Without Anti-Repeat)
Model Arm (bf16) |
Strict Valid | CLAP (All 100ยน) | CLAP (Valid Only) | Mean Code Entropy (bits) / Unique Ratio |
Mean LM Time (s/prompt) |
Derived LM + Render (s/valid trackยฒ) |
|---|---|---|---|---|---|---|
This model (S-lr3e5-best-bf16, step 975) |
97/100 | 0.2832 (0.283249) |
0.2920 (0.292009, N=97) |
4.5837 / 0.4326 | 7.96 s (7.9631) |
25.09 s (25.0901) |
Previous student (S-best-bf16, lr=1e-4, step 325) |
100/100 | 0.2953 (0.295278) |
0.2953 (0.295278, N=100) |
4.7526 / 0.4769 | 7.65 s (7.6489) |
24.75 s (24.7532) |
Teacher (T-bf16, ACE-Step 1.7B) |
100/100 | 0.3311 (0.331114) |
0.3311 (0.331114, N=100) |
8.1718 / 0.9306 | 14.33 s (14.3272) |
31.51 s (31.5113) |
Official 0.6B (B-0.6B-official, acestep-5Hz-lm-0.6B) |
100/100 | 0.3451 (0.345059) |
0.3451 (0.345059, N=100) |
8.1403 / 0.9194 | 5.71 s (5.7105) |
22.82 s (22.8227) |
ยน Failed strict renders receive the pre-registered CLAP value 0.0.
ยฒ Arithmetic aggregate: mean LM generation time plus batch DiT+VAE rendering wall time divided by valid rendered tracks.
Paired ฮCLAP Differences (10,000-Resample Bootstrap, Exploratory)
Comparison (S-lr3e5-best-bf16 minus Reference) |
ฮCLAP Mean |
Exploratory 95% CI |
|---|---|---|
vs. Previous student (S-best-bf16) |
-0.012029 |
[-0.033552, +0.009861] |
vs. Teacher (T-bf16) |
-0.047865 |
[-0.075600, -0.020870] |
vs. Official 0.6B (B-0.6B-official) |
-0.061810 |
[-0.090213, -0.034635] |
Against T-bf16, this model fails 4 of the 5 pre-registered numerical non-inferiority checks (F/F/F/F/T: strict validity 0.97 < 0.98, uncalibrated Whisper v2 WER/CER upper bounds +0.310824 / +0.301368 above +0.020 / +0.015, CLAP lower bound -0.075600 < -0.010, CoT duration match 0.97 < 0.98; passing only standalone LM latency -44.42% vs. T-bf16).
Limitations
- Experimental Checkpoint (Not Superior to Official 0.6B):
B-0.6B-official(ACE-Step/acestep-5Hz-lm-0.6B) is faster (5.71 svs.7.96 s), uses less memory, has higher single-shot strict validity (100/100vs.97/100), higher raw code diversity (8.1403vs.4.5837bits), and higher CLAP (0.3451vs.0.2832). - Anti-Repeat Post-Processing Not Formally Benchmarked on
dev-100: Default anti-repeat penalties and quality-gate retries mitigate code-collapse symptoms at inference time, but their downstream impact ondev-100CLAP, ASR WER/CER, and mean wall-clock latency has not been formally evaluated. - Single Training Seed: Trained with a single seed (
seed = 42) on2,600teacher-sampled trajectories (975optimizer steps); cross-seed stability is not established. - Exploratory
dev-100Only (test-300Untouched): Two learning rates (1e-4and3e-5) were evaluated ondev-100; the held-outtest-300split has not been evaluated. - No Human Listening Tests or Calibrated ASR (
INCOMPLETEQuality Gate): Automated Whisper v2 metrics are uncalibrated diagnostics only, and no independent human transcription calibration or blind listening tests (MUSHRA / preference) have been performed. - English & Instrumental Only: Distilled strictly on English CC0 vocal prompts and
[Instrumental]prompts (30โ120 s). It does not work for Chinese or Japanese lyrics: in the author's informal listening checks, vocals in those languages were unintelligible. See Language coverage. - Inference-Only Fused Export: LoRA adapters and expanded embedding rows are permanently fused (
resumable = false), retaining36 F32GatedDeltaNet recurrent tensors alongside284 BF16tensors.
License, Sources & Attribution
- Planner Base Model (
Qwen/Qwen3.5-0.8B-Base) & Bundled Text Encoder (Qwen/Qwen3-Embedding-0.6B): Licensed under Apache License 2.0 (Copyright 2026 Alibaba Cloud). Full license text is included inLICENSEand modification notices inNOTICE. - Bundled ACE-Step 1.5 Renderer (
./checkpoints/acestep-v15-turbo,./checkpoints/vae,./checkpoints/config.json) & Upstream Runtime:- Weights source:
https://huggingface.co/ACE-Step/Ace-Step1.5at commit19671f406d603126926c1b7e2adc169acbcade22(ACE Studio and StepFun; model card and README declare MIT). - Runtime & synced dynamic DiT module code source:
https://github.com/ace-step/ACE-Step-1.5at commitca1e85fe9430179831e6bc6be790c332190a3866(MIT License,Copyright (c) 2026 ACEStep; dynamic module headers carryApache-2.0). - Transparency note: As documented in
NOTICE, the upstreamACE-Step/Ace-Step1.5Hugging Face repository declaresMITvia its model card/README without a standalone rootLICENSEfile (nor a separate license file inside itsacestep-5Hz-lm-1.7Bteacher directory); the full MIT License text (Copyright (c) 2026 ACEStep) is included inLICENSE-ACE-Stepand also reproduced inNOTICE, taken from the officialace-step/ACE-Step-1.5GitHub repository.
- Weights source:
- Companion GGUF Repository (
BF16&Q8_0forllama.cpp/llama-cpp-python):Jakevin/ACE-Step1.5-Qwen3.5-0.8B-GGUF.
- Downloads last month
- 136
Quantized
Model tree for Jakevin/ACE-Step1.5-Qwen3.5-0.8B-MLX
Base model
Qwen/Qwen3.5-0.8B-Base