Hybrid conversion of MOSS-TTS Local Transformer v1.5 and MOSS Audio Tokenizer v2. The approximately 4.55B-parameter language model runs on GPU through Swift MLX; twenty-three Core AI codec groups render native 48 kHz stereo on ANE. The model accepts ordinary text, including upstream language tags, pause markup and IPA controls. It retains the upstream 31-language architecture. The measured synthesis controls here are English; general multilingual quality is not established.
Model assets and runtime configuration for Glade. Python is conversion and measurement tooling, not an application dependency. Download configuration and weights from one repository snapshot. macOS and iOS runtimes are supported; the measurements below qualify this conversion on the Mac only.
language/: mapped language weights, tensor layout, source configuration and
tokenizer. Global matrices use four-bit affine groups of 64; the local
transformer, audio embeddings and tied heads retain FP16. No further training.codec/: twenty-three FP16 .aimodel groups, with original FP32 CPU codebooks
and boundary projections in boundary.f32 and boundary.json. Each group has
one input shape, covering sixteen code frames (1.28 seconds of new audio).
Native causal windows and acoustic caches are preserved.voice-encoder/: optional original FP32 reference-audio encoder. Import a
voice before loading the language model, cache its twelve-codebook conditioning,
and reuse the codes for future requests. Mono references are duplicated into
stereo for the encoder; generated speech is natively stereo. No voice recording
is included. This encoder is not needed for reference-free synthesis.hf download coder543/moss-tts-local-transformer-v1.5-glade \
--include 'language/*' 'codec/*' LICENSE NOTICE README.md --local-dir ./moss-local
The optional GladeMOSS product consumes the language/ and codec/ directories
through MOSSLocalModelBundle and MOSSLocalSynthesizer.
let backend = try MOSSLocalSynthesizer(
bundle: MOSSLocalModelBundle(languageDirectory: language, codecDirectory: codec),
maximumBatchSize: 2)
let session = TTSSynthesisSession(backend)
try await backend.prepare()
let metrics = try await session.offline(
[TTSRequest(.text("Welcome to the glade."), language: "English")],
execution: .phased()) { chunk in
// Play or write chunk.audio using its sampleRate and channels.
}
try await backend.unload()
The Swift backend supports bounded offline batching with lane retirement, source-ordered output, incremental online audio and optional phase switching. Online delivery currently uses one generation lane. Resident execution keeps language and codec stages loaded; this backend does not overlap their computation. Phased execution releases language weights during waveform rendering while retaining each unfinished sequence's KV state. Mapped files must remain unchanged while loaded, and mapping does not eliminate their memory working set.
The planner targets five minutes per text unit with a 5,000-position hard
generation limit, plus prompt positions. Offline runouts retry with a new seed
and then split the input without returning an unfinished suffix as complete
speech. Online runouts report an error; automatic MFA prefix recovery is not
implemented for this backend. Optional MFA alignment requires ordinary spoken
text; pause or IPA controls need explicit TTSRequest.spokenText and must fit
one synthesis unit per request.
M3 MacBook Air, 16 GB, macOS 27.0.1; Release Swift runtime. Preparation and WAV writing are excluded from inference. Complete synthesis uses the same two English text/seed submissions at each lane cap, one full warmup and the median of three measured passes.
| Active lanes | Generated audio | Generation | RTFx |
|---|---|---|---|
| 1 | 17.12 s | 16.84 s | 1.02× |
| 2 | 13.60 s | 8.32 s | 1.63× |
Output duration differs across lane caps because FP16 matrix rounding and stochastic sampling can produce different codes. These are complete-pipeline measurements, not isolated kernel scaling claims.
For comparison, the earlier MOSS-TTS-v1.5 Glade conversion achieves 1.07× with one lane and 1.89× with two under the same procedure, producing native 24 kHz mono. Local has smaller language weights but still needs twelve sequential local-transformer passes for each 80 ms frame, and its stereo codec has 92 transformer layers rather than 68.
A codec-only control decodes identical upstream codes into 7.2 seconds of audio: the published split-projection ANE codec takes 1.25 seconds (5.76×), versus 1.59 seconds (4.53×) for a direct-projection GPU control. The ANE control is about 27% faster. Complete synthesis gains about 3–7% from the codec change; most time remains in autoregressive generation.
Incremental resident delivery generates 8.56 seconds in 8.02 seconds (1.07×), with the first 1.28-second packet after 1.45 seconds. Phase switching every 2.56 seconds takes 8.78 seconds (0.98×), with first audio after 2.67 seconds. Both produce bit-identical PCM. These delivery controls retain no trailing audio; applications can configure a tail through normal online options.
First observed complete preparation takes 86 seconds without a cache purge; reopening the same assets takes 2.56 seconds. These are separate from inference and are not a pristine-cache startup guarantee.
On an iPhone 15 Pro Max running iOS 27.0.1, the Release Glade runtime completed one-lane phased synthesis with a 256 MiB KV budget. Three warm full-pipeline passes produced 8.56 seconds of stereo audio in a median 15.46 seconds: 0.55× RTFx. Preparation and WAV writing were excluded; first observed preparation took 64.17 seconds. The sampled task footprint peaked at 3.03 GB. Clean mapped pages and compiler/service allocations are not included in a complete resident-memory measure.
Instruments confirmed all 161 codec calls on ANE, across all 23 groups and seven codec blocks, with no GPU activity inside codec intervals. Language generation used GPU through MLX as intended. The capture was gated until recording was ready; traced timing was kept separate from the warm performance median. Cohere recovered the intended short English text exactly from the phone output. This is an intelligibility control, not a broad quality evaluation.
The codec splits input-channel projections into reductions of 256 channels and sums them with a balanced tree, preserving the original matrices. Its complete waveform differs from original FP32 by 0.73% relative RMS, versus 0.23% for the direct GPU control. A gated hardware trace records 138 ANE prediction intervals, matching 23 groups × 6 blocks, and zero target-process GPU intervals for the isolated codec. These intervals establish execution, not ALU utilization.
The four-bit global language model's final prompt hidden state differs from original FP32 by 25.43% relative RMS. Independent quantized MLX controls give 25.09% with either FP16 or FP32 arithmetic; the Swift/independent FP16 difference is 0.62%. Quantization is the main source of this hidden-state difference. Hidden-state RMS does not establish perceptual quality or unchanged voice similarity.
Cohere recovers every intended word from the short batched, streamed and reference-conditioned controls. This checks intelligibility and text coverage, not general MOS or multilingual quality. Teacher checks cover unequal prompts, lane retirement and cached local updates.
The optional FP32 voice encoder differs from native CPU FP32 by 0.00043% hidden RMS; all 1,080 code IDs from a 7.2-second reference match exactly. The public audio-file import path produces the same codes, including final-block flushing. General speaker-similarity and iPhone memory qualification are not claimed.
Language source revision: be7766a6735b98bd793f7c79fb720b4d0f5d13b8.
Codec and voice-encoder source revision: f6e20e543b33d2c252a7ef71bdf8aa71e5ff9169.
Original weights and source use Apache-2.0; see LICENSE, NOTICE and the upstream cards.
Core AI assets omit authoring source locations while retaining their graph signatures
and operation statistics. No compiled device specialization cache is distributed.
MacBook Pro with M5 Max (18-core CPU, 40-core GPU, 64 GB), macOS 27.2.1, High Power mode; measured November 9, 2026. Three warm measured passes after one complete warmup, using the Release Glade CLI benchmark.
The single-lane control uses the 15-word Sunlight passage and the Kokoro Adam encoded reference voice, seed 42. Language generation uses MLX on GPU and requests ANE for the codec. Both delivery modes keep the models resident.
Sunlight pours through the trees. A gentle breeze moves across the clearing. Welcome to Glade.
| Delivery | Generated audio | Generation | RTFx | WPM |
|---|---|---|---|---|
| Complete | 5.68 s | 1.634 s | 3.48× | 551 |
| Streaming | 5.68 s | 1.680 s | 3.38× | 536 |
A separate throughput sweep submits eight independent English requests, 201 source words total, using the same voice and seed. Complete resident generation, 1 GiB KV allowance; the table shows requested lane caps and actual peak lanes.
| Lane cap | Peak lanes | Generated audio | Generation | Aggregate RTFx | WPM |
|---|---|---|---|---|---|
| 1 | 1 | 65.28 s | 18.336 s | 3.56× | 658 |
| 2 | 2 | 65.36 s | 14.798 s | 4.42× | 815 |
| 4 | 4 | 65.28 s | 12.346 s | 5.29× | 977 |
| 8 | 7 | 67.92 s | 12.844 s | 5.29× | 939 |
Four lanes give the best word throughput in this sweep. The eight-lane cap admits at most seven lanes under the KV allowance. Output durations vary with batch-dependent numerical rounding and sampling, so WPM provides a second view using the same source text. These are aggregate processing rates, not the rate of the sequence currently playing.
Timing includes text processing, language generation, codec and host work; preparation, reference encoding, warmup and WAV writing are excluded. Streaming consumes generated PCM immediately without playback waits. WPM is source words multiplied by 60 and divided by generation seconds. The earlier M3 controls use different text/request structures and are not a direct hardware speedup test. No new M5 placement trace or independent transcript-quality score is claimed.
language/weights.bin 2.5 GBvoice-encoder/encoder-11-10.safetensors 79 MBvoice-encoder/encoder-11-11.safetensors 79 MBvoice-encoder/encoder-11-12.safetensors 79 MBvoice-encoder/encoder-11-13.safetensors 79 MBvoice-encoder/encoder-11-14.safetensors 79 MBvoice-encoder/encoder-11-15.safetensors 79 MBvoice-encoder/encoder-11-16.safetensors 79 MBvoice-encoder/encoder-11-17.safetensors 79 MBvoice-encoder/encoder-11-18.safetensors 79 MBvoice-encoder/encoder-11-19.safetensors 79 MBvoice-encoder/encoder-11-20.safetensors 79 MBvoice-encoder/encoder-11-21.safetensors 79 MBvoice-encoder/encoder-11-22.safetensors 79 MBvoice-encoder/encoder-11-23.safetensors 79 MBvoice-encoder/encoder-11-24.safetensors 79 MBvoice-encoder/encoder-11-25.safetensors 79 MBvoice-encoder/encoder-11-26.safetensors 79 MBvoice-encoder/encoder-11-27.safetensors 79 MBvoice-encoder/encoder-11-28.safetensors 79 MBvoice-encoder/encoder-11-29.safetensors 79 MBvoice-encoder/encoder-11-30.safetensors 79 MBvoice-encoder/encoder-11-31.safetensors 79 MBvoice-encoder/encoder-11-0.safetensors 79 MBvoice-encoder/encoder-11-1.safetensors 79 MBvoice-encoder/encoder-11-2.safetensors 79 MBvoice-encoder/encoder-11-3.safetensors 79 MBvoice-encoder/encoder-11-4.safetensors 79 MBvoice-encoder/encoder-11-5.safetensors 79 MBvoice-encoder/encoder-11-6.safetensors 79 MBvoice-encoder/encoder-11-7.safetensors 79 MBvoice-encoder/encoder-11-8.safetensors 79 MBvoice-encoder/encoder-11-9.safetensors 79 MBvoice-encoder/encoder-1-10.safetensors 28 MBvoice-encoder/encoder-1-11.safetensors 28 MBvoice-encoder/encoder-3-10.safetensors 28 MBvoice-encoder/encoder-3-11.safetensors 28 MBvoice-encoder/encoder-5-10.safetensors 28 MBvoice-encoder/encoder-5-11.safetensors 28 MBvoice-encoder/encoder-7-10.safetensors 28 MBvoice-encoder/encoder-7-11.safetensors 28 MBvoice-encoder/encoder-9-10.safetensors 28 MBvoice-encoder/encoder-9-11.safetensors 28 MBvoice-encoder/encoder-1-0.safetensors 28 MBvoice-encoder/encoder-1-1.safetensors 28 MBvoice-encoder/encoder-1-2.safetensors 28 MBvoice-encoder/encoder-1-3.safetensors 28 MBvoice-encoder/encoder-1-4.safetensors 28 MBvoice-encoder/encoder-1-5.safetensors 28 MBvoice-encoder/encoder-1-6.safetensors 28 MBvoice-encoder/encoder-1-7.safetensors 28 MBvoice-encoder/encoder-1-8.safetensors 28 MBvoice-encoder/encoder-1-9.safetensors 28 MBvoice-encoder/encoder-3-0.safetensors 28 MBvoice-encoder/encoder-3-1.safetensors 28 MBvoice-encoder/encoder-3-2.safetensors 28 MBvoice-encoder/encoder-3-3.safetensors 28 MBvoice-encoder/encoder-3-4.safetensors 28 MBvoice-encoder/encoder-3-5.safetensors 28 MBvoice-encoder/encoder-3-6.safetensors 28 MBvoice-encoder/encoder-3-7.safetensors 28 MBvoice-encoder/encoder-3-8.safetensors 28 MBvoice-encoder/encoder-3-9.safetensors 28 MBvoice-encoder/encoder-5-0.safetensors 28 MBvoice-encoder/encoder-5-1.safetensors 28 MBvoice-encoder/encoder-5-2.safetensors 28 MBvoice-encoder/encoder-5-3.safetensors 28 MBvoice-encoder/encoder-5-4.safetensors 28 MBvoice-encoder/encoder-5-5.safetensors 28 MBvoice-encoder/encoder-5-6.safetensors 28 MBvoice-encoder/encoder-5-7.safetensors 28 MBvoice-encoder/encoder-5-8.safetensors 28 MBvoice-encoder/encoder-5-9.safetensors 28 MBvoice-encoder/encoder-7-0.safetensors 28 MBvoice-encoder/encoder-7-1.safetensors 28 MBvoice-encoder/encoder-7-2.safetensors 28 MBvoice-encoder/encoder-7-3.safetensors 28 MBvoice-encoder/encoder-7-4.safetensors 28 MBvoice-encoder/encoder-7-5.safetensors 28 MBvoice-encoder/encoder-7-6.safetensors 28 MBvoice-encoder/encoder-7-7.safetensors 28 MBvoice-encoder/encoder-7-8.safetensors 28 MBvoice-encoder/encoder-7-9.safetensors 28 MBvoice-encoder/encoder-9-0.safetensors 28 MBvoice-encoder/encoder-9-1.safetensors 28 MBvoice-encoder/encoder-9-2.safetensors 28 MBvoice-encoder/encoder-9-3.safetensors 28 MBvoice-encoder/encoder-9-4.safetensors 28 MBvoice-encoder/encoder-9-5.safetensors 28 MBvoice-encoder/encoder-9-6.safetensors 28 MBvoice-encoder/encoder-9-7.safetensors 28 MBvoice-encoder/encoder-9-8.safetensors 28 MBvoice-encoder/encoder-9-9.safetensors 28 MBvoice-encoder/projections.safetensors 27 MB有文件?提交种子。
提交种子