Savyasaachin commited on
Commit
6fca36e
·
verified ·
1 Parent(s): 3bcccf2

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +78 -0
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: gpl-3.0
4
+ language:
5
+ - as
6
+ - bn
7
+ - brx
8
+ - doi
9
+ - gom
10
+ - gu
11
+ - en
12
+ - hi
13
+ - kn
14
+ - ks
15
+ - mai
16
+ - ml
17
+ - mni
18
+ - mr
19
+ - ne
20
+ - or
21
+ - pa
22
+ - sa
23
+ - sat
24
+ - sd
25
+ - ta
26
+ - te
27
+ - ur
28
+ base_model: sarvamai/sarvam-translate
29
+ base_model_relation: finetune
30
+ pipeline_tag: translation
31
+ tags:
32
+ - llama-cpp
33
+ - gguf-my-repo
34
+ ---
35
+
36
+ # Savyasaachin/sarvam-translate-Q4_K_M-GGUF
37
+ This model was converted to GGUF format from [`sarvamai/sarvam-translate`](https://huggingface.co/sarvamai/sarvam-translate) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
38
+ Refer to the [original model card](https://huggingface.co/sarvamai/sarvam-translate) for more details on the model.
39
+
40
+ ## Use with llama.cpp
41
+ Install llama.cpp through brew (works on Mac and Linux)
42
+
43
+ ```bash
44
+ brew install llama.cpp
45
+
46
+ ```
47
+ Invoke the llama.cpp server or the CLI.
48
+
49
+ ### CLI:
50
+ ```bash
51
+ llama-cli --hf-repo Savyasaachin/sarvam-translate-Q4_K_M-GGUF --hf-file sarvam-translate-q4_k_m.gguf -p "The meaning to life and the universe is"
52
+ ```
53
+
54
+ ### Server:
55
+ ```bash
56
+ llama-server --hf-repo Savyasaachin/sarvam-translate-Q4_K_M-GGUF --hf-file sarvam-translate-q4_k_m.gguf -c 2048
57
+ ```
58
+
59
+ 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.
60
+
61
+ Step 1: Clone llama.cpp from GitHub.
62
+ ```
63
+ git clone https://github.com/ggerganov/llama.cpp
64
+ ```
65
+
66
+ 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).
67
+ ```
68
+ cd llama.cpp && LLAMA_CURL=1 make
69
+ ```
70
+
71
+ Step 3: Run inference through the main binary.
72
+ ```
73
+ ./llama-cli --hf-repo Savyasaachin/sarvam-translate-Q4_K_M-GGUF --hf-file sarvam-translate-q4_k_m.gguf -p "The meaning to life and the universe is"
74
+ ```
75
+ or
76
+ ```
77
+ ./llama-server --hf-repo Savyasaachin/sarvam-translate-Q4_K_M-GGUF --hf-file sarvam-translate-q4_k_m.gguf -c 2048
78
+ ```