bharathmuppa commited on
Commit
de5839f
·
verified ·
1 Parent(s): a2966b4

Model card: GGUF and Ollama usage

Browse files
Files changed (1) hide show
  1. README.md +19 -0
README.md CHANGED
@@ -5,6 +5,8 @@ language:
5
  - en
6
  tags:
7
  - angular
 
 
8
  - typescript
9
  - frontend
10
  - code
@@ -36,6 +38,23 @@ python -m mlx_lm generate --model bharathmuppa/angular-coder-1.5b \
36
  --prompt "Which Angular version introduced @defer and how do I use it?"
37
  ```
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  ## Use with transformers
40
 
41
  ```python
 
5
  - en
6
  tags:
7
  - angular
8
+ - gguf
9
+ - ollama
10
  - typescript
11
  - frontend
12
  - code
 
38
  --prompt "Which Angular version introduced @defer and how do I use it?"
39
  ```
40
 
41
+ ## Use with Ollama / llama.cpp (GGUF)
42
+
43
+ This repo also holds GGUF builds: `angular-coder-1.5b-Q4_K_M.gguf` (1.0 GB), `angular-coder-1.5b-Q8_0.gguf` (1.6 GB) and `angular-coder-1.5b-f16.gguf` (3.1 GB), plus a `Modelfile` with the system prompt and chat template.
44
+
45
+ ```sh
46
+ ollama run hf.co/bharathmuppa/angular-coder-1.5b:Q8_0
47
+ ```
48
+
49
+ Or build it locally from the Modelfile:
50
+
51
+ ```sh
52
+ hf download bharathmuppa/angular-coder-1.5b --include "angular-coder-1.5b-Q8_0.gguf" "Modelfile" --local-dir angular-coder
53
+ cd angular-coder && sed -i '' 's/Q4_K_M/Q8_0/' Modelfile && ollama create angular-coder -f Modelfile && ollama run angular-coder
54
+ ```
55
+
56
+ Q8_0 is recommended for version facts; Q4_K_M is fine for scaffolding. Both were checked against the full model on held-out questions.
57
+
58
  ## Use with transformers
59
 
60
  ```python