Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: AdaptLLM/law-chat
|
3 |
+
datasets:
|
4 |
+
- EleutherAI/pile
|
5 |
+
- Open-Orca/OpenOrca
|
6 |
+
- GAIR/lima
|
7 |
+
- WizardLM/WizardLM_evol_instruct_V2_196k
|
8 |
+
language:
|
9 |
+
- en
|
10 |
+
license: llama2
|
11 |
+
metrics:
|
12 |
+
- accuracy
|
13 |
+
pipeline_tag: text-generation
|
14 |
+
tags:
|
15 |
+
- legal
|
16 |
+
- llama-cpp
|
17 |
+
- gguf-my-repo
|
18 |
+
model-index:
|
19 |
+
- name: law-chat
|
20 |
+
results:
|
21 |
+
- task:
|
22 |
+
type: text-generation
|
23 |
+
name: Text Generation
|
24 |
+
dataset:
|
25 |
+
name: AI2 Reasoning Challenge (25-Shot)
|
26 |
+
type: ai2_arc
|
27 |
+
config: ARC-Challenge
|
28 |
+
split: test
|
29 |
+
args:
|
30 |
+
num_few_shot: 25
|
31 |
+
metrics:
|
32 |
+
- type: acc_norm
|
33 |
+
value: 53.41
|
34 |
+
name: normalized accuracy
|
35 |
+
source:
|
36 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=AdaptLLM/law-chat
|
37 |
+
name: Open LLM Leaderboard
|
38 |
+
- task:
|
39 |
+
type: text-generation
|
40 |
+
name: Text Generation
|
41 |
+
dataset:
|
42 |
+
name: HellaSwag (10-Shot)
|
43 |
+
type: hellaswag
|
44 |
+
split: validation
|
45 |
+
args:
|
46 |
+
num_few_shot: 10
|
47 |
+
metrics:
|
48 |
+
- type: acc_norm
|
49 |
+
value: 76.16
|
50 |
+
name: normalized accuracy
|
51 |
+
source:
|
52 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=AdaptLLM/law-chat
|
53 |
+
name: Open LLM Leaderboard
|
54 |
+
- task:
|
55 |
+
type: text-generation
|
56 |
+
name: Text Generation
|
57 |
+
dataset:
|
58 |
+
name: MMLU (5-Shot)
|
59 |
+
type: cais/mmlu
|
60 |
+
config: all
|
61 |
+
split: test
|
62 |
+
args:
|
63 |
+
num_few_shot: 5
|
64 |
+
metrics:
|
65 |
+
- type: acc
|
66 |
+
value: 50.24
|
67 |
+
name: accuracy
|
68 |
+
source:
|
69 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=AdaptLLM/law-chat
|
70 |
+
name: Open LLM Leaderboard
|
71 |
+
- task:
|
72 |
+
type: text-generation
|
73 |
+
name: Text Generation
|
74 |
+
dataset:
|
75 |
+
name: TruthfulQA (0-shot)
|
76 |
+
type: truthful_qa
|
77 |
+
config: multiple_choice
|
78 |
+
split: validation
|
79 |
+
args:
|
80 |
+
num_few_shot: 0
|
81 |
+
metrics:
|
82 |
+
- type: mc2
|
83 |
+
value: 43.53
|
84 |
+
source:
|
85 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=AdaptLLM/law-chat
|
86 |
+
name: Open LLM Leaderboard
|
87 |
+
- task:
|
88 |
+
type: text-generation
|
89 |
+
name: Text Generation
|
90 |
+
dataset:
|
91 |
+
name: Winogrande (5-shot)
|
92 |
+
type: winogrande
|
93 |
+
config: winogrande_xl
|
94 |
+
split: validation
|
95 |
+
args:
|
96 |
+
num_few_shot: 5
|
97 |
+
metrics:
|
98 |
+
- type: acc
|
99 |
+
value: 75.45
|
100 |
+
name: accuracy
|
101 |
+
source:
|
102 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=AdaptLLM/law-chat
|
103 |
+
name: Open LLM Leaderboard
|
104 |
+
- task:
|
105 |
+
type: text-generation
|
106 |
+
name: Text Generation
|
107 |
+
dataset:
|
108 |
+
name: GSM8k (5-shot)
|
109 |
+
type: gsm8k
|
110 |
+
config: main
|
111 |
+
split: test
|
112 |
+
args:
|
113 |
+
num_few_shot: 5
|
114 |
+
metrics:
|
115 |
+
- type: acc
|
116 |
+
value: 18.5
|
117 |
+
name: accuracy
|
118 |
+
source:
|
119 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=AdaptLLM/law-chat
|
120 |
+
name: Open LLM Leaderboard
|
121 |
+
---
|
122 |
+
|
123 |
+
# hellork/law-chat-IQ4_XS-GGUF
|
124 |
+
This model was converted to GGUF format from [`AdaptLLM/law-chat`](https://huggingface.co/AdaptLLM/law-chat) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
125 |
+
Refer to the [original model card](https://huggingface.co/AdaptLLM/law-chat) for more details on the model.
|
126 |
+
|
127 |
+
## Use with llama.cpp
|
128 |
+
Install llama.cpp through brew (works on Mac and Linux)
|
129 |
+
|
130 |
+
```bash
|
131 |
+
brew install llama.cpp
|
132 |
+
|
133 |
+
```
|
134 |
+
Invoke the llama.cpp server or the CLI.
|
135 |
+
|
136 |
+
### CLI:
|
137 |
+
```bash
|
138 |
+
llama-cli --hf-repo hellork/law-chat-IQ4_XS-GGUF --hf-file law-chat-iq4_xs-imat.gguf -p "The meaning to life and the universe is"
|
139 |
+
```
|
140 |
+
|
141 |
+
### Server:
|
142 |
+
```bash
|
143 |
+
llama-server --hf-repo hellork/law-chat-IQ4_XS-GGUF --hf-file law-chat-iq4_xs-imat.gguf -c 2048
|
144 |
+
```
|
145 |
+
|
146 |
+
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.
|
147 |
+
|
148 |
+
Step 1: Clone llama.cpp from GitHub.
|
149 |
+
```
|
150 |
+
git clone https://github.com/ggerganov/llama.cpp
|
151 |
+
```
|
152 |
+
|
153 |
+
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).
|
154 |
+
```
|
155 |
+
cd llama.cpp && LLAMA_CURL=1 make
|
156 |
+
```
|
157 |
+
|
158 |
+
Step 3: Run inference through the main binary.
|
159 |
+
```
|
160 |
+
./llama-cli --hf-repo hellork/law-chat-IQ4_XS-GGUF --hf-file law-chat-iq4_xs-imat.gguf -p "The meaning to life and the universe is"
|
161 |
+
```
|
162 |
+
or
|
163 |
+
```
|
164 |
+
./llama-server --hf-repo hellork/law-chat-IQ4_XS-GGUF --hf-file law-chat-iq4_xs-imat.gguf -c 2048
|
165 |
+
```
|