diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2024-04-16 08:34:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 09:34:06 +0300 |
commit | 8a56075b07a8b571bf95a912ffdce4c928c2b414 (patch) | |
tree | 690fb1d598158648b336546bc18bd954dde68926 /examples | |
parent | 58227ffdeb4fb89cacb0cffaadf76b1914324ad3 (diff) |
gritlm : add --outdir option to hf.sh script (#6699)
This commit updates the hf.sh script usage to include the --outdir option
and specifies the models directory as the output directory.
The motivation for this is to avoid cluttering the root directory with
model files.
Signed-off-by: Daniel Bevenius <daniel.bevenius@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/gritlm/README.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/gritlm/README.md b/examples/gritlm/README.md index 64cc1920..a3a3c138 100644 --- a/examples/gritlm/README.md +++ b/examples/gritlm/README.md @@ -21,12 +21,12 @@ not have to be performed at all. ### Running the example Download a Grit model: ```console -$ scripts/hf.sh --repo cohesionet/GritLM-7B_gguf --file gritlm-7b_q4_1.gguf +$ scripts/hf.sh --repo cohesionet/GritLM-7B_gguf --file gritlm-7b_q4_1.gguf --outdir models ``` Run the example using the downloaded model: ```console -$ ./gritlm -m gritlm-7b_q4_1.gguf +$ ./gritlm -m models/gritlm-7b_q4_1.gguf Cosine similarity between "Bitcoin: A Peer-to-Peer Electronic Cash System" and "A purely peer-to-peer version of electronic cash w" is: 0.605 Cosine similarity between "Bitcoin: A Peer-to-Peer Electronic Cash System" and "All text-based language problems can be reduced to" is: 0.103 |