SShortSingh.
Back to feed

Renting an RTX 4090 for ComfyUI: VRAM limits for SDXL and FLUX

0
·6 views

A single 24 GB RTX 4090 handles SDXL comfortably and runs FLUX.1 well when the transformer and T5 text encoder use fp8 precision. Running full fp16 FLUX on this card requires offloading, which slows generation, so a 48 GB card is the alternative for those who want fp16 without workarounds. The article estimates memory from parameter counts times bytes per parameter, suggesting keeping total weights under roughly 70–75% of VRAM to avoid out-of-memory errors at 1024px. It also walks through two setup routes, a ComfyUI template or a raw SSH instance, including a secure localhost tunnel. The guide closes with advice on estimating rental cost from provider billing rules.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Google Play closed test: what happens if testers drop below 12

Google requires at least 12 testers opted in continuously for the 14 days before a developer applies for production access, and counts each tester's run separately. A tester who opts out ends only their own run, and anyone who returns later must restart the 14-day count from zero. The guidance notes that uninstalling an app does not by itself remove a tester from the opt-in, though Google also cites low tester engagement as a concern. Developers are advised to identify who left, recruit replacements promptly, and release a build to keep testers engaged. A 14-day calculator is referenced to help work out the earliest eligible apply date.

0
ProgrammingDEV Community ·

Solo developer's Android clipboard manager shows how privacy rules reshaped its design

A solo developer building the clipboard manager ClipFox found that Android's privacy changes reshaped the app more than any other part of it. Since Android 10, background services can no longer read clipboard contents, so the app now reads the clipboard only when it gains input focus, such as when the user opens it or its floating bubble. Reading too early can return null, so the developer reads on focus instead of at startup. Since Android 12, the system displays a notice whenever an app reads another app's clipboard data, which pushed the design toward reading once per open rather than continuously. On Android 13 and later, apps can detect a sensitive flag set by password managers, and ClipFox ignores such text by default, though not every app sets that flag.

0
ProgrammingDEV Community ·

nginx -t can pass while nginx keeps serving the old config; how to deploy safely

A common deploy pattern runs nginx -t and then nginx -s reload, assuming a zero exit status means the new config is live. That assumption can be wrong. The -t check parses configuration without binding listening ports, so port conflicts only surface when the master process starts listening. The reload command is also asynchronous: it only signals the master and exits, and if the master fails to apply the new config, it silently keeps the old one. The article proposes versioned config directories, an atomic symlink swap, a confirmed reload, and a fallback for when nginx fails to start.

0
ProgrammingDEV Community ·

XXE Flaws Stem From Parser Settings; Disabling DTD Processing Is the Fix

The article explains that XML External Entity (XXE) injection can affect an application's XML import feature when the parser runs on default settings. It describes a safe lab-only probe that checks whether the parser resolves an external entity, without reading sensitive data. The author argues that string-based filtering of uploads is unreliable, and that the real remedy is configuring the parser itself, such as disabling DTD processing or using hardened libraries like defusedxml. The piece also notes that many file formats, including SVG, DOCX and XLSX, rely on XML internally and can reach parsers unexpectedly.