Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ace-step/ACE-Step-1.5
/ functions
Functions
4,027 in github.com/ace-step/ACE-Step-1.5
⨍
Functions
4,027
◇
Types & classes
716
↳
Endpoints
91
↓ 4 callers
Function
extract_protocol_message_content
Extract assistant content from protocol-specific API responses.
acestep/text_tasks/external_ai_response_parsing.py:17
↓ 4 callers
Method
generate_with_stop_condition
Two-phase LM generation: CoT generation followed by audio codes generation. - infer_type='dit': Phase 1 only - generate CoT and return metas
acestep/llm_inference.py:1282
↓ 4 callers
Method
get
Return raw value for ``key`` from parser payload.
acestep/api/http/release_task_request_builder_test.py:17
↓ 4 callers
Method
get_available_checkpoints
Return available checkpoint directory paths under the project root.
acestep/core/generation/handler/init_service_catalog.py:27
↓ 4 callers
Method
get_labeled_count
Return deterministic labeled count.
acestep/api/train_api_dataset_service_http_test.py:113
↓ 4 callers
Method
get_lyric_timestamp
Generate LRC timestamps by aligning decoder cross-attention to lyric tokens. Args: pred_latent (torch.Tensor): Generated latent t
acestep/core/generation/handler/lyric_timestamp.py:15
↓ 4 callers
Function
get_vllm_preflight_warning
Return a user-facing warning when vLLM should be skipped before initialization. Args: device: The resolved device string for LM initializ
acestep/llm_backend_compat.py:17
↓ 4 callers
Function
handle_error
Display an error with suggestions. Args: exc: The exception that occurred. context: Short label (e.g. "Model loading", "Training"
acestep/training_v2/ui/errors.py:82
↓ 4 callers
Function
handle_extract_src_audio_change
Auto-fill audio duration from source audio in Extract/Lego mode. Reads duration directly via soundfile to avoid the training-module safe_path
acestep/ui/gradio/events/generation/mode_ui.py:214
↓ 4 callers
Function
initialize_llm_at_startup
Initialize LLM model according to GPU config and environment overrides.
acestep/api/startup_llm_init.py:15
↓ 4 callers
Function
initialize_training_state
Ensure app state has a stable ``training_state`` mapping.
acestep/api/train_api_models.py:102
↓ 4 callers
Function
is_instrumental
Return whether lyrics indicate instrumental output.
acestep/api/server_utils.py:135
↓ 4 callers
Function
load_all_external_lm_runtime_settings
Load the full persisted provider-settings payload.
acestep/text_tasks/external_lm_runtime_store.py:68
↓ 4 callers
Function
load_external_lm_runtime_settings
Load persisted external LM settings for a provider or the active selection.
acestep/text_tasks/external_lm_runtime_store.py:50
↓ 4 callers
Method
materialize_static_buffers
Materialize non-parameter MLX buffers before cross-thread use.
acestep/models/mlx/dit_model.py:521
↓ 4 callers
Method
named_modules
(self)
acestep/core/lora/service_test.py:12
↓ 4 callers
Method
offload_decoder_to_cpu
Move decoder to CPU to free VRAM for non-decoder workloads.
acestep/api/train_api_runtime.py:85
↓ 4 callers
Function
pack_for_cfg
Double encoder/context/attention tensors for CFG, or pass through. Returns a 4-tuple ``(enc_hs, enc_am, ctx, attn)`` ready for one ``decoder(
acestep/models/common/flow_edit_helpers.py:166
↓ 4 callers
Function
parse_description_hints
Parse language and instrumental hints from free-form description text. Args: description: User free-form sample description. Returns
acestep/api/server_utils.py:13
↓ 4 callers
Method
prepare_condition
(self, **kwargs)
acestep/models/common/flow_edit_pipeline_test.py:23
↓ 4 callers
Method
prepare_seeds
Prepare per-item seeds and UI seed string.
acestep/core/generation/handler/task_utils.py:19
↓ 4 callers
Method
process_reference_audio
Load and normalize reference audio, then sample 3x10s segments. Args: audio_file: Path to reference audio file. Returns:
acestep/core/generation/handler/io_audio.py:117
↓ 4 callers
Method
read
Return encoded payload bytes.
acestep/text_tasks/external_lm_model_discovery_test.py:22
↓ 4 callers
Method
rebuild_registry
(self, lora_path: str | None = None)
acestep/core/lora/service.py:63
↓ 4 callers
Function
reset_context
()
acestep/third_parts/nano-vllm/nanovllm/utils/context.py:46
↓ 4 callers
Function
run_api_server_main
Parse CLI args, set environment overrides, and start uvicorn. Args: env_bool: Boolean env parser used for defaults. argv: Optiona
acestep/api/server_cli.py:12
↓ 4 callers
Function
run_generation_with_optional_sequential_cover_mode
Run music generation and aggregate outputs across sequential MPS cover slices. Args: req: Generation request object. job_id: Job
acestep/api/job_generation_runtime.py:8
↓ 4 callers
Function
run_one_job_runtime
Execute one queued job end-to-end with success/failure cache updates. Args: app_state: FastAPI app state object. store: Job store
acestep/api/job_execution_runtime.py:11
↓ 4 callers
Function
save_audio
从 base64 data URL 保存音频文件
openrouter/client_test.py:71
↓ 4 callers
Function
save_lokr_weights
Save LoKr weights to safetensors.
acestep/training/lokr_utils.py:185
↓ 4 callers
Function
save_upload_to_temp
Persist uploaded audio file to a temporary location. Args: upload: Uploaded file wrapper from Starlette/FastAPI. prefix: Filename
acestep/api/http/release_task_audio_paths.py:49
↓ 4 callers
Function
select_generation_handler
Resolve the handler/model name for a generation job request. Args: app_state: Application state object containing primary/secondary/third
acestep/api/job_model_selection.py:8
↓ 4 callers
Method
service_generate
Record service invocation and return minimal output payload.
acestep/core/generation/handler/generate_music_execute_test.py:42
↓ 4 callers
Method
set_active_adapter
(self, adapter_name: str)
acestep/core/lora/service.py:96
↓ 4 callers
Method
set_language
Set the instance-level default language (shared fallback when no ContextVar is active).
acestep/ui/gradio/i18n/i18n.py:66
↓ 4 callers
Method
setup
Setup datasets.
acestep/training/data_module.py:262
↓ 4 callers
Function
start_tensorboard
(Re)start TensorBoard with the given logdir and return URL if successful.
acestep/api/runtime_helpers.py:42
↓ 4 callers
Function
syncAllVolumeControlsToPreferred
(sourcePlayer = null, sourceSlider = null)
acestep/ui/gradio/interfaces/audio_player_preferences.js:105
↓ 4 callers
Function
to_float
Coerce optional float values.
acestep/text_tasks/external_ai_json_parsing.py:197
↓ 4 callers
Method
understand_audio_from_codes
Understand audio codes and generate metadata + lyrics. This is the reverse of the normal generation flow: - Input: Audio cod
acestep/llm_inference.py:1850
↓ 4 callers
Function
understand_music
Understand music from audio codes using the 5Hz Language Model. This function analyzes audio semantic codes and generates metadata about the
acestep/inference.py:1097
↓ 4 callers
Method
unload_llm
Unload LLM to release VRAM and mark state flags.
acestep/api/train_api_runtime.py:123
↓ 4 callers
Function
unload_models
Move models to CPU, delete references, and free GPU memory. Accepts any number of model objects (or ``None`` values, which are silently skipp
acestep/training_v2/model_loader.py:376
↓ 4 callers
Function
unwrap_module
Best-effort unwrap for common wrapper attributes used by training runtimes.
acestep/api/train_api_runtime.py:13
↓ 4 callers
Method
update
Record update increments from mixin helpers.
acestep/core/generation/handler/mlx_vae_native_test.py:53
↓ 4 callers
Method
update_progress
Update progress and optional stage for an existing job.
acestep/api/jobs/store.py:148
↓ 4 callers
Function
verify_api_key
Validate Authorization header for endpoints that do not parse request body. Args: authorization: Optional ``Authorization`` header value.
acestep/api/http/auth.py:57
↓ 4 callers
Function
verify_token_from_request
Verify API key from request body (ai_token) or Authorization header. Returns the token if valid, None if no auth required.
acestep/ui/gradio/api/api_routes.py:52
↓ 3 callers
Method
__new__
Singleton pattern
acestep/local_cache.py:28
↓ 3 callers
Function
_add_common_training_args
Add arguments shared by vanilla / fixed subcommands.
acestep/training_v2/cli/args.py:221
↓ 3 callers
Function
_add_model_id
Normalize and add a model ID from a response item.
acestep/text_tasks/external_lm_model_discovery.py:147
↓ 3 callers
Method
_allocate_block
(self, block_id: int)
acestep/third_parts/nano-vllm/nanovllm/engine/block_manager.py:62
↓ 3 callers
Function
_append_name
(name: Any)
acestep/core/lora/introspection.py:14
↓ 3 callers
Function
_apply_lm_backend_compatibility_overrides
Apply runtime hardware overrides for LM backend selection.
acestep/gpu_config.py:273
↓ 3 callers
Method
_apply_top_k_filter
Apply top-k filtering to logits
acestep/llm_inference.py:418
↓ 3 callers
Method
_apply_top_p_filter
Apply top-p (nucleus) filtering to logits
acestep/llm_inference.py:425
↓ 3 callers
Method
_base_req
(self)
acestep/api/job_llm_preparation_test.py:19
↓ 3 callers
Function
_bct_to_btc
Inverse of :func:`_btc_to_bct`.
acestep/models/common/dcw_primitives.py:28
↓ 3 callers
Method
_build_app
Create app state and register sample/format routes for tests.
acestep/api/http/sample_format_routes_test.py:59
↓ 3 callers
Method
_build_audio_params
Replicate the audio_params building logic from inference.py.
acestep/audio_utils_uuid_test.py:215
↓ 3 callers
Method
_build_client
Create app/client pair with scan/load routes only.
acestep/api/train_api_dataset_scan_load_routes_http_test.py:115
↓ 3 callers
Method
_build_client
Create app/client pair with lightweight dataset + model state.
acestep/api/train_api_dataset_auto_label_routes_http_test.py:126
↓ 3 callers
Method
_build_client
Create app and register sample/format routes.
acestep/api/http/sample_format_routes_http_test.py:44
↓ 3 callers
Function
_build_display
Build the composite Rich renderable for one Live refresh.
acestep/training_v2/ui/progress.py:152
↓ 3 callers
Method
_build_logits_processor
Build logits processor list with repetition penalty if needed
acestep/llm_inference.py:309
↓ 3 callers
Function
_build_model_list_urls
Build ordered candidate model-list URLs from a provider endpoint.
acestep/text_tasks/external_lm_model_discovery.py:69
↓ 3 callers
Function
_builtin_presets_dir
Shipped built-in presets directory.
acestep/training_v2/ui/presets.py:101
↓ 3 callers
Function
_cleanup_dir
Remove temporary directory silently.
profile_inference.py:1710
↓ 3 callers
Function
_cleanup_gpu
Release GPU memory between session-loop iterations.
train.py:68
↓ 3 callers
Method
_configure_initialize_runtime
Apply backend constraints and return normalized compile/quantization settings.
acestep/core/generation/handler/init_service_setup.py:58
↓ 3 callers
Method
_cuda_idx
(self)
acestep/training_v2/ui/gpu_monitor.py:81
↓ 3 callers
Method
_decode_on_cpu
Move VAE to CPU, decode there, then restore original device.
acestep/core/generation/handler/vae_decode.py:103
↓ 3 callers
Function
_dwt_pair
Run DWT on both latents. Returns ``(xl, xh, yl, yh, iwt, out_T)`` or ``None`` if the optional ``pytorch_wavelets`` dependency is missing.
acestep/models/common/dcw_primitives.py:45
↓ 3 callers
Function
_empty_gpu_cache
Release cached GPU memory (CUDA / MPS / XPU).
acestep/training/dataset_builder_modules/preprocess.py:33
↓ 3 callers
Method
_ensure_silence_latent_on_device
(self)
acestep/core/generation/handler/conditioning_embed_test.py:34
↓ 3 callers
Function
_ensure_trainable_params_fp32
Force trainable floating-point parameters to fp32.
acestep/training/trainer.py:102
↓ 3 callers
Function
_execute_format_sample
Run shared format-sample workflow. Returns: Tuple of ``(result_or_none, audio_duration_value_or_none, status_message)``.
acestep/ui/gradio/events/generation/llm_format_actions.py:30
↓ 3 callers
Function
_expand_audio_path
(path_str: Optional[str])
cli.py:472
↓ 3 callers
Method
_extract_lyrics_from_output
Extract lyrics section from LLM output. The lyrics appear after the </think> tag and typically start with "# Lyric" or direc
acestep/llm_inference.py:1950
↓ 3 callers
Function
_extract_ui_core_outputs
Return the fixed 46 core UI outputs from a generation result tuple. The generate-button wiring expects 46 generation outputs from the wrapper,
acestep/ui/gradio/events/results/batch_management_helpers.py:12
↓ 3 callers
Method
_fake_keyring_module
Return a fake keyring module with a KeyringError base class.
acestep/text_tasks/secure_secret_store_test.py:21
↓ 3 callers
Function
_format_failure_response
Build a standardized failure response with update placeholders.
acestep/ui/gradio/events/generation/llm_format_actions.py:13
↓ 3 callers
Method
_format_instruction
Ensure instruction ends with a colon.
acestep/core/generation/handler/prompt_utils.py:21
↓ 3 callers
Method
_format_lyrics
Format lyrics text with language header.
acestep/core/generation/handler/prompt_utils.py:27
↓ 3 callers
Function
_fwd
(zt, pack, t_curr, kv)
acestep/models/common/flow_edit.py:123
↓ 3 callers
Method
_get_affine_quantized_tensor_class
Return the AffineQuantizedTensor class from torchao, or None if unavailable.
acestep/core/generation/handler/init_service_memory_basic.py:115
↓ 3 callers
Function
_get_endpoint
Return endpoint callable matching a route path/method pair.
acestep/api/http/sample_format_routes_test.py:32
↓ 3 callers
Function
_get_endpoint
Return endpoint callable matching route path and method.
acestep/api/http/audio_route_test.py:19
↓ 3 callers
Method
_get_genres_trie_node
Get the trie node for a given prefix. Returns None if the prefix is not valid (no genres start with this prefix).
acestep/constrained_logits_processor.py:1143
↓ 3 callers
Function
_get_model_id
Convert internal model name to OpenRouter model ID.
acestep/openrouter_adapter.py:58
↓ 3 callers
Function
_get_model_name_from_path
Extract model name from config path.
acestep/openrouter_adapter.py:587
↓ 3 callers
Function
_get_project_root
()
acestep/api_server.py:100
↓ 3 callers
Method
_handler
(self, max_model_len: int = 16384)
acestep/null_duration_fixes_test.py:44
↓ 3 callers
Method
_has_meaningful_negative_prompt
Check if negative prompt is meaningful (not default/empty)
acestep/llm_inference.py:305
↓ 3 callers
Method
_import_module
Import service_init lazily to avoid heavy transitive imports.
acestep/ui/gradio/events/generation/service_init_test.py:139
↓ 3 callers
Method
_init_mlx_dit
Stub MLX DiT init hook and always report unavailable in tests.
acestep/core/generation/handler/init_service_test.py:84
↓ 3 callers
Function
_is_cuda_device
Return whether a device identifier refers to any CUDA device.
acestep/core/generation/handler/memory_utils.py:18
↓ 3 callers
Function
_is_root
(p: Path)
acestep/training_v2/ui/presets.py:47
↓ 3 callers
Function
_load_cache_payload
Load the full cache payload from disk when available.
acestep/text_tasks/external_lm_model_cache.py:107
↓ 3 callers
Function
_load_cached_repaint_source
Load cached repaint source state from a generated audio sidecar. The cache is an optimization for ACE-generated Gradio outputs. Missing or ma
acestep/inference.py:441
← previous
next →
401–500 of 4,027, ranked by callers