devshub/ knack:q8_0

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
18aaebf8083a · 817MB
    Metadata
  • general.architecture
    qwen35
  • general.file_type
    Q8_0
  • 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 = {"activity": {"type": "choice", "keys": ["testing", "building", "installing", "git", "inspecting", "running"], "bash": true, "hint": "--ask activity --choice testing --choice building --choice installing --choice git --choice inspecting --choice running"}, "browser": {"type": "choice", "keys": ["yes", "no"], "bash": false, "hint": "--ask browser"}, "delivery.feature_task": {"type": "choice", "keys": ["yes", "no"], "bash": false, "hint": "--ask delivery.feature_task"}, "delivery.slash_task": {"type": "choice", "keys": ["yes", "no"], "bash": false, "hint": "--ask delivery.slash_task"}, "deploys": {"type": "noul", "keys": ["yes", "no"], "bash": true, "hint": "--ask deploys"}, "long_running": {"type": "noul", "keys": ["yes", "no"], "bash": true, "hint": "--ask long_running"}, "messaging": {"type": "choice", "keys": ["yes", "no"], "bash": false, "hint": "--ask messaging"}, "mutates_repo": {"type": "noul", "keys": ["yes", "no"], "bash": true, "hint": "--ask mutates_repo"}, "risk": {"type": "score", "keys": ["0", "1", "2"], "bash": true, "hint": "--ask risk --level \"safe\" --level \"needs care\" --level \"destructive\""}, "route.mode": {"type": "choice", "keys": ["plan", "build", "ask", "debug"], "bash": false, "hint": "--ask route.mode --choice plan --choice build --choice ask --choice debug"}, "route.risk": {"type": "choice", "keys": ["low", "medium", "high"], "bash": false, "hint": "--ask route.risk --choice low --choice medium --choice high"}, "route.thinking": {"type": "choice", "keys": ["off", "low", "medium", "high", "xhigh", "max"], "bash": false, "hint": "--ask route.thinking --choice off --choice low --choice medium --choice high --choice xhigh --choice max"}, "route.tier": {"type": "choice", "keys": ["light", "medium", "heavy"], "bash": false, "hint": "--ask route.tier --choice light --choice medium --choice heavy"}, "runtime_check": {"type": "noul", "keys": ["yes", "no"], "bash": true, "hint": "--ask runtime_check"}, "serves": {"type": "noul", "keys": ["yes", "no"], "bash": true, "hint": "--ask serves"}, "task.execution_strategy": {"type": "choice", "keys": ["direct", "plan", "parallel"], "bash": false, "hint": "--ask task.execution_strategy --choice direct --choice plan --choice parallel"}, "task.intent": {"type": "choice", "keys": ["bug_fix", "feature", "refactor", "api_schema", "config_deploy", "test", "documentation", "investigation", "unknown"], "bash": false, "hint": "--ask task.intent --choice bug_fix --choice feature --choice refactor --choice api_schema --choice config_deploy --choice test --choice documentation --choice investigation --choice unknown"}, "turn.actionable": {"type": "noul", "keys": ["yes", "no"], "bash": false, "hint": "--ask turn.actionable"}, "turn.change_intent": {"type": "choice", "keys": ["create", "adjust", "enhance", "fix", "refactor", "none"], "bash": false, "hint": "--ask turn.change_intent --choice create --choice adjust --choice enhance --choice fix --choice refactor --choice none"}, "turn.chat_or_task": {"type": "choice", "keys": ["chat", "task"], "bash": false, "hint": "--ask turn.chat_or_task --choice chat --choice task"}, "turn.demo": {"type": "noul", "keys": ["yes", "no"], "bash": false, "hint": "--ask turn.demo"}, "turn.mission": {"type": "noul", "keys": ["yes", "no"], "bash": false, "hint": "--ask turn.mission"}, "turn.new_task": {"type": "noul", "keys": ["yes", "no"], "bash": false, "hint": "--ask turn.new_task"}, "turn.plan_authoring": {"type": "noul", "keys": ["yes", "no"], "bash": false, "hint": "--ask turn.plan_authoring"}, "turn.question_shaped": {"type": "noul", "keys": ["yes", "no"], "bash": false, "hint": "--ask turn.question_shaped"}, "turn.resume": {"type": "noul", "keys": ["yes", "no"], "bash": false, "hint": "--ask turn.resume"}, "turn.screencast": {"type": "choice", "keys": ["start", "stop", "none"], "bash": false, "hint": "--ask turn.screencast --choice start --choice stop --choice none"}, "turn.skip_orientation": {"type": "noul", "keys": ["yes", "no"], "bash": false, "hint": "--ask turn.skip_orientation"}, "verifies": {"type": "noul", "keys": ["yes", "no"], "bash": true, "hint": "--ask verifies"}} -%}{%- set ALIAS = {"how risky is this command?": "risk", "how risky is this command": "risk", "will it keep running?": "long_running", "will it keep running": "long_running", "what kind of command is this?": "activity", "what kind of command is this": "activity", "does it verify the work?": "verifies", "does it verify the work": "verifies", "does it change the repo?": "mutates_repo", "does it change the repo": "mutates_repo", "does it deploy?": "deploys", "does it deploy": "deploys", "does it need a running app?": "runtime_check", "does it need a running app": "runtime_check", "does it start a server?": "serves", "does it start a server": "serves", "is this chat or a task?": "turn.chat_or_task", "is this chat or a task": "turn.chat_or_task", "is it actionable?": "turn.actionable", "is it actionable": "turn.actionable", "is it a question?": "turn.question_shaped", "is it a question": "turn.question_shaped", "what kind of change is asked for?": "turn.change_intent", "what kind of change is asked for": "turn.change_intent", "is this a new task?": "turn.new_task", "is this a new task": "turn.new_task", "is it a request to resume work?": "turn.resume", "is it a request to resume work": "turn.resume", "is it a long mission?": "turn.mission", "is it a long mission": "turn.mission", "does it ask for a plan?": "turn.plan_authoring", "does it ask for a plan": "turn.plan_authoring", "should a screencast start or stop?": "turn.screencast", "should a screencast start or stop": "turn.screencast", "does it ask for a demo?": "turn.demo", "does it ask for a demo": "turn.demo", "can codebase exploration be skipped?": "turn.skip_orientation", "can codebase exploration be skipped": "turn.skip_orientation", "what is the task intent?": "task.intent", "what is the task intent": "task.intent", "how should it be executed?": "task.execution_strategy", "how should it be executed": "task.execution_strategy", "which mode fits?": "route.mode", "which mode fits": "route.mode", "which model tier is needed?": "route.tier", "which model tier is needed": "route.tier", "how much reasoning is needed?": "route.thinking", "how much reasoning is needed": "route.thinking", "how risky is the request?": "route.risk", "how risky is the request": "route.risk", "does it need a browser?": "browser", "does it need a browser": "browser", "does it need messaging?": "messaging", "does it need messaging": "messaging", "is it a feature delivery task?": "delivery.feature_task", "is it a feature delivery task": "delivery.feature_task", "is it a slash-command task?": "delivery.slash_task", "is it a slash-command task": "delivery.slash_task"} -%}{%- 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 29 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('command:') or s.startswith('prompt:') -%}{{ s }}{%- elif spec['bash'] -%}{{ 'command: ' ~ s ~ '\ndescription: ' }}{%- else -%}{{ '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" }}{%- endif -%}{%- endif -%}{{ '<|im_end|>\n<|im_start|>assistant\n' ~ q ~ ':' }}
  • tokenizer.chat_templates
    [systemone]
  • tokenizer.ggml.add_bos_token
    false
  • tokenizer.ggml.add_eos_token
    false
  • tokenizer.ggml.clean_spaces
    false
  • tokenizer.ggml.eos_token_id
    248044
  • tokenizer.ggml.merges
    [Ġ Ġ, ĠĠ ĠĠ, i n, Ġ t, ĠĠĠĠ ĠĠĠĠ, ...]
  • tokenizer.ggml.model
    gpt2
  • tokenizer.ggml.normalizer.nfc
    true
  • 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
    Q8_0
    [1024, 248320]
  • blk.0
  • blk.0.attn_gate.weight
    Q8_0
    [1024, 2048]
  • blk.0.attn_norm.weight
    F32
    [1024]
  • blk.0.attn_qkv.weight
    Q8_0
    [1024, 6144]
  • blk.0.ffn_down.weight
    Q8_0
    [3584, 1024]
  • blk.0.ffn_gate.weight
    Q8_0
    [1024, 3584]
  • blk.0.ffn_up.weight
    Q8_0
    [1024, 3584]
  • blk.0.post_attention_norm.weight
    F32
    [1024]
  • blk.0.ssm_a
    F32
    [16]
  • blk.0.ssm_alpha.weight
    Q8_0
    [1024, 16]
  • blk.0.ssm_beta.weight
    Q8_0
    [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
    Q8_0
    [2048, 1024]
  • blk.1
  • blk.1.attn_gate.weight
    Q8_0
    [1024, 2048]
  • blk.1.attn_norm.weight
    F32
    [1024]
  • blk.1.attn_qkv.weight
    Q8_0
    [1024, 6144]
  • blk.1.ffn_down.weight
    Q8_0
    [3584, 1024]
  • blk.1.ffn_gate.weight
    Q8_0
    [1024, 3584]
  • blk.1.ffn_up.weight
    Q8_0
    [1024, 3584]
  • blk.1.post_attention_norm.weight
    F32
    [1024]
  • blk.1.ssm_a
    F32
    [16]
  • blk.1.ssm_alpha.weight
    Q8_0
    [1024, 16]
  • blk.1.ssm_beta.weight
    Q8_0
    [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
    Q8_0
    [2048, 1024]
  • blk.2
  • blk.2.attn_gate.weight
    Q8_0
    [1024, 2048]
  • blk.2.attn_norm.weight
    F32
    [1024]
  • blk.2.attn_qkv.weight
    Q8_0
    [1024, 6144]
  • blk.2.ffn_down.weight
    Q8_0
    [3584, 1024]
  • blk.2.ffn_gate.weight
    Q8_0
    [1024, 3584]
  • blk.2.ffn_up.weight
    Q8_0
    [1024, 3584]
  • blk.2.post_attention_norm.weight
    F32
    [1024]
  • blk.2.ssm_a
    F32
    [16]
  • blk.2.ssm_alpha.weight
    Q8_0
    [1024, 16]
  • blk.2.ssm_beta.weight
    Q8_0
    [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
    Q8_0
    [2048, 1024]
  • blk.3
  • blk.3.attn_k.weight
    Q8_0
    [1024, 512]
  • blk.3.attn_k_norm.weight
    F32
    [256]
  • blk.3.attn_norm.weight
    F32
    [1024]
  • blk.3.attn_output.weight
    Q8_0
    [2048, 1024]
  • blk.3.attn_q.weight
    Q8_0
    [1024, 4096]
  • blk.3.attn_q_norm.weight
    F32
    [256]
  • blk.3.attn_v.weight
    Q8_0
    [1024, 512]
  • blk.3.ffn_down.weight
    Q8_0
    [3584, 1024]
  • blk.3.ffn_gate.weight
    Q8_0
    [1024, 3584]
  • blk.3.ffn_up.weight
    Q8_0
    [1024, 3584]
  • blk.3.post_attention_norm.weight
    F32
    [1024]
  • blk.4
  • blk.4.attn_gate.weight
    Q8_0
    [1024, 2048]
  • blk.4.attn_norm.weight
    F32
    [1024]
  • blk.4.attn_qkv.weight
    Q8_0
    [1024, 6144]
  • blk.4.ffn_down.weight
    Q8_0
    [3584, 1024]
  • blk.4.ffn_gate.weight
    Q8_0
    [1024, 3584]
  • blk.4.ffn_up.weight
    Q8_0
    [1024, 3584]
  • blk.4.post_attention_norm.weight
    F32
    [1024]
  • blk.4.ssm_a
    F32
    [16]
  • blk.4.ssm_alpha.weight
    Q8_0
    [1024, 16]
  • blk.4.ssm_beta.weight
    Q8_0
    [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
    Q8_0
    [2048, 1024]
  • blk.5
  • blk.5.attn_gate.weight
    Q8_0
    [1024, 2048]
  • blk.5.attn_norm.weight
    F32
    [1024]
  • blk.5.attn_qkv.weight
    Q8_0
    [1024, 6144]
  • blk.5.ffn_down.weight
    Q8_0
    [3584, 1024]
  • blk.5.ffn_gate.weight
    Q8_0
    [1024, 3584]
  • blk.5.ffn_up.weight
    Q8_0
    [1024, 3584]
  • blk.5.post_attention_norm.weight
    F32
    [1024]
  • blk.5.ssm_a
    F32
    [16]
  • blk.5.ssm_alpha.weight
    Q8_0
    [1024, 16]
  • blk.5.ssm_beta.weight
    Q8_0
    [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
    Q8_0
    [2048, 1024]
  • blk.6
  • blk.6.attn_gate.weight
    Q8_0
    [1024, 2048]
  • blk.6.attn_norm.weight
    F32
    [1024]
  • blk.6.attn_qkv.weight
    Q8_0
    [1024, 6144]
  • blk.6.ffn_down.weight
    Q8_0
    [3584, 1024]
  • blk.6.ffn_gate.weight
    Q8_0
    [1024, 3584]
  • blk.6.ffn_up.weight
    Q8_0
    [1024, 3584]
  • blk.6.post_attention_norm.weight
    F32
    [1024]
  • blk.6.ssm_a
    F32
    [16]
  • blk.6.ssm_alpha.weight
    Q8_0
    [1024, 16]
  • blk.6.ssm_beta.weight
    Q8_0
    [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
    Q8_0
    [2048, 1024]
  • blk.7
  • blk.7.attn_k.weight
    Q8_0
    [1024, 512]
  • blk.7.attn_k_norm.weight
    F32
    [256]
  • blk.7.attn_norm.weight
    F32
    [1024]
  • blk.7.attn_output.weight
    Q8_0
    [2048, 1024]
  • blk.7.attn_q.weight
    Q8_0
    [1024, 4096]
  • blk.7.attn_q_norm.weight
    F32
    [256]
  • blk.7.attn_v.weight
    Q8_0
    [1024, 512]
  • blk.7.ffn_down.weight
    Q8_0
    [3584, 1024]
  • blk.7.ffn_gate.weight
    Q8_0
    [1024, 3584]
  • blk.7.ffn_up.weight
    Q8_0
    [1024, 3584]
  • blk.7.post_attention_norm.weight
    F32
    [1024]
  • blk.8
  • blk.8.attn_gate.weight
    Q8_0
    [1024, 2048]
  • blk.8.attn_norm.weight
    F32
    [1024]
  • blk.8.attn_qkv.weight
    Q8_0
    [1024, 6144]
  • blk.8.ffn_down.weight
    Q8_0
    [3584, 1024]
  • blk.8.ffn_gate.weight
    Q8_0
    [1024, 3584]
  • blk.8.ffn_up.weight
    Q8_0
    [1024, 3584]
  • blk.8.post_attention_norm.weight
    F32
    [1024]
  • blk.8.ssm_a
    F32
    [16]
  • blk.8.ssm_alpha.weight
    Q8_0
    [1024, 16]
  • blk.8.ssm_beta.weight
    Q8_0
    [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
    Q8_0
    [2048, 1024]
  • blk.9
  • blk.9.attn_gate.weight
    Q8_0
    [1024, 2048]
  • blk.9.attn_norm.weight
    F32
    [1024]
  • blk.9.attn_qkv.weight
    Q8_0
    [1024, 6144]
  • blk.9.ffn_down.weight
    Q8_0
    [3584, 1024]
  • blk.9.ffn_gate.weight
    Q8_0
    [1024, 3584]
  • blk.9.ffn_up.weight
    Q8_0
    [1024, 3584]
  • blk.9.post_attention_norm.weight
    F32
    [1024]
  • blk.9.ssm_a
    F32
    [16]
  • blk.9.ssm_alpha.weight
    Q8_0
    [1024, 16]
  • blk.9.ssm_beta.weight
    Q8_0
    [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
    Q8_0
    [2048, 1024]
  • blk.10
  • blk.10.attn_gate.weight
    Q8_0
    [1024, 2048]
  • blk.10.attn_norm.weight
    F32
    [1024]
  • blk.10.attn_qkv.weight
    Q8_0
    [1024, 6144]
  • blk.10.ffn_down.weight
    Q8_0
    [3584, 1024]
  • blk.10.ffn_gate.weight
    Q8_0
    [1024, 3584]
  • blk.10.ffn_up.weight
    Q8_0
    [1024, 3584]
  • blk.10.post_attention_norm.weight
    F32
    [1024]
  • blk.10.ssm_a
    F32
    [16]
  • blk.10.ssm_alpha.weight
    Q8_0
    [1024, 16]
  • blk.10.ssm_beta.weight
    Q8_0
    [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
    Q8_0
    [2048, 1024]
  • blk.11
  • blk.11.attn_k.weight
    Q8_0
    [1024, 512]
  • blk.11.attn_k_norm.weight
    F32
    [256]
  • blk.11.attn_norm.weight
    F32
    [1024]
  • blk.11.attn_output.weight
    Q8_0
    [2048, 1024]
  • blk.11.attn_q.weight
    Q8_0
    [1024, 4096]
  • blk.11.attn_q_norm.weight
    F32
    [256]
  • blk.11.attn_v.weight
    Q8_0
    [1024, 512]
  • blk.11.ffn_down.weight
    Q8_0
    [3584, 1024]
  • blk.11.ffn_gate.weight
    Q8_0
    [1024, 3584]
  • blk.11.ffn_up.weight
    Q8_0
    [1024, 3584]
  • blk.11.post_attention_norm.weight
    F32
    [1024]
  • output.weight
    Q8_0
    [1024, 248320]
  • output_norm.weight
    F32
    [1024]