janchk commited on
Commit
8f98e0c
1 Parent(s): 71a387c

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +119 -0
README.md ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: ibm-granite/granite-8b-code-instruct-128k
3
+ datasets:
4
+ - bigcode/commitpackft
5
+ - TIGER-Lab/MathInstruct
6
+ - meta-math/MetaMathQA
7
+ - glaiveai/glaive-code-assistant-v3
8
+ - glaive-function-calling-v2
9
+ - bugdaryan/sql-create-context-instruction
10
+ - garage-bAInd/Open-Platypus
11
+ - nvidia/HelpSteer
12
+ - bigcode/self-oss-instruct-sc2-exec-filter-50k
13
+ library_name: transformers
14
+ license: apache-2.0
15
+ metrics:
16
+ - code_eval
17
+ pipeline_tag: text-generation
18
+ tags:
19
+ - code
20
+ - granite
21
+ - llama-cpp
22
+ - gguf-my-repo
23
+ inference: false
24
+ model-index:
25
+ - name: granite-8B-Code-instruct-128k
26
+ results:
27
+ - task:
28
+ type: text-generation
29
+ dataset:
30
+ name: HumanEvalSynthesis (Python)
31
+ type: bigcode/humanevalpack
32
+ metrics:
33
+ - type: pass@1
34
+ value: 62.2
35
+ name: pass@1
36
+ verified: false
37
+ - type: pass@1
38
+ value: 51.4
39
+ name: pass@1
40
+ verified: false
41
+ - type: pass@1
42
+ value: 38.9
43
+ name: pass@1
44
+ verified: false
45
+ - type: pass@1
46
+ value: 38.3
47
+ name: pass@1
48
+ verified: false
49
+ - task:
50
+ type: text-generation
51
+ dataset:
52
+ name: RepoQA (Python@16K)
53
+ type: repoqa
54
+ metrics:
55
+ - type: pass@1 (thresh=0.5)
56
+ value: 73.0
57
+ name: pass@1 (thresh=0.5)
58
+ verified: false
59
+ - type: pass@1 (thresh=0.5)
60
+ value: 37.0
61
+ name: pass@1 (thresh=0.5)
62
+ verified: false
63
+ - type: pass@1 (thresh=0.5)
64
+ value: 73.0
65
+ name: pass@1 (thresh=0.5)
66
+ verified: false
67
+ - type: pass@1 (thresh=0.5)
68
+ value: 62.0
69
+ name: pass@1 (thresh=0.5)
70
+ verified: false
71
+ - type: pass@1 (thresh=0.5)
72
+ value: 63.0
73
+ name: pass@1 (thresh=0.5)
74
+ verified: false
75
+ ---
76
+
77
+ # janchk/granite-8b-code-instruct-128k-Q4_K_M-GGUF
78
+ This model was converted to GGUF format from [`ibm-granite/granite-8b-code-instruct-128k`](https://huggingface.co/ibm-granite/granite-8b-code-instruct-128k) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
79
+ Refer to the [original model card](https://huggingface.co/ibm-granite/granite-8b-code-instruct-128k) for more details on the model.
80
+
81
+ ## Use with llama.cpp
82
+ Install llama.cpp through brew (works on Mac and Linux)
83
+
84
+ ```bash
85
+ brew install llama.cpp
86
+
87
+ ```
88
+ Invoke the llama.cpp server or the CLI.
89
+
90
+ ### CLI:
91
+ ```bash
92
+ llama-cli --hf-repo janchk/granite-8b-code-instruct-128k-Q4_K_M-GGUF --hf-file granite-8b-code-instruct-128k-q4_k_m.gguf -p "The meaning to life and the universe is"
93
+ ```
94
+
95
+ ### Server:
96
+ ```bash
97
+ llama-server --hf-repo janchk/granite-8b-code-instruct-128k-Q4_K_M-GGUF --hf-file granite-8b-code-instruct-128k-q4_k_m.gguf -c 2048
98
+ ```
99
+
100
+ 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.
101
+
102
+ Step 1: Clone llama.cpp from GitHub.
103
+ ```
104
+ git clone https://github.com/ggerganov/llama.cpp
105
+ ```
106
+
107
+ 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).
108
+ ```
109
+ cd llama.cpp && LLAMA_CURL=1 make
110
+ ```
111
+
112
+ Step 3: Run inference through the main binary.
113
+ ```
114
+ ./llama-cli --hf-repo janchk/granite-8b-code-instruct-128k-Q4_K_M-GGUF --hf-file granite-8b-code-instruct-128k-q4_k_m.gguf -p "The meaning to life and the universe is"
115
+ ```
116
+ or
117
+ ```
118
+ ./llama-server --hf-repo janchk/granite-8b-code-instruct-128k-Q4_K_M-GGUF --hf-file granite-8b-code-instruct-128k-q4_k_m.gguf -c 2048
119
+ ```