ComfyUI-SmolLM3

ComfyUI-SmolLM3
★ 5

轻量语言模型Hugging Face文本生成ComfyUI 集成
在 ComfyUI 中无缝集成 Hugging Face 的 SmolLM3,支持 base/instruct 模型、多精度(fp16/fp32/bf16)与种子复现,便于文本生成与对话创作。
💡 在 ComfyUI 中快速调用 SmolLM3 进行文本生成与对话。
🍴 1 Forks💻 Python🔄 2025-07-10
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/8f9eee5e2cdb
📄 README

🪄 ComfyUI-SmolLM3 ✨

*”Small models, big dreams, infinite possibilities”* 🌟

Welcome to ComfyUI-SmolLM3, where we bring the magic of Hugging Face’s SmolLM3 language models into your ComfyUI workflow! Whether you’re crafting stories, generating ideas, or building AI-powered creativity tools, this node pack makes it delightfully simple.

Created with 💜 by XmYx – bringing a touch of magic to the AI animation and VFX community!

✨ Features

  • 🎯 Simple & Intuitive – Just load and generate! No complex setups required
  • 🚀 Dual Model Support – Choose between base and instruct models
  • 🎨 Flexible Generation – From simple completions to full chat conversations
  • Optimized Performance – Support for fp16, fp32, and bf16 precision
  • 🎲 Reproducible Results – Seed support for consistent outputs
  • 🌈 ComfyUI Native – Seamlessly integrates with your existing workflows
  • 🎬 What’s Inside

    🔮 Three Magical Nodes

  • SmolLM3 Model Loader – Your gateway to loading the models
  • SmolLM3 Sampler (Chat) – Full-featured chat generation with all the bells and whistles
  • SmolLM3 Simple Generate – Quick and easy text completion
  • 🚀 Installation

  • Navigate to your ComfyUI custom nodes folder:
  • “`bash

    cd ComfyUI/custom_nodes/

    “`

  • Clone this repository:
  • “`bash

    git clone https://github.com/XmYx/ComfyUI-SmolLM3.git

    “`

  • Install the required dependencies:
  • “`bash

    cd ComfyUI-SmolLM3

    pip install -r requirements.txt

    “`

  • Restart ComfyUI and let the magic begin! ✨
  • 📖 Usage

    Basic Workflow

  • Add a SmolLM3 Model Loader node
  • Select your preferred model:
  • HuggingFaceTB/SmolLM3-3B-Base – For general text generation
  • HuggingFaceTB/SmolLM3-3B – For chat and instruction following
  • Connect to either:
  • SmolLM3 Sampler for chat-style interactions
  • SmolLM3 Simple Generate for basic completions
  • Set your prompt and parameters
  • Generate! 🎉
  • 🎯 Pro Tips

  • 🌡️ Use temperature = 0.6 and top_p = 0.95 for best results (as recommended by the SmolLM3 team)
  • 🎲 Set a seed for reproducible outputs
  • 💬 Enable chat template for conversational AI
  • 🖥️ Choose CPU mode if you’re running on limited GPU memory
  • 🌟 Example Prompts

    "Give me a brief explanation of gravity in simple terms."
    "Write a haiku about artificial intelligence."
    "What are three creative uses for a paperclip?"
    "Continue this story: Once upon a time in a digital realm..."

    🤝 Contributing

    Found a bug? Have an idea? Want to add more sparkle? ✨

    Contributions are warmly welcomed! Feel free to:

  • 🐛 Report issues
  • 💡 Suggest features
  • 🔧 Submit pull requests
  • ⭐ Star the repo if you find it useful!
  • 🎨 About the Creator

    This node pack is crafted with love by XmYx (Miklos Nagy), a human, artist and ML enthusiast who believes in making AI tools accessible and fun for creators. Check out my other projects:

  • 🎬 Deforum ComfyUI Nodes
  • 🎯 magixworld
  • 📜 License

    This project is licensed under the MIT License – because sharing is caring! 💝

    🙏 Acknowledgments

  • The amazing Hugging Face team for SmolLM3
  • The ComfyUI community for the incredible platform
  • You, for being part of this creative journey! 🌟

  • Made with 💜 and a sprinkle of ✨ by the AI creative community

    “In a world of large models, sometimes the smallest ones cast the biggest spells” 🪄