Downloads ยท 30 days
13
13% of all-time downloads
TevunahAi/Dream-v0-Instruct-7B-FP8
Dream-v0-Instruct-7B-FP8 is a machine learning model from TevunahAi. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
๐ First FP8 quantized Dream model for native PyTorch/transformers inference.
Downloads ยท 30 days
13
13% of all-time downloads
All-time downloads
99
Public
Parameters
7.6B
8.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8.7 GB ยท 100%
How the weights are stored.
F8_E4M36.5B ยท 86%
From the Hugging Face model README
๐ First FP8 quantized Dream model for native PyTorch/transformers inference.
This is an FP8 quantized version of Dream-v0-Instruct-7B, a diffusion-based large language model from HKU NLP Group.
Dream 7B is a Diffusion Large Language Model (dLLM) - unlike traditional autoregressive models (GPT, LLaMA, Claude) that generate text left-to-right one token at a time, Dream uses parallel denoising to refine the entire sequence simultaneously.
Key advantages:
| Property | Value |
|---|---|
| Base Model | Dream-v0-Instruct-7B |
| Quantization | FP8 Dynamic (Weight-only) |
| Method | llmcompressor FP8_DYNAMIC |
| Calibration | Data-free |
| Storage Size | ~8.7GB |
| VRAM Required | ~10GB |
| Quantization Time | 1.7 minutes |
Professional hardware ensures consistent, high-quality quantization:
| Precision | Size | VRAM Required |
|---|---|---|
| BF16 | ~14 GB | ~16 GB |
| FP8 | ~8.7 GB | ~10 GB |
Note: Dream uses a custom diffusion architecture that requires transformers with trust_remote_code=True. It is not compatible with standard inference frameworks like vLLM.
import torch
from transformers import AutoModel, AutoTokenizer
model_path = "TevunahAi/Dream-v0-Instruct-7B-FP8"
# Load FP8 model - will decompress to BF16 during inference
model = AutoModel.from_pretrained(
model_path,
torch_dtype="auto", # Auto-detects FP8, decompresses to BF16
trust_remote_code=True, # Required for diffusion architecture
device_map="auto",
low_cpu_mem_usage=True,
)
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
# Prepare input
messages = [
{"role": "user", "content": "Explain quantum computing in simple terms."}
]
inputs = tokenizer.apply_chat_template(
messages,
return_tensors="pt",
return_dict=True,
add_generation_prompt=True
)
input_ids = inputs.input_ids.to(model.device)
attention_mask = inputs.attention_mask.to(model.device)
# Dream uses diffusion_generate, not generate!
output = model.diffusion_generate(
input_ids,
attention_mask=attention_mask,
max_new_tokens=512,
steps=256, # More steps = better quality
temperature=0.7,
top_p=0.9,
alg="entropy",
alg_temp=0.,
)
# Decode and clean up response
response = tokenizer.decode(output[0][input_ids.shape[1]:].tolist())
response = response.split("<|endoftext|>")[0].strip()
print(response)
pip install torch>=2.1.0 transformers>=4.40.0 accelerate compressed-tensors
System Requirements:
| Parameter | Description | Recommended Values |
|---|---|---|
steps | Number of diffusion steps | 128-512 (more = better quality) |
max_new_tokens | Maximum tokens to generate | 256-1024 |
temperature | Randomness (higher = creative) | 0.7-1.0 |
top_p | Nucleus sampling threshold | 0.9-0.95 |
alg | Decoding algorithm | "entropy" |
alg_temp | Algorithm temperature | 0.0 |
Quality vs Speed:
diffusion_generate() not generate() - Dream is a diffusion model!trust_remote_code=True for custom diffusion architecture<|endoftext|>FP8 primarily benefits storage and download speed for this model.
Traditional Autoregressive (GPT-style):
The quick | โ | brown | โ | fox | โ | jumps | โ | ...
Generates left-to-right, one token at a time.
Diffusion (Dream):
[noise] โ [rough text] โ [refined text] โ [final output]
Generates entire sequence through iterative refinement.
Result: Better at:
Dream excels at tasks requiring:
This quantization is based on Dream-org/Dream-v0-Instruct-7B by HKU NLP Group.
For comprehensive information about:
Please refer to the original model card.
This model inherits the Apache 2.0 License from the original Dream model.
If you use Dream, please cite the original paper:
@article{dream2025,
title={Dream 7B: Diffusion Large Language Models},
author={Ye, Jiacheng and Xie, Zhihui and others},
journal={arXiv preprint},
year={2025}
}
Professional AI Model Quantization by TevunahAi
Enterprise-grade quantization on specialized hardware
</div>