Audio-to-Audio
MLX
Safetensors
English
Chinese
step1
speech-editing
step-audio
stepfun
quantized
8bit
custom_code
Run this model with HF Jobs
Run mlx-community/Step-Audio-EditX-8bit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/mlx-community/Step-Audio-EditX-8bit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/mlx-community/Step-Audio-EditX-8bit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use mlx-community/Step-Audio-EditX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/Step-Audio-EditX-8bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mlx-community/Step-Audio-EditX-8bit --local-dir Step-Audio-EditX-8bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Step-Audio-EditX int8 MLX bundle (LM 8-bit group 64, written by mlx-step-audio-editx-swift from the bf16 bundle) + model card
Browse filesFiles changed (19)
- README.mdAdded+55
- campplus-config.jsonAdded+15
- config.jsonAdded+29
- flow-conditioner-config.jsonAdded+10
- flow-conditioner.safetensorsAdded+3
- flow-model-config.jsonAdded+23
- flow-model.safetensorsAdded+3
- frontend-config.jsonAdded+9
- hift-config.jsonAdded+72
- hift.safetensorsAdded+3
- model.safetensorsAdded+3
- step-audio-tokenizer-assets.safetensorsAdded+3
- step-audio-tokenizer-config.jsonAdded+24
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+15
- vq02-config.jsonAdded+34
- vq02.safetensorsAdded+3
- vq06-config.jsonAdded+16
- vq06.safetensorsAdded+3
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455---license: apache-2.0base_model: stepfun-ai/Step-Audio-EditXlibrary_name: mlxpipeline_tag: audio-to-audiolanguage:- en- zhtags:- mlx- speech-editing- step-audio- stepfun- quantized- 8bit---
# Step-Audio-EditX — int8 MLX bundle
[Step-Audio-EditX](https://huggingface.co/stepfun-ai/Step-Audio-EditX) (StepFun, Apache-2.0): a 3 B audio LLM thatre-delivers an existing take — emotion, speaking style, inserted paralinguistics (laughter, sighs, breaths), denoise,silence trim — in the same voice, plus zero-shot cloning. This is the[bf16 bundle](https://huggingface.co/mlx-community/Step-Audio-EditX-bf16) with the **step1 LM quantised to 8 bits**(affine, group 64, every Linear and the embeddings — `model.safetensors` 3.75 GB instead of 7.06 GB); the tokenizers,flow, HiFT and CAM++ are the bf16 files unchanged. `config.json` carries`"quantization": {"bits": 8, "group_size": 64, "mode": "affine"}`.
The quantised weights were written by the Swift consumer itself from the bf16 bundle (`editx-gates--write-int8-bundle`, quantised on MLX's CPU stream), so loading this bundle reproduces quantise-at-load exactly.
| file | component | source ||---|---|---|| `model.safetensors` (3.75 GB, int8) + `config.json` | step1 LM — 32 × 3072, 48 heads / 4 KV groups, sqrt-ALiBi | `stepfun-ai/Step-Audio-EditX` || `vq02.safetensors`, `vq06.safetensors`, `step-audio-tokenizer-assets.safetensors` + configs | the dual tokenizer (bf16) | FunASR Paraformer (FunASR model licence) / `stepfun-ai/Step-Audio-Tokenizer` || `flow-model.safetensors`, `flow-conditioner.safetensors`, `hift.safetensors`, `campplus.safetensors` + configs | flow, vocoder, speaker (bf16) | StepFun-trained / Alibaba CAM++ (Apache-2.0) || `tokenizer.json`, `tokenizer_config.json`, `frontend-config.json` | text tokenizer, mel front end | derived from `tokenizer.model` |
## Consumers
- **Swift**: [xocialize/mlx-step-audio-editx-swift](https://github.com/xocialize/mlx-step-audio-editx-swift) ≥ 0.1.1 — `EditXPipeline.load(bundle:)` reads the quantisation from `config.json`.- **Python**: `mlx-speech` loads int8 LM bundles of this layout (its `--bits 8` converter writes the same keys).
## Measured (M5 Max, the Swift consumer, the E19 evaluation cues)
- Resident 6.2 GB phys_footprint after load (MLX active 5.7 GB); MLX peak 7.3–7.7 GB per edit; real-time factor **0.51–0.53** (bf16: 0.72–0.75); loads in 0.5 s.- Content survives every edit (ASR error 0.000 on the four test edits), speaker similarity 0.83–0.97 to the source, DNSMOS 3.45–3.49 — the same bars as bf16 and the torch reference. Sampled tokens differ from bf16's at near-ties, as any quantised tier's do.
## Licence
Apache-2.0 (StepFun) for the LM, flow, HiFT and the S3 tokenizer; the Paraformer encoder under the FunASR modellicence; CAM++ Apache-2.0 (Alibaba / 3D-Speaker). Quantised and re-hosted by xocialize for mlx-community.123456789101112131415{ "feat_dim": 80, "embedding_size": 192, "growth_rate": 32, "init_channels": 128, "block_layers": [ 12, 24, 16 ], "segment_pool_size": 100, "sample_rate": 16000, "num_mel_bins": 80, "output_level": "segment"}1234567891011121314151617181920212223242526272829{ "architectures" : [ "Step1ForCausalLM" ], "auto_map" : { "AutoConfig" : "configuration_step1.Step1Config", "AutoModelForCausalLM" : "modeling_step1.Step1ForCausalLM" }, "bos_token_id" : 1, "eos_token_id" : 3, "hidden_size" : 3072, "intermediate_size" : 8192, "max_seq_len" : 32768, "model_type" : "step1", "num_attention_groups" : 4, "num_attention_heads" : 48, "num_hidden_layers" : 32, "pad_token_id" : 0, "quantization" : { "bits" : 8, "group_size" : 64, "mode" : "affine" }, "rms_norm_eps" : 1.0000000000000001e-05, "tie_word_embeddings" : false, "torch_dtype" : "bfloat16", "use_cache" : true, "vocab_size" : 74752}12345678910{ "vocab_size": 5121, "input_size": 512, "output_size": 80, "spk_embed_dim": 192, "vq02_pad_token": 1024, "vq06_prompt_offset": 1024, "vq06_vocoder_base": 1025, "prompt_mel_upsample": 2}123version https://git-lfs.github.com/spec/v1oid sha256:108792964617513bf2b0d8a47255bc8efa7e63acef1b96b866b3d97c0ea8f6a7size 26531511234567891011121314151617181920212223{ "input_size": 512, "output_size": 80, "spk_embed_dim": 192, "vocab_size": 5121, "encoder_output_size": 512, "pre_lookahead_len": 3, "num_blocks": 6, "num_up_blocks": 4, "up_stride": 2, "up_scale_factor": 2.0, "attention_heads": 8, "linear_units": 2048, "key_bias": true, "estimator_in_channels": 320, "estimator_out_channels": 80, "estimator_hidden_size": 512, "estimator_depth": 16, "estimator_num_heads": 8, "estimator_head_dim": 64, "estimator_mlp_ratio": 4.0, "inference_cfg_rate": 0.7}123version https://git-lfs.github.com/spec/v1oid sha256:cd076d8d7df5011ab57898f91dc2701ce28f9799ed04f85899ffe6f033e236b6size 307577693123456789{ "num_mels": 80, "n_fft": 1920, "hop_size": 480, "win_size": 1920, "sampling_rate": 24000, "fmin": 0.0, "fmax": 8000.0}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172{ "in_channels": 80, "base_channels": 512, "nb_harmonics": 8, "sampling_rate": 24000, "nsf_alpha": 0.1, "nsf_sigma": 0.003, "nsf_voiced_threshold": 10.0, "upsample_rates": [ 8, 5, 3 ], "upsample_kernel_sizes": [ 16, 11, 7 ], "istft_n_fft": 16, "istft_hop_len": 4, "resblock_kernel_sizes": [ 3, 7, 11 ], "resblock_dilation_sizes": [ [ 1, 3, 5 ], [ 1, 3, 5 ], [ 1, 3, 5 ] ], "source_resblock_kernel_sizes": [ 7, 7, 11 ], "source_resblock_dilation_sizes": [ [ 1, 3, 5 ], [ 1, 3, 5 ], [ 1, 3, 5 ] ], "lrelu_slope": 0.1, "audio_limit": 0.99, "f0_predictor": { "num_class": 1, "in_channels": 80, "cond_channels": 512 }}123version https://git-lfs.github.com/spec/v1oid sha256:28a40adb4e2a8bc401b9a12cca2e9219e486e0601ad57b32584a9f3e7e1e41fdsize 41637433123version https://git-lfs.github.com/spec/v1oid sha256:f5d2846e8e026cb625eed7fab32a2102b094c431f536efc39dd7f0fec46354b4size 3750584666123version https://git-lfs.github.com/spec/v1oid sha256:9eb651ec816b90046dc8c9eaadc1ef0f19f36e29f5e904e616c67b3a9bdcd052size 2101864123456789101112131415161718192021222324{ "model_type": "step_audio_tokenizer", "vq02_sample_rate": 16000, "vq06_sample_rate": 16000, "vq02_codebook_size": 1024, "vq06_token_rate_hz": 25.0, "vq06_n_fft": 400, "vq06_hop_length": 160, "vq06_num_mels": 128, "vq06_max_chunk_seconds": 30.0, "vq06_min_chunk_samples": 480, "trim_top_db": 20.0, "trim_frame_length": 512, "trim_hop_length": 128, "trim_keep_left_seconds": 0.05, "trim_keep_right_seconds": 0.22, "trim_output_hop_samples": 240, "vq02_chunk_size": [ 0, 4, 5 ], "encoder_chunk_look_back": 4}123456789101112131415{ "bos_token": "<s>", "clean_up_tokenization_spaces": false, "eos_token": "</s>", "legacy": false, "model_max_length": 65536, "pad_token": "<unk>", "padding_side": "left", "sp_model_kwargs": {}, "tokenizer_class": "LlamaTokenizer", "unk_token": "<unk>", "use_default_system_prompt": false, "chat_template": "{% if messages[0]['role'] == 'system' %}{{ '<s>' }}{% endif %}{% for message in messages %}{% if message['role'] == 'user' %}{% set role = 'human' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<|BOT|> ' + role + '\\n' }}{{ message['content'] }}{% if not loop.last or message['role'] != 'assistant' %}{{ '<|EOT|>' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|BOT|> assistant\\n' }}{% endif %}"}
12345678910111213141516171819202122232425262728293031323334{ "model_name": "ParaformerStreaming", "frontend": { "sample_rate": 16000, "window_type": "hamming", "n_mels": 80, "frame_length_ms": 25.0, "frame_shift_ms": 10.0, "lfr_m": 7, "lfr_n": 6, "dither": 1.0, "snip_edges": true, "remove_dc_offset": true, "preemphasis_coefficient": 0.97, "round_to_power_of_two": true, "low_freq": 20.0, "high_freq": 0.0, "use_power": true, "use_log_fbank": true, "use_energy": false }, "encoder": { "input_size": 560, "output_size": 512, "attention_heads": 4, "linear_units": 2048, "num_blocks": 50, "normalize_before": true, "kernel_size": 11, "sanm_shift": 0, "input_layer": "pe_online", "selfattention_layer_type": "sanm" }}123version https://git-lfs.github.com/spec/v1oid sha256:5035bbfcb7a56f46ac4d312ebc56f52b250d66f5b421d2a8b492f205f4828621size 31602476712345678910111213141516{ "num_mels": 128, "hidden_size": 1280, "num_heads": 20, "num_layers": 6, "max_positions": 1500, "codebook_size": 4096, "conv1_kernel_size": 3, "conv1_stride": 2, "conv1_padding": 1, "conv2_kernel_size": 3, "conv2_stride": 2, "conv2_padding": 1, "layer_norm_eps": 1e-05, "l2_norm_eps": 9.999999960041972e-13}123version https://git-lfs.github.com/spec/v1oid sha256:3b10c2501908c26ccf14c93995d3110801c5a86221eb919e3481d812a4cb9c86size 261268214README.mdAdded+55
campplus-config.jsonAdded+15
config.jsonAdded+29
flow-conditioner-config.jsonAdded+10
flow-conditioner.safetensorsAdded+3
flow-model-config.jsonAdded+23
flow-model.safetensorsAdded+3
frontend-config.jsonAdded+9
hift-config.jsonAdded+72
hift.safetensorsAdded+3
model.safetensorsAdded+3
step-audio-tokenizer-assets.safetensorsAdded+3
step-audio-tokenizer-config.jsonAdded+24
tokenizer.jsonAdded
tokenizer_config.jsonAdded+15
vq02-config.jsonAdded+34
vq02.safetensorsAdded+3
vq06-config.jsonAdded+16
vq06.safetensorsAdded+3