MCPcopy Index your code

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

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

↓ 1,035 callersMethodget
Return a job record by ID if present.
acestep/api/jobs/store.py:109
↓ 594 callersMethodappend
(self, value: float)
acestep/training_v2/fixed_lora_module.py:51
↓ 517 callersFunctiont
Convenience function for translation Args: key: Translation key **kwargs: Optional format parameters Returns: T
acestep/ui/gradio/i18n/i18n.py:199
↓ 442 callersMethodget
Get value
acestep/local_cache.py:74
↓ 392 callersMethodupdate
Return kwargs for direct assertion in tests.
acestep/ui/gradio/events/results/audio_playback_updates_test.py:25
↓ 304 callersMethodjoin
Accept join calls without background threading.
acestep/core/generation/handler/generate_music_execute_test.py:36
↓ 301 callersMethodto
Return self for chained ``to(...)`` transitions in tests.
acestep/core/generation/handler/vae_decode_test_helpers.py:37
↓ 192 callersMethodtime
Time a code section with GPU synchronization.
profile_inference.py:166
↓ 123 callersMethodexists
Check if key exists
acestep/local_cache.py:82
↓ 90 callersMethodget
Return configured record by ID, or ``None`` when missing.
acestep/api/http/query_result_route_test.py:60
↓ 77 callersMethodeval
Mirror torch module API used by score mixin.
acestep/core/generation/handler/lyric_alignment_test.py:30
↓ 70 callersMethodcpu
Return self to emulate in-place module migration.
acestep/core/generation/handler/vae_decode_test_helpers.py:29
↓ 70 callersMethodfloat
Get parameter as float with fallback default.
acestep/api/http/release_task_param_parser.py:154
↓ 61 callersMethodnorm
(self)
acestep/third_parts/nano-vllm/nanovllm/models/qwen3.py:216
↓ 60 callersMethodjson
Return deterministic JSON payload for this test request.
acestep/api/http/release_task_request_parser_test.py:74
↓ 57 callersMethodparameters
Return placeholder params tree.
acestep/core/generation/handler/mlx_vae_init_test.py:84
↓ 53 callersFunctionask
Ask for a single value with an optional default. Args: label: Prompt text. default: Default value (None = required). requ
acestep/training_v2/ui/prompt_helpers.py:149
↓ 52 callersMethodencode
Return deterministic latent tensor (2x temporal downsample).
acestep/core/generation/handler/vae_encode_test.py:39
↓ 51 callersMethodload
Decrypt and return a stored secret value.
acestep/text_tasks/secure_secret_store.py:95
↓ 50 callersMethodadd
(self, sink, format)
acestep/api/log_capture_test.py:17
↓ 45 callersFunctionsafe_path
Validate and normalise a user-provided path. The returned path is guaranteed to live under *base* (or the global ``_SAFE_ROOT`` when *base* i
acestep/training/path_safety.py:53
↓ 44 callersMethodrun
Run model forward and sampling. For CFG sequences, batch is structured as: [cond_seq1, cond_seq2, ..., uncond_seq1, uncond_seq2, ...]
acestep/third_parts/nano-vllm/nanovllm/engine/model_runner.py:546
↓ 36 callersMethoddecode
Decode latents -> audio. Args: latents_nlc: [B, L_latent, C_latent] in NLC format. Returns: audio: [B, L_aud
acestep/models/mlx/vae_model.py:312
↓ 36 callersFunctionis_rich_active
Return True when Rich output should be used.
acestep/training_v2/ui/__init__.py:48
↓ 36 callersMethodkeys
Return iterable form keys.
acestep/api/http/release_task_request_parser_test.py:210
↓ 35 callersFunctioncompute_mode_ui_updates
Return the 46-output mode-switch update tuple for generation UI.
acestep/ui/gradio/events/generation/mode_ui.py:16
↓ 33 callersFunction_latent
(shape=(2, 16, 64), seed=0)
acestep/models/common/dcw_correction_test.py:19
↓ 32 callersMethodupdate
(self, update_value: torch.Tensor)
acestep/models/common/apg_guidance.py:11
↓ 31 callersMethodstr
Get parameter as string with fallback default.
acestep/api/http/release_task_param_parser.py:143
↓ 30 callersMethod_apply_whitelist_inplace
Apply whitelist constraint inplace: only allow specified tokens, block all others. This is more efficient than creating a ma
acestep/constrained_logits_processor.py:649
↓ 29 callersMethodexit
(self)
acestep/third_parts/nano-vllm/nanovllm/engine/llm_engine.py:50
↓ 29 callersFunctionload_batch_management_module
Load ``batch_management.py`` with dependency stubs and trackers. Args: is_windows: Simulate Windows platform flag in ``generation_info``
acestep/ui/gradio/events/results/_batch_management_test_support.py:36
↓ 28 callersFunction_print
Print via Rich console if available, else plain print.
acestep/training_v2/ui/flows_setup.py:34
↓ 28 callersFunctionget_param
(key, *aliases, default=None)
acestep/ui/gradio/api/api_routes.py:391
↓ 27 callersMethodget
Return ``(dwt, iwt)`` for the requested device/dtype/wavelet. Returns ``None`` when ``pytorch_wavelets`` is missing — callers must tr
acestep/models/common/dcw_loader.py:48
↓ 26 callersMethodembed_tokens
(self)
acestep/third_parts/nano-vllm/nanovllm/models/qwen3.py:208
↓ 26 callersMethodwrite
Capture latest non-empty stripped message.
acestep/api/log_capture.py:16
↓ 24 callersMethodsave
Encrypt and store a secret value.
acestep/text_tasks/secure_secret_store.py:66
↓ 23 callersFunctionget_model_name
Extract model name from config path.
acestep/api/server_utils.py:109
↓ 23 callersFunctionsection
Print a section header.
acestep/training_v2/ui/prompt_helpers.py:283
↓ 23 callersMethodstep
(self)
acestep/third_parts/nano-vllm/nanovllm/engine/llm_engine.py:84
↓ 21 callersFunctionenv_bool
Read boolean environment variable with legacy truthy semantics.
acestep/api/server_utils.py:100
↓ 21 callersFunctionget_checkpoints_dir
Get the checkpoints directory path. Resolution order: 1. *custom_dir* argument (passed programmatically) 2. ``ACESTEP_CHECKPOINTS_DIR`` e
acestep/model_downloader.py:344
↓ 21 callersMethodkeys
Get list of matching keys Note: Simplified implementation, only supports prefix and full matching
acestep/local_cache.py:86
↓ 20 callersMethodbool
Get parameter as bool with fallback default.
acestep/api/http/release_task_param_parser.py:159
↓ 20 callersMethodclose
(self)
acestep/training_v2/tensorboard_utils.py:156
↓ 19 callersMethod_load_model_context
Return a no-op context manager to mimic handler model context.
acestep/core/generation/handler/lyric_alignment_test.py:58
↓ 19 callersMethodapply
Apply the configured DCW correction. Args: x_next: Latent produced by the sampler step, shape ``[B, T, C]``. denoised
acestep/models/common/dcw_correction.py:112
↓ 18 callersFunction_prompt_with_default
(prompt: str, default: Optional[str] = None, required: bool = False)
cli.py:162
↓ 17 callersFunction_debug_log
Print debug message if NANOVLLM_DEBUG is enabled
acestep/third_parts/nano-vllm/nanovllm/engine/model_runner.py:16
↓ 17 callersFunction_md_to_html
Convert Markdown to HTML with basic formatting. Handles headings, bold, italic, code blocks, lists, blockquotes, and paragraphs. Intentional
acestep/ui/gradio/help_content.py:25
↓ 17 callersFunctionbuild_progress_result
Build a minimally valid ``generate_with_progress`` result tuple.
acestep/ui/gradio/events/results/_batch_management_test_support.py:16
↓ 17 callersFunctioncreate_help_button
Create an inline (?) help button that opens a modal with documentation. The entire widget (button + hidden modal) is a single ``gr.HTML`` com
acestep/ui/gradio/help_content.py:144
↓ 16 callersMethod_empty_cache
No-op cache clear for test host.
acestep/core/generation/handler/generate_music_test.py:161
↓ 16 callersFunctiondebug_end
Emit an END log with elapsed ms if enabled and start_ts is present.
acestep/debug_utils.py:203
↓ 16 callersFunctionget_global_gpu_config
Get the global GPU configuration, initializing if necessary. Respects the ``ACESTEP_SAVE_MEMORY`` environment variable: when set to ``"1"`` o
acestep/gpu_config.py:1562
↓ 16 callersMethodsave_audio
Save audio data to file Args: audio_data: Audio data, torch.Tensor [channels, samples] or numpy.ndarray
acestep/audio_utils.py:192
↓ 16 callersMethodset
Mark event as set.
acestep/api/jobs/test_fakes.py:71
↓ 15 callersFunction_esc
Escape Rich markup characters in user-provided text for safe display. Replaces ``[`` with ``\\[`` so that paths and other user input containing
acestep/training_v2/ui/prompt_helpers.py:25
↓ 15 callersFunction_has_token
Check if *token* appears as a delimited word in *path*. Matches when *token* is bounded by start/end of string or a common path delimiter (``
acestep/ui/gradio/events/generation/model_config.py:20
↓ 15 callersFunction_print_msg
Print a message using Rich if available, plain otherwise.
acestep/training_v2/ui/wizard_menus.py:133
↓ 15 callersFunctionapply_fade
Apply linear fade in and/or fade out to audio data. Args: audio_data: Audio data as torch.Tensor [channels, samples] or numpy.ndarray.
acestep/audio_utils.py:25
↓ 15 callersMethodread
Return next payload chunk, emulating Starlette UploadFile reads.
acestep/api/http/release_task_audio_paths_test.py:25
↓ 14 callersMethod_ensure_lora_registry
(self)
acestep/core/generation/handler/lora/controls_test.py:33
↓ 14 callersFunctionask_bool
Ask for a yes/no boolean value. Raises: GoBack: When ``allow_back`` is True and user types 'b'/'back'.
acestep/training_v2/ui/prompt_helpers.py:271
↓ 14 callersMethodfloat
Return self to emulate in-place dtype cast.
acestep/core/generation/handler/vae_decode_test_helpers.py:33
↓ 14 callersFunctionget_memory_stats
Get current CUDA memory statistics in GB.
scripts/profile_vram.py:37
↓ 14 callersFunctionmenu
Display a numbered menu and return the chosen key. Args: title: Prompt text. options: List of ``(key, label)`` tuples. de
acestep/training_v2/ui/prompt_helpers.py:74
↓ 14 callersFunctionverify_token_from_request
Validate request auth from body ``ai_token`` or Authorization header. Args: body: Parsed request payload dictionary. authorizatio
acestep/api/http/auth.py:23
↓ 13 callersFunction_build_call_kwargs
Build complete kwargs for ``generate_with_batch_management``.
acestep/ui/gradio/events/results/batch_management_test.py:11
↓ 13 callersFunction_format_duration
Format seconds to human readable string (e.g. ``2m 30s``).
acestep/ui/gradio/events/training/training_utils.py:66
↓ 13 callersMethod_get_vae_dtype
Return a stable dtype for VAE-related tests.
acestep/core/generation/handler/init_service_test.py:80
↓ 13 callersFunction_inc
(store: dict[str, int], key: str)
acestep/core/lora/scaling.py:10
↓ 13 callersMethoddecode
Return tagged decode output.
acestep/core/generation/handler/mlx_vae_init_test.py:67
↓ 13 callersMethodinitialize_service
Return ``("ok", True)`` to emulate successful DiT initialization.
acestep/api/http/model_init_service_test.py:14
↓ 13 callersFunctionmlx_generate_diffusion
Run the complete MLX diffusion loop with optional CFG guidance. This is the core generation function. It accepts numpy arrays (converted fro
acestep/models/mlx/dit_generate.py:170
↓ 13 callersMethodto_dict
Return stable dictionary representation used by route persistence logic.
acestep/api/train_api_dataset_service_http_test.py:59
↓ 12 callersMethod__init__
(self, func)
acestep/models/xl_base/modeling_acestep_v15_xl_base.py:1254
↓ 12 callersMethod__init__
(self, func)
acestep/models/turbo/modeling_acestep_v15_turbo.py:1235
↓ 12 callersMethod__init__
(self, func)
acestep/models/sft/modeling_acestep_v15_base.py:1238
↓ 12 callersMethod__init__
(self, func)
acestep/models/base/modeling_acestep_v15_base.py:1238
↓ 12 callersMethod__init__
(self, func)
acestep/models/xl_turbo/modeling_acestep_v15_xl_turbo.py:1251
↓ 12 callersMethod__init__
(self, func)
acestep/models/xl_sft/modeling_acestep_v15_xl_base.py:1254
↓ 12 callersFunction_auto_mlx_vae_chunk_size
Select MLX VAE decode chunk size based on available unified memory. The ``ACESTEP_MLX_VAE_CHUNK`` environment variable takes highest priority
acestep/gpu_config.py:779
↓ 12 callersMethod_is_on_target_device
Check if tensor is on the target device (handles cuda vs cuda:0 comparison).
acestep/core/generation/handler/init_service_memory_basic.py:95
↓ 12 callersFunction_make_fake_decoder
Build a mock decoder that returns input-dependent velocity predictions. Uses a simple function of the input so that Heun (which evaluates at a
acestep/models/mlx/dit_generate_sampler_test.py:15
↓ 12 callersMethod_normalize_service_generate_inputs
Capture normalize args and return deterministic normalized payload.
acestep/core/generation/handler/service_generate_test.py:92
↓ 12 callersFunction_prompt_bool
(prompt: str, default: bool)
cli.py:175
↓ 12 callersMethod_sync_alignment_config
Load lyric alignment layers config from model config if available. Called after ``self.config`` is set during model initialization. T
acestep/core/generation/handler/lyric_alignment_common.py:18
↓ 12 callersFunctionbuild_generation_setup
Build GenerationParams and GenerationConfig from request and prepared LLM inputs. Args: req: Request object for music generation.
acestep/api/job_generation_setup.py:99
↓ 12 callersFunctiondebug_start
Return a start timestamp (perf counter) if enabled, otherwise None.
acestep/debug_utils.py:194
↓ 12 callersFunctionensure_model_downloaded
Ensure model exists locally, downloading from configured source if missing.
acestep/api/model_download.py:95
↓ 12 callersFunctiongenerate_music
Generate music using ACE-Step model with optional LM reasoning. Args: dit_handler: Initialized DiT model handler (AceStepHandler inst
acestep/inference.py:503
↓ 12 callersFunctionget_gpu_config
Get GPU configuration based on detected or provided GPU memory. On macOS with MPS (Apple Silicon), several overrides are applied automat
acestep/gpu_config.py:813
↓ 12 callersMethodinitialize_service
Capture initialize_service arguments and return a configured test result.
acestep/core/generation/handler/training_preset_test.py:52
↓ 12 callersFunctionmake_inputs
Return ``(src_latents, enc_hs, enc_am, ctx, attn)`` with fixed seeds.
acestep/models/common/_flow_edit_test_support.py:65
↓ 12 callersMethodsync
Synchronize GPU operations for accurate timing.
profile_inference.py:153
↓ 12 callersFunctionvalidate_audio_path
Validate user-supplied audio path and block unsafe filesystem traversal. Args: path: User-supplied path value from request payload.
acestep/api/http/release_task_audio_paths.py:14
↓ 11 callersFunction_build
Call _build_chunk_masks_and_src_latents with sensible defaults.
acestep/core/generation/handler/conditioning_masks_test.py:25
↓ 11 callersMethod_build_client
Create a route-wired app and return ``TestClient`` for HTTP assertions.
acestep/api/http/model_service_routes_http_test.py:72
next →1–100 of 4,027, ranked by callers