jwu323 commited on
Commit
6cc64a4
·
verified ·
1 Parent(s): a922e8f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +40 -3
README.md CHANGED
@@ -1,3 +1,40 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ ---
4
+ ## Use with llama.cpp
5
+ Install llama.cpp through brew (works on Mac and Linux)
6
+
7
+ ```bash
8
+ brew install llama.cpp
9
+ ```
10
+ Invoke the llama.cpp server or the CLI.
11
+
12
+ ### CLI:
13
+ ```bash
14
+ llama-cli --hf-repo SimpleBerry/LLaMA-O1-Supervised-1129-Q2_K-GGUF --hf-file LLaMA-O1-Supervised-1129-q2_k.gguf -p "The meaning to life and the universe is"
15
+ ```
16
+
17
+ ### Server:
18
+ ```bash
19
+ llama-server --hf-repo SimpleBerry/LLaMA-O1-Supervised-1129-Q2_K-GGUF --hf-file LLaMA-O1-Supervised-1129-q2_k.gguf -c 2048
20
+ ```
21
+
22
+ 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.
23
+
24
+ Step 1: Clone llama.cpp from GitHub.
25
+ ```
26
+ git clone https://github.com/ggerganov/llama.cpp
27
+ ```
28
+
29
+ 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).
30
+ ```
31
+ cd llama.cpp && LLAMA_CURL=1 make
32
+ ```
33
+ Step 3: Run inference through the main binary.
34
+ ```
35
+ ./llama-cli --hf-repo SimpleBerry/LLaMA-O1-Supervised-1129-Q2_K-GGUF --hf-file LLaMA-O1-Supervised-1129-q2_k.gguf -p "The meaning to life and the universe is"
36
+ ```
37
+ or
38
+ ```
39
+ ./llama-server --hf-repo SimpleBerry/LLaMA-O1-Supervised-1129-Q2_K-GGUF --hf-file LLaMA-O1-Supervised-1129-q2_k.gguf -c 2048
40
+ ```