Run this model with HF Jobs
Run Ruurd/BYOD-Qwen2.5-7B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Ruurd/BYOD-Qwen2.5-7B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Ruurd/BYOD-Qwen2.5-7B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Ruurd/BYOD-Qwen2.5-7B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Ruurd/BYOD-Qwen2.5-7B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Ruurd/BYOD-Qwen2.5-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Ruurd/BYOD-Qwen2.5-7B with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-7B-Instruct") model = PeftModel.from_pretrained(base_model, "Ruurd/BYOD-Qwen2.5-7B") - Notebooks
- Google Colab
- Kaggle
BYOD-Qwen2.5-7B
Paper: BYOD: Build Your Own DLM β Efficient Autoregressive-to-Diffusion Language Model Conversion
BYOD-Qwen2.5-7B is a masked discrete-diffusion language model created by
converting Qwen/Qwen2.5-7B-Instruct with
LoRA. This repository contains the exact best checkpoint from the
qwen-2.5-7b-mask experiment, not a 4-bit or otherwise quantized variant.
Try the full-precision ZeroGPU demo.
Method
The original autoregressive model was adapted for bidirectional denoising by
training rank-1024 LoRA adapters on the query and value projections. The model
predicts masked answer positions in parallel and iteratively refines its output.
The run configuration records a maximum of 25000 optimizer updates and uses
the MASK mask token. resolved_config.json is included for exact
configuration details.
The adapter can be merged into the base model after training, so the parameter increase is temporary. The resulting merged model has the same parameter count as the original base model.
Loading
The standard causal generate() method is not the intended sampler. Use the
bidirectional inference code in
lad-generic:
from diffusion_lm.inference import load_hub_adapter_session, denoise
session = load_hub_adapter_session(
"Ruurd/BYOD-Qwen2.5-7B", device_name="cuda", quantization="none"
)
answer, status = denoise(
session,
question="What do you know about Amsterdam?",
system_prompt="You are a helpful assistant.",
max_new_tokens=128,
num_steps=64,
noise_level=1.0,
temperature=0.7,
top_k=3,
seed=1234,
permanent_unmask=True,
confidence_guided=True,
proportional_unmask=False,
confidence_eos_eot_inf=True,
block_length=128,
)
Access to the upstream base model may require accepting its license and using a Hugging Face token. This adapter remains subject to the base model's terms.
Limitations
This is a research model. It can produce inaccurate, repetitive, biased, or unsafe text and should not be used for high-stakes decisions without independent verification. It inherits the limitations of the base model and its datasets.
- Downloads last month
- 62