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

↓ 11 callersFunction_debug_log
Print debug message if NANOVLLM_DEBUG is enabled
acestep/third_parts/nano-vllm/nanovllm/layers/attention.py:11
↓ 11 callersFunction_draw
(shape, seed: int)
acestep/core/generation/handler/retake_test.py:39
↓ 11 callersFunction_fake_mx_core_module
Create a minimal fake ``mlx.core`` module backed by NumPy arrays.
acestep/core/generation/handler/mlx_vae_native_test.py:77
↓ 11 callersFunction_make_host
()
acestep/core/generation/handler/conditioning_masks_test.py:21
↓ 11 callersFunction_prompt_float
(prompt: str, default: Optional[float] = None, min_value: Optional[float] = None, max_value:
cli.py:440
↓ 11 callersFunction_training_loss_figure
Build a training/validation loss plot (matplotlib Figure) for ``gr.Plot``.
acestep/ui/gradio/events/training/training_utils.py:77
↓ 11 callersFunctioncall_name
Extract a simple function name from a call node target.
acestep/ui/gradio/events/wiring/decomposition_contract_helpers.py:126
↓ 11 callersFunctioncreate_4d_mask
General 4D Attention Mask generator compatible with CPU/Mac/SDPA and Eager mode. Supports use cases: 1. Causal Full: is_causal=True, is_s
acestep/models/xl_base/modeling_acestep_v15_xl_base.py:62
↓ 11 callersFunctioncreate_4d_mask
General 4D Attention Mask generator compatible with CPU/Mac/SDPA and Eager mode. Supports use cases: 1. Causal Full: is_causal=True, is_s
acestep/models/turbo/modeling_acestep_v15_turbo.py:59
↓ 11 callersFunctioncreate_4d_mask
General 4D Attention Mask generator compatible with CPU/Mac/SDPA and Eager mode. Supports use cases: 1. Causal Full: is_causal=True, is_s
acestep/models/sft/modeling_acestep_v15_base.py:62
↓ 11 callersFunctioncreate_4d_mask
General 4D Attention Mask generator compatible with CPU/Mac/SDPA and Eager mode. Supports use cases: 1. Causal Full: is_causal=True, is_s
acestep/models/base/modeling_acestep_v15_base.py:62
↓ 11 callersFunctioncreate_4d_mask
General 4D Attention Mask generator compatible with CPU/Mac/SDPA and Eager mode. Supports use cases: 1. Causal Full: is_causal=True, is_s
acestep/models/xl_turbo/modeling_acestep_v15_xl_turbo.py:59
↓ 11 callersFunctioncreate_4d_mask
General 4D Attention Mask generator compatible with CPU/Mac/SDPA and Eager mode. Supports use cases: 1. Causal Full: is_causal=True, is_s
acestep/models/xl_sft/modeling_acestep_v15_xl_base.py:62
↓ 11 callersMethodinitialize
Return ``("ok", True)`` to emulate successful LLM initialization.
acestep/api/http/model_init_service_test.py:23
↓ 11 callersFunctioninitialize_models_for_request
Initialize DiT and optional LM models. Args: app_state: FastAPI application state carrying handler objects and flags. model_name:
acestep/api/http/model_init_service.py:55
↓ 11 callersFunctionparse_lrc_to_subtitles
Parse LRC lyrics text to Gradio subtitles format with smart post-processing. Merges lines that start very close to each other so they don't disap
acestep/ui/gradio/events/results/lrc_utils.py:22
↓ 11 callersFunctionparse_quantization_arg
Parse ``--quantization`` values from CLI input. Args: value: Raw CLI value. Returns: Canonical quantization method or ``None
acestep/cli_args.py:15
↓ 11 callersFunctionprogress_callback
(msg)
acestep/ui/gradio/events/training/preprocess.py:174
↓ 11 callersFunctionstore_batch_in_queue
Store batch results in queue with all generation parameters. Args: batch_queue: The mutable batch queue dict. batch_index: Index
acestep/ui/gradio/events/results/batch_queue.py:14
↓ 10 callersFunction_build_restore_js
Build the client-side JS that reads localStorage and returns values. The returned function is passed as the ``js`` parameter to ``demo.load()
acestep/ui/gradio/interfaces/user_preferences.py:77
↓ 10 callersMethod_clear_accelerator_cache
Release freed accelerator memory back to the driver. Synchronises the device *before* releasing cached blocks so that every in-flight
acestep/llm_inference.py:91
↓ 10 callersMethod_make_host
Build a _Host with a None decoder for config-only tests.
acestep/core/generation/handler/lyric_alignment_test.py:68
↓ 10 callersMethod_memory_allocated
Return deterministic allocated-memory value for debug logging.
acestep/core/generation/handler/generate_music_decode_test.py:110
↓ 10 callersFunction_safe_slider
Create a slider with a non-zero range to avoid Gradio math errors.
acestep/ui/gradio/events/training/training_utils.py:32
↓ 10 callersFunction_wrap_response
Wrap response data in standard format compatible with CustomAceStep.
acestep/ui/gradio/api/api_routes.py:41
↓ 10 callersMethodadd
(self, seq: Sequence)
acestep/third_parts/nano-vllm/nanovllm/engine/scheduler.py:30
↓ 10 callersFunctionadg_forward
ADG (Angle-based Dynamic Guidance) forward pass for Flow Matching. In flow matching (including SD3), sigma represents the current timestep t
acestep/models/common/apg_guidance.py:107
↓ 10 callersFunctionbuild_audio_slot_update
Build an audio slot update that always rewinds playback to 0. Args: gr_module: Module/object exposing ``update(**kwargs)``. audio
acestep/ui/gradio/events/results/audio_playback_updates.py:10
↓ 10 callersMethodform
Return deterministic form payload for this test request.
acestep/api/http/release_task_request_parser_test.py:81
↓ 10 callersFunctiongenerate_uuid_from_params
Generate deterministic UUID from generation parameters. Same parameters will always generate the same UUID. Args: params_dic
acestep/audio_utils.py:532
↓ 10 callersFunctionget_i18n
Get global i18n instance Args: language: Optional language to set Returns: I18n instance
acestep/ui/gradio/i18n/i18n.py:150
↓ 10 callersFunctionget_project_root
Get the project root directory. Returns the directory set by the ``ACESTEP_PROJECT_ROOT`` environment variable when present, otherwise the cu
acestep/model_downloader.py:329
↓ 10 callersFunctionget_user_preferences_head
Return Gradio head HTML that injects save-side preference persistence.
acestep/ui/gradio/interfaces/user_preferences.py:68
↓ 10 callersMethodinitialize
Initialize 5Hz LM model Args: checkpoint_dir: Checkpoint directory path lm_model_path: LM model path (relati
acestep/llm_inference.py:499
↓ 10 callersFunctionis_pure_base_model
Check whether a model path refers to a pure base model. Args: config_path_lower: Lowercased model config path string. Returns:
acestep/ui/gradio/events/generation/model_config.py:29
↓ 10 callersMethodsample
Return precomputed latent sample.
acestep/core/generation/handler/vae_encode_test.py:18
↓ 10 callersMethodstate_dict
Return a tiny state dict suitable for backup/restore paths.
acestep/core/generation/handler/lora/lifecycle_test.py:20
↓ 10 callersMethodupdate
(self, hash: int, token_ids: list[int])
acestep/third_parts/nano-vllm/nanovllm/engine/block_manager.py:25
↓ 9 callersFunction_load_module
Load model_downloader directly without importing heavy dependencies.
acestep/model_downloader_test.py:12
↓ 9 callersFunction_make_stream_chunk
Build SSE chunk JSON string.
openrouter/openrouter_api_server.py:461
↓ 9 callersMethod_recursive_to_device
Recursively move parameters and buffers to the specified device. Tries the fast ``model.to()`` path first. Only falls back to manual
acestep/core/generation/handler/init_service_memory_transfer.py:69
↓ 9 callersFunction_resolve_repaint_config
Convert repaint mode and strength into concrete numeric parameters. Higher *strength* means more aggressive repainting (less source preservation)
acestep/core/generation/handler/generate_music.py:26
↓ 9 callersMethod_transition_to_next_state
Transition to the next FSM state.
acestep/constrained_logits_processor.py:2109
↓ 9 callersFunctionapply_repaint_waveform_splice
Splice original user waveform into non-repaint regions after VAE decode. Args: pred_wavs: VAE-decoded waveform ``[B, C, samples]``.
acestep/core/generation/handler/repaint_waveform_splice.py:54
↓ 9 callersFunctiondebug_log
Emit a timestamped debug log line if the mode is enabled.
acestep/debug_utils.py:122
↓ 9 callersFunctiondispatch_flow_edit_overlay
Run paired flow-edit on top of text2music dispatch. Builds source text/lyric embeddings from ``flow_edit_ctx['source_caption']`` / ``['source
acestep/core/generation/handler/service_generate_flow_edit.py:30
↓ 9 callersFunctionget_headers
构建请求头
openrouter/client_test.py:34
↓ 9 callersMethodis_flash_attention_available
Check whether flash attention can be used on the target device.
acestep/core/generation/handler/init_service_catalog.py:48
↓ 9 callersMethodload_state_dict
Pretend to restore weights and report no key mismatches.
acestep/core/generation/handler/lora/lifecycle_test.py:24
↓ 9 callersFunctionnative_path
Convert a path string to use the native OS separator for display. On Windows, replaces forward slashes with backslashes so that path defaults
acestep/training_v2/ui/prompt_helpers.py:35
↓ 9 callersFunctionset_language_context
Set the per-request language for the current execution context. Call at a request boundary (Gradio event handler, FastAPI middleware) to scop
acestep/ui/gradio/i18n/i18n.py:173
↓ 8 callersMethod_build_client
Create app and register query-result route for HTTP tests.
acestep/api/http/query_result_route_http_test.py:59
↓ 8 callersMethod_compute_max_new_tokens
Compute max_new_tokens based on target duration and generation phase. In the two-phase architecture: - CoT phase: generates
acestep/llm_inference.py:238
↓ 8 callersFunction_encode_for_shm
Encode IPC arguments to UTF-8 JSON bytes for shared-memory transport. Replaces ``pickle`` to avoid arbitrary code execution on deserialization.
acestep/third_parts/nano-vllm/nanovllm/engine/model_runner.py:29
↓ 8 callersMethod_get_silence_latent_slice
Return a silence-latent slice of exactly ``length`` frames. When the pre-computed ``silence_latent`` tensor is shorter than ``length`
acestep/core/generation/handler/conditioning_target.py:18
↓ 8 callersFunction_make_chunk
( content: Optional[str] = None, role: Optional[str] = None, audio: Optional[Any] = No
acestep/openrouter_adapter.py:487
↓ 8 callersMethod_mlx_run_diffusion
Run the MLX diffusion loop and return generated latents. Args: encoder_hidden_states: Prompt conditioning tensor. enc
acestep/core/generation/handler/diffusion.py:18
↓ 8 callersMethod_prepare_reference_and_source_audio
Capture audio-prepare args and return deterministic prepared state.
acestep/core/generation/handler/generate_music_test.py:125
↓ 8 callersMethod_rebuild_lora_registry
(self, lora_path=None)
acestep/core/generation/handler/lora/controls_test.py:36
↓ 8 callersFunctionbuild_soft_repaint_mask
Build a soft float mask with linear crossfade at repaint boundaries. The crossfade zones extend into the preserved (non-repaint) region on each
acestep/core/generation/handler/repaint_step_injection.py:33
↓ 8 callersFunctioncfg_forward
(cond_output, uncond_output, cfg_strength)
acestep/models/common/apg_guidance.py:59
↓ 8 callersFunctiondebug_end_verbose_for
End timing only in VERBOSE mode for a named subsystem.
acestep/debug_utils.py:186
↓ 8 callersFunctiondebug_log_verbose_for
Emit a timestamped debug log only in VERBOSE mode for a named subsystem.
acestep/debug_utils.py:170
↓ 8 callersFunctiondebug_start_verbose_for
Start timing only in VERBOSE mode for a named subsystem.
acestep/debug_utils.py:178
↓ 8 callersFunctiondetect_gpu
Detect the best available accelerator. Priority: CUDA > MPS > XPU > CPU. Args: requested_device: 'auto', 'cuda', 'cuda:N', 'mps', 'x
acestep/training_v2/gpu_utils.py:56
↓ 8 callersFunctionflowedit_sampling_loop
Run the shared flow-edit sampling loop. See module docstring for the algorithm. ``model`` is the DiT variant (must expose ``.decoder(...)``).
acestep/models/common/flow_edit.py:54
↓ 8 callersFunctionformat_sample
Format user-provided caption and lyrics using the 5Hz Language Model. This function takes user input (caption and lyrics) and generates struc
acestep/inference.py:1443
↓ 8 callersMethodgenerate_music
Generate audio from text/reference inputs and return response payload. Args: captions: Text prompt describing requested music.
acestep/core/generation/handler/generate_music.py:180
↓ 8 callersMethodget_available_acestep_v15_models
Scan and return all model directory names starting with ``acestep-v15-``.
acestep/core/generation/handler/init_service_catalog.py:34
↓ 8 callersFunctionis_sft_model
Check whether a model path refers to an SFT (supervised fine-tuned) model. Args: config_path_lower: Lowercased model config path string.
acestep/ui/gradio/events/generation/model_config.py:70
↓ 8 callersFunctionmake_payload
(bsz: int = 1, seq: int = 8, ch: int = 16)
acestep/core/generation/handler/_flow_edit_dispatch_test_support.py:71
↓ 8 callersFunctionmap_status
Map textual job status to integer API status code.
acestep/api/server_utils.py:118
↓ 8 callersFunctionreset_language_context
Restore the per-request language to its previous value.
acestep/ui/gradio/i18n/i18n.py:194
↓ 8 callersMethodrestore
Restore previously offloaded components back to their original state.
acestep/api/train_api_runtime.py:136
↓ 8 callersFunctionsave_adapter_flat
Save adapter weights directly into *output_dir* (no nesting). Writes ``adapter_config.json`` and ``adapter_model.safetensors`` (or LoKR equiv
acestep/training_v2/trainer_helpers.py:145
↓ 8 callersFunctionset_api_key
Set the process-level API key used by auth verification helpers. Args: key: API key string, or ``None`` to disable auth enforcement.
acestep/api/http/auth.py:12
↓ 8 callersMethodswitch_to_training_preset
Reinitialize with quantization disabled using the last successful init parameters. Returns: Tuple[str, bool]: - A
acestep/core/generation/handler/training_preset.py:9
↓ 8 callersMethodt
Translate *key* using per-request ContextVar, then instance default, then English.
acestep/ui/gradio/i18n/i18n.py:74
↓ 8 callersMethodtrain
Run the full training loop. Yields ``(global_step, loss, status_message)`` tuples.
acestep/training_v2/trainer_fixed.py:101
↓ 7 callersFunction_base_req
()
acestep/api/job_generation_setup_test.py:11
↓ 7 callersFunction_build_generation_info
Build a compact generation timing summary. Args: lm_metadata: LM-generated metadata dictionary (unused, kept for API compat). tim
acestep/ui/gradio/events/results/generation_info.py:43
↓ 7 callersMethod_get_next_field_state
Get the next field state. Always returns the next field's NAME state, even if the field is user-provided (we still need to generate t
acestep/constrained_logits_processor.py:262
↓ 7 callersMethod_mlx_decode_single
Decode a single MLX latent sample with optional tiling. Args: z_nlc: MLX array in ``[1, frames, channels]`` layout. d
acestep/core/generation/handler/mlx_vae_decode_native.py:74
↓ 7 callersMethod_move_module
Move a module to a target device/dtype when possible.
acestep/api/train_api_runtime.py:60
↓ 7 callersFunction_read_audio_file
Read an audio file, with torchaudio fallback for formats unsupported by soundfile. soundfile (libsndfile) supports WAV/FLAC/OGG/MP3 etc. but NOT
acestep/core/generation/handler/io_audio.py:13
↓ 7 callersFunction_resolve_dtype
Map precision string to torch dtype.
acestep/training_v2/model_loader.py:91
↓ 7 callersFunction_retake_mix
Reference implementation mirroring the inline mix inside generate_audio.
acestep/core/generation/handler/retake_test.py:33
↓ 7 callersFunction_unwrap_decoder
Unwrap PEFT/Fabric wrappers from a model/decoder to retrieve the base DiT module. This internal helper walks the wrapper chain and returns the un
acestep/training/lora_injection.py:77
↓ 7 callersFunctionapplyPreferredVolume
(player)
acestep/ui/gradio/interfaces/audio_player_preferences.js:60
↓ 7 callersFunctionask_path
Ask for a filesystem path, optionally validating existence. Raises: GoBack: When ``allow_back`` is True and user types 'b'/'back'.
acestep/training_v2/ui/prompt_helpers.py:249
↓ 7 callersFunctionbuild_fallback_caption
Return the local retry fallback built from the user's caption and metadata. This path is used when the external provider returns an empty, unchan
acestep/text_tasks/external_lm_captioning.py:67
↓ 7 callersFunctionbuild_request_for_protocol
Build protocol-specific payload and headers.
acestep/text_tasks/external_ai_request_helpers.py:96
↓ 7 callersFunctioncalculate_score_handler
Calculate PMI-based quality score for generated audio. PMI (Pointwise Mutual Information) removes condition bias: ``score = log P(condition|c
acestep/ui/gradio/events/results/scoring.py:26
↓ 7 callersFunctionclamp_duration_to_gpu_limit
Clamp duration value to GPU memory limit. Args: duration_value: Duration in seconds (can be None or -1 for no limit). llm_handler
acestep/ui/gradio/events/generation/validation.py:16
↓ 7 callersMethoddetermine_task_type
Compute task-mode booleans for downstream generation logic.
acestep/core/generation/handler/task_utils.py:101
↓ 7 callersFunctiondraw_fwd_noise
Generator-aware ``randn`` for per-step forward-diffusion noise. ``generator`` may be ``None`` (fully random), a single ``torch.Generator``, o
acestep/models/common/flow_edit_helpers.py:138
↓ 7 callersMethodget
Return raw value for ``key`` from parser payload.
acestep/api/http/release_task_request_parser_test.py:22
↓ 7 callersMethodget_available_5hz_lm_models
Scan and return all model directory names starting with 'acestep-5Hz-lm-
acestep/llm_inference.py:174
↓ 7 callersFunctionget_effective_free_vram_gb
Get the effective free VRAM in GB, accounting for PyTorch allocator cache and per-process memory fraction. torch.cuda.mem_get_info() rep
acestep/gpu_config.py:1181
↓ 7 callersFunctionget_lora_weights_hash
Compute an MD5 hash identifying the currently loaded LoRA adapter weights. Iterates over the handler's LoRA service registry to find adapter weig
acestep/audio_utils.py:446
← previousnext →101–200 of 4,027, ranked by callers