Instructions to use mlx-community/3b-zh-pretrain-research_release-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mlx-community/3b-zh-pretrain-research_release-bf16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="mlx-community/3b-zh-pretrain-research_release-bf16")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mlx-community/3b-zh-pretrain-research_release-bf16") model = AutoModelForCausalLM.from_pretrained("mlx-community/3b-zh-pretrain-research_release-bf16") - MLX
How to use mlx-community/3b-zh-pretrain-research_release-bf16 with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir 3b-zh-pretrain-research_release-bf16 mlx-community/3b-zh-pretrain-research_release-bf16
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
metadata
library_name: transformers
language:
- zh
pipeline_tag: text-to-speech
license: llama3.2
base_model:
- meta-llama/Llama-3.2-3B-Instruct
tags:
- mlx
mlx-community/3b-zh-pretrain-research_release-bf16
This model was converted to MLX format from canopylabs/3b-zh-pretrain-research_release using mlx-vlm version 0.0.3.
Refer to the original model card for more details on the model.
Use with mlx
pip install -U mlx-audio
python -m mlx_audio.tts.generate --model mlx-community/3b-zh-pretrain-research_release-bf16 --text "Hello, world"