Safetensors
qwen2
draft
speculative-decoding

image/png

A 0.6B parameter draft (speculative decoding) model for use with deepseek-ai/DeepSeek-R1-0528 and deepseek-ai/DeepSeek-R1.

NOTES:

See jukofyork/DeepSeek-R1-0528-CODER-DRAFT-0.6B-v1.0-GGUF for the models in GGUF format.


How the model was created

1. The initial model was created from jukofyork/DeepSeek-V3-0324-CODER-DRAFT-0.6B-v1.0 using transplant-vocab:

python ./transplant_vocab.py \
        DeepSeek-V3-0324-CODER-DRAFT-0.6B \
        DeepSeek-R1-0528-BF16 \
        DeepSeek-R1-0528-CODER-DRAFT-0.6B-UNTRAINED

2. The following datasets were merged to create a fine-tuning dataset of ~2.5B tokens:

formatted using the proper DeepSeek-R1 Jinja template (ie: with <think> tags added around the reasoning, etc).

3. The model was then trained using qlora-pipe for 1 epoch with a batch size of 120 and a sequence length of 32k (~4M tokens per step):

# Resume a prior run
resume_from_checkpoint = false

# Paths
model = 'DeepSeek-R1-0528-CODER-DRAFT-0.6B-UNTRAINED'
output_dir = 'DeepSeek-R1-0528-CODER-DRAFT-0.6B'

# Optimization configuration
full_fine_tune = true
epochs = 1
lr_scheduler = 'cosine'
warmup_steps = 100

# Performance settings
pipeline_stages = 1
logging_steps = 1
eval_steps = 100
save_steps = 100
checkpoint_every_n_minutes = 60
eval_before_first_step = true
eval_after_last_step = true
model_weight_dtype = 'bfloat16'
keep_states = 3
group_by_length = true
activation_checkpointing = 'unsloth'

# Dataset configuration
dataset_combination_mode = 'concatenate'
eval_gradient_accumulation_steps = 20

[optimizer]
type = 'adamw_kahan'
lr = 5e-5
beta1 = 0.9
beta2 = 0.999
weight_decay = 0.01

[[datasets]]
name = 'mixed_data'
dataset_type = 'textfile'
dataset_path = 'mixed_data/*.txt'
sequence_len = 32768
eval_size = 0.01
{
    "train_micro_batch_size_per_gpu": 1,
    "gradient_accumulation_steps": 20,
    "gradient_clipping": 1.0,
    "steps_per_print": 1
}

I used six RTX A6000 GPUs over three nodes and hence the 120 batch size (6 x 20 gradient accumulation steps = 120).

Downloads last month
13
Safetensors
Model size
590M params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for jukofyork/DeepSeek-R1-0528-CODER-DRAFT-0.6B-v1.0

Dataset used to train jukofyork/DeepSeek-R1-0528-CODER-DRAFT-0.6B-v1.0

Collection including jukofyork/DeepSeek-R1-0528-CODER-DRAFT-0.6B-v1.0