]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
docs: fix outdated usage of llama-simple (#10565)
authorRandom Fly <redacted>
Thu, 28 Nov 2024 15:03:11 +0000 (23:03 +0800)
committerGitHub <redacted>
Thu, 28 Nov 2024 15:03:11 +0000 (16:03 +0100)
docs/android.md
examples/simple/README.md

index 320b62240382fa8a9eddbbc9ef178e9960984e47..47530c6c1d4786fae027aa838c9e47183cc810f4 100644 (file)
@@ -23,10 +23,10 @@ $ curl -L {model-url} -o ~/{model}.gguf
 Then, if you are not already in the repo directory, `cd` into `llama.cpp` and:
 
 ```
-$ ./build/bin/llama-simple -m ~/{model}.gguf -c {context-size} -p "{your-prompt}"
+$ ./build/bin/llama-cli -m ~/{model}.gguf -c {context-size} -p "{your-prompt}"
 ```
 
-Here, we show `llama-simple`, but any of the executables under `examples` should work, in theory. Be sure to set `context-size` to a reasonable number (say, 4096) to start with; otherwise, memory could spike and kill your terminal.
+Here, we show `llama-cli`, but any of the executables under `examples` should work, in theory. Be sure to set `context-size` to a reasonable number (say, 4096) to start with; otherwise, memory could spike and kill your terminal.
 
 To see what it might look like visually, here's an old demo of an interactive session running on a Pixel 5 phone:
 
index 0ff3425359a415c70a648e7e882304a22f9a5350..937008b243ee463bf9fcd50e265dcbf485a3e696 100644 (file)
@@ -3,7 +3,7 @@
 The purpose of this example is to demonstrate a minimal usage of llama.cpp for generating text with a given prompt.
 
 ```bash
-./llama-simple -m ./models/llama-7b-v2/ggml-model-f16.gguf -p "Hello my name is"
+./llama-simple -m ./models/llama-7b-v2/ggml-model-f16.gguf "Hello my name is"
 
 ...