Transformers
Safetensors
dflash2
speculative-decoding
draft-model
Mixture of Experts
code
speculators
vllm
Instructions to use DaoCloud/KAT-Coder-V2.5-Dev-DFlash2-2.6B-A0.3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DaoCloud/KAT-Coder-V2.5-Dev-DFlash2-2.6B-A0.3B with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("DaoCloud/KAT-Coder-V2.5-Dev-DFlash2-2.6B-A0.3B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,959 Bytes
d0888d9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | {
"architectures": [
"DFlash2DraftModel"
],
"aux_hidden_state_layer_ids": [
3,
12,
21,
30,
39
],
"block_size": 7,
"sample_from_anchor": true,
"draft_vocab_size": 248320,
"mask_token_id": 248077,
"conv_kernel_size": 2,
"conv_group_size": 16,
"selector_rank": 256,
"selector_top_k": 16,
"draft_ffn_type": "moe",
"num_experts": 256,
"num_experts_per_tok": 8,
"moe_intermediate_size": 512,
"shared_expert_intermediate_size": 512,
"norm_topk_prob": true,
"sliding_window_non_causal": true,
"dtype": "bfloat16",
"tie_word_embeddings": false,
"speculators_model_type": "dflash2",
"speculators_config": {
"algorithm": "dflash2",
"default_proposal_method": "greedy",
"proposal_methods": [
{
"accept_tolerance": 0.0,
"proposal_type": "greedy",
"speculative_tokens": 7,
"verifier_accept_k": 1
}
],
"verifier": {
"architectures": [
"Qwen3_5MoeForConditionalGeneration"
],
"name_or_path": "Kwaipilot/KAT-Coder-V2.5-Dev"
}
},
"transformer_layer_config": {
"model_type": "qwen3",
"vocab_size": 248320,
"hidden_size": 2048,
"intermediate_size": 512,
"num_hidden_layers": 3,
"num_attention_heads": 32,
"num_key_value_heads": 4,
"head_dim": 128,
"hidden_act": "silu",
"rms_norm_eps": 1e-06,
"initializer_range": 0.02,
"attention_bias": false,
"attention_dropout": 0.0,
"use_sliding_window": true,
"sliding_window": 2048,
"max_window_layers": 0,
"layer_types": [
"sliding_attention",
"sliding_attention",
"sliding_attention"
],
"max_position_embeddings": 262144,
"rope_parameters": {
"rope_theta": 10000000.0,
"rope_type": "default"
},
"use_cache": true,
"tie_word_embeddings": false,
"bos_token_id": null,
"eos_token_id": null,
"pad_token_id": null
}
} |