Views
No views yet
Qwen/Qwen3.5-0.8B backbone. It implements a two-stage hybrid generation framework:A2DQwenLMHeadModel and StackedLDMHeads classes in your script, then load the weights as follows:1import torch
2import transformers
3from huggingface_hub import hf_hub_download
4
5# 1. Initialize and load the bidirectional base LLM
6base_model = transformers.AutoModel.from_pretrained("dataopsnick/adapt-diff-qwen-0.8b", torch_dtype=torch.bfloat16)
7
8# 2. Download and load the custom LDM projection head weights
9ldm_weights_path = hf_hub_download(repo_id="dataopsnick/adapt-diff-qwen-0.8b", filename="ldm_heads.pt")
10ldm_heads.load_state_dict(torch.load(ldm_weights_path))python infer.pypython train.py