ComfyUI > Nodes > ComfyUI-FLOAT_Optimized > Load FLOAT FMT Model (VA)

ComfyUI Node: Load FLOAT FMT Model (VA)

Class Name

LoadFMTModel

Category
FLOAT/Very Advanced/Loaders
Author
set-soft (Account age: 3450days)
Extension
ComfyUI-FLOAT_Optimized
Latest Updated
2026-03-20
Github Stars
0.03K

How to Install ComfyUI-FLOAT_Optimized

Install this extension via the ComfyUI Manager by searching for ComfyUI-FLOAT_Optimized
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-FLOAT_Optimized in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Load FLOAT FMT Model (VA) Description

Loads FMT weights, infers architecture, validates parameters, and integrates pre-trained models.

Load FLOAT FMT Model (VA):

The LoadFMTModel node is designed to load the Flow Matching Transformer (FMT) weights, a crucial component in AI-driven creative processes. This node automatically infers the internal architecture of the FMT, such as dimensions and depth, while allowing you to specify parameters that define the temporal structure and attention mechanisms. By validating these parameters against the loaded checkpoint, it ensures that the model is configured correctly for optimal performance. This node is particularly beneficial for those working with temporal data, as it provides a streamlined way to integrate pre-trained FMT models into your workflow, enhancing the efficiency and effectiveness of your AI art projects.

Load FLOAT FMT Model (VA) Input Parameters:

fmt_file

The fmt_file parameter specifies the path to the .safetensors file containing the pre-trained weights for the Flow Matching Transformer (FMT). This file is essential as it provides the model with the necessary data to perform its tasks. Ensure that the file path is correct to avoid loading errors.

target_device

The target_device parameter determines the device on which the FMT will run during inference. Options typically include CPU or CUDA, with the default being the most suitable device available. Selecting the appropriate device can significantly impact the model's performance and speed.

cudnn_benchmark

The cudnn_benchmark parameter is a boolean option that enables or disables cuDNN benchmarking for the model's operations. By default, it is set to False. Enabling this option can optimize performance by selecting the best algorithms for the hardware, but it may increase the initial setup time.

dim_e

The dim_e parameter defines the dimension of the emotion latent space, corresponding to the number of emotion classes from the loaded emotion model. It has a default value based on the base options, with a minimum of 1 and a maximum of 100. This parameter is crucial for ensuring that the model's emotional representation aligns with the intended output.

num_heads

The num_heads parameter specifies the number of attention heads in the FMT, an architectural hyperparameter that must match the loaded weights. It ranges from 1 to 32, with a default value provided by the base options. The number of heads affects the model's ability to focus on different parts of the input simultaneously, influencing its performance.

attention_window

The attention_window parameter sets the size of the local window for the attention mask, with a default value from the base options and a range from 1 to 20. This parameter controls the scope of the model's attention, impacting how it processes temporal information.

num_prev_frames

The num_prev_frames parameter indicates the number of previous frames to consider in the temporal structure. This parameter is vital for models dealing with sequential data, as it determines the context available for each prediction.

fps

The fps parameter stands for frames per second and defines the temporal resolution of the input data. It is crucial for synchronizing the model's processing with the input data's frame rate, ensuring accurate temporal predictions.

wav2vec_sec

The wav2vec_sec parameter specifies the duration in seconds for which the wav2vec model processes audio data. This parameter is important for aligning audio and visual data, particularly in applications involving multimedia content.

Load FLOAT FMT Model (VA) Output Parameters:

fmt_model

The fmt_model output parameter represents the instantiated Flow Matching Transformer model, configured with the loaded weights and specified parameters. This model is ready for inference and can be used in various AI-driven creative tasks, providing enhanced capabilities for processing temporal data.

Load FLOAT FMT Model (VA) Usage Tips:

  • Ensure that the fmt_file path is correct and points to a valid .safetensors file to avoid loading errors.
  • Select the appropriate target_device based on your hardware capabilities to optimize performance and speed.
  • Consider enabling cudnn_benchmark if you are running the model on CUDA, as it can improve performance by selecting the best algorithms for your hardware.

Load FLOAT FMT Model (VA) Common Errors and Solutions:

"Saved 'pos_embed' hidden dim conflicts with inferred/set opt.dim_h."

  • Explanation: This error occurs when the hidden dimension of the pos_embed in the saved weights does not match the expected dimension.
  • Solution: Verify that the dim_h parameter is correctly set to match the saved weights' configuration.

"Saved 'pos_embed' is for a different number of total frames."

  • Explanation: This warning indicates a mismatch between the number of frames in the saved pos_embed and the current input options.
  • Solution: Adjust the fps, wav2vec_sec, and num_prev_frames parameters to align with the saved weights' configuration.

"FMT: Missing keys after load (excluding intentionally skipped)."

  • Explanation: This warning suggests that some keys expected in the model are missing from the loaded weights.
  • Solution: Ensure that the fmt_file contains all necessary weights and that no critical keys are omitted during loading.

Load FLOAT FMT Model (VA) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-FLOAT_Optimized
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.