Downloads · 30 days
51
100% of all-time downloads
Ruurd/BYOD-Gemma-2-9B
BYOD-Gemma-2-9B is a text generation model from Ruurd. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as gemma.
BYOD-Gemma-2-9B is a masked discrete-diffusion language model created by converting google/gemma-2-9b-it with LoRA. This repository contains the exact best checkpoint from the gemma-2-9b-mask experiment, not a 4-bit o…
Downloads · 30 days
51
100% of all-time downloads
All-time downloads
51
Public
Repo size
2.3 GB
Likes
0
Public
Click a slice to open those files.
.safetensors2.3 GB · 98%
From the Hugging Face model README
BYOD-Gemma-2-9B is a masked discrete-diffusion language model created by
converting google/gemma-2-9b-it with
LoRA. This repository contains the exact best checkpoint from the
gemma-2-9b-mask experiment, not a 4-bit or otherwise quantized variant.
Try the full-precision ZeroGPU demo.
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.
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-Gemma-2-9B", 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.
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.