Triangle104
commited on
Commit
•
4bb75f2
1
Parent(s):
c9d039e
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: llama2
|
3 |
+
datasets:
|
4 |
+
- ACE05
|
5 |
+
- conll2003
|
6 |
+
- conll2012_ontonotesv5
|
7 |
+
- rams
|
8 |
+
- tacred
|
9 |
+
- fewrel
|
10 |
+
- maven
|
11 |
+
language:
|
12 |
+
- en
|
13 |
+
metrics:
|
14 |
+
- f1
|
15 |
+
pipeline_tag: text-generation
|
16 |
+
tags:
|
17 |
+
- text-generation-inference
|
18 |
+
- Information Extraction
|
19 |
+
- IE
|
20 |
+
- Named Entity Recogniton
|
21 |
+
- Event Extraction
|
22 |
+
- Relation Extraction
|
23 |
+
- LLaMA
|
24 |
+
- llama-cpp
|
25 |
+
- gguf-my-repo
|
26 |
+
base_model: THU-KEG/ADELIE-SFT-3B
|
27 |
+
---
|
28 |
+
|
29 |
+
# Triangle104/ADELIE-SFT-3B-Q4_K_S-GGUF
|
30 |
+
This model was converted to GGUF format from [`THU-KEG/ADELIE-SFT-3B`](https://huggingface.co/THU-KEG/ADELIE-SFT-3B) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
31 |
+
Refer to the [original model card](https://huggingface.co/THU-KEG/ADELIE-SFT-3B) for more details on the model.
|
32 |
+
|
33 |
+
## Use with llama.cpp
|
34 |
+
Install llama.cpp through brew (works on Mac and Linux)
|
35 |
+
|
36 |
+
```bash
|
37 |
+
brew install llama.cpp
|
38 |
+
|
39 |
+
```
|
40 |
+
Invoke the llama.cpp server or the CLI.
|
41 |
+
|
42 |
+
### CLI:
|
43 |
+
```bash
|
44 |
+
llama-cli --hf-repo Triangle104/ADELIE-SFT-3B-Q4_K_S-GGUF --hf-file adelie-sft-3b-q4_k_s.gguf -p "The meaning to life and the universe is"
|
45 |
+
```
|
46 |
+
|
47 |
+
### Server:
|
48 |
+
```bash
|
49 |
+
llama-server --hf-repo Triangle104/ADELIE-SFT-3B-Q4_K_S-GGUF --hf-file adelie-sft-3b-q4_k_s.gguf -c 2048
|
50 |
+
```
|
51 |
+
|
52 |
+
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.
|
53 |
+
|
54 |
+
Step 1: Clone llama.cpp from GitHub.
|
55 |
+
```
|
56 |
+
git clone https://github.com/ggerganov/llama.cpp
|
57 |
+
```
|
58 |
+
|
59 |
+
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).
|
60 |
+
```
|
61 |
+
cd llama.cpp && LLAMA_CURL=1 make
|
62 |
+
```
|
63 |
+
|
64 |
+
Step 3: Run inference through the main binary.
|
65 |
+
```
|
66 |
+
./llama-cli --hf-repo Triangle104/ADELIE-SFT-3B-Q4_K_S-GGUF --hf-file adelie-sft-3b-q4_k_s.gguf -p "The meaning to life and the universe is"
|
67 |
+
```
|
68 |
+
or
|
69 |
+
```
|
70 |
+
./llama-server --hf-repo Triangle104/ADELIE-SFT-3B-Q4_K_S-GGUF --hf-file adelie-sft-3b-q4_k_s.gguf -c 2048
|
71 |
+
```
|