ComfyUI Node

Load Float

Expose a float value as a graph input

By heshengtao·Created 2 years ago·Updated 11 days ago· 2,328
Load Float
    • float
    text0.00

    There's not much to this one, and that's the point. Load Float takes a float value you set on the node and hands it back out as a FLOAT wire - a labeled, connectable number, instead of a value baked into some other node's widget where you can't easily reuse or reference it.

    It's part of a small family of "Load *" nodes in comfyui_LLM_party (Load File, Load Wikipedia, this one) that share a naming pattern: each turns a piece of local input - a file, a search query, a number - into something you can wire around the graph like any other data.

    How it works

    Set the value on the node's widget; it comes out the other side as a FLOAT, unchanged. No math, no scaling, no validation beyond ComfyUI's normal numeric input handling.

    The inputs and outputs that matter

    • text - despite the name (a leftover from the pack's shared widget conventions), this is a FLOAT input, defaulting to 0. Set it to whatever number you need.

    Output: float (FLOAT) - wire it into anything downstream expecting a numeric input: a temperature or sampling parameter on an LLM node, a threshold value, a scoring weight, or any other place in the graph a float needs to travel as a proper connection rather than a hardcoded default.

    How to install it

    Search comfyui_LLM_party in ComfyUI Manager and install, then restart. Manual route:

    cd ComfyUI/custom_nodes
    git clone https://github.com/heshengtao/comfyui_LLM_party.git
    

    Run pip install -r requirements.txt from inside the pack's own folder using ComfyUI's Python, then restart ComfyUI. This node has zero dependencies of its own - it's about as simple as a node gets - but it ships as part of a large pack whose combined requirements.txt covers everything from LLM clients to OCR and TTS libraries, so the install step is heavier than this one node alone would suggest. If it conflicts with an existing package, the README's requirements_fixed.txt is the pinned-version fallback.

    Common issues & troubleshooting

    Not sure why you'd use this instead of just typing a number into a widget elsewhere. The value there is reuse and visibility - a Load Float node gives you a labeled, connectable number that multiple downstream nodes can share, and that you can see and adjust in one place rather than hunting through several nodes' widgets for the same value repeated.

    Value doesn't seem to update. Since this is a plain widget-to-output node with no caching logic beyond ComfyUI's own, if a downstream node looks stale after you change the value, check that ComfyUI actually re-ran that branch of the graph rather than reusing a cached result from before your edit.

    You need an integer, not a float. This node is specifically FLOAT-typed; if a downstream input expects an INT, you'll need a type conversion somewhere in between, since ComfyUI doesn't silently coerce between the two.

    Category大模型派对(llm_party)/文本(text)

    Inputs (1)

    NameTypeDefaultDescription
    textFLOAT0.00

    Outputs (1)

    NameTypeDescription
    floatFLOAT