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.
Instructions to use tugrulv89/image21-evaluation-cache with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use tugrulv89/image21-evaluation-cache with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("tugrulv89/image21-evaluation-cache", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
|
Download handler/qwen21/README.md from tugrulv89/image21-evaluation-cache: direct link, hf CLI and curl.
- Browser
- Download file 1.97 kB
-
https://huggingface.co/tugrulv89/image21-evaluation-cache/resolve/main/handler/qwen21/README.md
- Command line
-
hf download hf://tugrulv89/image21-evaluation-cache/handler/qwen21/README.md
-
curl -L -o README.md https://huggingface.co/tugrulv89/image21-evaluation-cache/resolve/main/handler/qwen21/README.md
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](https://huggingface.co/Qwen/Qwen-Image-2.1). | |
| Check: `python -m unittest discover -s qwen21/tests`. | |