lucasxx commited on
Commit
bd228a8
1 Parent(s): 7b04357

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +42 -0
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - zh
5
+ tags:
6
+ - llama-cpp
7
+ - gguf-my-repo
8
+ license_name: baichuan2-community-license
9
+ license_link: https://huggingface.co/baichuan-inc/Baichuan2-7B-Chat/blob/main/Community%20License%20for%20Baichuan2%20Model.pdf
10
+ tasks:
11
+ - text-generation
12
+ ---
13
+
14
+ # lucasxx/Baichuan2-7B-Chat-Q4_K_M-GGUF
15
+ This model was converted to GGUF format from [`baichuan-inc/Baichuan2-7B-Chat`](https://huggingface.co/baichuan-inc/Baichuan2-7B-Chat) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
16
+ Refer to the [original model card](https://huggingface.co/baichuan-inc/Baichuan2-7B-Chat) for more details on the model.
17
+ ## Use with llama.cpp
18
+
19
+ Install llama.cpp through brew.
20
+
21
+ ```bash
22
+ brew install ggerganov/ggerganov/llama.cpp
23
+ ```
24
+ Invoke the llama.cpp server or the CLI.
25
+
26
+ CLI:
27
+
28
+ ```bash
29
+ llama-cli --hf-repo lucasxx/Baichuan2-7B-Chat-Q4_K_M-GGUF --model baichuan2-7b-chat.Q4_K_M.gguf -p "The meaning to life and the universe is"
30
+ ```
31
+
32
+ Server:
33
+
34
+ ```bash
35
+ llama-server --hf-repo lucasxx/Baichuan2-7B-Chat-Q4_K_M-GGUF --model baichuan2-7b-chat.Q4_K_M.gguf -c 2048
36
+ ```
37
+
38
+ 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.
39
+
40
+ ```
41
+ git clone https://github.com/ggerganov/llama.cpp && cd llama.cpp && make && ./main -m baichuan2-7b-chat.Q4_K_M.gguf -n 128
42
+ ```