Frequently Asked Questions

Answers pulled from our published articles - optimized for search engines and AI answer systems.

286 question(s) from 79 article(s)

Astral ty is written in Rust with fine-grained incremental analysis, delivering 10x to 100x speedups over mypy and Pyright. In production testing across millions of lines of Python at OpenAI, ty achieved a median 24x speedup and 73% lower peak memory usage.

Read full article →

Run uvx ty check --update-baseline to record existing diagnostics in a JSON baseline file so CI only blocks new type errors, or use ty check --add-ignore. Replace # type: ignore[code] rules with # ty: ignore[rule] or configure rule severities under [tool.ty.rules] in pyproject.toml.

Read full article →

Yes. The ty server subcommand provides full LSP capabilities including inline pull diagnostics, go-to-definition, find references, auto-import completions, and inlay hints with official integrations for VS Code, Cursor, Neovim 0.11+, Zed, PyCharm, and Emacs.

Read full article →

VACUUM FULL holds an ACCESS EXCLUSIVE lock for the entire table rewrite, blocking all reads and writes. REPACK (CONCURRENTLY) uses a SHARE UPDATE EXCLUSIVE lock and logical decoding to capture concurrent changes, holding an ACCESS EXCLUSIVE lock only briefly during the final file swap.

Read full article →

Add pg_plan_advice,pg_stash_advice to shared_preload_libraries in postgresql.conf, restart the cluster, run CREATE EXTENSION pg_stash_advice, stash advice by query ID with pg_set_stashed_advice, and set pg_stash_advice.stash_name.

Read full article →

Configure global-min-publish-age under the [registry] table in .cargo/config.toml (for example, global-min-publish-age = "3 days"), not in Cargo.toml. Override it for an urgent crate update by prefixing cargo update with CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE=allow.

Read full article →

DropGuard implements Deref and DerefMut so you can call methods on the inner wrapped value seamlessly. Making dismiss an associated function (DropGuard::dismiss(guard)) prevents naming collisions if the inner type also defines a dismiss method.

Read full article →

Starting in Ollama v0.40.17, ollama launch claude supports Claude Code's deferred tool loading so MCP tool definitions load on demand instead of flooding the initial prompt. The release also preserves unmodeled JSON schema keywords in tool definitions, while v0.40.18 and v0.40.19 update the underlying llama.cpp and llama-server backends.

Read full article →

By default, Ollama assigns only a 4k context window on GPUs with under 24 GiB of VRAM. Coding agents such as Claude Code and OpenCode require at least 64,000 tokens. Set Environment="OLLAMA_CONTEXT_LENGTH=64000" in your systemd override and verify the allocation with ollama ps.

Read full article →

Pass both --model and --yes, followed by a double dash separator and any agent flags: ollama launch claude --model qwen3.5 --yes -- -p "summarize this repository". The --yes flag skips interactive prompts and pulls the model if it is not already stored locally.

Read full article →

No. Running ollama launch opencode starts OpenCode with an inline provider configuration for the selected model while preserving ~/.config/opencode/opencode.json. If you want Ollama to write configuration without starting a session, run ollama launch opencode --config.

Read full article →

Docker Sandboxes (sbx) versions 0.43.0 through 0.54.x are affected by CVE-2026-136998 (CVSS 8.2). Upgrading to Docker Sandboxes v0.55.0 or newer (released November 30, 2026) resolves the vulnerability by enforcing strict destination domain validation for kit credential injection.

Read full article →

First migrate any legacy DOCKER_SANDBOXES_* environment variables using sbx settings set <key> <value>. Then run sudo apt-get update && sudo apt-get install --only-upgrade docker-sbx and confirm the patched release with sbx version.

Read full article →

Docker Sandboxes v0.55.0 stops reading 11 legacy configuration environment variables, including kit signature and SSH workspace overrides. Move them into persistent configuration via sbx settings set <key> <value>, and run sbx daemon restart if you updated SSH settings.

Read full article →

Starting in v0.55.0, external endpoints must use HTTPS to receive host-managed API keys, OAuth tokens, registry credentials, or custom secrets. Plain HTTP requests receive no credential substitution, and managed OAuth exchanges over HTTP are rejected with HTTP 403.

Read full article →

Run python -m profiling.sampling attach --flamegraph -d 30 -o profile.html <PID> using Python 3.15. If Ubuntu's Yama ptrace_scope=1 blocks memory reads for non-child processes, grant CAP_SYS_PTRACE to the python3.15 binary or temporarily set sudo sysctl kernel.yama.ptrace_scope=0.

Read full article →

No. The profiling.sampling tool requires matching Python minor versions (for example, Python 3.15 profiling Python 3.15) and matching build types, so a standard GIL build cannot attach to a free-threaded build or vice versa.

Read full article →

PEP 810 restricts the lazy soft keyword to module top-level scope and prohibits lazy imports inside functions, classes, or try/except blocks because an ImportError only fires later at first attribute access. Wrap the first usage site or use standard function-local imports for optional dependencies.

Read full article →

Define a module-level __lazy_modules__ list or set containing fully qualified module name strings before normal import statements. Python 3.15 treats those imports lazily, while Python 3.14 and earlier safely ignore the list and import eagerly.

Read full article →

vLLM v0.34.0 completely removed Model Runner V1 (PR #63373), making Model Runner V2 (MRV2) the sole GPU execution path. Leaving VLLM_USE_V2_MODEL_RUNNER=0 in Docker, Kubernetes, or systemd environment files triggers an immediate startup failure until you delete the variable.

Read full article →

Yes, on dedicated single-tenant GPUs you should omit --gpu-memory-utilization so extensible KV cache sizes memory from actual post-warmup free VRAM with a 1.0 default. Keep an explicit value such as 0.85 only when sharing a GPU with other processes or disabling extensible KV cache.

Read full article →

Pass --block-size 16 to restore the legacy PagedAttention block size, or add --no-enable-extensible-kv-cache (or --gpu-memory-utilization 0.9) if high-concurrency time-per-output-token latency increases on your workload.

Read full article →

vLLM v0.34.0 requires Python 3.11 or newer, huggingface_hub >= 2.0.0, tokenizers >= 0.23.3, and timm >= 1.0.30. For AMD GPUs, ROCm 7.2 artifacts were dropped, so Linux deployments must migrate to ROCm 10.0 wheels or container images.

Read full article →

Unquantized BF16 FLUX.2 dev requires roughly 90 GB of VRAM, while the Comfy-Org FP8 mixed diffusion model paired with the FP8 Mistral 3 Small text encoder runs smoothly on 24 GB to 32 GB NVIDIA GPUs such as the RTX 3090, RTX 4090, or RTX 5090 alongside 32 GB to 64 GB of system RAM.

Read full article →

Recent ComfyUI versions enable DynamicVRAM by default, making --lowvram a no-op unless you disable DynamicVRAM. Instead, export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True, pass --reserve-vram 1.5 for desktop headroom, and use VAE Decode (Tiled) for high-resolution renders.

Read full article →

Official FLUX.2 ComfyUI templates often ship with the ReferenceLatent and reference image loader nodes bypassed by default. Select those nodes and press Ctrl+B to unbypass them so encoded reference latents enter the conditioning chain.

Read full article →

No. The default workflow execution policy blocking pull_request_target applies only to public repositories on GitHub Free, GitHub Team, and GitHub Enterprise Cloud. Private repositories, internal repositories, and GitHub Enterprise Server are unaffected.

Read full article →

Run untrusted builds and unit tests under the standard pull_request trigger with permissions set to empty, upload numeric or JSON results as an artifact, and use a separate workflow_run workflow to post PR comments after validating the artifact strictly as data.

Read full article →

LM Studio is the full desktop application, llmster is the standalone GUI-free headless daemon introduced in LM Studio 0.4.0 for Linux servers and cloud GPUs, and lms is the MIT-licensed CLI used to download, load, inspect, and serve models from the terminal.

Read full article →

No. Binding to 0.0.0.0 without firewall rules or authentication exposes your inference server and any enabled integrations to the network. Keep the server on 127.0.0.1 behind an SSH tunnel, UFW subnet rule, or authenticated TLS reverse proxy.

Read full article →

No. Server-side tool policies only restrict what the MCP application chooses to allow. Linux permissions, dedicated service accounts, and systemd sandboxing enforce hard kernel boundaries even if the server has a bug or prompt injection flaw.

Read full article →

Yes. Adding PrivateNetwork=yes in the systemd unit file isolates the server inside a private network namespace with only loopback access, preventing compromised tools from exfiltrating local files over the internet.

Read full article →

Most CLI setups keep working, but any script passing -dt or --defrag-thold will fail immediately because that flag was removed in v1.0.0. Also, exposing tools or MCP on a non-loopback host without an API key now requires --allow-unauthenticated-tools.

Read full article →

FP8 KV caching (-ctk f8_e4m3 -ctv f8_e4m3) cuts raw KV cache memory roughly in half compared to FP16 (for example, from about 8 GiB down to 4 GiB), but maximum context still depends on the model's native context limit and GPU backend support.

Read full article →

Choose Ollama when you want single-command model pulls, automatic VRAM management, and a drop-in local daemon for coding assistants. Choose llama.cpp v1.0 when you need explicit FP8 KV cache tuning, MoE expert caching, Prometheus metrics, or a minimal C/C++ deployment.

Read full article →

Pin the exact same GGUF quantization file, identical context length (num_ctx vs -c), and identical prompt set on one Linux host. Measure prompt processing (TTFT) and token generation separately using llama-bench and ollama run --verbose.

Read full article →

You cannot license what you do not own, so first confirm the model's terms permit claiming copyright on outputs. Then apply an explicit OSI-approved license (for example Apache-2.0 or MIT) with SPDX headers, and document the AI tool and prompt context in the commit message.

Read full article →

An SPDX identifier is a standardized short tag such as SPDX-License-Identifier: MIT that declares a file's license. For AI-generated code it removes ambiguity about terms, which is essential because the model output itself carries no license metadata.

Read full article →

Yes. The reuse tool can check every tracked file for valid SPDX headers and fail the commit if any file lacks one. Combined with git hooks or the pre-commit framework, this blocks unlicensed AI code at the developer's machine before it is pushed.

Read full article →

It reduces risk by making your licensing intent explicit and auditable. The remaining risk is whether the model output is itself derivative of licensed training data, which is why you should review the model's terms and keep provenance notes in commits.

Read full article →

Use nvidia-smi --query-gpu=power.draw with a polling loop for NVIDIA GPUs, or read /sys/class/powercap/intel-rapl for CPU package energy if permissions allow. For rootless GPU telemetry, nvidia-smi and AMD rocm-smi work without elevated privileges.

Read full article →

Most BPE tokenizers are trained predominantly on English corpora, so non-English characters and subwords are split into smaller byte-level units. This increases token count per sentence, raising compute, memory, and energy per semantic unit.

Read full article →

You cannot measure provider energy directly, but you can measure local wall-clock time, token counts, and estimated energy using published tokens-per-joule figures. For rigorous comparisons, run open-weight models locally with RAPL and nvidia-smi telemetry.

Read full article →

Q4_K_M is the practical fit for 24 GB cards. It keeps the model resident with room for a 4k to 8k context, while Q5_K_M and Q8_0 exceed the budget and spill to CPU, which drops tokens/sec sharply.

Read full article →

Yes. Download the GGUF from the Unsloth Hugging Face repo and point a Modelfile FROM line at the local file, then run ollama create. Ollama loads the GGUF as-is, so the Dynamic v3.1 quantization is preserved.

Read full article →

Run ollama run with --verbose and check the eval rate, then sample nvidia-smi during generation. If GPU memory stays flat while tokens/sec is low, part of the model was offloaded to CPU and you should move to a smaller quantization.

Read full article →

Only when VRAM is not a constraint and the task is sensitive to numeric or code precision. On general prompts the quality gap is narrow, so Q5_K_M usually gives a better balance of speed and accuracy.

Read full article →

Yes. Use a local VM or container running the same Ubuntu 24.04 and Apache version, then run a controlled proof-of-concept script that attempts the exploit and checks for a specific marker file.

Read full article →

Notion disclosed a security incident involving a third-party AI vendor, reported as Fireworks AI. Data sent to that vendor for AI features may have been exposed. Notion published guidance for affected customers, and the incident highlights the risk of delegating AI processing to external providers.

Read full article →

Search egress logs and DNS query logs for Fireworks AI domains, then grep application logs for the vendor hostname. Use tools like journalctl, tcpdump captures, or your firewall's connection logs to confirm which hosts initiated outbound connections.

Read full article →

Rotate any API keys, bearer tokens, or service account credentials that were shared with the vendor. Also rotate secrets stored in environment variables or config files on hosts that communicated with the vendor, and revoke old keys after confirming the new ones work.

Read full article →

Inventory all AI vendors, enforce least-privilege API scopes, log all outbound traffic to vendor endpoints, and require data processing agreements. Prefer vendors that support customer-managed keys and regional data residency, and review their incident disclosure history.

Read full article →

Use a dedicated embedding model such as nomic-embed-text for vector generation and a chat model such as llama3.1 or mistral for answer synthesis. Pull both with ollama pull before running the pipeline.

Read full article →

Initialize the Chroma client with a PersistentClient pointing at a local directory, for example chromadb.PersistentClient(path="./chroma_db"). The collection and its embeddings survive process restarts and you can skip re-ingestion.

Read full article →

There is no universal value. Benchmark 256, 512, and 1024 token chunks on your own corpus, measuring recall of known answer passages. Smaller chunks improve precision but fragment context; larger chunks preserve context but dilute similarity scores.

Read full article →

Yes. Once Ollama models are pulled and Python dependencies are installed, the pipeline runs offline. ChromaDB is embedded and Ollama serves models locally, so no external requests are made during ingestion or querying.

Read full article →

Not natively. Gleam compiles to Erlang or JavaScript. For CLI distribution you typically bundle the BEAM runtime or use an escript, which increases size and cold-start time compared with Rust's static musl builds.

Read full article →

Rust has mature crates like reqwest and hyper with fine-grained TLS and streaming control. Gleam relies on Erlang's httpc or community packages like gleam_http, which are adequate but less ergonomic for streaming token responses.

Read full article →

It adds startup overhead and a larger distribution footprint. For short-lived CLI invocations this matters; for long-running data pipelines the concurrency and fault tolerance benefits can outweigh it.

Read full article →

Gleam projects typically compile in seconds due to the small language surface and Erlang compiler reuse. Rust projects with async HTTP and tokenizer dependencies often take minutes on first build, though incremental builds narrow the gap.

Read full article →

No. You can change the hostname with hostnamectl and update /etc/hosts and DNS records. Keep the old names as aliases during a transition period so existing automation and SSH configs continue to work.

Read full article →

Add the new campus names as inventory aliases or CNAMEs, then run a dry-run playbook against both old and new names. Only remove the old names after all playbooks, monitoring checks, and backup jobs resolve successfully.

Read full article →

Use campus-style names in public and user-facing documentation, but keep rack and asset identifiers in internal CMDB records. This separates perception from operational truth.

Read full article →

Yes. AI reduces typing time but not integration, review, or specification time. Those costs scale with the number of parallel contributors, so coordination overhead still dominates past a small team size.

Read full article →

Attach metadata to commits with git notes, tagging each commit as ai-assisted or manual, then aggregate with git log --format or a short Python script. This keeps the measurement inside the existing git history.

Read full article →

The ESP32-S3 uses the Xtensa LX7 core with a 128-bit vector extension called PIE (Processor Instruction Extensions). It includes instructions for saturating arithmetic, shuffles, and multiply-accumulate on 8-bit and 16-bit lanes.

Read full article →

Dense embeddings capture semantic meaning rather than exact token spelling. Combining pgvector cosine distance with PostgreSQL full-text search (tsvector / ts_rank) via Reciprocal Rank Fusion fixes exact-match recall.

Read full article →

Most connection errors happen when OLLAMA_BASE_URL points to localhost instead of the Docker Compose service name (http://ollama:11434). Placing both services on the same Compose network resolves DNS automatically.

Read full article →

Open WebUI itself uses minimal RAM (around 300 to 500 MB) and no VRAM unless you enable local Whisper or embedding models. VRAM depends on the Ollama model: 8B Q4 models fit comfortably in 8 GB VRAM, while 14B to 32B models benefit from 12 to 24 GB VRAM.

Read full article →

CTranslate2 4.x requires cuDNN 9 shared libraries. Installing nvidia-cudnn-cu12 and nvidia-cublas-cu12 inside your virtual environment and adding their lib folders to LD_LIBRARY_PATH resolves the error without touching system CUDA packages.

Read full article →

Q4_K_M averages roughly 4.8 bits per weight and cuts an 8B model to around 4.7 GB with minimal quality loss. Q5_K_M averages around 5.7 bits per weight, uses roughly 15 percent more memory, and preserves slightly tighter coding and math accuracy.

Read full article →

ProtectSystem=full makes /usr, /boot, and /etc read-only. ProtectSystem=strict makes the entire root filesystem read-only, requiring explicit ReadWritePaths= or StateDirectory= grants for any writable folder.

Read full article →

SIGSYS means the binary called a Linux syscall blocked by your seccomp filter. Check journalctl or dmesg for the blocked syscall number, or keep @system-service and remove only specific risky groups like ~@privileged ~@resources.

Read full article →

If you set zRAM to swap-priority = 100 and disk swap to priority 10, Linux always uses fast zRAM first and only spills to disk as a last-resort safety net before the OOM killer triggers. If you do not use hibernate, zRAM alone works great on most VPS servers.

Read full article →

Linux kernels 5.8+ allow swappiness up to 200. Because compressing anonymous pages into zRAM is far cheaper than evicting disk file cache and re-reading files from SSD, values between 100 and 180 keep hot file caches resident.

Read full article →

lz4 offers the lowest CPU latency (~2.1x compression), while zstd gives significantly better space savings (~3.0x+ compression) with very fast decompression on modern CPUs. zstd is the best default on Ubuntu 24.04.

Read full article →

This almost always means either net.ipv4.ip_forward=1 is not enabled, UFW is dropping forwarded packets (DEFAULT_FORWARD_POLICY=DROP), or the LAN router does not have a static route pointing the remote subnet to the WireGuard gateway.

Read full article →

Check three things: UDP port 443 must be open in both UFW and your cloud firewall (AWS/Hetzner/DigitalOcean), the Alt-Svc header must be present on the response, and remember the very first page load uses HTTP/2 before upgrading subsequent requests to HTTP/3.

Read full article →

Ubuntu 24.04 no longer installs rsyslog by default, so /var/log/auth.log does not exist. Setting backend = systemd inside [sshd] tells Fail2ban to read SSH events directly from journald.

Read full article →

Because Btrfs uses Copy-on-Write (CoW), snapshots consume zero extra space when created and only store changed data blocks afterward. Databases or VM images with heavy random writes should live in separate subvolumes with shorter retention.

Read full article →

Yes initially. Traefik requires understanding static vs dynamic configuration, entryPoints, and certificateResolvers in YAML. Once configured once, adding every future service takes only 3 to 4 Docker labels.

Read full article →

Yes. Both support Let's Encrypt DNS-01 challenges (Cloudflare, Route53, DuckDNS, etc.), allowing valid HTTPS certificates for private LAN-only homelab services.

Read full article →

Traefik is easier to version-control because all routing lives in plain-text YAML and Compose files. Nginx Proxy Manager stores its proxy hosts in an SQLite or MariaDB database volume that you must back up.

Read full article →

PostgreSQL json stores an exact text copy and reparses it on every query. jsonb stores a decomposed binary representation that removes duplicate keys, supports GIN indexing, and executes containment and path queries dramatically faster.

Read full article →

For most standard business APIs with 20 to 100ms SLA budgets, Go 1.23's concurrent tri-color collector is rarely an issue, with typical STW pauses well under 1ms. GC only becomes noticeable in high-allocation, ultra-low-latency pipelines (proxies, trading, real-time telemetry) where Rust shines.

Read full article →

Go pre-allocates heap headroom so the garbage collector does not run constantly (by default growing heap up to 2x live data). Rust drops memory deterministically the moment a request scope exits, keeping RSS tightly bound to active connections.

Read full article →

Go is dramatically faster. A medium Go microservice builds in 2 to 5 seconds on a standard CI runner, whereas a comparable Rust release build with SQLx and Tokio often takes 45 to 180 seconds unless you configure sccache or cargo-chef.

Read full article →

No. Virtually every modern x86_64 CPU supports AVX2 (8 float32 values per instruction), and ARM64 Linux servers support NEON (4 float32 values per instruction). simdwidthof adapts automatically at compile time.

Read full article →

NumPy is fast for built-in array operations, but custom element-wise logic or fused multi-step kernels force Python loops or temporary array allocations. Mojo fuses custom math directly into register-level SIMD instructions with zero temporary buffers.

Read full article →

Use errgroup.WithContext + g.SetLimit(n) for simple fan-out jobs where you want automatic fail-fast cancellation on the first error. Use explicit channel pipelines when streaming continuous jobs or transforming data across multiple stages.

Read full article →

For CPU-bound tasks (hashing, compression, parsing), match runtime.GOMAXPROCS(0). For I/O-bound tasks (HTTP calls, database queries), size workers to match your downstream connection pool or rate limit (typically 10 to 64).

Read full article →

Write extern "C" manually only for 1 to 5 simple functions. For any real C library with structs, enums, or platform-dependent typedefs, use bindgen in build.rs so struct layouts never drift out of sync with C headers.

Read full article →

On Linux, cargo:rustc-link-search tells the build-time linker where to find libfoo.so, not the runtime dynamic loader (ld.so). Install the library into /usr/local/lib and run sudo ldconfig, or pass -Wl,-rpath,$ORIGIN during linking.

Read full article →

Using the full 23 GB BF16 checkpoint or the FP16 T5-XXL text encoder overflows 12 GB VRAM. Switch both the diffusion model and T5-XXL to FP8 (t5xxl_fp8_e4m3fn.safetensors) and ensure you have at least 32 GB of system RAM for clean CPU offloading.

Read full article →

FLUX.1 [schnell] is Apache 2.0 licensed and distilled for 4-step rapid generation, making it ideal for commercial use and fast iteration. FLUX.1 [dev] is non-commercial, runs 20 to 28 steps, and yields slightly finer lighting and photorealism.

Read full article →

Keeping Control Weight at 1.0 all the way to Ending Control Step 1.0 forces the sampler to obey the guide map even during fine detail steps. Lower Control Weight to 0.70 and Ending Control Step to 0.80.

Read full article →

Yes. Load StableDiffusionXLPipeline in float16, call pipe.load_lora_weights() and pipe.fuse_lora(), configure EulerDiscreteScheduler with timestep_spacing="trailing", and run num_inference_steps=4.

Read full article →

Signs of overfitting include burned/high-contrast colors, ignoring new prompt details, or reproducing exact backgrounds from training photos. Testing earlier epoch checkpoints (e.g. epoch 6 instead of epoch 12) usually fixes it.

Read full article →