### Ace Server Examples Source: https://github.com/serveurpersocom/acestep.cpp/blob/master/docs/ARCHITECTURE.md Examples demonstrating how to launch the ace-server with different configurations, including specifying model directories, adapters, custom ports, and batch limits. ```bash # all models in one directory ./ace-server --models /path/to/models ``` ```bash # with adapters ./ace-server --models /path/to/models --adapters /path/to/adapters ``` ```bash # custom port and batch limit ./ace-server --models /path/to/models --host 0.0.0.0 --port 8085 --max-batch 2 ``` -------------------------------- ### Starting ACE Server with Adapters Source: https://context7.com/serveurpersocom/acestep.cpp/llms.txt Starts the ACE server, specifying model and adapter directories. Adapters are loaded from the `adapters/` directory. ```bash # Place adapters in the adapters/ folder ls adapters/ # french-musette-v1.safetensors # singer-peft-v2/ # adapter_model.safetensors # adapter_config.json # lycoris-qinglong.safetensors # Start server with adapter directory ./build/ace-server --models models --adapters adapters ``` -------------------------------- ### Starting the Ace Server Source: https://context7.com/serveurpersocom/acestep.cpp/llms.txt Commands to start the Ace Server with various configurations, including custom host/port, adapter usage, and memory optimization. ```APIDOC ## Starting the server ```bash # Default: localhost:8080 ./build/ace-server --models models # Custom host/port with adapters ./build/ace-server \ --models models \ --adapters adapters \ --host 0.0.0.0 \ --port 8085 \ --max-batch 2 # Keep models in VRAM between requests (low-latency, more VRAM) ./build/ace-server --models models --keep-loaded # Memory-constrained: smaller VAE tiles ./build/ace-server --models models --vae-chunk 512 --vae-overlap 32 ``` ``` -------------------------------- ### Start ace-server Source: https://context7.com/serveurpersocom/acestep.cpp/llms.txt Launch the ace-server with default settings or customize host, port, and batch size. Models can be kept in VRAM for lower latency. ```bash ./build/ace-server --models models ``` ```bash ./build/ace-server \ --models models \ --adapters adapters \ --host 0.0.0.0 \ --port 8085 \ --max-batch 2 ``` ```bash ./build/ace-server --models models --keep-loaded ``` ```bash ./build/ace-server --models models --vae-chunk 512 --vae-overlap 32 ``` -------------------------------- ### Selecting Adapter in Request JSON Source: https://context7.com/serveurpersocom/acestep.cpp/llms.txt Example of making a synthesis request to the ACE server, specifying an adapter and its scale. ```bash # Select adapter in request JSON (adapter_scale defaults to 1.0) curl -sf http://127.0.0.1:8085/synth \ -H "Content-Type: application/json" \ -d '{ "caption": "French accordion musette waltz with violin", "vocal_language": "fr", "adapter": "french-musette-v1.safetensors", "adapter_scale": 0.8 }' | jq -r '.id' ``` -------------------------------- ### Run ACE Server with Adapters Source: https://github.com/serveurpersocom/acestep.cpp/blob/master/adapters/README.md Use this command to start the ACE server and specify the directory containing your adapter files. ```bash ./build/ace-server --models ./models --adapters ./adapters ``` -------------------------------- ### Execute Example Scripts Source: https://github.com/serveurpersocom/acestep.cpp/blob/master/docs/ARCHITECTURE.md Navigate to the `examples/` directory to run provided shell scripts that demonstrate various functionalities, including single song generation, batch processing, partial/full metadata usage, DiT-only synthesis, audio understanding, and server/client interactions. ```bash cd examples ./simple.sh # caption only, LLM fills everything ./simple-batch.sh # 2 songs from one prompt (lm_batch_size=2) ./partial.sh # caption + lyrics + duration ./full.sh # all metadata provided ./dit-only.sh # skip LLM, DiT from noise ./ace-understand.sh