Text Generation
Transformers
Safetensors
Russian
English
vits
text-to-audio
luna
bilingual
russian
english
audio
text-to-speech
tts
chat
voice-assistant
qwen2
conversational
Run this model with HF Jobs
Run openmodelai/Luna-1.0-Audio 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 and TRL to fine-tune https://huggingface.co/openmodelai/Luna-1.0-Audio. Ask me which dataset to train on, then push the LoRA adapter to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs and Transformers to run batch inference with https://huggingface.co/openmodelai/Luna-1.0-Audio on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the predictions back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs and Lighteval to evaluate https://huggingface.co/openmodelai/Luna-1.0-Audio. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/openmodelai/Luna-1.0-Audio with Transformers and bitsandbytes. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use openmodelai/Luna-1.0-Audio with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openmodelai/Luna-1.0-Audio with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="openmodelai/Luna-1.0-Audio") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTextToWaveform tokenizer = AutoTokenizer.from_pretrained("openmodelai/Luna-1.0-Audio") model = AutoModelForTextToWaveform.from_pretrained("openmodelai/Luna-1.0-Audio", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use openmodelai/Luna-1.0-Audio with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "openmodelai/Luna-1.0-Audio" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "openmodelai/Luna-1.0-Audio", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/openmodelai/Luna-1.0-Audio
- SGLang
How to use openmodelai/Luna-1.0-Audio with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "openmodelai/Luna-1.0-Audio" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "openmodelai/Luna-1.0-Audio", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "openmodelai/Luna-1.0-Audio" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "openmodelai/Luna-1.0-Audio", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use openmodelai/Luna-1.0-Audio with Docker Model Runner:
docker model run hf.co/openmodelai/Luna-1.0-Audio
Download config.json from openmodelai/Luna-1.0-Audio: direct link, hf CLI and curl.
- Browser
- Download file 1.63 kB
-
https://huggingface.co/openmodelai/Luna-1.0-Audio/resolve/main/config.json
- Command line
-
hf download hf://openmodelai/Luna-1.0-Audio/config.json
-
curl -L -o config.json https://huggingface.co/openmodelai/Luna-1.0-Audio/resolve/main/config.json
1.63 kB
| { | |
| "activation_dropout": 0.1, | |
| "architectures": [ | |
| "VitsModel" | |
| ], | |
| "attention_dropout": 0.1, | |
| "depth_separable_channels": 2, | |
| "depth_separable_num_layers": 3, | |
| "dtype": "float16", | |
| "duration_predictor_dropout": 0.5, | |
| "duration_predictor_filter_channels": 256, | |
| "duration_predictor_flow_bins": 10, | |
| "duration_predictor_kernel_size": 3, | |
| "duration_predictor_num_flows": 4, | |
| "duration_predictor_tail_bound": 5.0, | |
| "ffn_dim": 768, | |
| "ffn_kernel_size": 3, | |
| "flow_size": 192, | |
| "hidden_act": "relu", | |
| "hidden_dropout": 0.1, | |
| "hidden_size": 192, | |
| "initializer_range": 0.02, | |
| "layer_norm_eps": 1e-05, | |
| "layerdrop": 0.1, | |
| "leaky_relu_slope": 0.1, | |
| "model_type": "vits", | |
| "noise_scale": 0.667, | |
| "noise_scale_duration": 0.8, | |
| "num_attention_heads": 2, | |
| "num_hidden_layers": 6, | |
| "num_speakers": 1, | |
| "posterior_encoder_num_wavenet_layers": 16, | |
| "prior_encoder_num_flows": 4, | |
| "prior_encoder_num_wavenet_layers": 4, | |
| "resblock_dilation_sizes": [ | |
| [ | |
| 1, | |
| 3, | |
| 5 | |
| ], | |
| [ | |
| 1, | |
| 3, | |
| 5 | |
| ], | |
| [ | |
| 1, | |
| 3, | |
| 5 | |
| ] | |
| ], | |
| "resblock_kernel_sizes": [ | |
| 3, | |
| 7, | |
| 11 | |
| ], | |
| "sampling_rate": 16000, | |
| "speaker_embedding_size": 0, | |
| "speaking_rate": 1.0, | |
| "spectrogram_bins": 513, | |
| "transformers_version": "4.57.6", | |
| "upsample_initial_channel": 512, | |
| "upsample_kernel_sizes": [ | |
| 16, | |
| 16, | |
| 4, | |
| 4 | |
| ], | |
| "upsample_rates": [ | |
| 8, | |
| 8, | |
| 2, | |
| 2 | |
| ], | |
| "use_bias": true, | |
| "use_stochastic_duration_prediction": true, | |
| "vocab_size": 38, | |
| "wavenet_dilation_rate": 1, | |
| "wavenet_dropout": 0.0, | |
| "wavenet_kernel_size": 5, | |
| "window_size": 4 | |
| } | |