Skip to content

FAQ

See also: - Getting started: docs/getting-started.md - API reference: docs/api.md - Architecture: docs/architecture.md - Backends: docs/reference/backends.md - Configuration: docs/reference/configuration.md

What is AbstractVision?

AbstractVision is a small, model-agnostic API for generative vision outputs (images, optional video) with: - a small orchestrator (VisionManager) - pluggable execution engines (“backends”) in ../src/abstractvision/backends/ - packaged capability registries (vision_model_capabilities.json, vision_adapter_capabilities.json) - optional artifact-ref outputs via stores (../src/abstractvision/artifacts.py)

How does AbstractVision fit into AbstractFramework?

AbstractVision is part of the AbstractFramework ecosystem:

Where AbstractVision fits: - It standardizes generative vision outputs behind VisionManager (library mode). - AbstractCore can discover and use AbstractVision via the capability plugin (see ../src/abstractvision/integrations/abstractcore_plugin.py and the entry point in ../pyproject.toml). - Artifact refs are designed to cross process boundaries; RuntimeArtifactStoreAdapter bridges to an AbstractRuntime-style artifact store (see ../src/abstractvision/artifacts.py).

What does AbstractVision support today?

  • Built-in backends implement images: text_to_image and image_to_image.
  • Local MLX-Gen supports curated q4/q8 image presets, validated Qwen structured control and Qwen/FIBO masked edits, official FIBO image snapshots, SeedVR2 upscaling, shared LoRA adapters, and Wan 2.2 TI2V plus task-specific Wan 2.2 A14B text_to_video / first-frame image_to_video. MLX-Gen is validated on Apple Silicon. The explicit mlx-gen extra also installs on Linux, where it is not validated yet (see backlog 030); the NVIDIA/Linux gpu and all-gpu profiles do not include it.
  • Local Diffusers text_to_video remains experimental and is temporarily disabled from the normal local runtime surfaces.
  • OpenAI-compatible HTTP can also provide text_to_video / image_to_video when video endpoints are configured.
  • multi_view_image exists in the public API (VisionManager.generate_angles) but no built-in backend implements it yet (they raise CapabilityNotSupportedError).

Details: docs/reference/backends.md.

Which backend should I use?

What model should I start with (local)?

If you’re running locally via the Diffusers backend and want a reliable starting point, we recommend:

  • Default / ≤16GB VRAM (cross-platform): runwayml/stable-diffusion-v1-5

Quickstart:

abstractvision download stable-diffusion --provider diffusers
export ABSTRACTVISION_BACKEND=diffusers
export ABSTRACTVISION_MODEL_ID=runwayml/stable-diffusion-v1-5
export ABSTRACTVISION_DIFFUSERS_DEVICE=auto
abstractvision cli

More model recommendations (by VRAM tier) are in docs/getting-started.md.

After that works, black-forest-labs/FLUX.2-klein-4B is the recommended next local test for a newer non-gated model (it currently requires Diffusers from source).

Do the one-shot CLI commands run locally?

Yes. abstractvision t2i / abstractvision i2i / abstractvision t2v run on this machine's local engine by default (MLX-Gen on Apple silicon, stable-diffusion.cpp on an NVIDIA card, Diffusers on a processor-only host) with FLUX.2 [klein] 4B in 8 bits as the default model; give --base-url for the OpenAI-compatible HTTP backend or --provider for another local engine.

For interactive local generation, use abstractvision cli (legacy alias: abstractvision repl) with /backend diffusers ..., /backend mlx-gen ..., or /backend sdcpp ....

Current local video note: - local Diffusers t2v is currently experimental and disabled from the normal bundled local surfaces; - local MLX-Gen t2v / i2v is available through task-specific Wan A14B packages such as AbstractFramework/wan2.2-t2v-a14b-diffusers-8bit and AbstractFramework/wan2.2-i2v-a14b-diffusers-8bit; - MLX-Gen denoise-step video progress is shown by default in the shell and interactive CLI and is available to Python/Core callers through on_progress(event); - remote text_to_video / image_to_video still depend on the OpenAI-compatible backend being configured with video endpoints.

Where do generated outputs go?

It depends on whether you configured a store:

What is an “artifact ref”?

An artifact ref is a small JSON dict that points to a stored blob. Minimal shape:

{"$artifact":"<id>"}

Helpers: is_artifact_ref() / make_media_ref() in ../src/abstractvision/artifacts.py.

How do I allow or block Diffusers downloads?

Why do I get “missing pipeline class” errors (e.g. GlmImagePipeline)?

Some newer pipelines may only exist on Diffusers GitHub main. Install:

  • pip install -U "abstractvision[diffusers-dev]" (compatible dependency versions)
  • pip install -U "git+https://github.com/huggingface/diffusers@main" (Diffusers main)

See: docs/getting-started.md.

macOS (MPS): why do I get black images / dtype errors?

The Diffusers backend includes MPS-specific mitigations (e.g. VAE upcast and optional fp32 retry) in ../src/abstractvision/backends/huggingface_diffusers.py.

Common fixes: - set ABSTRACTVISION_DIFFUSERS_TORCH_DTYPE=float32 (more stable, higher memory) - disable retry if memory is tight: ABSTRACTVISION_DIFFUSERS_AUTO_RETRY_FP32=0 - consider using the stable-diffusion.cpp backend for GGUF diffusion models (docs/getting-started.md)

Windows/Linux (CUDA): why is torch.cuda.is_available() false?

On Windows/Linux, pip install torch (and packages that depend on torch) may install a CPU-only PyTorch build by default.

If you have an NVIDIA GPU and want CUDA acceleration:

1) Install a CUDA-enabled PyTorch wheel using the official selector: https://pytorch.org/get-started/locally/
2) Verify:

python -c "import torch; print('cuda', torch.cuda.is_available())"

How do I pass advanced flags / parameters?

AbstractVision exposes an extra dict on requests (../src/abstractvision/types.py), and the REPL forwards unknown --flags into request.extra (../src/abstractvision/cli.py).

Examples: - Shared LoRA contract: use lora_adapters=[LoRAAdapterSpec(...)] in Python, or repeated --lora / --lora-scale / --lora-target-role in the CLI. - Diffusers backend: still accepts compatibility keys like loras_json and rapid_aio_repo (used by older Qwen Image Edit flows; see docs/getting-started.md and ../src/abstractvision/backends/huggingface_diffusers.py). - stable-diffusion.cpp backend: - CLI mode forwards flags to sd-cli - python-binding mode maps supported keys to binding kwargs and ignores unsupported keys (../src/abstractvision/backends/stable_diffusion_cpp.py)

How do I change the size of a Wan video?

Each Wan model has a default size in the MLX-Gen backend (WAN_VIDEO_DEFAULT_CANVASES in ../src/abstractvision/backends/mflux.py): 832x480 for TI2V-5B (121 frames at 24 fps, 50 steps) and for both A14B models (81 frames at 16 fps, 40 steps). Override any of them per request:

  • CLI: abstractvision t2v ... --width 1280 --height 704 --frames 121 --fps 24 --steps 30
  • Python: vm.generate_video(prompt, width=1280, height=704, num_frames=121, fps=24, steps=30)
  • AbstractCore / Gateway: pass the same fields (width, height, num_frames, fps, steps) in the video request or its output={...} options.

TI2V-5B accepts multiples of 32 from 832x480 (or 480x832) upward; the A14B models accept multiples of 16. Frame counts follow Wan's 4n+1 rule (for example 81 or 121). At 832x480 and below, TI2V-5B uses flow_shift=3.0 unless you set flow_shift yourself.

How much memory does Wan video need?

The figures below are MLX allocator peaks of a full AbstractVision generation (text encoding, denoising and VAE decode), measured with AbstractVision/mlx-gen 0.38 on an Apple M5 Max. The denoising peak does not depend on the step count. AbstractVision keeps the text encoder and VAE in memory, so these are this engine's figures, not the models' own minimums.

Model Size (width x height x frames) Peak, tiled decode (default) Peak, untiled decode
TI2V-5B 832x480x121 (default) 16.3 GiB (image-to-video 16.6 GiB) 23.4 GiB
TI2V-5B 1280x704x121 25.4 GiB 51.2 GiB
T2V-A14B 832x480x81 (default) 38.3 GiB 47.4 GiB
T2V-A14B 640x352x81 35.1 GiB 41.8 GiB
T2V-A14B 1280x720x81 53.5 GiB 71.6 GiB
I2V-A14B 832x480x81 (default) 38.4 GiB not measured
I2V-A14B 1280x720x81 not measured 71.7 GiB

The MLX-Gen backend decodes Wan video in overlapping spatial tiles (on by default), so the peak is set by denoising rather than by the VAE decode. Pass extra={"vae_tiling": False} (CLI --no-vae-tiling) to decode whole frames at once; at small sizes that decodes somewhat faster, and it raises the peak to the "untiled" figures.

Time grows with the canvas and the step count: on the same Mac a default TI2V-5B clip (832x480, 121 frames, 50 steps) took about 25 minutes end to end. Lower steps for quick drafts: it changes the time, not the peak memory.

How do I know whether a model route supports LoRA?

Use provider/model discovery:

  • abstractvision catalog --provider mlx-gen to browse downloadable models
  • abstractvision show-model <model-id> for the exact runtime route contract
  • abstractvision adapters --provider mlx-gen --model <model-id> --task <task> for locally cached overlays that match one route
  • VisionManager.list_provider_models(...)
  • VisionManager.list_provider_adapters(...)
  • llm.vision.list_provider_models(...) through the AbstractCore plugin

MLX-Gen route rows surface:

  • supports_lora
  • lora_status
  • lora_target_roles
  • lora_validation_profile

Wan TI2V-5B uses one target role, transformer. Wan A14B routes require explicit high_noise_transformer / low_noise_transformer assignment.

What do the capability registries mean (and what do they not mean)?

The model registry answers “what a model claims to support” (task keys/params) and can be used for optional gating:

The adapter registry answers “what package-owned adapter defaults and compatibility hints are curated for one adapter family?”:

  • VisionAdapterCapabilitiesRegistry.match_profile(...) (../src/abstractvision/adapter_capabilities.py)
  • abstractvision adapters --provider mlx-gen --model <model-id> --task <task> --json to inspect recommended parameters, docs links, and compatibility notes for locally cached overlays

Neither registry guarantees that one exact configured backend route can execute the request. Runtime route support is a separate backend-owned constraint (docs/reference/backends.md).

I only need the HTTP backend. Do I have to install Torch/Diffusers?

No. The base install is lightweight and includes the stdlib OpenAI-compatible HTTP backend without Torch/Diffusers (see ../pyproject.toml). Heavy local backend modules are still imported lazily (../src/abstractvision/backends/__init__.py).

Install abstractvision[diffusers] only when you want local Diffusers generation. Use abstractvision[sdcpp] or an external sd-cli only when you need stable-diffusion.cpp.

How do I integrate with AbstractCore?

Two options (details in docs/reference/abstractcore-integration.md):

AbstractCore is the host package; AbstractVision does not install it as a dependency.

How do I run tests?

From the repo root:

python -m unittest discover -s tests -p "test_*.py" -q