ApprikatAI
commited on
Commit
•
276d948
1
Parent(s):
70f082e
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: papluca/xlm-roberta-base-language-detection
|
3 |
+
datasets: papluca/language-identification
|
4 |
+
language:
|
5 |
+
- multilingual
|
6 |
+
- ar
|
7 |
+
- bg
|
8 |
+
- de
|
9 |
+
- el
|
10 |
+
- en
|
11 |
+
- es
|
12 |
+
- fr
|
13 |
+
- hi
|
14 |
+
- it
|
15 |
+
- ja
|
16 |
+
- nl
|
17 |
+
- pl
|
18 |
+
- pt
|
19 |
+
- ru
|
20 |
+
- sw
|
21 |
+
- th
|
22 |
+
- tr
|
23 |
+
- ur
|
24 |
+
- vi
|
25 |
+
- zh
|
26 |
+
license: mit
|
27 |
+
metrics:
|
28 |
+
- accuracy
|
29 |
+
- f1
|
30 |
+
tags:
|
31 |
+
- generated_from_trainer
|
32 |
+
- llama-cpp
|
33 |
+
- gguf-my-repo
|
34 |
+
model-index:
|
35 |
+
- name: xlm-roberta-base-language-detection
|
36 |
+
results: []
|
37 |
+
---
|
38 |
+
|
39 |
+
# ApprikatAI/xlm-roberta-base-language-detection-Q8_0-GGUF
|
40 |
+
This model was converted to GGUF format from [`papluca/xlm-roberta-base-language-detection`](https://huggingface.co/papluca/xlm-roberta-base-language-detection) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
41 |
+
Refer to the [original model card](https://huggingface.co/papluca/xlm-roberta-base-language-detection) for more details on the model.
|
42 |
+
|
43 |
+
## Use with llama.cpp
|
44 |
+
Install llama.cpp through brew (works on Mac and Linux)
|
45 |
+
|
46 |
+
```bash
|
47 |
+
brew install llama.cpp
|
48 |
+
|
49 |
+
```
|
50 |
+
Invoke the llama.cpp server or the CLI.
|
51 |
+
|
52 |
+
### CLI:
|
53 |
+
```bash
|
54 |
+
llama-cli --hf-repo ApprikatAI/xlm-roberta-base-language-detection-Q8_0-GGUF --hf-file xlm-roberta-base-language-detection-q8_0.gguf -p "The meaning to life and the universe is"
|
55 |
+
```
|
56 |
+
|
57 |
+
### Server:
|
58 |
+
```bash
|
59 |
+
llama-server --hf-repo ApprikatAI/xlm-roberta-base-language-detection-Q8_0-GGUF --hf-file xlm-roberta-base-language-detection-q8_0.gguf -c 2048
|
60 |
+
```
|
61 |
+
|
62 |
+
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.
|
63 |
+
|
64 |
+
Step 1: Clone llama.cpp from GitHub.
|
65 |
+
```
|
66 |
+
git clone https://github.com/ggerganov/llama.cpp
|
67 |
+
```
|
68 |
+
|
69 |
+
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).
|
70 |
+
```
|
71 |
+
cd llama.cpp && LLAMA_CURL=1 make
|
72 |
+
```
|
73 |
+
|
74 |
+
Step 3: Run inference through the main binary.
|
75 |
+
```
|
76 |
+
./llama-cli --hf-repo ApprikatAI/xlm-roberta-base-language-detection-Q8_0-GGUF --hf-file xlm-roberta-base-language-detection-q8_0.gguf -p "The meaning to life and the universe is"
|
77 |
+
```
|
78 |
+
or
|
79 |
+
```
|
80 |
+
./llama-server --hf-repo ApprikatAI/xlm-roberta-base-language-detection-Q8_0-GGUF --hf-file xlm-roberta-base-language-detection-q8_0.gguf -c 2048
|
81 |
+
```
|