mmoussa commited on
Commit
dfaba4c
·
verified ·
1 Parent(s): 9acb30c

Correct Ollama sizes

Browse files
Files changed (2) hide show
  1. README.md +3 -3
  2. knack.py +2 -2
README.md CHANGED
@@ -22,7 +22,7 @@ in about 10 milliseconds.
22
  - **Free.** Ships with every CodeSync install. No API key, no account, no usage limits.
23
  - **Private.** Runs locally. Your prompts and commands never leave your machine to be judged.
24
  - **Fast.** About 10 ms per decision on a GPU, about 250 ms on a plain CPU.
25
- - **Small.** 0.5B parameters. 546 MB (Q8_0) or 371 MB (Q4_K_M) in Ollama.
26
  - **Accurate where it matters.** Trained on real CodeSync sessions, with extra focus on the
27
  rare cases that cost the most when missed: destructive deletes, commands that never exit,
28
  resuming interrupted work, refactor / test / documentation requests.
@@ -65,8 +65,8 @@ python3 knack.py serve --port 33727 # POST /v1/systemone (Cod
65
  ## Use it with Ollama directly
66
 
67
  ```bash
68
- ollama pull devshub/knack # Q8_0, 546 MB (https://ollama.com/devshub/knack)
69
- ollama pull devshub/knack:q4_k_m # 371 MB, near-identical accuracy
70
  ollama pull hf.co/devshub-ai/knack:Q8_0 # same model, straight from this repo
71
  ```
72
 
 
22
  - **Free.** Ships with every CodeSync install. No API key, no account, no usage limits.
23
  - **Private.** Runs locally. Your prompts and commands never leave your machine to be judged.
24
  - **Fast.** About 10 ms per decision on a GPU, about 250 ms on a plain CPU.
25
+ - **Small.** 0.75B parameters in the Ollama edition: 817 MB (Q8_0) or 516 MB (Q4_K_M).
26
  - **Accurate where it matters.** Trained on real CodeSync sessions, with extra focus on the
27
  rare cases that cost the most when missed: destructive deletes, commands that never exit,
28
  resuming interrupted work, refactor / test / documentation requests.
 
65
  ## Use it with Ollama directly
66
 
67
  ```bash
68
+ ollama pull devshub/knack # Q8_0, 817 MB (https://ollama.com/devshub/knack)
69
+ ollama pull devshub/knack:q4_k_m # 516 MB, near-identical accuracy
70
  ollama pull hf.co/devshub-ai/knack:Q8_0 # same model, straight from this repo
71
  ```
72
 
knack.py CHANGED
@@ -1,7 +1,7 @@
1
  #!/usr/bin/env python3
2
  """CodeSync Knack, standalone: ask the model CodeSync's judgment questions through Ollama.
3
 
4
- Standard library only. Needs Ollama (https://ollama.com) running; the model (546 MB) is
5
  pulled on first use. One-liner, nothing to install:
6
 
7
  curl -fsSL https://huggingface.co/devshub-ai/knack/resolve/main/knack.py | python3 - "rm -rf build/"
@@ -20,7 +20,7 @@ answer is the most likely of THOSE letters, renormalised (this script does that
20
  Ollama's logprobs). Do not read the raw generated letter on its own.
21
 
22
  Env: KNACK_OLLAMA_HOST (default http://127.0.0.1:11434),
23
- KNACK_MODEL (default devshub/knack; devshub/knack:q4_k_m is smaller, 371 MB;
24
  hf.co/devshub-ai/knack:Q8_0 pulls the same model from Hugging Face).
25
  """
26
 
 
1
  #!/usr/bin/env python3
2
  """CodeSync Knack, standalone: ask the model CodeSync's judgment questions through Ollama.
3
 
4
+ Standard library only. Needs Ollama (https://ollama.com) running; the model (817 MB) is
5
  pulled on first use. One-liner, nothing to install:
6
 
7
  curl -fsSL https://huggingface.co/devshub-ai/knack/resolve/main/knack.py | python3 - "rm -rf build/"
 
20
  Ollama's logprobs). Do not read the raw generated letter on its own.
21
 
22
  Env: KNACK_OLLAMA_HOST (default http://127.0.0.1:11434),
23
+ KNACK_MODEL (default devshub/knack; devshub/knack:q4_k_m is smaller, 516 MB;
24
  hf.co/devshub-ai/knack:Q8_0 pulls the same model from Hugging Face).
25
  """
26