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

↓ 7 callersFunctionget_ui_control_config
Return UI control configuration (values, limits, visibility) for model type. Args: is_turbo: Whether the model is a turbo variant.
acestep/ui/gradio/events/generation/model_config.py:94
↓ 7 callersFunctionload_module
Parse and return AST for a generation interface module. Args: module_name: Filename under ``acestep/ui/gradio/interfaces`` to parse.
acestep/ui/gradio/interfaces/generation_contract_ast_utils.py:11
↓ 7 callersFunctionmake_flow_edit_ctx
(source_caption="anime pop", source_lyrics="original")
acestep/core/generation/handler/_flow_edit_dispatch_test_support.py:87
↓ 7 callersFunctionmaybe_handle_analysis_only_modes
Run analysis-only branches and return response payload when handled. Args: req: Generation request object. params: Prepared gener
acestep/api/job_analysis_runtime.py:9
↓ 7 callersFunctionregister_reinitialize_route
Register the reinitialization endpoint. Inputs: app, auth dependency, response wrapper, env parser, and project-root helper. Returns: None af
acestep/api/http/reinitialize_route.py:12
↓ 7 callersFunctionreset_memory
Reset CUDA memory stats and free caches.
scripts/profile_vram.py:58
↓ 7 callersFunctionresolve_lm_backend
Resolve the LM backend against runtime compatibility restrictions.
acestep/gpu_config.py:285
↓ 7 callersMethodtiled_encode
Encode audio to latents using overlap-discard tiling. Args: audio: Tensor shaped ``[batch, channels, samples]`` or ``[channels, s
acestep/core/generation/handler/vae_encode.py:15
↓ 7 callersFunctionupdate_navigation_buttons
Determine navigation button interactive states. Returns: Tuple of ``(can_go_previous, can_go_next)`` booleans.
acestep/ui/gradio/events/results/batch_queue.py:90
↓ 6 callersMethod__init__
(self, hidden_dim: int, logscale: bool = True)
acestep/models/mlx/vae_model.py:32
↓ 6 callersMethod_base_req
(self)
acestep/api/job_analysis_runtime_test.py:16
↓ 6 callersFunction_build_waveform_crossfade_mask
Build a per-sample float mask: 1.0 inside repaint, 0.0 outside, ramp at edges. Args: total_samples: Total waveform length in samples.
acestep/core/generation/handler/repaint_waveform_splice.py:14
↓ 6 callersMethod_create_mock_model
Create a mock model with named parameters.
acestep/training/test_lora_utils.py:86
↓ 6 callersFunction_debug_log
Print debug message if NANOVLLM_DEBUG is enabled
acestep/third_parts/nano-vllm/nanovllm/engine/block_manager.py:11
↓ 6 callersFunction_decode_from_shm
Decode IPC arguments from UTF-8 JSON bytes produced by ``_encode_for_shm``. Reconstructs ``Sequence`` objects from their serialised state without
acestep/third_parts/nano-vllm/nanovllm/engine/model_runner.py:59
↓ 6 callersMethod_generate_with_cfg_custom
Custom CFG generation loop that: 1. Processes both conditional and unconditional sequences in parallel 2. Applies CFG formula
acestep/llm_inference.py:2618
↓ 6 callersMethod_get_parser
(self)
acestep/training_v2/cli/train_fixed_standalone_test.py:50
↓ 6 callersMethod_get_project_root
Get project root directory path. Returns the directory set by the ``ACESTEP_PROJECT_ROOT`` environment variable when present, otherwi
acestep/core/generation/handler/progress.py:20
↓ 6 callersFunction_local_presets_dir
Project-local user presets directory. Anchored to the Side-Step project root rather than raw ``Path.cwd()`` so that presets are always found
acestep/training_v2/ui/presets.py:74
↓ 6 callersMethod_lyric_timestamp_error
Build the standard timestamp error payload.
acestep/core/generation/handler/lyric_alignment_common.py:108
↓ 6 callersFunction_make_torch
Create a minimal torch test double for compatibility checks.
acestep/launcher_compat_test.py:16
↓ 6 callersMethod_pad_sequences
Pad sequence tensors to the same length.
acestep/core/generation/handler/prompt_utils.py:31
↓ 6 callersFunction_parse_number
(value: str)
cli.py:310
↓ 6 callersMethod_prepare_generate_music_runtime
Capture runtime args and return deterministic runtime state.
acestep/core/generation/handler/generate_music_test.py:112
↓ 6 callersFunction_prompt_int
(prompt: str, default: Optional[int] = None, min_value: Optional[int] = None, max_value: Optio
cli.py:419
↓ 6 callersFunction_serialize_samples
Return stable sample payload list for dataset endpoints.
acestep/api/train_api_dataset_models.py:102
↓ 6 callersMethod_simulate_handler_src_audio_logic
Reproduce the handler's src_audio processing logic. This mirrors the branching in ``handler.py`` generate_music() without requiring a
acestep/text2music_src_audio_test.py:84
↓ 6 callersMethod_tiled_decode_inner
Record routed args and return sentinel audio tensor.
acestep/core/generation/handler/vae_decode_test_helpers.py:69
↓ 6 callersFunction_toggle_lokr
Toggle a LyCORIS LoKr adapter via its multiplier. Args: decoder: Model decoder that may carry a ``_lycoris_net`` attribute. enabl
acestep/core/generation/handler/lora/controls.py:12
↓ 6 callersFunctionapply_cfg_branch
Reduce a ``(cond, null)``-packed prediction to a guided velocity. ``do_cfg`` is the global gate (``guidance_scale > 1``). ``apply_cfg_now`` i
acestep/models/common/flow_edit_helpers.py:43
↓ 6 callersFunctionapply_velocity_ema
EMA smoothing across *timesteps* (not across n_avg draws). Caller is responsible for invoking this once per scheduler step on the averaged ve
acestep/models/common/flow_edit_helpers.py:86
↓ 6 callersFunctionatomic_write_json
Write JSON atomically to reduce corruption risk during incremental saves.
acestep/api/runtime_helpers.py:177
↓ 6 callersFunctionbuild_intent_specific_guidance
Return extra format guidance inferred from the user's stated intent.
acestep/text_tasks/external_ai_request_helpers.py:40
↓ 6 callersMethodclose
Close cache connection
acestep/local_cache.py:114
↓ 6 callersMethoddeallocate
(self, seq: Sequence)
acestep/third_parts/nano-vllm/nanovllm/engine/block_manager.py:108
↓ 6 callersFunctionfreeze_non_lora_parameters
Freeze all non-LoRA parameters in the model. Args: model: The model to freeze parameters for freeze_encoder: Whether to freeze th
acestep/training/lora_injection.py:136
↓ 6 callersMethodgenerate
( self, prompts: list[str] | list[list[int]], sampling_params: SamplingParams | list[S
acestep/third_parts/nano-vllm/nanovllm/engine/llm_engine.py:118
↓ 6 callersMethodgenerate_from_formatted_prompt
Generate raw LM text output from a pre-built formatted prompt. Args: formatted_prompt: Prompt that is already formatted
acestep/llm_inference.py:2362
↓ 6 callersMethodget
Get parameter by canonical name from all known request sources.
acestep/api/http/release_task_param_parser.py:132
↓ 6 callersFunctionget_audio_player_preferences_head
Return Gradio head HTML that injects audio preference behavior. Returns: HTML snippet with a single ``<script>`` tag containing the exter
acestep/ui/gradio/interfaces/audio_player_preferences.py:19
↓ 6 callersFunctionget_debug_mode
Fetch a placeholder debug mode by name.
acestep/debug_utils.py:147
↓ 6 callersFunctionget_lm_model_size
Extract LM model size from model path. Args: model_path: Model path string (e.g., "acestep-5Hz-lm-0.6B", "acestep-5Hz-lm-0.6B-v4-fix
acestep/gpu_config.py:894
↓ 6 callersMethodget_samples_dataframe_data
Get samples data in a format suitable for Gradio DataFrame.
acestep/training/dataset_builder_modules/dataframe.py:7
↓ 6 callersMethodint
Get parameter as integer with fallback default.
acestep/api/http/release_task_param_parser.py:149
↓ 6 callersFunctionload_cached_external_models
Return cached model identifiers when the entry is present and still fresh.
acestep/text_tasks/external_lm_model_cache.py:25
↓ 6 callersFunctionload_decoder_for_training
Load the full ``AceStepConditionGenerationModel`` for training. The model is loaded in eval mode with gradients disabled on all parameters (t
acestep/training_v2/model_loader.py:118
↓ 6 callersFunctionload_module_ast
Return the parsed AST module for the provided source path.
acestep/ui/gradio/events/wiring/ast_test_utils.py:7
↓ 6 callersMethodparse_lm_output
Parse LM output to extract metadata and audio codes. Expected format: <think> bpm: 73 caption: A calm piano
acestep/llm_inference.py:2792
↓ 6 callersFunctionpmi_to_normalized_score
Convert PMI score to normalized [0, 1] range using sigmoid function. score = sigmoid(PMI / scale) = 1 / (1 + exp(-PMI / scale)) Args:
acestep/core/scoring/lm_score.py:44
↓ 6 callersFunctionprint_section
Print a section header.
scripts/check_gpu.py:25
↓ 6 callersFunctionregister_audio_route
Register the ``GET /v1/audio`` route.
acestep/api/http/audio_route.py:11
↓ 6 callersFunctionrequire_message_pair
Return the expected system and user messages for provider request building.
acestep/text_tasks/external_ai_protocols.py:44
↓ 6 callersMethodreset
(self)
acestep/third_parts/nano-vllm/nanovllm/engine/block_manager.py:29
↓ 6 callersFunctionsave_cached_external_models
Persist discovered model identifiers for a provider configuration.
acestep/text_tasks/external_lm_model_cache.py:48
↓ 6 callersFunctionset_global_gpu_config
Set the global GPU configuration.
acestep/gpu_config.py:1578
↓ 6 callersFunctionset_safe_root
Override the safe root directory. Args: root: New safe root (will be normalised and symlink-resolved).
acestep/training/path_safety.py:38
↓ 6 callersFunctionset_use_lora
Toggle LoRA/LoKr usage for inference.
acestep/core/generation/handler/lora/controls.py:35
↓ 6 callersMethodtiled_decode
Decode latents using tiling to reduce VRAM usage. Uses overlap-discard chunking to avoid boundary artifacts while constraining peak d
acestep/core/generation/handler/vae_decode.py:16
↓ 6 callersMethodto
Match torch module ``to`` chaining.
acestep/core/generation/handler/lora/lifecycle_test.py:29
↓ 6 callersMethodto_dict
Convert to dictionary for PEFT config.
acestep/training/configs.py:30
↓ 6 callersMethodtrain_dataloader
(self)
acestep/training/data_module.py:518
↓ 6 callersFunctionupdate_local_cache
Persist terminal job result payload to local cache. Args: local_cache: Cache object exposing `set(key, value, ex=...)`. store: Jo
acestep/api/jobs/local_cache_updates.py:22
↓ 5 callersMethod__init__
( self, input_size: int, output_size: int, bias: bool = False, tp_dim:
acestep/third_parts/nano-vllm/nanovllm/layers/linear.py:16
↓ 5 callersMethod__init__
( self, hidden_size: int, intermediate_size: int, num_attention_heads: int,
acestep/models/mlx/dit_model.py:259
↓ 5 callersFunction_build
Build request model from parsed values and explicit overrides.
acestep/api/http/release_task_request_parser.py:75
↓ 5 callersMethod_build_args
Build a complete positional arg list for capture_current_params. All values default to None; supply keyword overrides for specific fields.
acestep/ui/gradio/events/results/batch_queue_test.py:216
↓ 5 callersMethod_build_client
Build app/client pair with deterministic route dependencies.
acestep/api/train_api_service_http_test.py:39
↓ 5 callersMethod_build_generate_music_success_payload
Capture payload-builder args and return deterministic success payload.
acestep/core/generation/handler/generate_music_test.py:156
↓ 5 callersMethod_build_state_transitions
Build state transition map based on user-provided metadata.
acestep/constrained_logits_processor.py:309
↓ 5 callersMethod_build_unconditional_prompt
Build unconditional prompt for CFG based on generation phase and batch mode
acestep/llm_inference.py:374
↓ 5 callersMethod_cleanup_torch_distributed_state
Destroy default torch distributed process group when already initialized.
acestep/llm_inference.py:157
↓ 5 callersFunction_collect_model_inventory
Collect DiT/LM inventory for status endpoints. Inputs: app state plus project/model helper callables. Returns: wrapped-internal inventory pay
acestep/api/http/model_service_routes.py:49
↓ 5 callersFunction_default_instruction_for_task
(task_type: str, tracks: Optional[List[str]] = None)
cli.py:497
↓ 5 callersMethod_device_of
Return module device string when available.
acestep/api/train_api_runtime.py:48
↓ 5 callersMethod_device_type
Normalize the host device value to a backend type string.
acestep/core/generation/handler/init_service_catalog.py:13
↓ 5 callersFunction_env_bool
Parse boolean from environment variable.
openrouter/openrouter_api_server.py:240
↓ 5 callersFunction_format_vtt_timestamp
Format seconds to VTT timestamp ``HH:MM:SS.mmm``.
acestep/ui/gradio/events/results/lrc_utils.py:121
↓ 5 callersMethod_get_endpoint
( self, endpoint_type: str = "generate", model_name: Optional[str] = None )
scripts/lora_data_prepare/gemini_caption.py:50
↓ 5 callersFunction_get_vram_info_str
Get current VRAM usage string for logging.
profile_inference.py:721
↓ 5 callersMethod_llm_handler
(model_path, restorable=True)
acestep/ui/gradio/events/results/scoring_test.py:182
↓ 5 callersMethod_load_pytorch_model
Load PyTorch model from path and return (success, status_message)
acestep/llm_inference.py:401
↓ 5 callersMethod_lyric_score_error
Build the standard lyric-score error payload.
acestep/core/generation/handler/lyric_alignment_common.py:118
↓ 5 callersFunction_make_handler
Return a minimal LLMHandler without any loaded models.
acestep/llm_inference_cfg_fixes_test.py:32
↓ 5 callersMethod_make_tensors
(self, B=1, C=2, samples=4800)
acestep/core/generation/handler/repaint_waveform_splice_test.py:56
↓ 5 callersFunction_make_trainer
Build a minimal trainer mock with the given decoder embedded.
acestep/training_v2/trainer_helpers_test.py:43
↓ 5 callersMethod_parse_metas
Parse and normalize metadata values with safe fallbacks.
acestep/core/generation/handler/metadata_utils.py:41
↓ 5 callersFunction_require_initialized_handler
Return initialized handler or raise HTTP 500 when unavailable.
acestep/api/http/lora_routes.py:36
↓ 5 callersFunction_resolve
Normalise and resolve symlinks in *path*. Uses ``os.path.realpath`` so that symlinked prefixes are resolved to their canonical form before co
acestep/training/path_safety.py:23
↓ 5 callersFunction_run_single_tier_test
Run a single tier test with the given configuration. Args: sim_gb: Simulated VRAM in GB gpu_config: GPU configuration for th
profile_inference.py:730
↓ 5 callersMethod_run_with_mock
Invoke ``get_effective_free_vram_gb`` with ``torch`` injected via sys.modules. The function does ``import torch`` locally, so we inject our m
acestep/gpu_config_effective_free_vram_test.py:51
↓ 5 callersFunction_safe_join
Safely join user path to base root, preventing directory traversal. Uses ``os.path.normpath`` + ``startswith`` — the pattern CodeQL recognise
acestep/ui/gradio/events/training/training_utils.py:48
↓ 5 callersFunction_sanitize_name
Sanitize a preset name to be a safe filename stem. Strips whitespace, replaces spaces with underscores, removes unsafe characters, rejects pa
acestep/training_v2/ui/presets.py:142
↓ 5 callersMethod_setup_constrained_processor
Setup and configure constrained processor for generation
acestep/llm_inference.py:316
↓ 5 callersMethod_vram_preflight_check
Check free VRAM headroom before attempting service_generate. Model weights are already resident in GPU memory at this point. We only
acestep/core/generation/handler/generate_music.py:105
↓ 5 callersFunctionapg_forward
( pred_cond: torch.Tensor, # [B, C, T] pred_uncond: torch.Tensor, # [B, C, T] guidance_scale: fl
acestep/models/common/apg_guidance.py:33
↓ 5 callersFunctionapply_repaint_step_injection
Replace non-repaint regions of xt with noised source latents. At each diffusion step the non-repaint regions are forced back to the appropria
acestep/core/generation/handler/repaint_step_injection.py:6
↓ 5 callersFunctionapply_velocity_clamp
Per-trajectory velocity-norm clamp. No-op when ``norm_threshold <= 0``.
acestep/models/common/flow_edit_helpers.py:72
↓ 5 callersFunctionbuild_generate_music_request
Build request-model payload for ``/release_task``. Args: parser: Request parser exposing ``str``, ``bool``, ``int``, ``float``, and ``get
acestep/api/http/release_task_request_builder.py:8
↓ 5 callersFunctionbuild_timestep_schedule
Return the closed timestep tensor of length ``infer_steps + 1``. Mirrors the base-variant logic: ``linspace(1, 0, n+1)`` optionally transform
acestep/models/common/flow_edit_helpers.py:16
↓ 5 callersFunctioncalculate_reward_score
Reward Model Calculator: Computes a final reward based on user priorities. Priority Logic: 1. Caption (Highest): The overall vibe/st
acestep/core/scoring/lm_score.py:377
← previousnext →201–300 of 4,027, ranked by callers