Update README.md
Browse files14 unmodified lines151617181920212223242531 unmodified lines5758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010114 unmodified lines- preview---# Halide Preview**Halide Preview** is a small, experimental 194M-parameter English text-to-image flow-matching model trained from scratch at 768×768 resolution. It is our first working research preview from the Halide image-generation family — built to test whether a recurrent Perceiver "thinker" paired with a pure-ConvNeXt V2 renderer can produce coherent high-resolution imagery at a fraction of the parameter count of standard diffusion Transformers.It is still early. Trained to step 291,000 (~4.66M image-caption samples seen), Halide Preview is not meant to rival large billion-parameter image models yet — it is a transparent, self-contained checkpoint and a starting point for what comes next.---31 unmodified lines---## Quick Start```pythonimport torchfrom diffusers import AutoencoderKLfrom huggingface_hub import hf_hub_downloadfrom safetensors.torch import load_filefrom halide_modeling import DistillT5TextEncoder, HalideConfig, HalideGenerator, VAE_REPO, sample_haliderepo_id = "Emergent-Knowledge/halide-preview"device = "cuda" if torch.cuda.is_available() else "cpu"model = HalideGenerator(HalideConfig())model.load_state_dict(load_file(hf_hub_download(repo_id, "generator.safetensors")), strict=True)model = model.to(device).eval()text_enc = DistillT5TextEncoder(device=device).load()text_enc.ctx_proj.load_state_dict(load_file(hf_hub_download(repo_id, "ctx_proj.safetensors")), strict=True)vae = AutoencoderKL.from_pretrained(VAE_REPO, torch_dtype=torch.bfloat16 if device == "cuda" else torch.float32).to(device).eval()images = sample_halide(model, text_enc, vae,prompts=["A breathtaking sunrise over snow-capped Alpine peaks reflected in a calm turquoise glacial lake"],steps=50, cfg=4.0, shift=2.5, resolution=768, seed=42, device=device,)images[0].save("halide_sample.png")```---## Limitations- **Research preview:** Trained on ~4.66M samples at 194M parameters, so fine anatomy, hands, dense text rendering, and complex multi-object counts can still break down.- **Square 768×768 native:** Tuned for square 768×768 generation; arbitrary aspect ratios are not yet supported.- **English prompts:** Text conditioning is trained on English captions via DistillT5.---## Acknowledgements & LicenseHalide Preview builds on open research and open weights from the community — including FCDM (`arXiv:2603.09408`), Agate Thinker-Renderer architectures, [`LifuWang/DistillT5`](https://huggingface.co/LifuWang/DistillT5), [`google-t5/t5-base`](https://huggingface.co/google-t5/t5-base), and [`stabilityai/sd-vae-ft-mse`](https://huggingface.co/stabilityai/sd-vae-ft-mse).14 unmodified lines151617181920212223242531 unmodified lines57585960616214 unmodified lines- preview---<img src="banner.png" alt="Halide Preview" width="100%">**Halide Preview** is a small, experimental 194M-parameter English text-to-image flow-matching model trained from scratch at 768×768 resolution. It is our first working research preview from the Halide image-generation family, built to test whether a recurrent Perceiver "thinker" paired with a pure-ConvNeXt V2 renderer can produce coherent high-resolution imagery at a fraction of the parameter count of standard diffusion Transformers.It is still early. Trained to step 291,000 (~4.66M image-caption samples seen), Halide Preview is not meant to rival large billion-parameter image models yet, it is a transparent, self-contained checkpoint and a starting point for what comes next.---31 unmodified lines---## Acknowledgements & LicenseHalide Preview builds on open research and open weights from the community — including FCDM (`arXiv:2603.09408`), Agate Thinker-Renderer architectures, [`LifuWang/DistillT5`](https://huggingface.co/LifuWang/DistillT5), [`google-t5/t5-base`](https://huggingface.co/google-t5/t5-base), and [`stabilityai/sd-vae-ft-mse`](https://huggingface.co/stabilityai/sd-vae-ft-mse).
README.md+3-42