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

↓ 3 callersMethod_load_keyring_module
Return the Python keyring module when available.
acestep/text_tasks/secure_secret_store.py:201
↓ 3 callersFunction_load_preferences_script
Load the external save-preferences JavaScript asset.
acestep/ui/gradio/interfaces/user_preferences.py:62
↓ 3 callersFunction_make_constrained_processor
Return a mock constrained processor pinned to *state*.
acestep/llm_inference_cfg_fixes_test.py:44
↓ 3 callersFunction_make_fabric_wrapper
Return a mock that looks like a Fabric _FabricModule wrapping *inner*.
acestep/training_v2/trainer_helpers_test.py:12
↓ 3 callersMethod_make_mlx_cache
Create a KV cache for the MLX model.
acestep/llm_inference.py:3021
↓ 3 callersMethod_make_rocm_host
Return a minimal host configured as if running on ROCm.
acestep/core/generation/handler/init_service_test.py:890
↓ 3 callersMethod_mlx_vae_decode
Return deterministic decoded waveform for MLX decode branch.
acestep/core/generation/handler/generate_music_decode_test.py:118
↓ 3 callersMethod_move_quantized_param
Move an AffineQuantizedTensor to target device using ``_apply_fn_to_data`` when available.
acestep/core/generation/handler/init_service_memory_transfer.py:59
↓ 3 callersFunction_none_if_na_str
(value: Any)
acestep/api/job_result_payload.py:35
↓ 3 callersMethod_normalize_batch_input
Normalize batch input: convert single string to list and return (list, is_batch)
acestep/llm_inference.py:491
↓ 3 callersMethod_numpy_to_channels_first
Convert numpy audio array to channels-first torch tensor.
acestep/core/generation/handler/io_audio.py:91
↓ 3 callersFunction_pad_to_batch
Right-pad/copy ``values`` to ``batch_size``, falling back to ``default``.
acestep/core/generation/handler/service_generate_flow_edit_source.py:22
↓ 3 callersFunction_parse_source
Parse a Python source file in the CLI directory and return its AST. Args: filename: Name of the file relative to the CLI package director
acestep/training_v2/cli/train_fixed_standalone_test.py:31
↓ 3 callersMethod_prepare_batch
Prepare model-ready conditioning batch tensors and metadata. Args: captions: Per-item captions. lyrics: Per-item lyri
acestep/core/generation/handler/conditioning_batch.py:21
↓ 3 callersMethod_prepare_generate_music_decode_state
Capture decode-state args and return deterministic latents/costs.
acestep/core/generation/handler/generate_music_test.py:146
↓ 3 callersMethod_prepare_target_latents_and_wavs
( self, batch_size: int, target_wavs: torch.Tensor, audio_code_hints: List[Opt
acestep/core/generation/handler/conditioning_batch_test.py:41
↓ 3 callersMethod_release_system_memory
Aggressively reclaim system memory after device transfers. Combines Python GC, accelerator cache flush, and OS-level heap trimming to
acestep/core/generation/handler/init_service_memory_basic.py:221
↓ 3 callersMethod_run_first_yield
Advance the generator to its first yield and return the tuple.
acestep/ui/gradio/events/results/batch_navigation_test.py:34
↓ 3 callersMethod_run_initialize_with_mocks
Call handler.initialize() with all heavy operations mocked. Args: flash_attn_available: Whether flash_attn should appear detectab
acestep/llm_inference_enforce_eager_test.py:39
↓ 3 callersMethod_run_main
Run ``main`` with heavy dependencies stubbed and capture startup state.
acestep/acestep_v15_pipeline_test.py:35
↓ 3 callersFunction_run_preprocess
Run the two-pass preprocessing pipeline from the standalone entrypoint. Args: args: Parsed CLI arguments with ``audio_dir``, ``tensor_out
acestep/training_v2/cli/train_fixed.py:134
↓ 3 callersMethod_sample_tokens
Sample tokens from logits with temperature. Upcasts to float32 for numerical stability (float16 logits can overflow during softmax, e
acestep/llm_inference.py:438
↓ 3 callersMethod_save_mp3
Save MP3 with explicit ffmpeg settings and 128k/48k defaults.
acestep/audio_utils.py:134
↓ 3 callersFunction_smart_download
Smart download with automatic fallback between HuggingFace and ModelScope. Automatically detects network environment and chooses the best do
acestep/model_downloader.py:214
↓ 3 callersFunction_sync_model_code_files
Copy .py files from acestep/models/{variant}/ into the checkpoint directory, overwriting the HuggingFace-downloaded versions. Args:
acestep/model_downloader.py:96
↓ 3 callersFunction_temporary_unload_interactive_lm_for_scoring
Temporarily unload interactive vLLM so PMI can use HF scoring model. nano-vLLM does not support a cheap ``.to("cpu")`` offload. For PMI scor
acestep/core/scoring/lm_score.py:154
↓ 3 callersMethod_tiled_encode_offload_cpu
Tiled encode that offloads latent chunks to CPU immediately.
acestep/core/generation/handler/vae_encode_chunks.py:42
↓ 3 callersFunction_torch_bridge_dcw
Compute the DCW correction on MLX arrays via pytorch_wavelets. One numpy copy per latent; runs on CPU with float32. Returned as ``mx.array``
acestep/models/mlx/dcw_correction_mlx.py:70
↓ 3 callersFunction_unwrap_stale_fabric_decoder
Unwrap stale Lightning Fabric wrappers from decoder left by previous runs. Returns: True if decoder was unwrapped, else False.
acestep/training/trainer.py:232
↓ 3 callersMethod_uses_native_keyring
Return whether the current platform should prefer the system keyring.
acestep/text_tasks/secure_secret_store.py:164
↓ 3 callersMethod_validate_quantization_setup
Validate quantization prerequisites before model loading.
acestep/core/generation/handler/init_service_setup.py:102
↓ 3 callersMethodadd_lora
Forward to lifecycle implementation to mimic mixin wiring.
acestep/core/generation/handler/lora/lifecycle_test.py:71
↓ 3 callersFunctionappend_jsonl
Append a single JSONL record for audit/progress tracing.
acestep/api/runtime_helpers.py:199
↓ 3 callersFunctionapplyPreferredVolumeToSlider
(slider)
acestep/ui/gradio/interfaces/audio_player_preferences.js:92
↓ 3 callersFunctionapply_scale_to_adapter
Apply scale to one adapter and return `(modified_count, report)`.
acestep/core/lora/scaling.py:14
↓ 3 callersMethodbuild_formatted_prompt_for_understanding
Build the chat-formatted prompt for audio understanding from codes. This is the reverse of generation: given audio codes, generate m
acestep/llm_inference.py:1802
↓ 3 callersMethodcall
(self, method_name, *args)
acestep/third_parts/nano-vllm/nanovllm/engine/model_runner.py:270
↓ 3 callersFunctioncall_name
Extract a simple call-target name from an AST call function node.
acestep/ui/gradio/interfaces/training_contract_ast_utils.py:20
↓ 3 callersFunctioncaption_needs_retry
Return whether the generated caption looks like a non-enhanced echo.
acestep/text_tasks/external_lm_captioning.py:20
↓ 3 callersFunctioncheck_lycoris_available
Check if LyCORIS is importable.
acestep/training/lokr_utils.py:30
↓ 3 callersFunctioncheck_peft_available
Check if PEFT library is available.
acestep/training/lora_utils.py:20
↓ 3 callersFunctionconfigure_memory_features
Enable gradient checkpointing, disable use_cache, and enable input_require_grads across all wrapper layers of *decoder*. Mirrors ACE-Step's `
acestep/training_v2/trainer_helpers.py:68
↓ 3 callersMethodconvert_src_audio_to_codes
Return configured conversion output.
acestep/ui/gradio/events/generation_handlers_test.py:25
↓ 3 callersMethodcreate_target_wavs
Create silent stereo target audio with safe duration handling.
acestep/core/generation/handler/task_utils.py:117
↓ 3 callersFunctionensure_dit_model
Ensure a DiT model is available, downloading if necessary. Args: model_name: Name of the DiT model checkpoints_dir: Custom c
acestep/model_downloader.py:663
↓ 3 callersFunctionensure_gradio_mocked
Ensure a mock gradio module exists for package imports in tests.
acestep/ui/gradio/help_content_test_helpers.py:7
↓ 3 callersFunctionensure_lm_model
Ensure an LM model is available, downloading if necessary. Args: model_name: Name of the LM model (defaults to DEFAULT_LM_MODEL)
acestep/model_downloader.py:617
↓ 3 callersMethodeval
Match torch module ``eval`` API.
acestep/core/generation/handler/lora/lifecycle_test.py:33
↓ 3 callersFunctionexternal_lm_settings_path
Return the user-local JSON settings path for external LM preferences.
acestep/text_tasks/external_lm_runtime_store.py:12
↓ 3 callersFunctionextract_balanced_json_objects
Extract balanced top-level JSON object candidates.
acestep/text_tasks/external_ai_json_parsing.py:61
↓ 3 callersFunctionextract_json_block
Extract a likely JSON object from plain or fenced content.
acestep/text_tasks/external_ai_json_parsing.py:114
↓ 3 callersMethodextract_text
(self, response: Dict[str, Any])
scripts/lora_data_prepare/gemini_caption.py:340
↓ 3 callersFunctionfind_best_lm_model_on_disk
Find the best matching disk model for a recommended tier model. If the exact recommended model exists on disk, return it. Otherwise, fin
acestep/gpu_config.py:940
↓ 3 callersMethodflush
No-op flush to satisfy file-like API expectations.
acestep/api/log_capture.py:23
↓ 3 callersFunctionforEachAudioPlayer
(callback)
acestep/ui/gradio/interfaces/audio_player_preferences.js:70
↓ 3 callersMethodgenerate_audio
( self, text_hidden_states: torch.FloatTensor, text_attention_mask: torch.FloatTensor,
acestep/models/sft/modeling_acestep_v15_base.py:1836
↓ 3 callersFunctionget_audio_codes_from_sidecar
Return generated audio codes from a JSON sidecar when available.
acestep/ui/gradio/events/results/session_artifacts.py:126
↓ 3 callersFunctionget_context
()
acestep/third_parts/nano-vllm/nanovllm/utils/context.py:36
↓ 3 callersMethodget_full_caption
Get caption with custom tag applied.
acestep/training/dataset_builder_modules/models.py:54
↓ 3 callersMethodget_headers
构建请求头
openrouter/stress_test.py:152
↓ 3 callersMethodget_labeled_count
Get the number of labeled samples.
acestep/training/dataset_builder_modules/core.py:18
↓ 3 callersMethodget_latency_stats
获取延迟统计数据
openrouter/stress_test.py:106
↓ 3 callersMethodget_lyric_score
Calculate lyric alignment scores for pure-noise and regressed-latent inputs. Args: pred_latent (torch.Tensor): Generated latent t
acestep/core/generation/handler/lyric_score.py:15
↓ 3 callersMethodget_password
(*_args)
acestep/text_tasks/passphrase_store_test.py:111
↓ 3 callersFunctionhandle_response
处理 API 响应并保存音频
openrouter/client_test.py:42
↓ 3 callersMethodinfer_text_embeddings
Infer text-token embeddings via text encoder.
acestep/core/generation/handler/conditioning_embed.py:71
↓ 3 callersFunctioninitialize_lifespan_runtime
Initialize process environment, model handlers, and app.state runtime fields.
acestep/api/lifespan_runtime.py:42
↓ 3 callersFunctioninvalidate_cached_external_models
Remove matching cached model entries for a provider configuration.
acestep/text_tasks/external_lm_model_cache.py:70
↓ 3 callersFunctionis_debug_enabled
(mode: str)
acestep/debug_utils.py:114
↓ 3 callersFunctionis_debug_verbose
(mode: str)
acestep/debug_utils.py:118
↓ 3 callersMethodis_silence
Treat near-zero tensors as silence.
acestep/core/generation/handler/io_audio_test.py:18
↓ 3 callersMethodlabel_all_samples
Capture label invocation arguments and return success status.
acestep/api/train_api_dataset_service_http_test.py:118
↓ 3 callersFunctionlegacy_torch_fix_probe_exit_code
Return launcher probe exit code for legacy torch compatibility check. Args: torch_module: Optional injected ``torch`` module for tests.
acestep/launcher_compat.py:74
↓ 3 callersFunctionload_batch_sample_session_tensors
Load artifact tensors for a one-based sample index in a batch queue entry.
acestep/ui/gradio/events/results/session_artifacts.py:102
↓ 3 callersMethodload_lora
(self, lora_path: str)
acestep/api/http/lora_routes_test.py:56
↓ 3 callersFunctionload_random_example
Load a random example from the task-specific examples directory. Args: task_type: The task type (e.g., "text2music"). llm_handler
acestep/ui/gradio/events/generation/metadata_loading.py:165
↓ 3 callersMethodlog_loss
(self, loss: float, step: int)
acestep/training_v2/tensorboard_utils.py:66
↓ 3 callersMethodlog_lr
(self, lr: float, step: int)
acestep/training_v2/tensorboard_utils.py:69
↓ 3 callersFunctionlrc_to_vtt_file
Convert LRC text to a VTT subtitle file and return its path. Args: lrc_text: LRC format lyrics string. total_duration: Total audi
acestep/ui/gradio/events/results/lrc_utils.py:130
↓ 3 callersMethodmark_failed
Mark a job as failed and persist an error message.
acestep/api/jobs/store.py:136
↓ 3 callersFunctionmaybe_compile
Apply ``torch.compile`` only when its backend (Triton) is available. Drop-in replacement for the ``@torch.compile`` decorator. When Triton i
acestep/third_parts/nano-vllm/nanovllm/utils/compat.py:24
↓ 3 callersFunctionmlx_available
Cached check for MLX availability.
acestep/models/mlx/__init__.py:28
↓ 3 callersFunctionnavigate_to_next_batch
Navigate to the next batch (result view only). Yields: Two tuples of 49 Gradio component updates each.
acestep/ui/gradio/events/results/batch_navigation.py:87
↓ 3 callersFunctionnormalize_protocol
Validate and normalize a supported external AI protocol identifier.
acestep/text_tasks/external_ai_protocols.py:27
↓ 3 callersFunctionparse_timesteps
Parse comma-separated timesteps into float list.
acestep/api/server_utils.py:124
↓ 3 callersFunctionpmi_score
Calculate Pointwise Mutual Information (PMI) score. PMI = log P(condition|codes) - log P(condition) = log [P(codes|condition) / P(co
acestep/core/scoring/lm_score.py:21
↓ 3 callersMethodpreempt
(self, seq: Sequence)
acestep/third_parts/nano-vllm/nanovllm/engine/scheduler.py:218
↓ 3 callersMethodprepare_condition
( self, text_hidden_states: torch.FloatTensor, text_attention_mask: torch.Tensor,
acestep/models/xl_base/modeling_acestep_v15_xl_base.py:1669
↓ 3 callersMethodprepare_condition
( self, text_hidden_states: torch.FloatTensor, text_attention_mask: torch.Tensor,
acestep/models/turbo/modeling_acestep_v15_turbo.py:1654
↓ 3 callersMethodprepare_condition
( self, text_hidden_states: torch.FloatTensor, text_attention_mask: torch.Tensor,
acestep/models/sft/modeling_acestep_v15_base.py:1657
↓ 3 callersMethodprepare_condition
( self, text_hidden_states: torch.FloatTensor, text_attention_mask: torch.Tensor,
acestep/models/base/modeling_acestep_v15_base.py:1657
↓ 3 callersMethodprepare_condition
( self, text_hidden_states: torch.FloatTensor, text_attention_mask: torch.Tensor,
acestep/models/xl_turbo/modeling_acestep_v15_xl_turbo.py:1666
↓ 3 callersMethodprepare_condition
( self, text_hidden_states: torch.FloatTensor, text_attention_mask: torch.Tensor,
acestep/models/xl_sft/modeling_acestep_v15_xl_base.py:1669
↓ 3 callersFunctionprepare_llm_generation_inputs
Resolve LLM flags and prepare caption/lyrics/metadata inputs for generation. Args: app_state: FastAPI app state with LLM initialization f
acestep/api/llm_generation_inputs.py:32
↓ 3 callersFunctionprocess_queue_item
Process one queued job item and notify waiters. Args: job_id: Job identifier from queue. req: Request payload associated with the
acestep/api/jobs/worker_loops.py:9
↓ 3 callersFunctionregister_lora_routes
Register LoRA lifecycle endpoints on the provided FastAPI app.
acestep/api/http/lora_routes.py:53
↓ 3 callersFunctionregister_model_service_routes
Register health/stats/inventory/init routes. Inputs: app, auth/response wrappers, job store settings, and model helper callables. Returns: No
acestep/api/http/model_service_routes.py:128
↓ 3 callersFunctionregister_query_result_route
Register the ``/query_result`` endpoint. Args: app: FastAPI app instance to register the route on. verify_token_from_request: Aut
acestep/api/http/query_result_route.py:12
↓ 3 callersFunctionregister_sample_format_routes
Register random-sample and format-input routes on the FastAPI app.
acestep/api/http/sample_format_routes.py:13
↓ 3 callersFunctionrestore_and_advance_momentum
Reset to pre-step state and advance once with the averaged diff. ``avg_diff_*`` is ``None`` when CFG was inactive this step (no averaged diff
acestep/models/common/flow_edit_helpers.py:116
← previousnext →501–600 of 4,027, ranked by callers