MCPcopy Create free account

hub / github.com/ace-step/ACE-Step-1.5 / functions

Functions4,027 in github.com/ace-step/ACE-Step-1.5

↓ 5 callersFunctioncapture_current_params
Capture current UI parameters for next-batch generation. Audio codes are cleared so AutoGen batches always generate fresh content.
acestep/ui/gradio/events/results/batch_queue.py:99
↓ 5 callersFunctioncheck_main_model_exists
Check if the main model components exist in the checkpoints directory. Returns: True if all main model components contain weights, F
acestep/model_downloader.py:386
↓ 5 callersFunctioncheck_model_exists
Check if a specific model exists in the checkpoints directory. Args: model_name: Name of the model to check checkpoints_
acestep/model_downloader.py:405
↓ 5 callersFunctionclampVolume
(value)
acestep/ui/gradio/interfaces/audio_player_preferences.js:19
↓ 5 callersMethodcompute_logits
( self, hidden_states: torch.Tensor, )
acestep/third_parts/nano-vllm/nanovllm/models/qwen3.py:226
↓ 5 callersFunctioncreate_sample
Create a music sample from a natural language query using the 5Hz Language Model. This is the "Simple Mode" / "Inspiration Mode" feature that
acestep/inference.py:1269
↓ 5 callersFunctiondownload_main_model
Download the main ACE-Step model from HuggingFace or ModelScope. The main model includes: - acestep-v15-turbo (default DiT model) -
acestep/model_downloader.py:442
↓ 5 callersFunctiondtw_cpu
Dynamic Time Warping algorithm optimized with Numba. Args: x: Cost matrix of shape [N, M] Returns: Tuple of (text_indic
acestep/core/scoring/_dtw.py:13
↓ 5 callersFunctionensure_main_model
Ensure the main model is available, downloading if necessary. This function is designed to be called during initialization. It will only
acestep/model_downloader.py:585
↓ 5 callersFunctionevaluate_legacy_torch_fix
Evaluate legacy GPU compatibility using an injected torch-like module. Args: torch_module: Imported ``torch`` module or a test double exp
acestep/launcher_compat.py:27
↓ 5 callersMethodget
Return raw value for ``key`` from parser payload.
acestep/api/http/release_task_route_http_test.py:22
↓ 5 callersFunctionget_dcw_defaults_for_think
Return DCW defaults for the current Think state. Args: think_enabled: Whether LM Think mode is enabled. Returns: Defaults fo
acestep/ui/gradio/events/dcw_defaults.py:16
↓ 5 callersFunctionget_external_provider_profile
Return the provider profile for a provider identifier. Raises: ValueError: If ``provider`` is not a supported external provider.
acestep/text_tasks/external_lm_providers.py:88
↓ 5 callersFunctionget_gpu_memory_gb
Get GPU memory in GB. Returns 0 if no GPU is available. Debug Mode: Set environment variable MAX_CUDA_VRAM to override the detected
acestep/gpu_config.py:476
↓ 5 callersFunctionget_sample_preview
Get preview data for a specific sample. Returns: Tuple of (audio_path, filename, caption, genre, prompt_override, lyrics,
acestep/ui/gradio/events/training/dataset_ops.py:120
↓ 5 callersMethodhas_raw_lyrics
Check if sample has user-provided raw lyrics from .txt file.
acestep/training/dataset_builder_modules/models.py:90
↓ 5 callersMethodinfer_refer_latent
Infer packed reference-audio latents and order mask.
acestep/core/generation/handler/conditioning_embed.py:18
↓ 5 callersFunctioninitialize_models_at_startup
Detect GPU configuration and optionally initialize models at startup. By default models are NOT loaded at startup (lazy-loaded on first request).
acestep/api/startup_model_init.py:165
↓ 5 callersFunctionis_mps_platform
Check if running on macOS with MPS (Apple Silicon) available. This is the canonical check used across the codebase to apply Mac-specific conf
acestep/gpu_config.py:44
↓ 5 callersMethodis_turbo_model
Return whether this host simulates a turbo model.
acestep/core/generation/handler/generate_music_test.py:86
↓ 5 callersFunctionload_module
Parse and return AST for an interfaces module.
acestep/ui/gradio/interfaces/training_contract_ast_utils.py:13
↓ 5 callersFunctionload_plan_json_object
Load the best JSON object candidate from provider text content.
acestep/text_tasks/external_ai_json_parsing.py:13
↓ 5 callersFunctionload_training_dataset
Load a preprocessed tensor dataset for training. Returns: Info text about the dataset.
acestep/ui/gradio/events/training/preprocess.py:197
↓ 5 callersMethodlog_scalar
Log a single scalar value.
acestep/training_v2/tensorboard_utils.py:61
↓ 5 callersFunctionmedian_filter
Apply median filter to tensor. Args: x: Input tensor filter_width: Width of median filter Returns: Filtered ten
acestep/core/scoring/_dtw.py:90
↓ 5 callersFunctionparse_release_task_request
Parse ``/release_task`` request body into request model and temp-file list. Args: request: FastAPI request carrying body/form data.
acestep/api/http/release_task_request_parser.py:35
↓ 5 callersFunctionpersist_sample_session_artifacts
Persist per-sample intermediate tensors beside an audio JSON sidecar. Args: extra_outputs: Generation result extra outputs containing bat
acestep/ui/gradio/events/results/session_artifacts.py:27
↓ 5 callersFunctionpreprocess_dataset
Preprocess dataset to tensor files for fast training. Converts audio files to VAE latents and text to embeddings. Returns: Status me
acestep/ui/gradio/events/training/preprocess.py:144
↓ 5 callersMethodprocess_src_audio
Load and normalize source audio for remix/extract flows. Args: audio_file: Path to source audio file. Returns:
acestep/core/generation/handler/io_audio.py:178
↓ 5 callersFunctionread_adapter_value
Read adapter-specific value from mapping-like or scalar containers.
acestep/core/lora/introspection.py:93
↓ 5 callersFunctionresolve_no_fsq_task_type
Resolve the Remix ``no_fsq`` checkbox into the backend task type. Args: task_type: Current hidden Gradio task type. no_fsq: Wheth
acestep/ui/gradio/events/results/generation_task_type.py:4
↓ 5 callersFunctionrestore_preferences
Map JS restore results into Gradio output values. The JS function reads localStorage and produces an array: - First ``len(PREF_KEYS)`` elem
acestep/ui/gradio/interfaces/user_preferences.py:167
↓ 5 callersFunctionsave_lora_weights
Save LoRA adapter weights. Args: model: Model with LoRA adapters output_dir: Directory to save weights save_full_model: W
acestep/training/lora_checkpoint.py:25
↓ 5 callersFunctionset_api_key
Set the API key for authentication.
acestep/ui/gradio/api/api_routes.py:28
↓ 5 callersMethodset_lora_scale
(self, adapter_name_or_scale, scale=None)
acestep/core/generation/handler/lora/controls_test.py:45
↓ 5 callersFunctionshow_info
Display an info message.
acestep/training_v2/ui/errors.py:120
↓ 5 callersFunctiontemporary_llm_model
Temporarily switch LLM model for a critical section and restore afterward.
acestep/api/runtime_helpers.py:80
↓ 5 callersMethodtrain_from_preprocessed
Train LoRA adapters from preprocessed tensor files. This is the recommended training method for best performance. Args:
acestep/training/trainer.py:570
↓ 5 callersMethodtraining_step
Single training step using preprocessed tensors. Note: This is a distilled turbo model, NO CFG is used. Args: batch: Dic
acestep/training/trainer.py:455
↓ 5 callersFunctionupdate_model_type_settings
Update UI settings based on model type (fallback when handler not initialized yet). Args: config_path: Model config path string.
acestep/ui/gradio/events/generation/model_config.py:45
↓ 4 callersMethod__init__
Initialize deterministic runtime state for decode tests.
acestep/core/generation/handler/generate_music_decode_test.py:85
↓ 4 callersMethod__init__
( self, hidden_size: int, intermediate_size: int, hidden_act: str, )
acestep/third_parts/nano-vllm/nanovllm/models/qwen3.py:93
↓ 4 callersMethod_app_state
(self)
acestep/api/job_model_selection_test.py:15
↓ 4 callersMethod_apply_temperature_scaling
Apply temperature scaling based on current generation phase. Temperature scaling: logits = logits / temperature - Lo
acestep/constrained_logits_processor.py:1666
↓ 4 callersMethod_base_req
(self)
acestep/null_duration_fixes_test.py:127
↓ 4 callersMethod_build_app
Create test app and register LoRA routes with stubs.
acestep/api/http/lora_routes_test.py:80
↓ 4 callersMethod_build_app
Create app state and register query-result route for tests.
acestep/api/http/query_result_route_test.py:69
↓ 4 callersMethod_build_client
Build app and register release-task route with deterministic fakes.
acestep/api/http/release_task_route_http_test.py:72
↓ 4 callersMethod_build_client
Build a FastAPI app, register routes, and return an HTTP client.
acestep/api/http/lora_routes_http_test.py:73
↓ 4 callersMethod_build_numeric_prefix_tree
Build prefix tree for numeric field based on actual tokenization with context. IMPORTANT: Uses token ID sequences as keys, N
acestep/constrained_logits_processor.py:788
↓ 4 callersFunction_calculate_log_prob
Calculate average log probability of target text given prompt.
acestep/core/scoring/lm_score.py:348
↓ 4 callersFunction_cleanup_handlers
Clean up handlers and free GPU memory.
profile_inference.py:1206
↓ 4 callersFunction_contains_model_weights
Return whether a model directory contains at least one weights artifact. Args: model_path: Candidate model directory path. Returns:
acestep/model_downloader.py:362
↓ 4 callersFunction_cuda_device_index
Return the CUDA device index implied by a device identifier.
acestep/core/generation/handler/memory_utils.py:27
↓ 4 callersFunction_debug_log
Print debug message if NANOVLLM_DEBUG is enabled
acestep/third_parts/nano-vllm/nanovllm/engine/scheduler.py:11
↓ 4 callersMethod_decode_generate_music_pred_latents
Capture decode args and return deterministic decode outputs.
acestep/core/generation/handler/generate_music_test.py:151
↓ 4 callersFunction_get_api_key
Read the current API key under lock.
acestep/ui/gradio/api/api_routes.py:35
↓ 4 callersFunction_get_endpoint
Return the endpoint callable matching ``path`` and HTTP ``method``.
acestep/api/http/reinitialize_route_test.py:26
↓ 4 callersFunction_get_endpoint
Return endpoint callable matching a route path/method pair.
acestep/api/http/query_result_route_test.py:43
↓ 4 callersMethod_get_headers
(self)
scripts/lora_data_prepare/gemini_caption.py:68
↓ 4 callersMethod_get_nested_value
Get nested dictionary value using dot notation Args: data: Dictionary to search key: Dot-separated k
acestep/ui/gradio/i18n/i18n.py:109
↓ 4 callersFunction_get_route_endpoint
Resolve route endpoint callable by path and HTTP method.
acestep/api/http/lora_routes_test.py:30
↓ 4 callersMethod_get_rss_mb
Return current process RSS in megabytes. Uses ``/proc/self/statm`` on Linux for the true current resident set size. Uses ``ctypes`` o
acestep/core/generation/handler/init_service_memory_basic.py:161
↓ 4 callersMethod_get_sliding_mask
Return a materialized sliding-window mask for the requested sequence length.
acestep/models/mlx/dit_model.py:525
↓ 4 callersFunction_global_presets_dir
Platform-aware global user presets directory (fallback). Used as a secondary scan location so that presets saved before the local-directory c
acestep/training_v2/ui/presets.py:87
↓ 4 callersFunction_gpu_config
Create a fake GPU config object with all fields used by startup init.
acestep/api/startup_model_init_test.py:13
↓ 4 callersFunction_haar_dwt_1d
Single-level Haar DWT along the T axis of a ``[B, T, C]`` ``mx.array``. Returns ``(low, high)``, each of shape ``[B, T//2, C]``. If ``T`` is
acestep/models/mlx/dcw_correction_mlx.py:31
↓ 4 callersMethod_has_non_empty_audio_codes
Return ``True`` when at least one non-empty audio-code string is present.
acestep/core/generation/handler/generate_music_request.py:41
↓ 4 callersMethod_init_mlx_vae
Stub MLX VAE init hook and always report unavailable in tests.
acestep/core/generation/handler/init_service_test.py:89
↓ 4 callersFunction_is_back
Return True if the raw input string is a back-navigation request.
acestep/training_v2/ui/prompt_helpers.py:55
↓ 4 callersFunction_is_success_message
Check whether backend operation result is considered successful.
acestep/api/http/lora_routes.py:45
↓ 4 callersFunction_load_cached_repaint_source_latents
Load cached repaint source latents from a generated audio sidecar.
acestep/inference.py:496
↓ 4 callersFunction_make_batch
Return a minimal completed batch dict for testing.
acestep/ui/gradio/events/results/batch_navigation_test.py:11
↓ 4 callersMethod_make_host
(self)
acestep/core/generation/handler/progress_project_root_test.py:26
↓ 4 callersMethod_make_mixin
Build a minimal object that satisfies the mixin's interface.
acestep/null_duration_fixes_test.py:82
↓ 4 callersFunction_make_peft_decoder
Return a mock that looks like a PEFT PeftModel-wrapped decoder.
acestep/training_v2/trainer_helpers_test.py:19
↓ 4 callersFunction_make_torch_cuda_mock
Build a ``torch`` mock whose ``.cuda`` reports deterministic memory stats. Args: device_free_bytes: Bytes free at the CUDA-driver level.
acestep/gpu_config_effective_free_vram_test.py:18
↓ 4 callersMethod_max_memory_allocated
Return deterministic max-memory value for debug logging.
acestep/core/generation/handler/generate_music_decode_test.py:114
↓ 4 callersMethod_mlx_encode_single
Encode one MLX audio sample with optional overlap-discard tiling. Args: audio_nlc: MLX array in ``[1, samples, channels]`` layout
acestep/core/generation/handler/mlx_vae_encode_native.py:89
↓ 4 callersFunction_next_id
Return a unique DOM id suffix for each help modal instance.
acestep/ui/gradio/help_content.py:18
↓ 4 callersMethod_normalize_audio_to_stereo_48k
Normalize audio tensor to stereo at 48kHz. Args: audio: Tensor in [channels, samples] or [samples] format. sr: Source
acestep/core/generation/handler/io_audio.py:66
↓ 4 callersFunction_offload_cached_hf_scoring_model
Move the auxiliary HF scoring model off accelerator memory after PMI.
acestep/core/scoring/lm_score.py:118
↓ 4 callersMethod_read
Read a launcher script from the project root.
acestep/launcher_legacy_torch_fix_test.py:15
↓ 4 callersMethod_resolve_initialize_device
Resolve a concrete runtime device, applying backend fallback rules.
acestep/core/generation/handler/init_service_setup.py:14
↓ 4 callersMethod_run_openssl
Execute OpenSSL with the passphrase stored in a temporary file.
acestep/text_tasks/secure_secret_store.py:123
↓ 4 callersMethod_sample_inputs
Build deterministic tensors and lyric token ids for tests.
acestep/core/generation/handler/lyric_alignment_test.py:168
↓ 4 callersMethod_synchronize
Synchronize accelerator operations (CUDA, XPU, or MPS).
acestep/core/generation/handler/init_service_memory_basic.py:71
↓ 4 callersMethodappend_token
(self, token_id: int)
acestep/third_parts/nano-vllm/nanovllm/engine/sequence.py:82
↓ 4 callersFunctionapply_repaint_boundary_blend
Blend generated latents with source at repaint boundaries. Args: x_gen: Diffusion output [B, T, C]. clean_src_latents: Original s
acestep/core/generation/handler/repaint_step_injection.py:84
↓ 4 callersMethodapply_scale
(self, adapter_name: str, scale: float)
acestep/core/lora/service.py:102
↓ 4 callersFunctionbuild_format_request_intent
Build the format-mode user intent string for external provider requests.
acestep/text_tasks/external_lm_captioning.py:78
↓ 4 callersFunctioncall_name
Extract a simple call-target name from an AST call function node. Args: node: AST node representing a call target expression. Return
acestep/ui/gradio/interfaces/generation_contract_ast_utils.py:25
↓ 4 callersMethodclose
Mark fake upload as closed.
acestep/api/http/release_task_audio_paths_test.py:35
↓ 4 callersFunctioncompute_init_defaults
Compute normalized defaults shared by generation interface sections. Args: init_params: Optional startup parameters passed to the UI laye
acestep/ui/gradio/interfaces/generation_defaults.py:10
↓ 4 callersMethodconvert_src_audio_to_codes
Convert uploaded source audio into serialized audio code tokens.
acestep/core/generation/handler/audio_codes.py:68
↓ 4 callersMethodcreate_with_id
Create and register a queued job using a caller-provided ID.
acestep/api/jobs/store.py:93
↓ 4 callersFunctiondivide
(numerator, denominator)
acestep/third_parts/nano-vllm/nanovllm/layers/linear.py:9
↓ 4 callersFunctiondownload_submodel
Download a specific sub-model from HuggingFace or ModelScope. Args: model_name: Name of the model to download (must be in SUBMODEL_R
acestep/model_downloader.py:493
↓ 4 callersFunctionensure_models_initialized
Ensure models are initialized, loading them lazily on first request if needed. If models were already loaded at startup (``ACESTEP_NO_INIT=false`
acestep/api/job_runtime_state.py:11
↓ 4 callersFunctionexternal_lm_model_cache_path
Return the user-local JSON cache path for discovered provider models.
acestep/text_tasks/external_lm_model_cache.py:13
← previousnext →301–400 of 4,027, ranked by callers