|
Download README.md from DmitrofNET/Teveration-1: direct link, hf CLI and curl.
- Browser
- Download file 8.9 kB
-
https://huggingface.co/DmitrofNET/Teveration-1/resolve/main/README.md
- Command line
-
hf download hf://DmitrofNET/Teveration-1/README.md
-
curl -L -o README.md https://huggingface.co/DmitrofNET/Teveration-1/resolve/main/README.md
8.9 kB
| license: cc-by-4.0 | |
| base_model: linlinlinlinsdada/Jeveration | |
| base_model_relation: quantized | |
| pipeline_tag: text-to-image | |
| library_name: teveration | |
| language: | |
| - en | |
| tags: | |
| - text-to-image | |
| - image-to-image | |
| - depth-estimation | |
| - image-segmentation | |
| - ternary | |
| - quantized | |
| - jeveration | |
| - qwen3.5 | |
| - bonsai | |
| # Teveration 1 | |
| **Jeveration in 2.6 GB instead of 19 GB.** A ternary-backbone quantization of | |
| [Jeveration](https://huggingface.co/linlinlinlinsdada/Jeveration) that keeps every feature of the original: | |
| text-to-image, image-to-image (edge map or depth map to image, colorization, anime / Ghibli / watercolor styles) and | |
| dense prediction (13-class segmentation, depth, surface normals). Built without any retraining. | |
| - Code, build scripts, tests and benchmarks: https://github.com/DmitrofNETDev/Teveration-1 | |
| - Original model: [linlinlinlinsdada/Jeveration](https://huggingface.co/linlinlinlinsdada/Jeveration), paper https://arxiv.org/abs/2611.24738 | |
|  | |
| Left of each pair: the original Jeveration. Right: Teveration 1, same prompt, same random state, same sampling draw. | |
| These are the first 8 of the 32 benchmark pictures, not a selection. | |
| ## Download | |
| One command, everything (2.64 GB): | |
| ```bash | |
| hf download DmitrofNET/Teveration-1 --local-dir model | |
| ``` | |
| Or click a file to download it directly: | |
| | File | Size | | |
| |---|---| | |
| | [backbone.safetensors](https://huggingface.co/DmitrofNET/Teveration-1/resolve/main/backbone.safetensors?download=true) | 916 MB | | |
| | [adapter.safetensors](https://huggingface.co/DmitrofNET/Teveration-1/resolve/main/adapter.safetensors?download=true) | 503 MB | | |
| | [head.safetensors](https://huggingface.co/DmitrofNET/Teveration-1/resolve/main/head.safetensors?download=true) | 431 MB | | |
| | [codec.safetensors](https://huggingface.co/DmitrofNET/Teveration-1/resolve/main/codec.safetensors?download=true) | 396 MB | | |
| | [vision.safetensors](https://huggingface.co/DmitrofNET/Teveration-1/resolve/main/vision.safetensors?download=true) | 370 MB | | |
| All five are needed, together with the small `qwen/`, `tatitok/` and `manifest.json` files (the `hf download` command and | |
| `python -m teveration download` fetch those too). There is one build, so there is no list of quantization variants to | |
| choose from, and no GGUF: the model is not runnable by llama.cpp, Ollama or LM Studio. | |
| ## Files | |
| | File | Size | Content | Bits per weight | | |
| |---|---|---|---| | |
| | `backbone.safetensors` | 0.92 GB | 200 ternary matrices and the ternary token embedding of the Qwen3.5-4B language model (from PrismML's Ternary Bonsai 2 4B), plus Qwen's small full-precision tensors | 1.73 | | |
| | `adapter.safetensors` | 0.50 GB | a rank-512 low-rank path for each ternary matrix: Jeveration's LoRA re-fitted to the ternary base | 4.12 | | |
| | `head.safetensors` | 0.43 GB | image head, decision-token inputs, dense heads | 4.13 and 16 | | |
| | `vision.safetensors` | 0.37 GB | Qwen3.5-4B vision tower (image-to-image and dense prediction) | 8.12 | | |
| | `codec.safetensors` | 0.40 GB | 512-px decoder (serves both text-to-image and image-to-image), CLIP text tower, codebook | 8.12 and 4.13 | | |
| | `qwen/`, `tatitok/` | 0.02 GB | unchanged tokenizer and configuration files | | | |
| | `manifest.json` | | size and SHA-256 of every file | | | |
| Total 2.64 GB. The original stack (Qwen3.5-4B, `jeveration.pt`, two decoders, CLIP, TA-TiTok) is 19.08 GB. | |
| All packs are plain safetensors files; the encodings are documented in | |
| [docs/FORMAT.md](https://github.com/DmitrofNETDev/Teveration-1/blob/main/docs/FORMAT.md). | |
| ## Use | |
| Needs Python 3.10+, a CUDA GPU with 12 GB and the `teveration` package from GitHub. The files are not loadable with | |
| `diffusers` or plain `transformers`. | |
| ```bash | |
| git clone https://github.com/DmitrofNETDev/Teveration-1 | |
| cd Teveration-1 | |
| pip install torch --index-url https://download.pytorch.org/whl/cu126 | |
| pip install -e . | |
| python -m teveration download # fetches these files into model/ and verifies them | |
| python -m teveration t2i "A lighthouse on a rocky cliff under a stormy sky." --seed 0 | |
| python -m teveration i2i colorize assets/inputs/gray_burger.jpg | |
| python -m teveration i2i depth assets/inputs/depth_pancakes.png --caption "A stack of fluffy pancakes with blueberries." | |
| python -m teveration dense assets/inputs/room_1.png | |
| ``` | |
| ```python | |
| from teveration import Teveration | |
| tev = Teveration("model") | |
| images = tev.text_to_image(["An oil painting of sunflowers in a blue ceramic vase."], seed=0) # uint8 [B, 512, 512, 3] | |
| images = tev.image_to_image(sources, "colorize", seed=0) # tasks: hed, depth, colorize, anime, ghibli, watercolor | |
| maps = tev.dense_predict(pictures) # {"seg", "depth", "normal"} | |
| ``` | |
| ## Evaluation | |
| Measured from these files on an RTX 4070 with | |
| [benchmarks/run.py](https://github.com/DmitrofNETDev/Teveration-1/blob/main/benchmarks/run.py). Both models answer the | |
| same requests with the same random states and sampling draws; each number compares Teveration's output with the | |
| original's output for the same request. | |
| | | Jeveration (original) | Teveration 1 | | |
| |---|---|---| | |
| | Download and disk size | 19.08 GB | **2.64 GB** (7.2x smaller) | | |
| | Text-to-image, CLIP text score (32 pictures) | 0.321 | 0.322 | | |
| | Text-to-image, similarity to the original's picture (worst case) | 1 | 0.964 (0.888) | | |
| | Image-to-image, similarity to the original's picture (worst case), 8 pictures | 1 | 0.973 (0.945) | | |
| | Segmentation, pixels agreeing with the original (4 rooms) | 100% | 95.0% | | |
| | Depth, difference from the original | 0% | 3.6% | | |
| | Surface normals, difference from the original | 0° | 11.2° | | |
| | Decoders alone (original codes, Teveration decoders), PSNR | | 41.3 dB text-to-image, 45.5 dB image-to-image | | |
| | Load time | 54 s | 11 s | | |
| | Seconds per forward pass, peak GPU memory | 0.51 s, 11.4 GB | 0.46 s, 11.2 GB | | |
| The pictures match their prompts as well as the original's do, but they are not the same pictures: compositions and | |
| colours shift. This is a small-sample fidelity check against the original. GenEval, DPG-Bench, HPS and NYUv2 | |
| ground-truth scores have not been run. | |
|  | |
|  | |
| More comparison sheets: `images/t2i_2.jpg` to `images/t2i_4.jpg`. | |
| ## How it was made | |
| 1. Dead weight removed (4.3 GB): one of the two decoder files is a bit-identical subset of the other, CLIP's vision tower | |
| is never used, and only the codebook of the 1.6 GB tokenizer is used. | |
| 2. The frozen Qwen3.5-4B backbone (9.3 GB) is replaced by PrismML's ternary version of the same model, repacked from 2 | |
| to 1.6 bits per weight (0.9 GB). | |
| 3. Jeveration's LoRA cannot be merged and rounded: its update is 2.5 to 4.8 times larger than the base weights. Each | |
| matrix instead keeps a separate low-rank path, `W = T + U A`, re-fitted in closed form so that it carries both the LoRA | |
| and what ternarization removed, weighted by the inputs the matrix sees on calibration prompts. No gradient step. | |
| 4. The head and the CLIP text tower are rounded to 4 bits in a Hadamard-rotated basis, the vision tower and the decoder | |
| to 8 bits. Each choice is the lowest precision that component tolerated when rounded on its own. | |
| The full analysis and every measurement: | |
| [docs/analysis.md](https://github.com/DmitrofNETDev/Teveration-1/blob/main/docs/analysis.md). | |
| ## Limits | |
| - Run-time memory is not reduced: the packs are unpacked to the dense bfloat16 network of the original (about 10 GB of | |
| GPU memory for the generator). The saving is download and disk size. | |
| - Outputs drift from the original's (worst text-to-image similarity 0.888); dense maps differ by a few percent. | |
| - No training was done. A distilled successor at about 1.5 GB is planned. | |
| - Inherits Jeveration's limits: 512 px output, English prompts, 13 indoor classes for segmentation. | |
| ## License and credit | |
| Model files and figures: CC BY 4.0. Code: Apache 2.0. **Credit is required** when you use, redistribute or build on | |
| this model: | |
| > Teveration 1 by DmitrofNET, https://github.com/DmitrofNETDev/Teveration-1 | |
| Teveration 1 is a derivative of [Jeveration](https://huggingface.co/linlinlinlinsdada/Jeveration) (The Jeveration | |
| Authors), [Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B) (Alibaba Cloud), | |
| [Ternary Bonsai 2 4B](https://huggingface.co/prism-ml/Ternary-Bonsai-2-4B-mlx-2bit) (created using Bonsai by Prism ML), | |
| [TA-TiTok](https://huggingface.co/turkeyju/tokenizer_tatitok_bl128_vq) (Bytedance) and CLIP ViT-L/14-336 (OpenAI), all | |
| under Apache 2.0. Their notices are in `NOTICE` and `THIRD_PARTY_NOTICES.md`; what was changed is listed in | |
| `LICENSE-WEIGHTS.md`. | |
| ```bibtex | |
| @software{teveration1, | |
| title = {Teveration 1: a ternary-backbone build of the Jeveration image model}, | |
| author = {DmitrofNET}, | |
| year = {2026}, | |
| url = {https://github.com/DmitrofNETDev/Teveration-1} | |
| } | |
| ``` | |