Nitdaa Sibling Project - HF Deployment Guide
Version 1.0 Public Release
Overview
This document outlines the specific steps and constraints required to deploy the Nitdaa mobile sibling to HuggingFace Spaces free tier.
1. Prerequisites
- A HuggingFace account.
- A HuggingFace Space configured with the Docker SDK.
- Hardware allocation: Free Tier (2 vCPU, 16GB Disk, 12GB RAM).
2. HuggingFace Secrets Configuration
To enable dynamic Dataset Synchronization, you must configure the following variable in your Space's Settings under Variables and Secrets:
HF_TOKEN: A HuggingFace access token with "Read" and "Write" permissions to theSam-max1/he-dataandSam-max1/mat_datadatasets.ADMIN_MODE: Set to0to completely lock down the UI for public usage.
3. Deployment Steps
- Clone the
nitdaafolder locally. - Initialize a git repository pointing to your HF Space remote.
- Use the HuggingFace CLI to upload large directories without timing out:
huggingface-cli upload <your_username>/nitdaa . . --repo-type space - HuggingFace will automatically detect the
Dockerfilein the root and begin building.
4. Cold Boot Times
Due to the CPU-bound nature of the free tier:
- Docker Build: ~5-8 minutes (first boot only).
- Dataset Sync: Variable depending on the size of
he_data. - Model Load: The
Qwen3.5-2BGGUF model and PyTorch embeddings take ~1-2 minutes to spin up into memory on boot.
5. Security Safeguards
Nitdaa implements headless API blocking. Any direct programmatic access to the REST endpoints (without proper CORS headers or session tokens) will automatically return 403 Forbidden to prevent bot-net abuse on the public URL.