Skip to content

Quantization Variant Metadata and Selection for Edge Agent Deployment #1261

Description

@Shehrozkashif

Quantization Variant Metadata and Selection for Edge Agent Deployment

Problem

Building autonomous GUI agent (GSoC Intel/OpenVINO) on Intel Core Ultra 7 258V with 27GB VRAM.

Currently hardcoded in config.py:

  • qwen3-8b-int4-ov: 5.5 GB, 7-15s latency
  • ui-tars-1.5-7b-int8-ov: 7.5 GB, 200ms latency

Tested but rejected:

  • 14B LLM: latency jumped to 45-101s (too slow)
  • FP16 VLM: +8GB VRAM, no accuracy gain

Supporting multiple hardware targets (laptop 4GB, desktop 8GB, cloud 64GB) requires separate ModelKits or complex config logic.

Solution

One ModelKit per model with quantization variants + metadata:

ModelKit: qwen3-8b

  • int4: 5.5 GB, min 4GB VRAM, 7-15s latency
  • int8: 7.2 GB, min 6GB VRAM, 5-10s latency
  • fp16: 13 GB, min 14GB VRAM, 3-7s latency

Query at deployment:
kit_query("qwen3-8b", max_size=8, target_accelerator="Intel GPU")
→ returns: qwen3-8b:int4

Metadata Needed

  • Quantization scheme (int4, int8, fp16, fp32)
  • Artifact size
  • Min VRAM required
  • Target accelerator (CPU, GPU, Intel GPU, NPU)
  • Measured latency
  • Accuracy delta (optional)

Questions

  1. Variants as separate manifests in one ModelKit?
  2. Metadata in Kitfile, manifest, or separate file?
  3. Query/matching provided by KitOps or runtime?
  4. How to express "optimized for Intel GPU, also works on generic GPU"?

Impact

Without variant standardization: 10 models × 4 variants = 40 separate ModelKits
With variant support: 10 models × 1 ModelKit each = clean, queryable

Artifacts available (actual quantized models, config.py, latency logs).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions