devshub/ knack:v5-q4_k_m

24 yesterday

Local decision models behind CodeSync (devshub.ai): 0.75B specialized tags (latest, v5) for fast fixed decisions and a 4B general decision tag (4b) for any plain-English question.

4b
23f4aa7e1163 · 516MB
    Metadata
  • general.architecture
    qwen35
  • general.file_type
    Q4_K_M
  • qwen35.attention.head_count
    8
  • qwen35.attention.head_count_kv
    2
  • qwen35.attention.key_length
    256
  • qwen35.attention.layer_norm_rms_epsilon
    1e-06
  • qwen35.attention.recurrent_layers
    [true, true, true, false, true, ...]
  • qwen35.attention.value_length
    256
  • qwen35.block_count
    12
  • qwen35.context_length
    262144
  • qwen35.decision.type
    openjev
  • qwen35.embedding_length
    1024
  • qwen35.feed_forward_length
    3584
  • qwen35.full_attention_interval
    4
  • qwen35.rope.dimension_count
    64
  • qwen35.rope.dimension_sections
    [11, 11, 10, 0]
  • qwen35.rope.freq_base
    1e+07
  • qwen35.ssm.conv_kernel
    4
  • qwen35.ssm.group_count
    16
  • qwen35.ssm.inner_size
    2048
  • qwen35.ssm.state_size
    128
  • qwen35.ssm.time_step_rank
    16
  • tokenizer.chat_template.systemone
    {%- set Q = {"pending_work": {"type": "noul", "keys": ["yes", "no"], "field": "message", "hint": "--ask pending_work"}, "file.critical": {"type": "noul", "keys": ["yes", "no"], "field": "path", "hint": "--ask file.critical"}, "qa.kind": {"type": "choice", "keys": ["trace", "overview", "general"], "field": "question", "hint": "--ask qa.kind --choice trace --choice overview --choice general"}, "completion.intent": {"type": "choice", "keys": ["unfinished", "finished"], "field": "message", "hint": "--ask completion.intent --choice unfinished --choice finished"}, "web.continuation": {"type": "choice", "keys": ["unfinished", "finished"], "field": "message", "hint": "--ask web.continuation --choice unfinished --choice finished"}, "ask.redundant": {"type": "noul", "keys": ["yes", "no"], "field": "question", "hint": "--ask ask.redundant"}, "stuck": {"type": "noul", "keys": ["yes", "no"], "field": "command", "hint": "--ask stuck"}, "quality": {"type": "choice", "keys": ["usable", "navigation_only", "incomplete", "auth_or_challenge", "unknown"], "field": "page_text", "hint": "--ask quality --choice usable --choice navigation_only --choice incomplete --choice auth_or_challenge --choice unknown"}, "graph.edge_intent": {"type": "choice", "keys": ["incoming", "outgoing", "none"], "field": "query", "hint": "--ask graph.edge_intent --choice incoming --choice outgoing --choice none"}, "task.hard_work": {"type": "choice", "keys": ["routine", "hard"], "field": "task", "hint": "--ask task.hard_work --choice routine --choice hard"}, "provider.failure_kind": {"type": "choice", "keys": ["quota", "rate_limit", "auth", "model_unavailable", "overloaded", "timeout", "context_overflow", "content_filter", "unknown"], "field": "error", "hint": "--ask provider.failure_kind --choice quota --choice rate_limit --choice auth --choice model_unavailable --choice overloaded --choice timeout --choice context_overflow --choice content_filter --choice unknown"}, "error.kind": {"type": "choice", "keys": ["api_rate_limit", "api_overloaded", "api_auth", "tool_timeout", "permission_denied", "file_not_found", "network_error", "context_overflow", "unknown"], "field": "error_message", "hint": "--ask error.kind --choice api_rate_limit --choice api_overloaded --choice api_auth --choice tool_timeout --choice permission_denied --choice file_not_found --choice network_error --choice context_overflow --choice unknown"}, "tool.activity_label": {"type": "choice", "keys": ["candidate", "inspecting", "editing", "searching", "verifying", "coordinating", "integrating", "advancing"], "field": "tool", "hint": "--ask tool.activity_label --choice candidate --choice inspecting --choice editing --choice searching --choice verifying --choice coordinating --choice integrating --choice advancing"}, "verification": {"type": "choice", "keys": ["verified", "not_verified"], "field": "output", "hint": "--ask verification --choice verified --choice not_verified"}} -%}{%- set ALIAS = {} -%}{%- set asked = (instructions if instructions is string else '') | trim -%}{%- set low = asked | lower -%}{%- if id in Q -%}{%- set q = id -%}{%- elif asked in Q -%}{%- set q = asked -%}{%- elif low in ALIAS -%}{%- set q = ALIAS[low] -%}{%- else -%}{{ raise_exception('Knack only answers its 14 trained questions, so it cannot answer "' ~ asked ~ '". Ask one by id or phrasing, for example --ask long_running or --ask "Will it keep running?". All questions: https://ollama.com/devshub/knack') }}{%- endif -%}{%- set spec = Q[q] -%}{%- set yesno = spec['keys'] | length == 2 and spec['keys'][0] == 'yes' -%}{%- if not (type == spec['type'] or (type == 'noul' and yesno)) or options | length != spec['keys'] | length -%}{{ raise_exception('Knack question ' ~ q ~ ' must be asked as: ollama run devshub/knack ' ~ spec['hint']) }}{%- endif -%}{%- if type == 'choice' -%}{%- for o in options -%}{%- if o.key != spec['keys'][loop.index0] -%}{{ raise_exception('Knack question ' ~ q ~ ' needs its options in this order: ' ~ spec['hint']) }}{%- endif -%}{%- endfor -%}{%- endif -%}{{ '<|im_start|>user\n' }}{%- if state is mapping -%}{%- for k, v in state.items() -%}{{ k ~ ': ' }}{%- if v is string -%}{{ v }}{%- else -%}{{ v | tojson }}{%- endif -%}{%- if not loop.last -%}{{ '\n' }}{%- endif -%}{%- endfor -%}{%- else -%}{%- set s = (state if state is string else state | tojson) | trim -%}{%- if s.startswith(spec['field'] ~ ':') or s.startswith('command:') or s.startswith('prompt:') -%}{{ s }}{%- elif spec['field'] == 'command' -%}{{ 'command: ' ~ s ~ '\ndescription: ' }}{%- elif spec['field'] == 'prompt' -%}{{ 'prompt: ' ~ s ~ '\n' ~ "current_mode: build\nrecent_activity: none\nconversation_size: unknown\nopen_task: none\nturns_on_open_task: 0\ninterrupted_work: none\nbrowser_context: false" }}{%- else -%}{{ spec['field'] ~ ': ' ~ s }}{%- endif -%}{%- endif -%}{{ '<|im_end|>\n<|im_start|>assistant\n' ~ q ~ ':' }}
  • tokenizer.chat_templates
    [systemone]
  • tokenizer.ggml.eos_token_id
    248044
  • tokenizer.ggml.merges
    [Ġ Ġ, ĠĠ ĠĠ, i n, Ġ t, ĠĠĠĠ ĠĠĠĠ, ...]
  • tokenizer.ggml.model
    gpt2
  • tokenizer.ggml.padding_token_id
    248044
  • tokenizer.ggml.pre
    qwen35
  • tokenizer.ggml.token_type
    [1, 1, 1, 1, 1, ...]
  • tokenizer.ggml.tokens
    [!, ", #, $, %, ...]
  • Tensor
  • token_embd.weight
    Q4_K
    [1024, 248320]
  • blk.0
  • blk.0.attn_gate.weight
    Q4_K
    [1024, 2048]
  • blk.0.attn_norm.weight
    F32
    [1024]
  • blk.0.attn_qkv.weight
    Q6_K
    [1024, 6144]
  • blk.0.ffn_down.weight
    Q6_K
    [3584, 1024]
  • blk.0.ffn_gate.weight
    Q4_K
    [1024, 3584]
  • blk.0.ffn_up.weight
    Q4_K
    [1024, 3584]
  • blk.0.post_attention_norm.weight
    F32
    [1024]
  • blk.0.ssm_a
    F32
    [16]
  • blk.0.ssm_alpha.weight
    Q4_K
    [1024, 16]
  • blk.0.ssm_beta.weight
    Q4_K
    [1024, 16]
  • blk.0.ssm_conv1d.weight
    F32
    [4, 6144]
  • blk.0.ssm_dt.bias
    F32
    [16]
  • blk.0.ssm_norm.weight
    F32
    [128]
  • blk.0.ssm_out.weight
    Q4_K
    [2048, 1024]
  • blk.1
  • blk.1.attn_gate.weight
    Q4_K
    [1024, 2048]
  • blk.1.attn_norm.weight
    F32
    [1024]
  • blk.1.attn_qkv.weight
    Q4_K
    [1024, 6144]
  • blk.1.ffn_down.weight
    Q4_K
    [3584, 1024]
  • blk.1.ffn_gate.weight
    Q4_K
    [1024, 3584]
  • blk.1.ffn_up.weight
    Q4_K
    [1024, 3584]
  • blk.1.post_attention_norm.weight
    F32
    [1024]
  • blk.1.ssm_a
    F32
    [16]
  • blk.1.ssm_alpha.weight
    Q4_K
    [1024, 16]
  • blk.1.ssm_beta.weight
    Q4_K
    [1024, 16]
  • blk.1.ssm_conv1d.weight
    F32
    [4, 6144]
  • blk.1.ssm_dt.bias
    F32
    [16]
  • blk.1.ssm_norm.weight
    F32
    [128]
  • blk.1.ssm_out.weight
    Q4_K
    [2048, 1024]
  • blk.2
  • blk.2.attn_gate.weight
    Q4_K
    [1024, 2048]
  • blk.2.attn_norm.weight
    F32
    [1024]
  • blk.2.attn_qkv.weight
    Q4_K
    [1024, 6144]
  • blk.2.ffn_down.weight
    Q4_K
    [3584, 1024]
  • blk.2.ffn_gate.weight
    Q4_K
    [1024, 3584]
  • blk.2.ffn_up.weight
    Q4_K
    [1024, 3584]
  • blk.2.post_attention_norm.weight
    F32
    [1024]
  • blk.2.ssm_a
    F32
    [16]
  • blk.2.ssm_alpha.weight
    Q4_K
    [1024, 16]
  • blk.2.ssm_beta.weight
    Q4_K
    [1024, 16]
  • blk.2.ssm_conv1d.weight
    F32
    [4, 6144]
  • blk.2.ssm_dt.bias
    F32
    [16]
  • blk.2.ssm_norm.weight
    F32
    [128]
  • blk.2.ssm_out.weight
    Q4_K
    [2048, 1024]
  • blk.3
  • blk.3.attn_k.weight
    Q4_K
    [1024, 512]
  • blk.3.attn_k_norm.weight
    F32
    [256]
  • blk.3.attn_norm.weight
    F32
    [1024]
  • blk.3.attn_output.weight
    Q4_K
    [2048, 1024]
  • blk.3.attn_q.weight
    Q4_K
    [1024, 4096]
  • blk.3.attn_q_norm.weight
    F32
    [256]
  • blk.3.attn_v.weight
    Q6_K
    [1024, 512]
  • blk.3.ffn_down.weight
    Q6_K
    [3584, 1024]
  • blk.3.ffn_gate.weight
    Q4_K
    [1024, 3584]
  • blk.3.ffn_up.weight
    Q4_K
    [1024, 3584]
  • blk.3.post_attention_norm.weight
    F32
    [1024]
  • blk.4
  • blk.4.attn_gate.weight
    Q4_K
    [1024, 2048]
  • blk.4.attn_norm.weight
    F32
    [1024]
  • blk.4.attn_qkv.weight
    Q4_K
    [1024, 6144]
  • blk.4.ffn_down.weight
    Q4_K
    [3584, 1024]
  • blk.4.ffn_gate.weight
    Q4_K
    [1024, 3584]
  • blk.4.ffn_up.weight
    Q4_K
    [1024, 3584]
  • blk.4.post_attention_norm.weight
    F32
    [1024]
  • blk.4.ssm_a
    F32
    [16]
  • blk.4.ssm_alpha.weight
    Q4_K
    [1024, 16]
  • blk.4.ssm_beta.weight
    Q4_K
    [1024, 16]
  • blk.4.ssm_conv1d.weight
    F32
    [4, 6144]
  • blk.4.ssm_dt.bias
    F32
    [16]
  • blk.4.ssm_norm.weight
    F32
    [128]
  • blk.4.ssm_out.weight
    Q4_K
    [2048, 1024]
  • blk.5
  • blk.5.attn_gate.weight
    Q4_K
    [1024, 2048]
  • blk.5.attn_norm.weight
    F32
    [1024]
  • blk.5.attn_qkv.weight
    Q4_K
    [1024, 6144]
  • blk.5.ffn_down.weight
    Q4_K
    [3584, 1024]
  • blk.5.ffn_gate.weight
    Q4_K
    [1024, 3584]
  • blk.5.ffn_up.weight
    Q4_K
    [1024, 3584]
  • blk.5.post_attention_norm.weight
    F32
    [1024]
  • blk.5.ssm_a
    F32
    [16]
  • blk.5.ssm_alpha.weight
    Q4_K
    [1024, 16]
  • blk.5.ssm_beta.weight
    Q4_K
    [1024, 16]
  • blk.5.ssm_conv1d.weight
    F32
    [4, 6144]
  • blk.5.ssm_dt.bias
    F32
    [16]
  • blk.5.ssm_norm.weight
    F32
    [128]
  • blk.5.ssm_out.weight
    Q4_K
    [2048, 1024]
  • blk.6
  • blk.6.attn_gate.weight
    Q4_K
    [1024, 2048]
  • blk.6.attn_norm.weight
    F32
    [1024]
  • blk.6.attn_qkv.weight
    Q6_K
    [1024, 6144]
  • blk.6.ffn_down.weight
    Q6_K
    [3584, 1024]
  • blk.6.ffn_gate.weight
    Q4_K
    [1024, 3584]
  • blk.6.ffn_up.weight
    Q4_K
    [1024, 3584]
  • blk.6.post_attention_norm.weight
    F32
    [1024]
  • blk.6.ssm_a
    F32
    [16]
  • blk.6.ssm_alpha.weight
    Q4_K
    [1024, 16]
  • blk.6.ssm_beta.weight
    Q4_K
    [1024, 16]
  • blk.6.ssm_conv1d.weight
    F32
    [4, 6144]
  • blk.6.ssm_dt.bias
    F32
    [16]
  • blk.6.ssm_norm.weight
    F32
    [128]
  • blk.6.ssm_out.weight
    Q4_K
    [2048, 1024]
  • blk.7
  • blk.7.attn_k.weight
    Q4_K
    [1024, 512]
  • blk.7.attn_k_norm.weight
    F32
    [256]
  • blk.7.attn_norm.weight
    F32
    [1024]
  • blk.7.attn_output.weight
    Q4_K
    [2048, 1024]
  • blk.7.attn_q.weight
    Q4_K
    [1024, 4096]
  • blk.7.attn_q_norm.weight
    F32
    [256]
  • blk.7.attn_v.weight
    Q4_K
    [1024, 512]
  • blk.7.ffn_down.weight
    Q4_K
    [3584, 1024]
  • blk.7.ffn_gate.weight
    Q4_K
    [1024, 3584]
  • blk.7.ffn_up.weight
    Q4_K
    [1024, 3584]
  • blk.7.post_attention_norm.weight
    F32
    [1024]
  • blk.8
  • blk.8.attn_gate.weight
    Q4_K
    [1024, 2048]
  • blk.8.attn_norm.weight
    F32
    [1024]
  • blk.8.attn_qkv.weight
    Q4_K
    [1024, 6144]
  • blk.8.ffn_down.weight
    Q4_K
    [3584, 1024]
  • blk.8.ffn_gate.weight
    Q4_K
    [1024, 3584]
  • blk.8.ffn_up.weight
    Q4_K
    [1024, 3584]
  • blk.8.post_attention_norm.weight
    F32
    [1024]
  • blk.8.ssm_a
    F32
    [16]
  • blk.8.ssm_alpha.weight
    Q4_K
    [1024, 16]
  • blk.8.ssm_beta.weight
    Q4_K
    [1024, 16]
  • blk.8.ssm_conv1d.weight
    F32
    [4, 6144]
  • blk.8.ssm_dt.bias
    F32
    [16]
  • blk.8.ssm_norm.weight
    F32
    [128]
  • blk.8.ssm_out.weight
    Q4_K
    [2048, 1024]
  • blk.9
  • blk.9.attn_gate.weight
    Q4_K
    [1024, 2048]
  • blk.9.attn_norm.weight
    F32
    [1024]
  • blk.9.attn_qkv.weight
    Q6_K
    [1024, 6144]
  • blk.9.ffn_down.weight
    Q6_K
    [3584, 1024]
  • blk.9.ffn_gate.weight
    Q4_K
    [1024, 3584]
  • blk.9.ffn_up.weight
    Q4_K
    [1024, 3584]
  • blk.9.post_attention_norm.weight
    F32
    [1024]
  • blk.9.ssm_a
    F32
    [16]
  • blk.9.ssm_alpha.weight
    Q4_K
    [1024, 16]
  • blk.9.ssm_beta.weight
    Q4_K
    [1024, 16]
  • blk.9.ssm_conv1d.weight
    F32
    [4, 6144]
  • blk.9.ssm_dt.bias
    F32
    [16]
  • blk.9.ssm_norm.weight
    F32
    [128]
  • blk.9.ssm_out.weight
    Q4_K
    [2048, 1024]
  • blk.10
  • blk.10.attn_gate.weight
    Q4_K
    [1024, 2048]
  • blk.10.attn_norm.weight
    F32
    [1024]
  • blk.10.attn_qkv.weight
    Q6_K
    [1024, 6144]
  • blk.10.ffn_down.weight
    Q6_K
    [3584, 1024]
  • blk.10.ffn_gate.weight
    Q4_K
    [1024, 3584]
  • blk.10.ffn_up.weight
    Q4_K
    [1024, 3584]
  • blk.10.post_attention_norm.weight
    F32
    [1024]
  • blk.10.ssm_a
    F32
    [16]
  • blk.10.ssm_alpha.weight
    Q4_K
    [1024, 16]
  • blk.10.ssm_beta.weight
    Q4_K
    [1024, 16]
  • blk.10.ssm_conv1d.weight
    F32
    [4, 6144]
  • blk.10.ssm_dt.bias
    F32
    [16]
  • blk.10.ssm_norm.weight
    F32
    [128]
  • blk.10.ssm_out.weight
    Q4_K
    [2048, 1024]
  • blk.11
  • blk.11.attn_k.weight
    Q4_K
    [1024, 512]
  • blk.11.attn_k_norm.weight
    F32
    [256]
  • blk.11.attn_norm.weight
    F32
    [1024]
  • blk.11.attn_output.weight
    Q4_K
    [2048, 1024]
  • blk.11.attn_q.weight
    Q4_K
    [1024, 4096]
  • blk.11.attn_q_norm.weight
    F32
    [256]
  • blk.11.attn_v.weight
    Q6_K
    [1024, 512]
  • blk.11.ffn_down.weight
    Q6_K
    [3584, 1024]
  • blk.11.ffn_gate.weight
    Q4_K
    [1024, 3584]
  • blk.11.ffn_up.weight
    Q4_K
    [1024, 3584]
  • blk.11.post_attention_norm.weight
    F32
    [1024]
  • output.weight
    Q6_K
    [1024, 248320]
  • output_norm.weight
    F32
    [1024]