How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("feature-extraction", model="Oulasong/MOSS-Audio-Tokenizer-fp16", trust_remote_code=True)
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Oulasong/MOSS-Audio-Tokenizer-fp16", trust_remote_code=True, device_map="auto")
Quick Links

MOSS-Audio-Tokenizer, float16

OpenMOSS-Team/MOSS-Audio-Tokenizer (revision 3cd226ba) with its weights stored in float16: 3.3 GB instead of 7.1 GB. Code, config and architecture are unchanged; see the original model card for what the tokenizer is and how it was trained.

Used by ThunderTalk for MOSS-TTSD multi-speaker dialogue on Apple Silicon (MLX), which loads this folder as the dialogue model's audio tokenizer.

How close it is to the original

Measured on an M3 Max (36 GB), macOS 15:

  • Decoding the same codes with both: signal-to-noise ratio of the float16 output against the float32 output, 60.5 dB.
  • Encoding the same audio with both: 98.3 % of the codes identical.

The mlx-community 8-bit conversion of this tokenizer did not load with mlx-audio's MOSS-TTSD code (tensor names differ), which is why this float16 copy exists.

License

Apache-2.0, as the original (LICENSE). MOSS-Audio-Tokenizer by the OpenMOSS team; converted to float16 by realAllenSong.

Downloads last month
24
Safetensors
Model size
2B params
Tensor type
F16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Oulasong/MOSS-Audio-Tokenizer-fp16

Finetuned
(5)
this model