[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7386KS55PFVQWH0SFG4Y8PW":3,"skill-same:01M7386KS55PFVQWH0SFG4Y8PW":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M7386KS55PFVQWH0SFG4Y8PW","deploy-edge-ai-model",null,"Deploy machine learning models to edge devices using Google AI Edge Gallery, TensorFlow Lite, ONNX Runtime, and MediaPipe. Covers model quantization (INT8\u002FINT4), on-device inference with Gemma 4 models, Android\u002FiOS deployment via AI Edge Gallery, hardware delegate selection (GPU\u002FNPU\u002FDSP), and performance benchmarking on constrained devices. Use when deploying models to mobile phones, IoT devices, or embedded systems where cloud inference is impractical due to latency, cost, or connectivity constraints.","roohe\u002Fagentic-super-skills","roohe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99054084?v=4","01M734WCDFP6RZVT5CNM00QR26","01M734WCE4BD0T4NZS5PCV9V5F",10,"MIT","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fdeploy-edge-ai-model\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: deploy-edge-ai-model\nlocale: caveman-lite\nsource_locale: en\nsource_commit: 82c77053\ntranslator: \"Julius Brussee homage — caveman\"\ntranslation_date: \"2026-04-23\"\ndescription: >\n  Deploy machine learning models to edge devices using Google AI Edge Gallery,\n  TensorFlow Lite, ONNX Runtime, and MediaPipe. Covers model quantization\n  (INT8\u002FINT4), on-device inference with Gemma 4 models, Android\u002FiOS deployment\n  via AI Edge Gallery, hardware delegate selection (GPU\u002FNPU\u002FDSP), and\n  performance benchmarking on constrained devices. Use when deploying models\n  to mobile phones, IoT devices, or embedded systems where cloud inference\n  is impractical due to latency, cost, or connectivity constraints.\nlicense: MIT\nallowed-tools: Read Write Edit Bash Grep Glob WebFetch\nmetadata:\n  author: Philipp Thoss\n  version: \"1.0\"\n  domain: edge-computing\n  complexity: advanced\n  language: multi\n  tags: edge-ai, google-ai-edge, gemma, tflite, onnx, quantization, on-device\n---\n\n# Deploy Edge AI Model\n\n> See [Extended Examples](references\u002FEXAMPLES.md) for complete configuration files, quantization scripts, and benchmark templates.\n\nDeploy ML models to edge devices with optimized inference, hardware acceleration, and on-device model management.\n\n## When to Use\n\n- Deploying LLMs (Gemma 4, Phi, Llama) to mobile devices via Google AI Edge Gallery\n- Converting models to TensorFlow Lite or ONNX for on-device inference\n- Quantizing models to INT8\u002FINT4 for reduced memory and faster inference\n- Building Android\u002FiOS apps with local AI capabilities\n- Selecting hardware delegates (GPU, NPU, DSP, Hexagon, CoreML)\n- Benchmarking inference latency and memory on target devices\n- Deploying MediaPipe tasks (vision, text, audio) to mobile or embedded platforms\n\n## Inputs\n\n- **Required**: Trained model (SavedModel, PyTorch, ONNX, or Hugging Face checkpoint)\n- **Required**: Target platform (Android, iOS, Linux embedded, browser)\n- **Required**: Target device constraints (RAM, storage, compute capability)\n- **Optional**: Calibration dataset for post-training quantization\n- **Optional**: Google AI Edge Gallery configuration for LLM deployment\n- **Optional**: Hardware delegate preferences (GPU, NPU, CPU-only)\n\n## Procedure\n\n### Step 1: Evaluate Model for Edge Deployment\n\nAssess model size, latency requirements, and target device capabilities.\n\n```python\n# assess_model.py\nimport os\nimport tensorflow as tf\n\ndef assess_model_for_edge(saved_model_path, target_ram_mb=4096):\n    \"\"\"Evaluate whether a model is suitable for edge deployment.\"\"\"\n    model = tf.saved_model.load(saved_model_path)\n\n    # Check model size on disk\n    model_size_mb = sum(\n        os.path.getsize(os.path.join(dp, f))\n        for dp, _, filenames in os.walk(saved_model_path)\n        for f in filenames\n    ) \u002F (1024 * 1024)\n\n    print(f\"Model size: {model_size_mb:.1f} MB\")\n    print(f\"Target RAM: {target_ram_mb} MB\")\n    print(f\"Size\u002FRAM ratio: {model_size_mb \u002F target_ram_mb:.2%}\")\n\n    if model_size_mb > target_ram_mb * 0.25:\n        print(\"WARNING: Model exceeds 25% of device RAM - quantization recommended\")\n        return False\n    return True\n```\n\nEdge deployment decision matrix:\n\n| Model Size | Device RAM | Recommended Action |\n|-----------|-----------|-------------------|\n| \u003C 50 MB | 2+ GB | Direct TFLite conversion |\n| 50-500 MB | 4+ GB | INT8 quantization + TFLite |\n| 500 MB-2 GB | 6+ GB | INT4 quantization + AI Edge Gallery |\n| 2-4 GB | 8+ GB | Gemma 4 via AI Edge Gallery with INT4 |\n| > 4 GB | 12+ GB | Weight streaming or cloud-edge hybrid |\n\n**Got:** Model assessment completes, size and RAM ratios calculated, quantization recommendation generated based on device constraints.\n\n**If fail:** Verify SavedModel path is valid (`ls saved_model\u002F`), check TensorFlow installation (`python -c \"import tensorflow\"`), ensure sufficient disk space for model loading, verify model format is supported.\n\n### Step 2: Deploy LLMs via Google AI Edge Gallery\n\nUse Google AI Edge Gallery to deploy Gemma 4 and other LLMs to Android devices.\n\n```bash\n# Clone AI Edge Gallery\ngit clone https:\u002F\u002Fgithub.com\u002Fnickoala\u002Fai-edge-gallery.git\ncd ai-edge-gallery\n\n# Build the Android app\n.\u002Fgradlew assembleDebug\n\n# Install on connected device\nadb install -r app\u002Fbuild\u002Foutputs\u002Fapk\u002Fdebug\u002Fapp-debug.apk\n```\n\nConfigure Gemma 4 model for AI Edge Gallery:\n\n```json\n{\n  \"models\": [\n    {\n      \"name\": \"Gemma 4 2B IT\",\n      \"url\": \"https:\u002F\u002Fhuggingface.co\u002Fgoogle\u002Fgemma-4-2b-it-gpu-int4\",\n      \"format\": \"tflite\",\n      \"backend\": \"gpu\",\n      \"config\": {\n        \"max_tokens\": 1024,\n        \"temperature\": 0.7,\n        \"top_k\": 40,\n        \"top_p\": 0.95\n      }\n    },\n    {\n      \"name\": \"Gemma 4 4B IT\",\n      \"url\": \"https:\u002F\u002Fhuggingface.co\u002Fgoogle\u002Fgemma-4-4b-it-gpu-int4\",\n      \"format\": \"tflite\",\n      \"backend\": \"gpu\",\n      \"config\": {\n        \"max_tokens\": 2048,\n        \"temperature\": 0.7\n      }\n    }\n  ]\n}\n```\n\nProgrammatic on-device inference with LLM Inference API:\n\n```python\n# gemma_edge_inference.py\nfrom mediapipe.tasks.genai import llm_inference\n\n# Configure the LLM\noptions = llm_inference.LlmInferenceOptions(\n    model_path=\"\u002Fdata\u002Flocal\u002Ftmp\u002Fgemma-4-2b-it-int4.tflite\",\n    max_tokens=512,\n    temperature=0.7,\n    top_k=40,\n    supported_lora_ranks=[4, 8, 16]  # Optional LoRA support\n)\n\n# Create inference engine\nengine = llm_inference.LlmInference(options=options)\n\n# Run inference\nresponse = engine.generate_response(\"Explain edge computing in one sentence.\")\nprint(response)\n\n# Streaming inference\nfor chunk in engine.generate_response_async(\"List three benefits of on-device AI.\"):\n    print(chunk, end=\"\", flush=True)\n```\n\n**Got:** AI Edge Gallery app builds and installs successfully, Gemma 4 model downloads to device, on-device inference produces coherent responses, GPU delegate activates for acceleration.\n\n**If fail:** Check Android SDK version >= 26 (`adb shell getprop ro.build.version.sdk`), verify device has sufficient storage for model download, ensure GPU delegate is supported (`adb logcat | grep -i delegate`), check Hugging Face model access permissions, verify ADB connection (`adb devices`).\n\n### Step 3: Convert and Quantize Models with TFLite\n\nConvert standard models to TFLite format with post-training quantization.\n\n```python\n# convert_tflite.py\nimport os\nimport tensorflow as tf\nimport numpy as np\n\ndef convert_to_tflite(saved_model_path, output_path, quantization=\"dynamic\"):\n    \"\"\"Convert SavedModel to TFLite with quantization.\"\"\"\n    converter = tf.lite.TFLiteConverter.from_saved_model(saved_model_path)\n\n    if quantization == \"dynamic\":\n        converter.optimizations = [tf.lite.Optimize.DEFAULT]\n\n    elif quantization == \"int8\":\n        converter.optimizations = [tf.lite.Optimize.DEFAULT]\n        converter.target_spec.supported_ops = [\n            tf.lite.OpsSet.TFLITE_BUILTINS_INT8\n        ]\n        converter.inference_input_type = tf.int8\n        converter.inference_output_type = tf.int8\n\n        # Representative dataset for calibration\n        def representative_dataset():\n            for _ in range(100):\n                yield [np.random.randn(1, 224, 224, 3).astype(np.float32)]\n        converter.representative_dataset = representative_dataset\n\n    elif quantization == \"float16\":\n        converter.optimizations = [tf.lite.Optimize.DEFAULT]\n        converter.target_spec.supported_types = [tf.float16]\n\n    tflite_model = converter.convert()\n\n    with open(output_path, \"wb\") as f:\n        f.write(tflite_model)\n\n    original_size = sum(\n        os.path.getsize(os.path.join(dp, f))\n        for dp, _, filenames in os.walk(saved_model_path)\n        for f in filenames\n    ) \u002F (1024 * 1024)\n    quantized_size = len(tflite_model) \u002F (1024 * 1024)\n    print(f\"Original: {original_size:.1f} MB -> Quantized: {quantized_size:.1f} MB\")\n    print(f\"Compression ratio: {original_size \u002F quantized_size:.1f}x\")\n\n# Usage\nconvert_to_tflite(\"saved_model\u002F\", \"model_int8.tflite\", quantization=\"int8\")\n```\n\nONNX Runtime quantization alternative:\n\n```python\n# quantize_onnx.py\nfrom onnxruntime.quantization import quantize_dynamic, quantize_static, QuantType\n\n# Dynamic quantization (no calibration data needed)\nquantize_dynamic(\n    model_input=\"model.onnx\",\n    model_output=\"model_int8.onnx\",\n    weight_type=QuantType.QInt8\n)\n\n# Static quantization (better accuracy, needs calibration)\n# ... (see EXAMPLES.md for complete calibration workflow)\n```\n\n**Got:** TFLite model generated at specified path, model size reduced by 2-4x with INT8, inference accuracy within 1-2% of original, ONNX quantization produces valid model.\n\n**If fail:** Check TensorFlow version >= 2.15 for latest quantization support, verify representative dataset matches model input shape, ensure all ops are supported in TFLite (`converter.allow_custom_ops = True` as fallback), check ONNX opset version compatibility.\n\n### Step 4: Configure Hardware Delegates\n\nSelect and configure hardware acceleration delegates for target devices.\n\n```python\n# configure_delegates.py\nimport tensorflow as tf\n\ndef create_interpreter_with_delegate(model_path, delegate=\"gpu\"):\n    \"\"\"Create TFLite interpreter with hardware delegate.\"\"\"\n\n    if delegate == \"gpu\":\n        delegate_obj = tf.lite.experimental.load_delegate(\n            \"libtensorflowlite_gpu_delegate.so\",\n            options={\"precision\": \"fp16\", \"allow_quantized_models\": \"true\"}\n        )\n    elif delegate == \"nnapi\":\n        # Android Neural Networks API - routes to NPU\u002FDSP\n        delegate_obj = tf.lite.experimental.load_delegate(\n            \"libtensorflowlite_nnapi_delegate.so\"\n        )\n    elif delegate == \"xnnpack\":\n        # Optimized CPU inference\n        delegate_obj = None  # XNNPACK is default in TFLite\n\n    interpreter = tf.lite.Interpreter(\n        model_path=model_path,\n        experimental_delegates=[delegate_obj] if delegate_obj else None,\n        num_threads=4\n    )\n    interpreter.allocate_tensors()\n    return interpreter\n```\n\nDelegate selection guide:\n\n| Device | Best Delegate | Fallback | Notes |\n|--------|--------------|----------|-------|\n| Android (Qualcomm) | NNAPI -> Hexagon DSP | GPU -> XNNPACK | Check `nnapi_accelerator_name` |\n| Android (MediaTek) | NNAPI -> APU | GPU -> XNNPACK | Dimensity chips have dedicated APU |\n| Android (Samsung) | NNAPI -> NPU | GPU -> XNNPACK | Exynos NPU via NNAPI |\n| iOS | CoreML delegate | Metal GPU | Use `coreml_delegate` for ANE |\n| Linux embedded | GPU (if available) | XNNPACK | RPi uses XNNPACK CPU |\n| Browser | WebGL \u002F WebGPU | WASM SIMD | Via TensorFlow.js |\n\n**Got:** Delegate loads without errors, inference runs on target accelerator, latency improves 2-10x over CPU-only depending on model and device.\n\n**If fail:** Verify delegate library exists on device, check device supports requested delegate (`adb shell cat \u002Fproc\u002Fcpuinfo` for CPU features), fall back to XNNPACK if GPU\u002FNPU unavailable, check OpenCL support for GPU delegate, verify NNAPI version (`adb shell getprop ro.android.ndk.version`).\n\n### Step 5: Benchmark On-Device Performance\n\nMeasure inference latency, memory usage, and power consumption on target devices.\n\n```bash\n# Use TFLite benchmark tool\nadb push model_int8.tflite \u002Fdata\u002Flocal\u002Ftmp\u002F\n\n# CPU benchmark\nadb shell \u002Fdata\u002Flocal\u002Ftmp\u002Fbenchmark_model \\\n  --graph=\u002Fdata\u002Flocal\u002Ftmp\u002Fmodel_int8.tflite \\\n  --num_threads=4 \\\n  --num_runs=50 \\\n  --warmup_runs=5\n\n# GPU benchmark\nadb shell \u002Fdata\u002Flocal\u002Ftmp\u002Fbenchmark_model \\\n  --graph=\u002Fdata\u002Flocal\u002Ftmp\u002Fmodel_int8.tflite \\\n  --use_gpu=true \\\n  --num_runs=50\n\n# NNAPI benchmark\nadb shell \u002Fdata\u002Flocal\u002Ftmp\u002Fbenchmark_model \\\n  --graph=\u002Fdata\u002Flocal\u002Ftmp\u002Fmodel_int8.tflite \\\n  --use_nnapi=true \\\n  --nnapi_accelerator_name=google-edgetpu \\\n  --num_runs=50\n```\n\nPython benchmarking:\n\n```python\n# benchmark_edge.py\nimport time\nimport numpy as np\nimport psutil\n\ndef benchmark_inference(interpreter, input_data, num_runs=100):\n    \"\"\"Benchmark TFLite model inference.\"\"\"\n    input_details = interpreter.get_input_details()\n    output_details = interpreter.get_output_details()\n\n    # Warmup\n    for _ in range(10):\n        interpreter.set_tensor(input_details[0][\"index\"], input_data)\n        interpreter.invoke()\n\n    # Benchmark\n    latencies = []\n    mem_before = psutil.Process().memory_info().rss \u002F (1024 * 1024)\n    for _ in range(num_runs):\n        start = time.perf_counter()\n        interpreter.set_tensor(input_details[0][\"index\"], input_data)\n        interpreter.invoke()\n        latencies.append((time.perf_counter() - start) * 1000)\n    mem_after = psutil.Process().memory_info().rss \u002F (1024 * 1024)\n\n    print(f\"Latency (p50): {np.percentile(latencies, 50):.1f} ms\")\n    print(f\"Latency (p95): {np.percentile(latencies, 95):.1f} ms\")\n    print(f\"Latency (p99): {np.percentile(latencies, 99):.1f} ms\")\n    print(f\"Memory delta: {mem_after - mem_before:.1f} MB\")\n    print(f\"Throughput: {1000 \u002F np.mean(latencies):.1f} inferences\u002Fsec\")\n```\n\n**Got:** Benchmark produces latency percentiles, memory usage, and throughput metrics; GPU delegate shows 2-5x speedup over CPU for vision models; Gemma 4 2B achieves 10-30 tokens\u002Fsec on flagship phones.\n\n**If fail:** Ensure benchmark binary matches device architecture (arm64-v8a), verify model pushed to device (`adb shell ls \u002Fdata\u002Flocal\u002Ftmp\u002F`), check sufficient device storage, kill background apps to reduce memory pressure, verify thermal throttling not active (`adb shell cat \u002Fsys\u002Fclass\u002Fthermal\u002Fthermal_zone*\u002Ftemp`).\n\n### Step 6: Package for Production Deployment\n\nBuild the final mobile application with embedded or downloadable model.\n\n```kotlin\n\u002F\u002F Android: EdgeAIManager.kt\nimport com.google.mediapipe.tasks.genai.llminference.LlmInference\n\nclass EdgeAIManager(private val context: Context) {\n    private var llmInference: LlmInference? = null\n\n    fun initialize(modelPath: String) {\n        val options = LlmInference.LlmInferenceOptions.builder()\n            .setModelPath(modelPath)\n            .setMaxTokens(512)\n            .setTemperature(0.7f)\n            .setTopK(40)\n            .setResultListener { result, done ->\n                \u002F\u002F Handle streaming tokens\n                onTokenReceived(result, done)\n            }\n            .build()\n\n        llmInference = LlmInference.createFromOptions(context, options)\n    }\n\n    fun generateResponse(prompt: String): String {\n        return llmInference?.generateResponse(prompt)\n            ?: throw IllegalStateException(\"Model not initialized\")\n    }\n\n    fun release() {\n        llmInference?.close()\n        llmInference = null\n    }\n}\n```\n\nModel download and caching strategy:\n\n```kotlin\n\u002F\u002F ModelDownloader.kt\nclass ModelDownloader(private val context: Context) {\n    private val modelDir = File(context.filesDir, \"models\")\n\n    suspend fun ensureModel(modelName: String, url: String): File {\n        val modelFile = File(modelDir, modelName)\n        if (modelFile.exists()) return modelFile\n\n        modelDir.mkdirs()\n        \u002F\u002F Download with progress tracking\n        \u002F\u002F ... (see EXAMPLES.md for complete implementation)\n        return modelFile\n    }\n}\n```\n\n**Got:** Android app builds with MediaPipe dependency, model loads on first launch, inference runs within latency budget, model cached after first download, graceful fallback when device is unsupported.\n\n**If fail:** Check minSdk >= 26 in `build.gradle`, verify MediaPipe dependency version, ensure model file not corrupted (check SHA256), verify sufficient device storage for model, check ProGuard rules preserve MediaPipe classes, test on multiple device tiers.\n\n## Validation\n\n- [ ] Model converts to TFLite\u002FONNX without op compatibility errors\n- [ ] Quantized model accuracy within acceptable tolerance (\u003C 2% degradation)\n- [ ] Hardware delegate loads and accelerates inference\n- [ ] Benchmark latency meets target (e.g., \u003C 100ms for vision, \u003C 50ms\u002Ftoken for LLM)\n- [ ] Memory usage stays within device budget\n- [ ] AI Edge Gallery successfully loads and runs Gemma 4 model\n- [ ] On-device LLM generates coherent responses\n- [ ] Application handles model download, caching, and updates\n- [ ] Graceful degradation on unsupported devices\n- [ ] Battery impact within acceptable range for target use case\n\n## Pitfalls\n\n- **Unsupported ops in TFLite**: Custom ops fail conversion - use `converter.allow_custom_ops = True` or replace with supported alternatives, check op compatibility list\n- **Quantization accuracy loss**: INT4 degrades quality for sensitive tasks - use mixed precision, calibrate with representative data, evaluate on edge-specific test set\n- **Delegate initialization failure**: GPU delegate crashes on older devices - always implement CPU fallback, check delegate compatibility before loading\n- **Memory pressure on device**: Model + app exceeds available RAM - use memory-mapped models, implement model unloading, reduce batch size to 1\n- **Thermal throttling**: Sustained inference causes device overheating - implement duty cycling, reduce inference frequency, monitor thermal zones\n- **Model download size**: Large models over cellular data - offer Wi-Fi-only download, implement resumable downloads, use progressive model loading\n- **Version fragmentation**: Model works on some devices but not others - test on representative device matrix, use NNAPI version checks, maintain device compatibility database\n\n## Related Skills\n\n- `deploy-ml-model-serving` - Cloud-based model serving (complement to edge)\n- `monitor-model-drift` - Monitor model quality over time\n- `register-ml-model` - Register models before edge deployment\n- `create-dockerfile` - Containerize edge model conversion pipeline\n- `create-multistage-dockerfile` - Multi-stage builds for model conversion pipelines\n","# Deploy Edge AI Model\n\n> See [Extended Examples](references\u002FEXAMPLES.md) for complete configuration files, quantization scripts, and benchmark templates.\n\nDeploy ML models to edge devices with optimized inference, hardware acceleration, and on-device model management.\n\n## When to Use\n\n- Deploying LLMs (Gemma 4, Phi, Llama) to mobile devices via Google AI Edge Gallery\n- Converting models to TensorFlow Lite or ONNX for on-device inference\n- Quantizing models to INT8\u002FINT4 for reduced memory and faster inference\n- Building Android\u002FiOS apps with local AI capabilities\n- Selecting hardware delegates (GPU, NPU, DSP, Hexagon, CoreML)\n- Benchmarking inference latency and memory on target devices\n- Deploying MediaPipe tasks (vision, text, audio) to mobile or embedded platforms\n\n## Inputs\n\n- **Required**: Trained model (SavedModel, PyTorch, ONNX, or Hugging Face checkpoint)\n- **Required**: Target platform (Android, iOS, Linux embedded, browser)\n- **Required**: Target device constraints (RAM, storage, compute capability)\n- **Optional**: Calibration dataset for post-training quantization\n- **Optional**: Google AI Edge Gallery configuration for LLM deployment\n- **Optional**: Hardware delegate preferences (GPU, NPU, CPU-only)\n\n## Procedure\n\n### Step 1: Evaluate Model for Edge Deployment\n\nAssess model size, latency requirements, and target device capabilities.\n\n```python\n# assess_model.py\nimport os\nimport tensorflow as tf\n\ndef assess_model_for_edge(saved_model_path, target_ram_mb=4096):\n    \"\"\"Evaluate whether a model is suitable for edge deployment.\"\"\"\n    model = tf.saved_model.load(saved_model_path)\n\n    # Check model size on disk\n    model_size_mb = sum(\n        os.path.getsize(os.path.join(dp, f))\n        for dp, _, filenames in os.walk(saved_model_path)\n        for f in filenames\n    ) \u002F (1024 * 1024)\n\n    print(f\"Model size: {model_size_mb:.1f} MB\")\n    print(f\"Target RAM: {target_ram_mb} MB\")\n    print(f\"Size\u002FRAM ratio: {model_size_mb \u002F target_ram_mb:.2%}\")\n\n    if model_size_mb > target_ram_mb * 0.25:\n        print(\"WARNING: Model exceeds 25% of device RAM - quantization recommended\")\n        return False\n    return True\n```\n\nEdge deployment decision matrix:\n\n| Model Size | Device RAM | Recommended Action |\n|-----------|-----------|-------------------|\n| \u003C 50 MB | 2+ GB | Direct TFLite conversion |\n| 50-500 MB | 4+ GB | INT8 quantization + TFLite |\n| 500 MB-2 GB | 6+ GB | INT4 quantization + AI Edge Gallery |\n| 2-4 GB | 8+ GB | Gemma 4 via AI Edge Gallery with INT4 |\n| > 4 GB | 12+ GB | Weight streaming or cloud-edge hybrid |\n\n**Got:** Model assessment completes, size and RAM ratios calculated, quantization recommendation generated based on device constraints.\n\n**If fail:** Verify SavedModel path is valid (`ls saved_model\u002F`), check TensorFlow installation (`python -c \"import tensorflow\"`), ensure sufficient disk space for model loading, verify model format is supported.\n\n### Step 2: Deploy LLMs via Google AI Edge Gallery\n\nUse Google AI Edge Gallery to deploy Gemma 4 and other LLMs to Android devices.\n\n```bash\n# Clone AI Edge Gallery\ngit clone https:\u002F\u002Fgithub.com\u002Fnickoala\u002Fai-edge-gallery.git\ncd ai-edge-gallery\n\n# Build the Android app\n.\u002Fgradlew assembleDebug\n\n# Install on connected device\nadb install -r app\u002Fbuild\u002Foutputs\u002Fapk\u002Fdebug\u002Fapp-debug.apk\n```\n\nConfigure Gemma 4 model for AI Edge Gallery:\n\n```json\n{\n  \"models\": [\n    {\n      \"name\": \"Gemma 4 2B IT\",\n      \"url\": \"https:\u002F\u002Fhuggingface.co\u002Fgoogle\u002Fgemma-4-2b-it-gpu-int4\",\n      \"format\": \"tflite\",\n      \"backend\": \"gpu\",\n      \"config\": {\n        \"max_tokens\": 1024,\n        \"temperature\": 0.7,\n        \"top_k\": 40,\n        \"top_p\": 0.95\n      }\n    },\n    {\n      \"name\": \"Gemma 4 4B IT\",\n      \"url\": \"https:\u002F\u002Fhuggingface.co\u002Fgoogle\u002Fgemma-4-4b-it-gpu-int4\",\n      \"format\": \"tflite\",\n      \"backend\": \"gpu\",\n      \"config\": {\n        \"max_tokens\": 2048,\n        \"temperature\": 0.7\n      }\n    }\n  ]\n}\n```\n\nProgrammatic on-device inference with LLM Inference API:\n\n```python\n# gemma_edge_inference.py\nfrom mediapipe.tasks.genai import llm_inference\n\n# Configure the LLM\noptions = llm_inference.LlmInferenceOptions(\n    model_path=\"\u002Fdata\u002Flocal\u002Ftmp\u002Fgemma-4-2b-it-int4.tflite\",\n    max_tokens=512,\n    temperature=0.7,\n    top_k=40,\n    supported_lora_ranks=[4, 8, 16]  # Optional LoRA support\n)\n\n# Create inference engine\nengine = llm_inference.LlmInference(options=options)\n\n# Run inference\nresponse = engine.generate_response(\"Explain edge computing in one sentence.\")\nprint(response)\n\n# Streaming inference\nfor chunk in engine.generate_response_async(\"List three benefits of on-device AI.\"):\n    print(chunk, end=\"\", flush=True)\n```\n\n**Got:** AI Edge Gallery app builds and installs successfully, Gemma 4 model downloads to device, on-device inference produces coherent responses, GPU delegate activates for acceleration.\n\n**If fail:** Check Android SDK version >= 26 (`adb shell getprop ro.build.version.sdk`), verify device has sufficient storage for model download, ensure GPU delegate is supported (`adb logcat | grep -i delegate`), check Hugging Face model access permissions, verify ADB connection (`adb devices`).\n\n### Step 3: Convert and Quantize Models with TFLite\n\nConvert standard models to TFLite format with post-training quantization.\n\n```python\n# convert_tflite.py\nimport os\nimport tensorflow as tf\nimport numpy as np\n\ndef convert_to_tflite(saved_model_path, output_path, quantization=\"dynamic\"):\n    \"\"\"Convert SavedModel to TFLite with quantization.\"\"\"\n    converter = tf.lite.TFLiteConverter.from_saved_model(saved_model_path)\n\n    if quantization == \"dynamic\":\n        converter.optimizations = [tf.lite.Optimize.DEFAULT]\n\n    elif quantization == \"int8\":\n        converter.optimizations = [tf.lite.Optimize.DEFAULT]\n        converter.target_spec.supported_ops = [\n            tf.lite.OpsSet.TFLITE_BUILTINS_INT8\n        ]\n        converter.inference_input_type = tf.int8\n        converter.inference_output_type = tf.int8\n\n        # Representative dataset for calibration\n        def representative_dataset():\n            for _ in range(100):\n                yield [np.random.randn(1, 224, 224, 3).astype(np.float32)]\n        converter.representative_dataset = representative_dataset\n\n    elif quantization == \"float16\":\n        converter.optimizations = [tf.lite.Optimize.DEFAULT]\n        converter.target_spec.supported_types = [tf.float16]\n\n    tflite_model = converter.convert()\n\n    with open(output_path, \"wb\") as f:\n        f.write(tflite_model)\n\n    original_size = sum(\n        os.path.getsize(os.path.join(dp, f))\n        for dp, _, filenames in os.walk(saved_model_path)\n        for f in filenames\n    ) \u002F (1024 * 1024)\n    quantized_size = len(tflite_model) \u002F (1024 * 1024)\n    print(f\"Original: {original_size:.1f} MB -> Quantized: {quantized_size:.1f} MB\")\n    print(f\"Compression ratio: {original_size \u002F quantized_size:.1f}x\")\n\n# Usage\nconvert_to_tflite(\"saved_model\u002F\", \"model_int8.tflite\", quantization=\"int8\")\n```\n\nONNX Runtime quantization alternative:\n\n```python\n# quantize_onnx.py\nfrom onnxruntime.quantization import quantize_dynamic, quantize_static, QuantType\n\n# Dynamic quantization (no calibration data needed)\nquantize_dynamic(\n    model_input=\"model.onnx\",\n    model_output=\"model_int8.onnx\",\n    weight_type=QuantType.QInt8\n)\n\n# Static quantization (better accuracy, needs calibration)\n# ... (see EXAMPLES.md for complete calibration workflow)\n```\n\n**Got:** TFLite model generated at specified path, model size reduced by 2-4x with INT8, inference accuracy within 1-2% of original, ONNX quantization produces valid model.\n\n**If fail:** Check TensorFlow version >= 2.15 for latest quantization support, verify representative dataset matches model input shape, ensure all ops are supported in TFLite (`converter.allow_custom_ops = True` as fallback), check ONNX opset version compatibility.\n\n### Step 4: Configure Hardware Delegates\n\nSelect and configure hardware acceleration delegates for target devices.\n\n```python\n# configure_delegates.py\nimport tensorflow as tf\n\ndef create_interpreter_with_delegate(model_path, delegate=\"gpu\"):\n    \"\"\"Create TFLite interpreter with hardware delegate.\"\"\"\n\n    if delegate == \"gpu\":\n        delegate_obj = tf.lite.experimental.load_delegate(\n            \"libtensorflowlite_gpu_delegate.so\",\n            options={\"precision\": \"fp16\", \"allow_quantized_models\": \"true\"}\n        )\n    elif delegate == \"nnapi\":\n        # Android Neural Networks API - routes to NPU\u002FDSP\n        delegate_obj = tf.lite.experimental.load_delegate(\n            \"libtensorflowlite_nnapi_delegate.so\"\n        )\n    elif delegate == \"xnnpack\":\n        # Optimized CPU inference\n        delegate_obj = None  # XNNPACK is default in TFLite\n\n    interpreter = tf.lite.Interpreter(\n        model_path=model_path,\n        experimental_delegates=[delegate_obj] if delegate_obj else None,\n        num_threads=4\n    )\n    interpreter.allocate_tensors()\n    return interpreter\n```\n\nDelegate selection guide:\n\n| Device | Best Delegate | Fallback | Notes |\n|--------|--------------|----------|-------|\n| Android (Qualcomm) | NNAPI -> Hexagon DSP | GPU -> XNNPACK | Check `nnapi_accelerator_name` |\n| Android (MediaTek) | NNAPI -> APU | GPU -> XNNPACK | Dimensity chips have dedicated APU |\n| Android (Samsung) | NNAPI -> NPU | GPU -> XNNPACK | Exynos NPU via NNAPI |\n| iOS | CoreML delegate | Metal GPU | Use `coreml_delegate` for ANE |\n| Linux embedded | GPU (if available) | XNNPACK | RPi uses XNNPACK CPU |\n| Browser | WebGL \u002F WebGPU | WASM SIMD | Via TensorFlow.js |\n\n**Got:** Delegate loads without errors, inference runs on target accelerator, latency improves 2-10x over CPU-only depending on model and device.\n\n**If fail:** Verify delegate library exists on device, check device supports requested delegate (`adb shell cat \u002Fproc\u002Fcpuinfo` for CPU features), fall back to XNNPACK if GPU\u002FNPU unavailable, check OpenCL support for GPU delegate, verify NNAPI version (`adb shell getprop ro.android.ndk.version`).\n\n### Step 5: Benchmark On-Device Performance\n\nMeasure inference latency, memory usage, and power consumption on target devices.\n\n```bash\n# Use TFLite benchmark tool\nadb push model_int8.tflite \u002Fdata\u002Flocal\u002Ftmp\u002F\n\n# CPU benchmark\nadb shell \u002Fdata\u002Flocal\u002Ftmp\u002Fbenchmark_model \\\n  --graph=\u002Fdata\u002Flocal\u002Ftmp\u002Fmodel_int8.tflite \\\n  --num_threads=4 \\\n  --num_runs=50 \\\n  --warmup_runs=5\n\n# GPU benchmark\nadb shell \u002Fdata\u002Flocal\u002Ftmp\u002Fbenchmark_model \\\n  --graph=\u002Fdata\u002Flocal\u002Ftmp\u002Fmodel_int8.tflite \\\n  --use_gpu=true \\\n  --num_runs=50\n\n# NNAPI benchmark\nadb shell \u002Fdata\u002Flocal\u002Ftmp\u002Fbenchmark_model \\\n  --graph=\u002Fdata\u002Flocal\u002Ftmp\u002Fmodel_int8.tflite \\\n  --use_nnapi=true \\\n  --nnapi_accelerator_name=google-edgetpu \\\n  --num_runs=50\n```\n\nPython benchmarking:\n\n```python\n# benchmark_edge.py\nimport time\nimport numpy as np\nimport psutil\n\ndef benchmark_inference(interpreter, input_data, num_runs=100):\n    \"\"\"Benchmark TFLite model inference.\"\"\"\n    input_details = interpreter.get_input_details()\n    output_details = interpreter.get_output_details()\n\n    # Warmup\n    for _ in range(10):\n        interpreter.set_tensor(input_details[0][\"index\"], input_data)\n        interpreter.invoke()\n\n    # Benchmark\n    latencies = []\n    mem_before = psutil.Process().memory_info().rss \u002F (1024 * 1024)\n    for _ in range(num_runs):\n        start = time.perf_counter()\n        interpreter.set_tensor(input_details[0][\"index\"], input_data)\n        interpreter.invoke()\n        latencies.append((time.perf_counter() - start) * 1000)\n    mem_after = psutil.Process().memory_info().rss \u002F (1024 * 1024)\n\n    print(f\"Latency (p50): {np.percentile(latencies, 50):.1f} ms\")\n    print(f\"Latency (p95): {np.percentile(latencies, 95):.1f} ms\")\n    print(f\"Latency (p99): {np.percentile(latencies, 99):.1f} ms\")\n    print(f\"Memory delta: {mem_after - mem_before:.1f} MB\")\n    print(f\"Throughput: {1000 \u002F np.mean(latencies):.1f} inferences\u002Fsec\")\n```\n\n**Got:** Benchmark produces latency percentiles, memory usage, and throughput metrics; GPU delegate shows 2-5x speedup over CPU for vision models; Gemma 4 2B achieves 10-30 tokens\u002Fsec on flagship phones.\n\n**If fail:** Ensure benchmark binary matches device architecture (arm64-v8a), verify model pushed to device (`adb shell ls \u002Fdata\u002Flocal\u002Ftmp\u002F`), check sufficient device storage, kill background apps to reduce memory pressure, verify thermal throttling not active (`adb shell cat \u002Fsys\u002Fclass\u002Fthermal\u002Fthermal_zone*\u002Ftemp`).\n\n### Step 6: Package for Production Deployment\n\nBuild the final mobile application with embedded or downloadable model.\n\n```kotlin\n\u002F\u002F Android: EdgeAIManager.kt\nimport com.google.mediapipe.tasks.genai.llminference.LlmInference\n\nclass EdgeAIManager(private val context: Context) {\n    private var llmInference: LlmInference? = null\n\n    fun initialize(modelPath: String) {\n        val options = LlmInference.LlmInferenceOptions.builder()\n            .setModelPath(modelPath)\n            .setMaxTokens(512)\n            .setTemperature(0.7f)\n            .setTopK(40)\n            .setResultListener { result, done ->\n                \u002F\u002F Handle streaming tokens\n                onTokenReceived(result, done)\n            }\n            .build()\n\n        llmInference = LlmInference.createFromOptions(context, options)\n    }\n\n    fun generateResponse(prompt: String): String {\n        return llmInference?.generateResponse(prompt)\n            ?: throw IllegalStateException(\"Model not initialized\")\n    }\n\n    fun release() {\n        llmInference?.close()\n        llmInference = null\n    }\n}\n```\n\nModel download and caching strategy:\n\n```kotlin\n\u002F\u002F ModelDownloader.kt\nclass ModelDownloader(private val context: Context) {\n    private val modelDir = File(context.filesDir, \"models\")\n\n    suspend fun ensureModel(modelName: String, url: String): File {\n        val modelFile = File(modelDir, modelName)\n        if (modelFile.exists()) return modelFile\n\n        modelDir.mkdirs()\n        \u002F\u002F Download with progress tracking\n        \u002F\u002F ... (see EXAMPLES.md for complete implementation)\n        return modelFile\n    }\n}\n```\n\n**Got:** Android app builds with MediaPipe dependency, model loads on first launch, inference runs within latency budget, model cached after first download, graceful fallback when device is unsupported.\n\n**If fail:** Check minSdk >= 26 in `build.gradle`, verify MediaPipe dependency version, ensure model file not corrupted (check SHA256), verify sufficient device storage for model, check ProGuard rules preserve MediaPipe classes, test on multiple device tiers.\n\n## Validation\n\n- [ ] Model converts to TFLite\u002FONNX without op compatibility errors\n- [ ] Quantized model accuracy within acceptable tolerance (\u003C 2% degradation)\n- [ ] Hardware delegate loads and accelerates inference\n- [ ] Benchmark latency meets target (e.g., \u003C 100ms for vision, \u003C 50ms\u002Ftoken for LLM)\n- [ ] Memory usage stays within device budget\n- [ ] AI Edge Gallery successfully loads and runs Gemma 4 model\n- [ ] On-device LLM generates coherent responses\n- [ ] Application handles model download, caching, and updates\n- [ ] Graceful degradation on unsupported devices\n- [ ] Battery impact within acceptable range for target use case\n\n## Pitfalls\n\n- **Unsupported ops in TFLite**: Custom ops fail conversion - use `converter.allow_custom_ops = True` or replace with supported alternatives, check op compatibility list\n- **Quantization accuracy loss**: INT4 degrades quality for sensitive tasks - use mixed precision, calibrate with representative data, evaluate on edge-specific test set\n- **Delegate initialization failure**: GPU delegate crashes on older devices - always implement CPU fallback, check delegate compatibility before loading\n- **Memory pressure on device**: Model + app exceeds available RAM - use memory-mapped models, implement model unloading, reduce batch size to 1\n- **Thermal throttling**: Sustained inference causes device overheating - implement duty cycling, reduce inference frequency, monitor thermal zones\n- **Model download size**: Large models over cellular data - offer Wi-Fi-only download, implement resumable downloads, use progressive model loading\n- **Version fragmentation**: Model works on some devices but not others - test on representative device matrix, use NNAPI version checks, maintain device compatibility database\n\n## Related Skills\n\n- `deploy-ml-model-serving` - Cloud-based model serving (complement to edge)\n- `monitor-model-drift` - Monitor model quality over time\n- `register-ml-model` - Register models before edge deployment\n- `create-dockerfile` - Containerize edge model conversion pipeline\n- `create-multistage-dockerfile` - Multi-stage builds for model conversion pipelines\n",{"name":5,"locale":23,"license":14,"metadata":24,"translator":31,"description":32,"allowed-tools":33,"source_commit":34,"source_locale":35,"translation_date":36},"caveman-lite",{"tags":25,"author":26,"domain":27,"version":28,"language":29,"complexity":30},"edge-ai, google-ai-edge, gemma, tflite, onnx, quantization, on-device","Philipp Thoss","edge-computing","1.0","multi","advanced","Julius Brussee homage — caveman","Deploy machine learning models to edge devices using Google AI Edge Gallery, TensorFlow Lite, ONNX Runtime, and MediaPipe. Covers model quantization (INT8\u002FINT4), on-device inference with Gemma 4 models, Android\u002FiOS deployment via AI Edge Gallery, hardware delegate selection (GPU\u002FNPU\u002FDSP), and performance benchmarking on constrained devices. Use when deploying models to mobile phones, IoT devices, or embedded systems where cloud inference is impractical due to latency, cost, or connectivity constraints.\n","Read Write Edit Bash Grep Glob WebFetch","82c77053","en","2026-04-23","master","f483e54f3ad5f202a77d45f2e57f8d970b71195f","skills_library\u002Fdeploy-edge-ai-model",2,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills","https:\u002F\u002Fgithub.com\u002Froohe","yoou.link","2026-05-19 15:56:07",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add roohe\u002Fagentic-super-skills --skill deploy-edge-ai-model",{"tool":51,"command":52},"bunx","bunx skills add roohe\u002Fagentic-super-skills --skill deploy-edge-ai-model",{"tool":54,"command":55},"pnpm","pnpm dlx skills add roohe\u002Fagentic-super-skills --skill deploy-edge-ai-model","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fdeploy-edge-ai-model\u002FSKILL.md",true,[59],{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002FEXAMPLES.md","REFERENCE","参考文档",7927,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fdeploy-edge-ai-model\u002Freferences\u002FEXAMPLES.md",[66,73,80,87,94,101],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M73D865CZME2FCMKA4PQM348","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M73D7Z64J4ABWZJD7P44XBBF","youtube-downloader","Download and process YouTube content for research. Use when: downloading competitor videos for analysis; extracting audio for podcasts; getting transcripts for content repurposing; archiving webinars; research content curation","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyoutube-downloader\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M73D7K8778TGZV3GJFR3703D","yc-pitch-deck","Create a compelling startup pitch deck that follows the structure proven to raise billions from top investors. Master the YC and Sequoia formats that get founders funded. Use when: **Fundraising** to create investor pitch decks; **YC application** to structure your narrative; **Demo Day prep** to craft your 2-minute pitch; **Angel investors** to communicate your opportunity; **Partnership pitches** to structure compelling asks","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyc-pitch-deck\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M73D70KJSE0E8Z28YMNNRT04","x-twitter-scraper","Use when the user needs X (Twitter) data or confirmation-gated X actions through Xquik: tweet search, user lookup, follower extraction, media download, monitoring, webhooks, MCP, SDKs, posting, likes, DMs, and profile updates. Requires a Xquik API key. Never ask for X login material.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fx-twitter-scraper\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M73D6ED01GV077R7K4NZNFZJ","write-vignette","Create R package vignettes using R Markdown or Quarto. Covers vignette setup, YAML configuration, code chunk options, building and testing, and CRAN requirements for vignettes. Use when adding a Getting Started tutorial, documenting complex workflows spanning multiple functions, creating domain-specific guides, or when CRAN submission requires user-facing documentation beyond function help pages.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-vignette\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":18},"01M73D69YJR0BK3NFHE0CYG3EF","write-validation-documentation","Write IQ\u002FOQ\u002FPQ validation documentation for computerized systems in regulated environments. Covers protocols, reports, test scripts, deviation handling, and approval workflows. Use when validating R or other software for regulated use, preparing for a regulatory audit, documenting qualification of computing environments, or creating and updating validation protocols and reports for new or re-qualified systems.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-validation-documentation\u002FSKILL.md",[],[]]