itlwas commited on
Commit
cbf6e6b
1 Parent(s): d2b4903

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +98 -0
README.md ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ datasets:
4
+ - tiiuae/falcon-refinedweb
5
+ - bigcode/the-stack-github-issues
6
+ - bigcode/commitpackft
7
+ - bigcode/starcoderdata
8
+ - EleutherAI/proof-pile-2
9
+ - meta-math/MetaMathQA
10
+ language:
11
+ - en
12
+ tags:
13
+ - causal-lm
14
+ - code
15
+ - llama-cpp
16
+ - gguf-my-repo
17
+ metrics:
18
+ - code_eval
19
+ library_name: transformers
20
+ base_model: stabilityai/stable-code-3b
21
+ model-index:
22
+ - name: stabilityai/stable-code-3b
23
+ results:
24
+ - task:
25
+ type: text-generation
26
+ dataset:
27
+ name: MultiPL-HumanEval (Python)
28
+ type: nuprl/MultiPL-E
29
+ metrics:
30
+ - type: pass@1
31
+ value: 32.4
32
+ name: pass@1
33
+ verified: false
34
+ - type: pass@1
35
+ value: 30.9
36
+ name: pass@1
37
+ verified: false
38
+ - type: pass@1
39
+ value: 32.1
40
+ name: pass@1
41
+ verified: false
42
+ - type: pass@1
43
+ value: 32.1
44
+ name: pass@1
45
+ verified: false
46
+ - type: pass@1
47
+ value: 24.2
48
+ name: pass@1
49
+ verified: false
50
+ - type: pass@1
51
+ value: 23.0
52
+ name: pass@1
53
+ verified: false
54
+ ---
55
+
56
+ # AIronMind/stable-code-3b-Q4_K_M-GGUF
57
+ This model was converted to GGUF format from [`stabilityai/stable-code-3b`](https://huggingface.co/stabilityai/stable-code-3b) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
58
+ Refer to the [original model card](https://huggingface.co/stabilityai/stable-code-3b) for more details on the model.
59
+
60
+ ## Use with llama.cpp
61
+ Install llama.cpp through brew (works on Mac and Linux)
62
+
63
+ ```bash
64
+ brew install llama.cpp
65
+
66
+ ```
67
+ Invoke the llama.cpp server or the CLI.
68
+
69
+ ### CLI:
70
+ ```bash
71
+ llama-cli --hf-repo AIronMind/stable-code-3b-Q4_K_M-GGUF --hf-file stable-code-3b-q4_k_m.gguf -p "The meaning to life and the universe is"
72
+ ```
73
+
74
+ ### Server:
75
+ ```bash
76
+ llama-server --hf-repo AIronMind/stable-code-3b-Q4_K_M-GGUF --hf-file stable-code-3b-q4_k_m.gguf -c 2048
77
+ ```
78
+
79
+ Note: You can also use this checkpoint directly through the [usage steps](https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#usage) listed in the Llama.cpp repo as well.
80
+
81
+ Step 1: Clone llama.cpp from GitHub.
82
+ ```
83
+ git clone https://github.com/ggerganov/llama.cpp
84
+ ```
85
+
86
+ Step 2: Move into the llama.cpp folder and build it with `LLAMA_CURL=1` flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).
87
+ ```
88
+ cd llama.cpp && LLAMA_CURL=1 make
89
+ ```
90
+
91
+ Step 3: Run inference through the main binary.
92
+ ```
93
+ ./llama-cli --hf-repo AIronMind/stable-code-3b-Q4_K_M-GGUF --hf-file stable-code-3b-q4_k_m.gguf -p "The meaning to life and the universe is"
94
+ ```
95
+ or
96
+ ```
97
+ ./llama-server --hf-repo AIronMind/stable-code-3b-Q4_K_M-GGUF --hf-file stable-code-3b-q4_k_m.gguf -c 2048
98
+ ```