Run this model with HF Jobs

Run tugrulv89/image21-evaluation-cache on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/tugrulv89/image21-evaluation-cache. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/tugrulv89/image21-evaluation-cache on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
tugrulv89's picture
Use official CPU offload and verified pipeline signature for 48 GB evaluation
33644f7 verified
|
Raw History Blame Contribute Delete
1.97 kB

Isolated Qwen Image 2.1 evaluation

Research only. Root 2511 handler, Dockerfile and production endpoint stay unchanged. The official base model is tested at 40 steps, CFG 1 and BF16, with prefix KV cache. Reference conditioning uses the upstream output_resolution=1024 default; the requested final image is 1024x1536. Full-resident BF16 failed with CUDA OOM on the actual 48 GB worker. The official enable_model_cpu_offload() method keeps BF16 and moves components in sequence without requiring a 96 GB GPU. This is a base-model quality comparison; it is not an 8-step Turbo benchmark.

Build from the repository root using qwen21/Dockerfile. Set QWEN21_MODEL_REPO, immutable QWEN21_MODEL_REVISION, HF_TOKEN, JSON_PATH_KEY and GCS_BUCKET_NAME. The evaluation uses a separate RunPod endpoint with a 48 GB GPU, min 0/max 1, FlashBoot enabled and the pinned official model URL assigned in RunPod's Model field. Source weights and matching worker code live in a public HF evaluation bundle (upstream public weights and code only); the worker loads the exact snapshot from /runpod-volume/huggingface-cache/hub in offline mode. Missing cache files fail explicitly; container downloads are disabled. Container disk holds runtime files, not a persistent model cache.

Input: {"input":{"task":"edit","jobs":[{"job_id":"probe","image_url":"https://source.jpg","prompt":"Explicit photo edit","size":"1024*1536","seed":20261040}]}}. Results include actual diffusion inference_ms, denoising steps, GPU model and peak reserved GPU memory, separate from cold load/upload. No preservation guarantee: compare actual product evidence before video generation.

The Qwen Research License permits research/evaluation only; separate commercial permission is needed before production use. Preserve the upstream LICENSE and NOTICE in the HF model bundle. Official source.

Check: python -m unittest discover -s qwen21/tests.