Skip to content

Commit 8a56075

Browse files
authored
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 <[email protected]>
1 parent 58227ff commit 8a56075

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/gritlm/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ not have to be performed at all.
2121
### Running the example
2222
Download a Grit model:
2323
```console
24-
$ scripts/hf.sh --repo cohesionet/GritLM-7B_gguf --file gritlm-7b_q4_1.gguf
24+
$ scripts/hf.sh --repo cohesionet/GritLM-7B_gguf --file gritlm-7b_q4_1.gguf --outdir models
2525
```
2626

2727
Run the example using the downloaded model:
2828
```console
29-
$ ./gritlm -m gritlm-7b_q4_1.gguf
29+
$ ./gritlm -m models/gritlm-7b_q4_1.gguf
3030

3131
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
3232
Cosine similarity between "Bitcoin: A Peer-to-Peer Electronic Cash System" and "All text-based language problems can be reduced to" is: 0.103

0 commit comments

Comments
 (0)