
Turns each String prompt or Image, or a picture paired with its PictureIdentity, into a generated clip using a locally bound diffusers snapshot. Text and positioned pictures emit each frame's Image with a position carrying a fresh made identity; an Image alone emits images only.
Text prompts become frames suitable for preview or storage.
snapshots to a complete diffusers snapshot or collection of snapshot directories. model selects a relative directory; a dot selects the bundle root. No files are downloaded at startup or between clips. On upgrade, existing backends must bind their complete cached checkpoint to snapshots and replace the former Hub ID in model with its relative directory in that bundle, or a dot for a snapshot at the root. The previous default checkpoint is no longer selected or supplied implicitly; an old backend without this binding cannot deploy this version. Picture input requires an image-to-video pipeline compatible with the Wan library; text input uses the pipeline named by the snapshot's model index.num_frames frames. A picture uses image_prompt and is resized to width by height without preserving its aspect. Empty pictures fail. Missing files, unsupported geometry, wrong output sizes or frame counts, and inference failures stop the worker with their errors.fps declares output playback rate for every checkpoint (default 24); bind the rate used by the downstream player or encoder. The Image stream does not pace or resample frames. Duration is emitted frame count divided by this configured rate, and each generated frame's position_ns advances by one frame at this rate.negative_prompt; the one pixel role is image, the received RGB picture of image-to-video input. Unused inputs are omitted. On a generated clip, seed is the initializer it was generated with: the configured seed as given (a negative value is used as given), or, when unset, a fresh random 63-bit draw made per clip and recorded here. The startup record and a job that fails before generation starts carry a null seed. Global stochastic draws also record CPU/CUDA RNG-state byte digests in rng_state_sha256 (null when unavailable), without advancing them; a startup initializer alone does not pin every later draw. sources: list of pixels_sha256 and position (the received picture's position when its PictureIdentity is wired, else null). timing_s: startup, model_load, total, encode, denoise, decode, in synchronized wall seconds. Startup includes imports, configuration and loading; job total excludes startup and includes hot loading. Stage/load times are diagnostic subsets, never additive billing. Denoise times model forwards and scheduler steps; encode/decode time prompt and VAE encoding or decoding. Stages the pipeline does not run are zero. memory: gpu_allocated_peak_bytes, gpu_reserved_peak_bytes, gpu_name, host_rss_peak_bytes, host_sample_interval_ms (10 ms sampled process RSS). Peaks are scoped to loading or a job; GPU peaks cover the PyTorch allocator, excluding driver/external allocations. Unavailable probes are null. result: status, error_type (class only), output_count, generated_count, output_bytes, duration_s, outputs. Each outputs entry contains worker_id, job_index, zero-based sequence, pixels_sha256, position, generated, width, height, bytes. Bytes are raw emitted pixels, not compressed files. The digest is SHA-256 of sorted-key JSON {"shape":[height,width,3],"dtype":"uint8"} serialized with Python json.dumps(sort_keys=True) using its default comma-space and colon-space separators, a NUL byte, then decoded RGB bytes, matching ClipPosition picture digests. A picture that cannot be decoded to RGB fails the job, so a digest is never null; sinks must hash decoded pixels before lossy re-encoding. A position is clip_name, clip_sha256, frame_index, made_id, crop_id and position_ns of the PictureIdentity emitted with the picture, so it names the picture key a dataset shard saves the picture under; made_id and crop_id are each empty or a lowercase UUIDv4, and no generated_index is printed. It is null when no PictureIdentity is emitted. The attempt key is (worker_id, job_index); its output key adds sequence. Every output entry repeats this key. Positions and digests link an attempt to saved pictures; both can repeat for identical deterministic jobs and do not identify attempts. The backend must retain the association of each sink/save decision with the attempt/output key to attribute duplicate acceptance or rejection; content equality alone cannot recover it. Measuring changes no emitted position or output pixel. Status: ready (startup), generated (a finished job) or failed. Every emitted frame is newly generated and counts as generated; a failed job reports zero outputs. A num_frames of 1 marks the single output a still, with null duration; otherwise outputs are one clip's frames and duration_s = output_count/fps. Usable, rejected, accepted and audited counts are decided downstream by the sink or review, not by the generator; the backend attributes those decisions through the output join keys, and no usable count is fabricated. The Python worker API has no documented stop hook: hard termination cannot emit a final summary. The backend must use deployment/vertex log context and actual lease reservations to account for startup, inter-job and post-job idle, shutdown and interruption capacity. No prompts or credentials are logged. Live tests assert startup before input, real GPU timings/peaks, output joins and cold/warm successful samples with matching configured recipe and input digests, retained as PPL_GENERATION_BASELINE in lease verifier stdout. Stochastic draws retain separate RNG-state digests; they are repeat samples, not claims of identical noise. Baselines are recorded when GPU tests run; no timing or PLC is inferred from offline fake pipelines.String selects source-free text generation; an (Image, PictureIdentity) tuple selects positioned-image generation; an Image alone selects ordinary generation and emits no positions. Each new frame mints a local OS-random UUIDv4 made_id and clears crop_id, retaining the known source root, frame and pass. Text video derives one synthetic SHA256 root from the domain generated-root-v1 and its first made UUID bytes, uses clip name generated, frame ordinals from zero and a fresh traversal pass. Synthetic roots are train-only. Each made clip mints one sequence_id and records sequence_index as the output ordinal times 2^32; position_ns advances from the source timestamp, or zero for text, by the ordinal divided by fps. The recipe and seed configure pixels and never identity; two identical runs have different keys. Replay copies saved IDs. There is no identity-based frame limit.model and snapshots can be replaced between clips. A failed replacement stops the worker. Other parameters are captured at startup, except image_prompt, which is read per picture. hf_token is passed to the local loader; private or gated weights must already be present in the bound file.device must name available hardware; a CUDA request never switches silently to CPU. min_free_gpu_memory_gib optionally refuses a load below a measured memory floor; without it only actual allocation failures detect exhaustion. The floor is not a guarantee for larger clips.width, height, num_frames or num_inference_steps raise latency and memory use. cpu_offload trades speed for GPU memory; vae_tiling requires a VAE that supports tiled decoding. Computing a checkpoint's content digest reads its files at load time.Automated release
release from workers main b4723aaa2
Automated release